selfcrash
v1.1.1
Published
Deliberately crash Node process to simulate native module failure
Readme
node-selfcrash
Deliberately crash Node process to simulate native module failure
Usage
npm install --save selfcrashconst selfcrash = require('selfcrash');
selfcrash.null_pointer(); // Process should now be crashed
selfcrash.exhaust_memory(); // Will race to allocate as much memory as it can, likely crashing process
selfcrash.fork_bomb(); // Forks infinitely trying to exhaust system process resources (or, rather, if it gets stopped). Unavailable on
selfcrash.kill_sigsegv(); // kill(getpid(), SIGSEGV). Unavailable on Windows.