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

invalid ELF header #78

Open
rmclaughlin-nelnet opened this issue Jul 1, 2021 · 0 comments
Open

invalid ELF header #78

rmclaughlin-nelnet opened this issue Jul 1, 2021 · 0 comments

Comments

@rmclaughlin-nelnet
Copy link

rmclaughlin-nelnet commented Jul 1, 2021

I am trying to use this module in an AWS lambda to debug a sporadic segmentation fault, but when I include this module I get an invalid ELF header error whenever it runs. Any help getting this to work would be appreciated.

2021-07-01T16:34:46.344Z	undefined	ERROR	Uncaught Exception 	
{
    "errorType": "Error",
    "errorMessage": "/var/task/node_modules/segfault-handler/build/Release/segfault-handler.node: invalid ELF header",
    "stack": [
        "Error: /var/task/node_modules/segfault-handler/build/Release/segfault-handler.node: invalid ELF header",
        "    at Object.Module._extensions..node (internal/modules/cjs/loader.js:1057:18)",
        "    at Module.load (internal/modules/cjs/loader.js:863:32)",
        "    at Function.Module._load (internal/modules/cjs/loader.js:708:14)",
        "    at Module.require (internal/modules/cjs/loader.js:887:19)",
        "    at require (internal/modules/cjs/helpers.js:74:18)",
        "    at bindings (/var/task/node_modules/bindings/bindings.js:112:48)",
        "    at Object.<anonymous> (/var/task/node_modules/segfault-handler/index.js:3:37)",
        "    at Module._compile (internal/modules/cjs/loader.js:999:30)",
        "    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1027:10)",
        "    at Module.load (internal/modules/cjs/loader.js:863:32)"
    ]
}

Here is how I have it installed at the top of my lambda, unfortunately I cannot share the rest of my code.

const SegfaultHandler = require('segfault-handler');

SegfaultHandler.registerHandler('crash.log');

I am using "segfault-handler": "1.3.0" on node 12

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

1 participant