public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug corefiles/26289] New: Infinite loop in dwarf2_attr()
@ 2020-07-23  0:36 leandro at hardinfo dot org
  2020-07-23  0:41 ` [Bug corefiles/26289] " leandro at hardinfo dot org
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: leandro at hardinfo dot org @ 2020-07-23  0:36 UTC (permalink / raw)
  To: gdb-prs

https://sourceware.org/bugzilla/show_bug.cgi?id=26289

            Bug ID: 26289
           Summary: Infinite loop in dwarf2_attr()
           Product: gdb
           Version: HEAD
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: corefiles
          Assignee: unassigned at sourceware dot org
          Reporter: leandro at hardinfo dot org
  Target Milestone: ---

Created attachment 12719
  --> https://sourceware.org/bugzilla/attachment.cgi?id=12719&action=edit
Patch (version 1)

While debugging a program that dumped core (which I unfortunately can't share),
GDB gets into an infinite loop inside dwarf2_attr() because the ``die''
returned by follow_die_ref() is the same one that was passed in.

Attached is a patch that addresses this issue, but I'm not familiar with GDB or
DWARF enough to reason about it, so feedback would be appreciated.

-- 
You are receiving this mail because:
You are on the CC list for the bug.

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

end of thread, other threads:[~2023-03-29 14:14 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-07-23  0:36 [Bug corefiles/26289] New: Infinite loop in dwarf2_attr() leandro at hardinfo dot org
2020-07-23  0:41 ` [Bug corefiles/26289] " leandro at hardinfo dot org
2020-07-23  8:34 ` andrew.burgess at embecosm dot com
2020-07-23 14:03 ` tromey at sourceware dot org
2023-03-29 14:14 ` [Bug symtab/26289] " tromey 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).