From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 58AA93858C60; Thu, 25 Jan 2024 14:21:26 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 58AA93858C60 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1706192486; bh=DrO17B66KRXYFK8sAkkLLpUka9VdA7MHILsQICRk+xI=; h=From:To:Subject:Date:In-Reply-To:References:From; b=vh08QD+WJixB6g15Wn7l2XZZn0jb72851Sz+Vu+2Q0MBZ6oBfXTZBpmTu/2A4tZdj Xb2lIOca3MKuudy537e6JIVynQSD8sg9yhEWyo//jSrW9k+aNq/4H2Cz4LTXijJ5gj B1+3vP4Nhe1kCcR7664gn6wMAXCIQ4W8TWz12k/I= From: "vries at gcc dot gnu.org" To: gdb-prs@sourceware.org Subject: [Bug build/31281] [gdb] intrusive_list.h:329: internal-error: push_back: Assertion elem_node->prev == INTRUSIVE_LIST_UNLINKED_VALUE failed. Date: Thu, 25 Jan 2024 14:21:25 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gdb X-Bugzilla-Component: build 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 #15 from Tom de Vries --- (In reply to Tom de Vries from comment #11) > (In reply to Simon Marchi from comment #9) > > The D.191606 bit adds an offset of 8 (this becomes apparent at the expa= nd > > 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 > > ... >=20 > 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; >=20=20 > The intrusive_list_node base links threads in a per-inferior list. */ >=20=20 > -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. Posted this as workaround: https://sourceware.org/pipermail/gdb-patches/2024-January/206218.html --=20 You are receiving this mail because: You are on the CC list for the bug.=