-
Notifications
You must be signed in to change notification settings - Fork 30.9k
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
Segmentation Fault When Creating Heap Snapshot #39258
Comments
I also ran into something very similar, which looks like the same problem and root cause, when attempting to take a heap snapshot with Node v14.15.5 on Ubuntu 20.04 (EDIT: Also built the latest node at commit ce4d224 from the v14.x branch and hit exactly the same problem with the same stacktrace as below). Managed to pull the following out of the core file, showing the segfault happening in
|
Hey @lukas-bluescape, thanks for taking a look at this. When you ran into the issue, was there anything you were able to do to remedy the behavior? |
@DakotaLarson: Unfortunately I haven't found a way to remedy this in my particular case. There's also a discussion in #38961 and #38985 about this same crash, but no resolution yet. I did try with a debug build of node and managed to get some additional details from the core file. Maybe this might be useful to somebody else who knows their way around this codebase better?:
|
@DakotaLarson: I'm not sure whether or not you require Node v14 in your particular case, but I was able to take a heap snapshot successfully (without any crashes) on Node v16. Just wanted to let you know in case that helps! |
Tracking in #42558. |
What steps will reproduce the bug?
This issue can be reproduced on both Windows and CentOS 7, but only with the exact program I have, which isn't open source unfortunately.
How often does it reproduce? Is there a required condition?
This reproduces every time I attempt to create a snapshot. I have found the offending code is a while loop in an async function (There is an async call in the while loop).
When the logic is removed, the snapshot is created. Additionally, when the async call in the while loop is replaced with a "wait" function (https://pastebin.com/ff5mjjby), the same seg fault is produced.
What is the expected behavior?
When I create a heap snapshot using Chrome Devtools or the function available in WebStorm, I expect it to not create a seg fault.
What do you see instead?
When I create a heap snapshot, the program exits. I get this error in the console: https://pastebin.com/Z5936NF6. I get a similar message on CentOS.
Additional information
I know it's probably a long shot, but I hope this error message and program detail is enough to hypothesize a solution. Please let me know if there is any specific information I can provide to make this more understandable.
Of course, the offending code is integral to the program :/
All packages have been updated as well.
The text was updated successfully, but these errors were encountered: