From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 857CD3858C53; Wed, 24 Jan 2024 22:39:14 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 857CD3858C53 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1706135954; bh=R49GgWExg/jWfhLidKQncqmGazra+f0dtK3hDvRlj5U=; h=From:To:Subject:Date:In-Reply-To:References:From; b=lozqAHRib/Fq5IDcF3V0+KHrZ6okoda2av8GVZBszG4fZhQoak25hJbsWzHMiaiwn dMTCVdxWRlR5y43FqMwTh3NgupyKPMMbA3GK21RSMPDTgvGUyHDXvA3LaMhCLPiMIK Ms7zv0WnFwTAggF7z5x0e66h2d0I2pD0D/ZNpkOs= From: "vries at gcc dot gnu.org" To: gdb-prs@sourceware.org Subject: [Bug gdb/31281] [gdb] intrusive_list.h:329: internal-error: push_back: Assertion elem_node->prev == INTRUSIVE_LIST_UNLINKED_VALUE failed. Date: Wed, 24 Jan 2024 22:39:13 +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=3D31281 --- Comment #11 from Tom de Vries --- (In reply to Simon Marchi from comment #9) > The D.191606 bit adds an offset of 8 (this becomes apparent at the expand > rtl dump file). That also happens to be the offset of the inherited > intrusive list node, see: > ... > class thread_info : public refcounted_object, > public intrusive_list_node > ... > and: > ... > (gdb) p (void *) &thread.next - (void *) thread > $13 =3D 8 > ... And following that logic, by flipping the order here: ... diff --git a/gdb/gdbthread.h b/gdb/gdbthread.h index e7035d40ad4..3167bf31945 100644 --- a/gdb/gdbthread.h +++ b/gdb/gdbthread.h @@ -246,8 +246,8 @@ using private_thread_info_up =3D std::unique_ptr; The intrusive_list_node base links threads in a per-inferior list. */ -class thread_info : public refcounted_object, - public intrusive_list_node +class thread_info : public intrusive_list_node, + public refcounted_object { public: explicit thread_info (inferior *inf, ptid_t ptid); ... we change the offset from 8 to 0, and ... the test-case passes. --=20 You are receiving this mail because: You are on the CC list for the bug.=