This is the mail archive of the
gdb-prs@sourceware.org
mailing list for the GDB project.
[Bug gdb/12702] gdb can hang waiting for thread group leader
- From: "dje at google dot com" <sourceware-bugzilla at sourceware dot org>
- To: gdb-prs at sourceware dot org
- Date: Mon, 2 May 2011 17:01:49 +0000
- Subject: [Bug gdb/12702] gdb can hang waiting for thread group leader
- Auto-submitted: auto-generated
- References: <bug-12702-4717@http.sourceware.org/bugzilla/>
http://sourceware.org/bugzilla/show_bug.cgi?id=12702
--- Comment #3 from dje at google dot com 2011-05-02 17:01:31 UTC ---
This is similar to, if not identical to 10970.
If one wants to close it as a dup, feel free to,
PROVIDED, one documents in 10970, e.g. with a link
to this one, that the bug can also happen when
the main program exits, not just pthread_exits.
It's seems highly unfortunate that a waitpid call in a ptracer has to hang in
this way.
[Heh, I wonder if setting up an alarm would work well enough, assuming the
alarm can unhang the waitpid call.]
I gather that no SIGCHLD will get generated, so gdbserver can suffer from this
too: it does a WNOHANG waitpid call followed by a sigsuspend, though maybe it
avoids the issue via some other means (quite likely accidentally though).
--
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.