Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

segfault-raub

Package Overview
Dependencies
Maintainers
1
Versions
16
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

segfault-raub

Catches SIGSEGV and prints diagnostic information

  • 1.1.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
144
decreased by-0.69%
Maintainers
1
Weekly downloads
 
Created
Source

Segfault handler for Node.js

This is a part of Node3D project.

NPM

Build Status CodeFactor

npm i segfault-raub

Synopsis

This module does nothing (zero perf impact) as long as Node is well-behaved. If a SIGSEGV signal is raised, the module will print a native stack trace to both STDERR and to the "segfault.log" file (if exists). If there is no such file, it won't be created, so it is up to you if the log-file is needed.

Note: this addon uses N-API, and therefore is ABI-compatible across different Node.js versions. Addon binaries are precompiled and there is no compilation step during the npm i command.

Usage

Just require the module and that's it. You may require it as many times you want, but the SIGSEGV hook will only be set once. There are no calls required, and no options.

require('segfault-raub');

There is one exported function though:

const { causeSegfault } = require('segfault-raub');
causeSegfault();

In doing so, you will cause a segfault (accessing 0x01 pointer), and see how it goes.

This is a fork of segfault-handler. The original licensing rules seem to apply, presumably (LICENSE is kept untouched).

This software is licensed for use under the BSD license.

Also this project uses callstack walker which is also BSD licensed.

Keywords

FAQs

Package last updated on 05 Jan 2020

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc