From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 3E88E3871F92; Tue, 6 Dec 2022 19:01:54 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 3E88E3871F92 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1670353314; bh=qQoxCWwq4710Tns78S/5lF8j8vFY0NzKI4oI/Z6l/Uc=; h=From:To:Subject:Date:In-Reply-To:References:From; b=ZMpBb64wwqnN+gP5CekGJ5aREgEAxIAvMNSCmaDFcGrzwIOSFFrEWjmL+F6DfzRn6 W4VjcsBfBiMllwagWa3YKlczbvYLYd203/PffZ4wo5QeTQ/+vKGsyBTyTcRkw1/t7v qq5vX58CV80oqyk5lGaB/Um/6Vcth28nxjYptYwU= 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 19:01:53 +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 #8 from Tom Tromey --- It looks like the debuginfod code thinks that symfile_bfd_open won't throw but will instead return null: gdb_bfd_ref_ptr debug_bfd (symfile_bfd_open (symfile_path= .get ())); if (debug_bfd =3D=3D nullptr) warning (_("File \"%s\" from debuginfod cannot be opene= d as bfd"), filename); ... but that's wrong. I have a patch to catch the exception. --=20 You are receiving this mail because: You are on the CC list for the bug.=