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

Thomas Monjalon thomas at monjalon.net
Sun Feb 13 12:41:59 CET 2022


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 the messages is based on what X org server
> has been doing for many years. It changes from bottom up
> to top down order.
> 
> Signed-off-by: Stephen Hemminger <stephen at networkplumber.org>

Morten acked the RFC.
Is there any significant change?





More information about the dev mailing list