From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id E2BE8383B6DD; Tue, 6 Dec 2022 18:42:08 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org E2BE8383B6DD DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1670352128; bh=SnRWSlBBEmQ2oMXc8fn6KdzsmeP4A7rDKLWguCHKyhw=; h=From:To:Subject:Date:In-Reply-To:References:From; b=V4Oqhg1BvICR7y2D3lP6qNKBhdzCOiAsPGO3SmgGt7JA0h4O6nNz6lC+ROLWQuhxq wlLcHBsbox4ehSbSoj6vX9Qerrp9HQ2wUSmbmSbQGC7oJoYeEJ/JnvaSnZymqnPbNn Gbgte8jGA2qx33r/eGITrz2bmL+wKIT2QVEUQrbQ= From: "tromey at sourceware dot org" To: gdb-prs@sourceware.org Subject: [Bug gdb/29257] Double free of demangled symbol name Date: Tue, 06 Dec 2022 18:42:07 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gdb X-Bugzilla-Component: gdb X-Bugzilla-Version: 10.1 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: tromey at sourceware dot org 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: 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 List-Id: https://sourceware.org/bugzilla/show_bug.cgi?id=3D29257 --- Comment #7 from Tom Tromey --- > - Mark minimal symbols as read (objfile->per_bfd->minsyms_read =3D true) = as soon as elf_read_minimal_symbols has completed. I'm not confident about = this. There could be some other state that must also have been completed be= fore we want to set this to true? I think the problem with this is that minsyms are implemented weirdly. There may be multiple sources of minsyms in a given objfile. Now, probably how this should be done is each reader should make its own object. However, what's actually done is that they all write to the same basic data structure, so it isn't marked as completed until the very end. --=20 You are receiving this mail because: You are on the CC list for the bug.=