-
Notifications
You must be signed in to change notification settings - Fork 29.6k
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
x86 npm on Windows randomly crashes with -1073741819 exit code #34927
Comments
-1073741819 is 0xC0000005, the status code for a general access violation. Unfortunately, that can be caused by just about anything. Does it print a stack trace or anything else that could help troubleshoot this? |
Nope, it just silently crashes. There was an attempt to troubleshoot that: appveyor/ci#3407 (comment) |
Thanks, that's helpful insofar that it tells me what happens, although not why. :-) What: the garbage collector tries to move an object but its map pointer (its "hidden class" descriptor) is invalid Why: unclear. I don't recall receiving similar bug reports. cc @nodejs/platform-windows since this only seems to happen with the windows x86 build. |
Ah, these are "fun". It might not have anything to do with the garbage collector and may be something with the environment clean up logic. The fact that it's so intermittent means it could be initialized memory somewhere. Later on today or tomorrow I'll see if I can reproduce the issue. |
The stack trace makes that seem very unlikely, the crash is happening while JS is running. |
Node.js 14 is about to reach end-of-life. Is this known to be an issue in the 16, 18, 19, or 20 release lines? |
tested with node 14,16,18,20 (both x86 and x64) and was not able to reproduce this (i'm on win11). If anyone can help me reproduce i'd be keen to look into it and try to fix, otherwise looks like it is no longer relevant. |
Since there has been no activity here in years and any evidently problematic configuration has reached end-of-life status, I'll close this issue. |
What steps will reproduce the bug?
npm
from x86 version of Node.js 14.x sporadically crashes with -1073741819 exit code.npm
from x64 version of Node 14.x works normally.To reproduce the issue run the following Windows batch script which runs
npm -v
500 times in a loop:How often does it reproduce? Is there a required condition?
It could crash on the first or second iteration; sometimes it manages to do around 5 iterations.
What is the expected behavior?
All iterations should be successful:
What do you see instead?
Additional information
Initially, we thought it was AppVeyor-specific issue, however we were able to reproduce the issue on Hyper-V and GCP virtual machines with Windows Server 2019 as well as bare-metal PC with Windows 10.
The text was updated successfully, but these errors were encountered: