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

node6 runtime error #41

Open
lmeyerov opened this issue May 3, 2016 · 4 comments
Open

node6 runtime error #41

lmeyerov opened this issue May 3, 2016 · 4 comments

Comments

@lmeyerov
Copy link

lmeyerov commented May 3, 2016

Getting the below error at runtime for the below use under node 6. Could not duplicate in an isolated test. Anyone seeing something similar?

Usage:

var SegfaultHandler = require('segfault-handler');
SegfaultHandler.registerHandler();

Runtime error:

"Error: Module did not self-register.
    at Error (native)
    at Object.Module._extensions..node (module.js:568:18)
    at Module.load (module.js:456:32)
    at tryModuleLoad (module.js:415:12)
    at Function.Module._load (module.js:407:3)
    at Module.require (module.js:466:17)
    at require (internal/module.js:20:19)
    at bindings (/Users/lmeyerov/Desktop/work4/viz-server/node_modules/graph-viz/node_modules/common/node_modules/segfault-handler/node_modules/bindings/bindings.js:76:44)
    at Object.<anonymous> (/Users/lmeyerov/Desktop/work4/viz-server/node_modules/graph-viz/node_modules/common/node_modules/segfault-handler/index.js:3:37)
@dresende
Copy link

I'm also having this problem. I'm searching for alternatives if this doesn't get solved 😢

@simison
Copy link
Contributor

simison commented May 11, 2016

For now you could do something like this:

if (process.version.indexOf('v4') === 0 || process.version.indexOf('v5') === 0) {
  var SegfaultHandler = require('segfault-handler');
  SegfaultHandler.registerHandler();
}

@dresende
Copy link

Yes, I'm requiring it inside a try block, but I would prefer it to work since I find it quite precious when my app just blows the house 😄

@doublerebel
Copy link

This module works for me on Node 6.9.1 . Is this still a valid bug for you all?

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

4 participants