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/30531] [gdb] FAIL: gdb.threads/clone-thread_db.exp: continue to clone_fn (the program exited)
Date: Sun, 29 Oct 2023 09:26:49 +0000	[thread overview]
Message-ID: <bug-30531-4717-uTsfatHOPz@http.sourceware.org/bugzilla/> (raw)
In-Reply-To: <bug-30531-4717@http.sourceware.org/bugzilla/>

https://sourceware.org/bugzilla/show_bug.cgi?id=30531

--- Comment #1 from Tom de Vries <vries at gcc dot gnu.org> ---
Reproduced again (with SLE-11 x86_64 -m64 PIE this time).

I've got no idea what's causing this.

We could add a non-null wstatus argument to the waitpid call and assert more
than just res != -1:
...
  res = waitpid (clone_pid, NULL, __WCLONE);
  assert (res != -1);
...

Also res, if not -1, should be the pid of the clone, so we could check for
that.

Also -1 in combination with EINTR is a valid result, and should be handled
appropriately.

-- 
You are receiving this mail because:
You are on the CC list for the bug.

      reply	other threads:[~2023-10-29  9:26 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-06-08 21:13 [Bug gdb/30531] New: " vries at gcc dot gnu.org
2023-10-29  9:26 ` vries at gcc dot gnu.org [this message]

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-30531-4717-uTsfatHOPz@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: link
Be 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).