node-segfault-handler icon indicating copy to clipboard operation
node-segfault-handler copied to clipboard

callback is never called

Open nnnikolay opened this issue 7 years ago • 2 comments

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

nnnikolay avatar Dec 05 '17 08:12 nnnikolay

Hey if this is inside a container and a log file is generated, how do you access the log file?

saurav-bhagat avatar Oct 27 '20 14:10 saurav-bhagat

Duplicate of https://github.com/ddopson/node-segfault-handler/issues/38

OmgImAlexis avatar Jun 22 '22 22:06 OmgImAlexis