Can one use libSegFault.so to get backtraces for SIGABRT?

env SEGFAULT_SIGNALS=”abrt segv” LD_PRELOAD=/lib/libSegFault.so someapp Note that the actual path to the preload library may differ. On my machine, I’d use env SEGFAULT_SIGNALS=”abrt segv” LD_PRELOAD=/lib/x86_64-linux-gnu/libSegFault.so some-64bit-app or env SEGFAULT_SIGNALS=”abrt segv” LD_PRELOAD=/lib/i386-linux-gnu/libSegFault.so some-32bit-app depending whether the application I was running was compiled 64-bit or 32-bit. (You can use file to check.) The source tells us there … Read more

How to print stack trace with reference to typescript source in Nest.js

For visibility purposes: adding the source-map-support NPM package allows for tracing typescript files in the stack trace. It can be added on the command line with node -r source-map-support/register fileToRun.js or programatically with import * as sourceMapSupport from ‘source-map-support’; sourceMapSupport.install(); OR import { install } from ‘source-map-support’; install(); OR with ES6 modules import ‘source-map-support/register’;