public inbox for glibc-bugs@sourceware.org help / color / mirror / Atom feed
From: "daniel at mariadb dot org" <sourceware-bugzilla@sourceware.org> To: glibc-bugs@sourceware.org Subject: [Bug libc/31349] New: backtrace fails to look beyond null pointer when resolving stack (x86_64) Date: Wed, 07 Feb 2024 01:04:24 +0000 [thread overview] Message-ID: <bug-31349-131@http.sourceware.org/bugzilla/> (raw) https://sourceware.org/bugzilla/show_bug.cgi?id=31349 Bug ID: 31349 Summary: backtrace fails to look beyond null pointer when resolving stack (x86_64) Product: glibc Version: 2.38 Status: UNCONFIRMED Severity: normal Priority: P2 Component: libc Assignee: unassigned at sourceware dot org Reporter: daniel at mariadb dot org CC: drepper.fsp at gmail dot com Target Milestone: --- Created attachment 15352 --> https://sourceware.org/bugzilla/attachment.cgi?id=15352&action=edit bt.c Using backtrace in a signal hander, a null pointer dereference is a typical cause. Backtrace stops at the null pointer and fails to show information of the higher stack that caused it. $ gcc -g -o /tmp/bt /tmp/bt.c $ /tmp/bt Obtained 2 stack frames. /tmp/bt() [0x4011a2] /lib64/libc.so.6(+0x3e9a0) [0x7f98f2b759a0] Expected results closer to what gdb does: $ gdb /tmp/bt (gdb) bt #0 0x0000000000000000 in ?? () #1 0x0000000000401235 in dummy_function () at /tmp/bt.c:35 #2 0x0000000000401250 in main () at /tmp/bt.c:42 -- You are receiving this mail because: You are on the CC list for the bug.
next reply other threads:[~2024-02-07 1:04 UTC|newest] Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top 2024-02-07 1:04 daniel at mariadb dot org [this message] 2024-02-07 8:43 ` [Bug libc/31349] " fweimer at redhat dot com 2024-02-07 8:58 ` daniel at mariadb dot org 2024-02-07 10:06 ` schwab@linux-m68k.org 2024-02-07 10:18 ` schwab@linux-m68k.org 2024-02-07 10:46 ` fweimer at redhat dot com 2024-02-07 10:54 ` schwab@linux-m68k.org
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=bug-31349-131@http.sourceware.org/bugzilla/ \ --to=sourceware-bugzilla@sourceware.org \ --cc=glibc-bugs@sourceware.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
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 read-only IMAP folder(s) and NNTP newsgroup(s).