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

question: requiring this module fixes my segfault problem. What am I doing? :-D #55

Open
ericblade opened this issue Sep 19, 2018 · 1 comment

Comments

@ericblade
Copy link

Leaving this here where maybe people with some experience debugging node native modules might suggest some ideas.

I'm having a problem with a native node module crashing. That module is here: https://github.com/webosose/nodejs-module-webos-sysbus

While trying to track down the point of the crash, I discovered node-segfault-handler. I built that for the target system, and I require it as the very first thing in my source. The crashing has stopped completely (well , at least for the first 500 attempts . . it was a random problem, but it was happening at least 1 in 10 times before)

Any ideas what might cause something like that?

I'm using nodejs 6.11.2 on the target environment, but that doesn't seem to make any difference.

@Matt-Esch
Copy link
Contributor

https://nodejs.org/dist/v8.9.3/docs/api/cli.html#cli_abort_on_uncaught_exception

If you can cause the process to segfault and dump core it can be inspected with gdb. You need to ensure that the correct ulimit is set to allow dumping core files (ulimit -c unlimited).

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

No branches or pull requests

2 participants