hyperboria / bugs

Peer-to-peer IPv6 networking, secure and near-zero-conf.
154 stars 17 forks source link

Print backtrace on assertion failed #45

Closed viric closed 8 years ago

viric commented 9 years ago

As it seems common for assertions to kill cjdroute, it may be nice to print the backtrace to the log, so common reports would include a lot more detail of the crash conditions.

For glibc systems, this could be called at assertion failed time: http://www.gnu.org/software/libc/manual/html_node/Backtraces.html

ghost commented 8 years ago

Added in cjdelisle/cjdns#778