From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 32E1438582A4; Thu, 28 Jul 2022 22:02:58 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 32E1438582A4 From: "godlygeek at gmail dot com" To: elfutils-devel@sourceware.org Subject: [Bug libdw/29430] New: `dwarf_getscopes` fails after a8493c1 Date: Thu, 28 Jul 2022 22:02:58 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: elfutils X-Bugzilla-Component: libdw X-Bugzilla-Version: unspecified X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: godlygeek at gmail dot com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at sourceware dot org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter cc target_milestone Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: elfutils-devel@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Elfutils-devel mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 28 Jul 2022 22:02:58 -0000 https://sourceware.org/bugzilla/show_bug.cgi?id=3D29430 Bug ID: 29430 Summary: `dwarf_getscopes` fails after a8493c1 Product: elfutils Version: unspecified Status: UNCONFIRMED Severity: normal Priority: P2 Component: libdw Assignee: unassigned at sourceware dot org Reporter: godlygeek at gmail dot com CC: elfutils-devel at sourceware dot org Target Milestone: --- Apologies, but I haven't yet succeeded in creating a self-contained reprodu= cer for this issue. When calling `dwarf_getscopes` on a (PGO and LTO) binary (a Python interpre= ter built with GCC 9.3.1 against glibc 2.12, which is a relatively old glibc version), I'm seeing failures with elfutils 0.187 that I didn't see with elfutils 0.179. We were able to bisect the problem down to commit a8493c1, = and we see that reverting that commit causes `dwarf_getscopes` to succeed even = with elfutils 0.187 That commit is: libdw: Skip imported compiler_units in libdw_visit_scopes walking DIE t= ree Some gcc -flto versions imported other top-level compile units, skip those. Otherwise we'll visit various DIE trees multiple times. Note in the testcase that with newer GCC versions function foo is fully inlined and does appear only once (as declared, but not as separate subprogram). Signed-off-by: Mark Wielaard Any idea why this might have broken PC resolution for us? --=20 You are receiving this mail because: You are on the CC list for the bug.=