SIGSEGV handling -- log stack before aborting
Not all deployment scenarios are equipped to assist troubleshooting efforts and hence, core files are not always possible.
In some environments, a stack trace can be used to assist troubleshooting.
The general approach would be to
- Install a SIGSEGV handler
- Use libunwind to gather and log (to stderr minimally) the stacktrace.