Hi Samuel,
> > +static void signal_handler(int signo)
> > +{
> > + switch (signo) {
> > + case SIGSEGV:
> > + case SIGBUS:
> > + case SIGILL:
> > + case SIGABRT:
> > + connman_info("Aborting (signal %d)", signo);
> > + __connman_log_backtrace();
> > + exit(1
Hi Samuel,
> Add a generic signal handler in order to dump ConnMan backtrace when
> crashing. The implementation is based on glibc backtrace() routines and
> thus can not resolve static function names. A little python wrapper over
> addr2line fixes that by generating a full backtrace from a comple
Samuel Ortiz writes:
> Add a generic signal handler in order to dump ConnMan backtrace when
> crashing.
This is really nice. Makes my life easier, thanks :)
The backtrace is dumped to the syslog, right? That way it's easy to
access.
--
Kalle Valo
__
Add a generic signal handler in order to dump ConnMan backtrace when
crashing. The implementation is based on glibc backtrace() routines and
thus can not resolve static function names. A little python wrapper over
addr2line fixes that by generating a full backtrace from a complete connman
log file