From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 3FFB73858C62; Wed, 3 Jan 2024 14:30:34 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 3FFB73858C62 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1704292234; bh=4PlgsfAUNuTSpZHyJHmPA4ClIoa0Fw9IDK+UOOFuweY=; h=From:To:Subject:Date:In-Reply-To:References:From; b=hN8XrC5USNmt7DMXdZL0Bi9Z8bR2wwgUztVoEVCuA1r9mBqPd4/jzSh8AyTvfEjzL q0KNqa8HZ+hqu3Jat1Mt4W4x1dXe9m/wNdrdWVoq9+j85/keFx8cL+/8AZ46E3DPAi lY+PQDk4RT1249wtma48dSVG4iuL08gv13SeEP+Q= From: "vries at gcc dot gnu.org" To: gdb-prs@sourceware.org Subject: [Bug gdb/31209] [gdb, delete checkpoint] inferior.c:406: internal-error: find_inferior_pid: Assertion `pid != 0' failed. Date: Wed, 03 Jan 2024 14:30:33 +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: 15.1 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=3D31209 --- Comment #2 from Tom de Vries --- Fixed by: ... diff --git a/gdb/linux-fork.c b/gdb/linux-fork.c index 1430ff89fa7..8156b51897b 100644 --- a/gdb/linux-fork.c +++ b/gdb/linux-fork.c @@ -537,6 +537,9 @@ Please switch to another checkpoint before deleting the current one")); delete_fork (ptid); + if (pptid =3D=3D null_ptid) + return; + /* If fi->parent_ptid is not a part of lwp but it's a part of checkpoint list, waitpid the ptid. If fi->parent_ptid is a part of lwp and it is stopped, waitpid the ... --=20 You are receiving this mail because: You are on the CC list for the bug.=