Hi everyone, I was developing an MLIR-based project and I’ve written some assertions. How can I print the whole stack when they are violated or a segmentation fault is triggered?
Running InitLLVM
should set it up the appropriate signal handlers for you. Also look into llvm::sys::PrintStackTraceOnErrorSignal
.
1 Like