Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Endless loop + hang with 100% CPU usage in execEditLength() when calling structuredPatch() #364

Closed
xeger opened this issue Apr 27, 2022 · 0 comments · Fixed by #365
Closed

Comments

@xeger
Copy link
Contributor

xeger commented Apr 27, 2022

I encountered a hang in Yarn 3.2.0 and have isolated the root cause as an infinite loop in [email protected]. (I'm not sure it's strictly infinite -- but it certainly doesn't terminate after an hour.) When Yarn asks diff to create a structured patch in order to show the user how the lockfile has changed, diff runs forever, consuming a lot of CPU while it does so.

I have reproduced the issue in this gist for your convenience.

I also verified that the hang still happens with [email protected] -- so it's still a legitimate issue. If I make any progress on diagnosing or fixing, I will update this ticket.

@xeger xeger changed the title Endless loop in execEditLength() when calling structuredPatch() Endless loop + hang with 100% CPU usage in execEditLength() when calling structuredPatch() Apr 27, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant