-
Notifications
You must be signed in to change notification settings - Fork 74
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
Is the register handler callback broken? #38
Comments
Also seeing the same. |
same here its always crashing in
(well the stacktrace is even in the readme.. ^^) |
Okay, its probably just bc im on windows.. @ddopson, @No9 are there any plans for version 1.1? To get the overriden handler working on windows we need two things:
Solutions:
I'd be willing to do this using the stdlib with c++11, since I don't know and neither want to use the windows specific mutex stuff. EDIT: I just found about v8::Locker , see https://nodeaddons.com/how-not-to-access-node-js-from-c-worker-threads/: Since we do not need simultaneous access from multiple threads for our crash handler (or do we @lavarsicious?) we could use that or cant we? Imo we would only need it if: different native modules crash at the very same time (or other: in the time the callback is running the next native module crashes) |
Still seems to be an issue. The callback is never called. import segfaultHandler from 'segfault-handler';
segfaultHandler.registerHandler('/var/log/unraid-api/crash.log', (signal, address, stack) => JSON.stringify({ signal, address, stack })); |
As the application is crashed at that point I don't think This way we get both the human readable and the raw output. import { writeFileSync } from 'fs';
import segfaultHandler from 'segfault-handler';
segfaultHandler.registerHandler('/var/log/app-name/crash.log', (signal, address, stack) => {
writeFileSync('/var/log/app-name/crash.json', JSON.stringify({ signal, address, stack }));
}); |
Hi, I need someone else to volunteer to maintain this module. I no longer have Node.js installed, and I haven't been paying attention to this space for many years. If someone would like to volunteer for this, please let me know. |
I'd be happy to help but I don't think if I know enough C++ as I'm mainly a node/python dev. |
here!
is never printed. A bug or am I doing something wrong?The text was updated successfully, but these errors were encountered: