From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id DC52F3858C52; Mon, 13 Nov 2023 12:55:51 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org DC52F3858C52 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1699880151; bh=qR2ZKj4Zy8WYqvnvonwqbT1stgZPxV/wEqtlzcvSjZU=; h=From:To:Subject:Date:In-Reply-To:References:From; b=kAQQf0ngeGGH//QptNFHAWw1LgPugKBFuZYA+/yTyGWGJuYrMdv08njzxji90JZtF lFFtzBi/RDLhsSobmH3xonKn10o2J5JBWlVftotKZOQVtiW3ExYD6VupKXnc0U3v8p o3262TJSUKUQeQSial+VmZhAAUxMYPzYhpgMVzhQ= From: "vries at gcc dot gnu.org" To: gdb-prs@sourceware.org Subject: [Bug gdb/31061] [gdb] intrusive_list.h:458: internal-error: erase_element: Assertion `elem_node->prev != INTRUSIVE_LIST_UNLINKED_VALUE' failed Date: Mon, 13 Nov 2023 12:55:51 +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: HEAD X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: vries at gcc dot gnu.org X-Bugzilla-Status: NEW 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=3D31061 --- Comment #1 from Tom de Vries --- Fixed by the usual: ... diff --git a/gdb/breakpoint.c b/gdb/breakpoint.c index fe09dbcbeee..0a58821fc00 100644 --- a/gdb/breakpoint.c +++ b/gdb/breakpoint.c @@ -12633,7 +12633,8 @@ delete_breakpoint (struct breakpoint *bpt) if (bpt->number) notify_breakpoint_deleted (bpt); - breakpoint_chain.erase (breakpoint_chain.iterator_to (*bpt)); + if (bpt->is_linked ()) + breakpoint_chain.erase (breakpoint_chain.iterator_to (*bpt)); /* Be sure no bpstat's are pointing at the breakpoint after it's been freed. */ ... --=20 You are receiving this mail because: You are on the CC list for the bug.=