From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 27B9A385843B; Wed, 24 Jan 2024 17:18:59 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 27B9A385843B DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1706116739; bh=LD6SgYh/G7dCyV3o8SLcSTH8HTZyj1XlgI5Zyew7dgM=; h=From:To:Subject:Date:In-Reply-To:References:From; b=SWNbpKpGTzA7/ddJqDRzS+/bpobM9C+VKjvxqITgkakqCxRbAzwOoQq8OKI42DKMX xC7R3SpSibmRXGfR2WMh5UT/xU71/fDyxF5+10yjw0ScZ2gE7tux/l3LzVDlmXkYzH IEEERaBsc5uCubewJ2oCmQYNhGp2JbO6mO04E6o8= From: "simark at simark dot ca" 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 17:18:57 +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: simark at simark dot ca 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 #4 from Simon Marchi --- The problem appears to be with the computation of the node address, here: --- /* For element types that keep the node as member field. */ template T::*MemberNode> struct intrusive_member_node { static intrusive_list_node *as_node (T *elem) { return &(elem->*MemberNode); } }; --- I stopped at the first internal error. Going up a few frames, the thread_i= nfo object's address is: (gdb) p thread $1 =3D (thread_info *) 0x517000050180 The address of its `resumed_with_pending_wait_status_node` member is (btw printing this expression took like 10 seconds, it might be good to dig to s= ee if that's normal): (gdb) p &thread->resumed_with_pending_wait_status_node=20 $2 =3D (intrusive_list_node *) 0x5170000503d0 However, in the `intrusive_list::push_back` frame, `elem_node`= is: (gdb) p elem_node $3 =3D (intrusive_list_node *) 0x5170000503d8 We would expect `elem_node` to be equal to `$2` above. --=20 You are receiving this mail because: You are on the CC list for the bug.=