From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 73712386101F; Thu, 11 Apr 2024 12:00:30 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 73712386101F DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1712836830; bh=HDPfW+ephX7WKJp2QQ4DO1opTHnsjDkpOA2IFyivhgk=; h=From:To:Subject:Date:In-Reply-To:References:From; b=h6mUMPAceeFPhZdQuSqwYWIkxsmYgqSL1ojI1Lo0It31YmzFLYDA43Jt4YXAiumJl xkZazHnv1Xt8LSwYp7lxAB2WLq4wEoKB8Xi/FlaqV4y5pjQ1uh4t9I3JV3snyFAbpf 3Fu70AaoE0ia4H69L4VmdDaUS8vpc+l7f80f2E0c= From: "pedro at palves dot net" To: gdb-prs@sourceware.org Subject: [Bug threads/31579] Cannot find user-level thread for LWP Date: Thu, 11 Apr 2024 12:00:29 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gdb X-Bugzilla-Component: threads X-Bugzilla-Version: 14.1 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: pedro at palves dot net X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: pedro at palves dot net 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=3D31579 --- Comment #3 from Pedro Alves --- BTW, for completeness, you don't need fork to trigger this. All you need i= s to set a breakpoint that is hit by any thread other than the leader. E.g., us= ing the same test program: (gdb) b thread Breakpoint 1 at 0x11b9: file forking.c, line 6. (gdb) r Starting program: /tmp/forking [Thread debugging using libthread_db enabled] Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1". [New Thread 0x7ffff7bff640 (LWP 3266257)] Cannot find user-level thread for LWP 3266257: generic error --=20 You are receiving this mail because: You are on the CC list for the bug.=