Merge in SNORT/snort3 from ~PRATEPRA/snort3:crash_fix to master
Squashed commit of the following:
commit
35814367e25bb035806998c65d27ac8b3e3d1aaf
Author: PRATEEK MOHAN PRABHU -X (pratepra - XORIANT CORPORATION at Cisco) <pratepra@cisco.com>
Date: Wed Jun 28 12:44:25 2023 +0530
helpers: added additional log in print_backtrace for debugging purpose
char sym[256];
unw_word_t offset;
- if (unw_get_proc_name(&cursor, sym, sizeof(sym), &offset) == 0)
+ if ((ret = unw_get_proc_name(&cursor, sym, sizeof(sym), &offset)) == 0)
ssp.printf(" in %s+0x%x", sym, offset);
+ else
+ ssp.printf(" unw_get_proc_name failed: %s (%d)", unw_strerror(ret), ret);
Dl_info dlinfo;
if (dladdr((void *)(uintptr_t)(pip.start_ip + offset), &dlinfo)