public inbox for elfutils@sourceware.org
 help / color / mirror / Atom feed
* [Bug tools/30772] New: dwarflint checking for specification recursion
@ 2023-08-16 18:50 tromey at sourceware dot org
  2023-08-16 19:29 ` [Bug tools/30772] " mark at klomp dot org
  0 siblings, 1 reply; 2+ messages in thread
From: tromey at sourceware dot org @ 2023-08-16 18:50 UTC (permalink / raw)
  To: elfutils-devel

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

            Bug ID: 30772
           Summary: dwarflint checking for specification recursion
           Product: elfutils
           Version: unspecified
            Status: NEW
          Severity: normal
          Priority: P2
         Component: tools
          Assignee: unassigned at sourceware dot org
          Reporter: tromey at sourceware dot org
                CC: elfutils-devel at sourceware dot org
  Target Milestone: ---

This idea comes from this thread:

https://sourceware.org/pipermail/gdb-patches/2023-August/201655.html

The idea is that if a DIE refers to itself via a chain
of DW_AT_specification (or the other ways a DIE can refer
to another), then dwarflint ought to warn, as recursion like
this is never valid.

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

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

* [Bug tools/30772] dwarflint checking for specification recursion
  2023-08-16 18:50 [Bug tools/30772] New: dwarflint checking for specification recursion tromey at sourceware dot org
@ 2023-08-16 19:29 ` mark at klomp dot org
  0 siblings, 0 replies; 2+ messages in thread
From: mark at klomp dot org @ 2023-08-16 19:29 UTC (permalink / raw)
  To: elfutils-devel

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

Mark Wielaard <mark at klomp dot org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |mark at klomp dot org

--- Comment #1 from Mark Wielaard <mark at klomp dot org> ---
libdw dwarf_attr_integrate does prevent cycles by limiting the chain of
DW_AT_abstract_origin and DW_AT_specification to 16 (arbitrary number).

On a different level, DW_AT_import can also create cycles (or rather infinite
imports). __libdw_visit_scopes does contain some cycle detection.

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

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

end of thread, other threads:[~2023-08-16 19:29 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-08-16 18:50 [Bug tools/30772] New: dwarflint checking for specification recursion tromey at sourceware dot org
2023-08-16 19:29 ` [Bug tools/30772] " mark at klomp 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).