How do I get a stack trace from "Thread 1 terminated abnormally"? As the error may well be in XSUB C code, I'd like to trap the fault in gdb. My first attempt was to stub out all calls to sigaction() in my custom compiled perl to disable any signal handlers, however, I get the same behavior. The answer I would like is to configure perl or the threads object to exit the process on any failure. Btw: I've already tried to put logs everywhere I think of. It is as if there is a ghost between to lines in my perl script that is jumping out at me for Halloween.