Skip to contentSkip to conversation

rte_dump_stack() is not safe to call from signal handler

Bug 929 [email protected] 1 participant 2 messages Jan 27, 2022 – Jun 24, 2022

lore
Share & tools
lore
#0 lore raw

https://bugs.dpdk.org/show_bug.cgi?id=929

            Bug ID: 929
           Summary: rte_dump_stack() is not safe to call from signal
                    handler
           Product: DPDK
           Version: 21.11
          Hardware: All
                OS: All
            Status: UNCONFIRMED
          Severity: normal
          Priority: Normal
         Component: core
          Assignee: [email protected]
          Reporter: [email protected]

Target Milestone: ---

A common scenario is to have a signal handler call rte_dump_stack(). Unfortunately, existing version is not safe in signal handler because it assumes that malloc pool is not corrupted.

https://www.gnu.org/software/libc/manual/html_node/Backtraces.html

Better alternative is libunwind or libbacktrace

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.
#1 lore raw

https://bugs.dpdk.org/show_bug.cgi?id=929

David Marchand ([email protected]) changed:

What |Removed |Added
----------------------------------------------------------------------------

         Resolution|---                         |FIXED
             Status|UNCONFIRMED                 |RESOLVED
                 CC|                            |[email protected]

--- Comment #1 from David Marchand ([email protected]) --- Fixed in commit 0efcd352e257 ("eal/unix: make stack dump signal safe").

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.