From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 75C3C3857357; Fri, 29 Jul 2022 18:53:13 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 75C3C3857357 From: "godlygeek at gmail dot com" To: elfutils-devel@sourceware.org Subject: [Bug libdw/29430] `dwarf_getscopes` fails after a8493c1 Date: Fri, 29 Jul 2022 18:53:13 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed 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: RESOLVED X-Bugzilla-Resolution: NOTABUG 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_status resolution Message-ID: In-Reply-To: References: 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: Fri, 29 Jul 2022 18:53:13 -0000 https://sourceware.org/bugzilla/show_bug.cgi?id=3D29430 Matt Wozniski changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution|--- |NOTABUG --- Comment #1 from Matt Wozniski --- Well - nevermind. Our problem turned out not to be an issue with `dwarf_getscopes` at all, but a bug in our unwinder that only occurred when `dwarf_getscopes` finds 0 scopes. Our buggy code was working with elfutils 0.179 because `dwarf_getscopes` would erroneously return extra scopes due to DIE trees being visited multiple times, and we'd ignore those scopes because `dwarf_tag(scope) !=3D DW_TAG_inlined_subroutine`, but our bug that trigger= s only when 0 scopes are found wouldn't occur. After `dwarf_getscopes` was fixed, it began returning 0 when it previously hadn't, and our code failed to properly handle that case in a way that had never been noticed. Sorry for the false alarm! --=20 You are receiving this mail because: You are on the CC list for the bug.=