🚨 Shai-Hulud Strikes Again:834 Packages Compromised.Technical Analysis →
Socket
Book a DemoInstallSign in
Socket

bugsnag-segfault-handler

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bugsnag-segfault-handler

sends segfaults to Bugsnag

latest
Source
npmnpm
Version
0.4.0
Version published
Weekly downloads
0
-100%
Maintainers
1
Weekly downloads
 
Created
Source

A handler for sending segfaults in native node extensions to Bugsnag.

Usage

First install both the normal bugsnag-node module, and also the bugsnag-segfault-handler.

npm install --save bugsnag bugsnag-segfault-handler

Then initialize Bugsnag as normal, and also pass it into the Segfault handler:

var bugsnag = require('bugsnag');
bugsnag.register('YOUR_API_KEY_HERE');

var segfaultHandler = require('bugsnag-segfault-handler');
segfaultHandler(bugsnag, {dir: "/tmp/bugsnag-segfaults"});

To test the integration run:

segfaultHandler.test()

Then run your app twice. The first time it will segfault, the second time it will send the report to Bugsnag.

How it works

When your program receives a Segfault, the segfault module logs the segfault to the directory you specify.

The next time your app starts, we read the segfault report out of that directory and send it to Bugsnag.

FAQs

Package last updated on 01 May 2015

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts