public inbox for gdb-prs@sourceware.org help / color / mirror / Atom feed
From: "filip.bascarevic at siemens dot com" <sourceware-bugzilla@sourceware.org> To: gdb-prs@sourceware.org Subject: [Bug gdb/29865] New: The GDB dies during unwind the stack - question Date: Wed, 07 Dec 2022 15:24:27 +0000 [thread overview] Message-ID: <bug-29865-4717@http.sourceware.org/bugzilla/> (raw) https://sourceware.org/bugzilla/show_bug.cgi?id=29865 Bug ID: 29865 Summary: The GDB dies during unwind the stack - question Product: gdb Version: HEAD Status: UNCONFIRMED Severity: normal Priority: P2 Component: gdb Assignee: unassigned at sourceware dot org Reporter: filip.bascarevic at siemens dot com Target Milestone: --- Hello community, I was debugging something and my GDB application just died when I wanted to do "backtrace". After debugging the source code, I figure out the application died at the assert in the file gdb/dwarf2/loc.c:1147 (in the function dwarf_expr_reg_to_entry_parameter()). The reason why the assert is triggered is because I setup the backtrace limit to 30 and during unwinding the stack the frame type was "INLINE_FRAME" so the get_priv_frame() function returned NULL (see line gdb/frame.c:2527) and the assert is triggered. Is it really necessary to have this assert? Why we need to consider if the current frame is "INLINE_FRAME" on this place? Problematic code is: while (get_frame_type (frame) == INLINE_FRAME) { frame = get_prev_frame (frame); gdb_assert (frame != NULL); } Thanks a lot for the support, Filip Bascarevic -- You are receiving this mail because: You are on the CC list for the bug.
next reply other threads:[~2022-12-07 15:24 UTC|newest] Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top 2022-12-07 15:24 filip.bascarevic at siemens dot com [this message] 2022-12-07 23:02 ` [Bug gdb/29865] " tromey at sourceware dot org 2022-12-08 7:55 ` filip.bascarevic at siemens dot com 2022-12-21 18:42 ` tromey at sourceware dot org 2024-01-06 14:01 ` ssbssa at sourceware dot org 2024-01-06 20:16 ` ssbssa at sourceware dot org 2024-01-06 20:16 ` ssbssa at sourceware dot org 2024-01-29 14:34 ` cvs-commit at gcc dot gnu.org 2024-01-29 14:36 ` ssbssa at sourceware dot 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-29865-4717@http.sourceware.org/bugzilla/ \ --to=sourceware-bugzilla@sourceware.org \ --cc=gdb-prs@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).