diff options
author | Kingwel Xie <kingwel.xie@ericsson.com> | 2018-06-15 04:56:24 -0400 |
---|---|---|
committer | Damjan Marion <dmarion@me.com> | 2018-06-26 15:02:16 +0000 |
commit | 497deaf72f98dd104d9c9999a877ddd2f04c0aa6 (patch) | |
tree | fb86987cf2cebdc4e4cf34d310cebc97541dc708 /src/vppinfra/test_macros.c | |
parent | 6fb0d9b269057a40b6979c741f8c1187b653d12d (diff) |
add backtrace in unix_signal_handler
crash stack backtrace will be directed to syslog
1. make use of glic backtrace in execinfo.h. the old clib_backtrace is removed
2. install SIGABRT in signal handler, but have to remove it when backtrace is
done. reason is to capture stack trace caused by SIGABRT. vPP ASSERT always
call os_exit then abort(). we definitely want to know the trace of this
situation. It is a little tricky to avoid SIGABRT infinite loop
3. always load symbols by calling clib_elf_main_init () in main(). Otherwise,
PC addresses instead of symbols will be displayed.
Change-Id: I150e15b94a4620b2ea4f08c73dc3e6ad1856de1e
Signed-off-by: Kingwel Xie <kingwel.xie@ericsson.com>
Diffstat (limited to 'src/vppinfra/test_macros.c')
0 files changed, 0 insertions, 0 deletions