From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id AF4AD385802E; Thu, 4 Aug 2022 15:57:40 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org AF4AD385802E From: "mark at klomp dot org" To: elfutils-devel@sourceware.org Subject: [Bug libdw/29434] Memory leak in `dwarf_getscopes` Date: Thu, 04 Aug 2022 15:57:37 +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: mark at klomp dot org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: mark at klomp dot org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: 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: Thu, 04 Aug 2022 15:57:40 -0000 https://sourceware.org/bugzilla/show_bug.cgi?id=3D29434 --- Comment #5 from Mark Wielaard --- (In reply to Mark Wielaard from comment #3) > But if the result is zero I don't believe I fully understand yet how the > leak happens. So I believe this may happen if we found an inlined subroutine with pc_reco= rd, but then don't find the abstract origin DIE with origin_match. That does feels like it should be an error, but (currently) isn't. Maybe this happens if the reference to the abstract origin is in a partial = unit that isn't imported into the current CU. It would be really nice to have an example of the DIE tree when this happen= s. --=20 You are receiving this mail because: You are on the CC list for the bug.=