public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug gdb/29865] New: The GDB dies during unwind the stack - question
@ 2022-12-07 15:24 filip.bascarevic at siemens dot com
  2022-12-07 23:02 ` [Bug gdb/29865] " tromey at sourceware dot org
                   ` (7 more replies)
  0 siblings, 8 replies; 9+ messages in thread
From: filip.bascarevic at siemens dot com @ 2022-12-07 15:24 UTC (permalink / raw)
  To: gdb-prs

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.

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

end of thread, other threads:[~2024-01-29 14:36 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-12-07 15:24 [Bug gdb/29865] New: The GDB dies during unwind the stack - question filip.bascarevic at siemens dot com
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

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).