Add SIGSEGV handler with stacktrace