On Thu, 28 Mar 2019 at 04:59, Xi Ruoyao wrote: > Providing backtrace with file:line requires to parse debug info. > > glibc libSegFault.so just record a stack bracktrace w/o line numbers. The shell > wrapper catchsegv convert addresses into line numbers calling addr2line. > > If you don't want to call addr2line (or other tools) you'll need DWARF parser in > the executable. Why should we bloat the executable with a lot of code which > should be in (and has been in) a debugger? It's also a security risk to run complex parsers and other code in a process that has just crashed due to some bug. You don't know what state the program is in, or why it crashed, or if the stack trace is reliable.