node-segfault-handler
node-segfault-handler copied to clipboard
callback is never called
Hi there,
Am I doing something wrong? or it's a known issue?
I've the following code:
SegfaultHandler.registerHandler("crash.log", function(signal, address, stack) {
console.log('TETETETETETETETET');
});
SegfaultHandler.causeSegfault();
I've never seen my message from the callback. And the log filename is like that stacktrace-1512461249-10000.log. The numbers (in the filename) every time are different.
But if I remove the callback, the log stores under the "crash.log" filename.
I'm using
"segfault-handler": "1.0.0" and node: v8.9.1
Thanks
Hey if this is inside a container and a log file is generated, how do you access the log file?
Duplicate of https://github.com/ddopson/node-segfault-handler/issues/38