Handle SIGSEGV by writing a short message with a backtrace.