Re: [PATCH v4] rte_dump_stack: make in async signal safe

2022-06-23 Thread David Marchand
On Thu, Apr 14, 2022 at 10:19 PM Stephen Hemminger wrote: > > rte_dump_stack() needs to be usable in situations when a bug is > encountered and from signal handlers (such as SEGV). > > Glibc backtrace_symbols() calls malloc which makes it > dangerous in a signal handler that is handling errors tha

[PATCH v4] rte_dump_stack: make in async signal safe

2022-04-14 Thread Stephen Hemminger
rte_dump_stack() needs to be usable in situations when a bug is encountered and from signal handlers (such as SEGV). Glibc backtrace_symbols() calls malloc which makes it dangerous in a signal handler that is handling errors that maybe due to memory corruption. Additionally, rte_log() is unsafe be