RE: [RFC] eal_debug: do not use malloc in rte_dump_stack

2022-01-29 Thread Morten Brørup
> From: Stephen Hemminger [mailto:step...@networkplumber.org] > Sent: Saturday, 29 January 2022 02.11 > > 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. Yes. We have e

[RFC] eal_debug: do not use malloc in rte_dump_stack

2022-01-28 Thread 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 the messages is based on what X org server has been