Forking `addr2line` on shared object from application for constructing stack traces. How safe is this?
I am augmenting my applications which run on Linux to emit a backtrace when terminal signals (such as SIGSEGV, SIGABRT) are received by a process or thread. The code works very well using backtrace(3), backtrace_symbols(3), dladdr(3), abi::__cxa_demangle to produce useful information for the backtrace. In trying to produce source filenames and line numbers in addition…Details