DPDK patches and discussions
 help / color / mirror / Atom feed
* [Bug 929] rte_dump_stack() is not safe to call from signal handler
@ 2022-01-27 20:47 bugzilla
  2022-06-24  8:26 ` bugzilla
  0 siblings, 1 reply; 2+ messages in thread
From: bugzilla @ 2022-01-27 20:47 UTC (permalink / raw)
  To: dev

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: dev@dpdk.org
          Reporter: stephen@networkplumber.org
  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

-- 
You are receiving this mail because:
You are the assignee for the bug.

^ permalink raw reply	[flat|nested] 2+ messages in thread

* [Bug 929] rte_dump_stack() is not safe to call from signal handler
  2022-01-27 20:47 [Bug 929] rte_dump_stack() is not safe to call from signal handler bugzilla
@ 2022-06-24  8:26 ` bugzilla
  0 siblings, 0 replies; 2+ messages in thread
From: bugzilla @ 2022-06-24  8:26 UTC (permalink / raw)
  To: dev

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

David Marchand (david.marchand@redhat.com) changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|---                         |FIXED
             Status|UNCONFIRMED                 |RESOLVED
                 CC|                            |david.marchand@redhat.com

--- Comment #1 from David Marchand (david.marchand@redhat.com) ---
Fixed in commit 0efcd352e257 ("eal/unix: make stack dump signal safe").

-- 
You are receiving this mail because:
You are the assignee for the bug.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2022-06-24  8:26 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-01-27 20:47 [Bug 929] rte_dump_stack() is not safe to call from signal handler bugzilla
2022-06-24  8:26 ` bugzilla

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).