From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id DEEF53858D38; Fri, 12 Apr 2024 17:45:21 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org DEEF53858D38 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1712943921; bh=fKl9jjoYTAl5wx73nYby4oNGFB432XRgZxxj4viSsXk=; h=From:To:Subject:Date:In-Reply-To:References:From; b=vnT6/fDCTVhxygZ1JX66Z6C7sCIqq5j473+hhTzu4JXFKiEoo31C3iYrmCvv+Vf4B S8DSxV4n/4twmUHd5Pu4RXwTYHoYmVSMa1SOD4V01CwM4Bh4G3vferTsRdhqWUILQB FqO82sSw7Bee/99M48FtWwhMgHww8JSLUroz9iO8= From: "cvs-commit at gcc dot gnu.org" To: gdb-prs@sourceware.org Subject: [Bug gdb/31555] Cannot attach to program after its main thread has exited, on Linux Date: Fri, 12 Apr 2024 17:45:21 +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: unknown X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: cvs-commit 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=3D31555 --- Comment #1 from Sourceware Commits --- The master branch has been updated by Pedro Alves : https://sourceware.org/git/gitweb.cgi?p=3Dbinutils-gdb.git;h=3Dec4890317092= 6f3827144525b50ddd3c6ae3fbf0 commit ec48903170926f3827144525b50ddd3c6ae3fbf0 Author: Pedro Alves Date: Mon Mar 25 15:17:02 2024 +0000 New testcase gdb.threads/leader-exit-attach.exp (PR threads/8153) Add a new testcase for exercising attaching to a process after its main thread has exited. This is not possible on Linux, the kernel does not allow attaching to a zombie task, so the test is kfailed there. It is possible however on Windows at least, and was the scenario addressed by the Windows backend fix in https://sourceware.org/legacy-ml/gdb-patches/2003-12/msg00479.html, nowadays PR threads/8153, back in 2003. Passes cleanly on Cygwin. KFAILed on GNU/Linux native and gdbserver. Bug: https://sourceware.org/bugzilla/show_bug.cgi?id=3D8153 Bug: https://sourceware.org/bugzilla/show_bug.cgi?id=3D31554 Bug: https://sourceware.org/bugzilla/show_bug.cgi?id=3D31555 Change-Id: Ib554f92f68c965bb4603cdf2aadb55ca45ded53b --=20 You are receiving this mail because: You are on the CC list for the bug.=