-
Notifications
You must be signed in to change notification settings - Fork 130
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 #140
Comments
What does node-heapdump is probably just the messenger, not the culprit. There's likely something else going on, like another add-on corrupting the JS heap. |
How can I make sure it's which one? |
The crash also happens on SIGUSR2. Here's the core dump: core dump
|
I tried taking the snapshot using chrome dev tools and the process crashed again. So you are right, it's some thing about my app. I know it's out of scope of this project but according to your experience, I'll appreciate if you could put me in the right direction. Thanks in advance. BTW here is the core dump when taking the snapshot by chrome: core dump
|
Heap corruption is often difficult to debug because the real bug is frequently removed in time and space from the crash but I'd start with excluding the other add-on (posix), if possible. That will at least tell you if it's an issue with node or the add-on. |
Great! Looking for your update. |
What do you mean, "your update"? |
Oops! I thought you're going to do some change by saying "I'd start with excluding the other add-on". Okay I'll try to test without other add-ons. Thanks for your help. |
Happy to help. I'll close this out. |
FYI the crash was for node.js version 8 and it works well on higher node.js versions (i.e. 10 and 12). |
I'm using
writeSnapshot()
and the callback function to create heap snapshots. But the process crashes every time it tries to take the snapshot. It only happens in my production server (Ubuntu 16.0.4 and Node.js 8.17.0) but not in development environment. Here's the core dump:The text was updated successfully, but these errors were encountered: