public inbox for gdb-prs@sourceware.org help / color / mirror / Atom feed
From: "vries at gcc dot gnu.org" <sourceware-bugzilla@sourceware.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 [thread overview] Message-ID: <bug-31209-4717-ItdyQYCJdI@http.sourceware.org/bugzilla/> (raw) In-Reply-To: <bug-31209-4717@http.sourceware.org/bugzilla/> https://sourceware.org/bugzilla/show_bug.cgi?id=31209 --- Comment #2 from Tom de Vries <vries at gcc dot gnu.org> --- 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 == 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 ... -- You are receiving this mail because: You are on the CC list for the bug.
next prev parent reply other threads:[~2024-01-03 14:30 UTC|newest] Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top 2024-01-03 14:16 [Bug gdb/31209] New: " vries at gcc dot gnu.org 2024-01-03 14:17 ` [Bug gdb/31209] " vries at gcc dot gnu.org 2024-01-03 14:30 ` vries at gcc dot gnu.org [this message] 2024-01-08 15:27 ` vries at gcc dot gnu.org 2024-01-10 10:27 ` cvs-commit at gcc dot gnu.org 2024-01-10 10:28 ` vries at gcc dot gnu.org
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=bug-31209-4717-ItdyQYCJdI@http.sourceware.org/bugzilla/ \ --to=sourceware-bugzilla@sourceware.org \ --cc=gdb-prs@sourceware.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).