Re: [PATCH v2 1/2] eal_debug: do not use malloc in rte_dump_stack

2022-03-17 Thread Stephen Hemminger
On Sun, 13 Feb 2022 12:41:59 +0100 Thomas Monjalon wrote: > 12/02/2022 19:44, Stephen Hemminger: > > The glibc backtrace_symbols() calls malloc which makes it > > dangerous to use rte_dump_stack() in a signal handler that > > is handling errors that maybe due to memory corruption. > > > > Instea

Re: [PATCH v2 1/2] eal_debug: do not use malloc in rte_dump_stack

2022-02-13 Thread Thomas Monjalon
12/02/2022 19:44, Stephen Hemminger: > The glibc backtrace_symbols() calls malloc which makes it > dangerous to use rte_dump_stack() in a signal handler that > is handling errors that maybe due to memory corruption. > > Instead, use dladdr() to lookup up symbols incrementally. > > The format of t