This is the mail archive of the gdb-prs@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug gdb/12702] gdb can hang waiting for thread group leader


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]