This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
Re: SIGCHLD ignored
- From: Daniel Jacobowitz <drow at false dot org>
- To: Vladimir Prus <ghost at cs dot msu dot su>
- Cc: gdb at sources dot redhat dot com, Pedro Alves <pedro at codesourcery dot com>, Hamish Rodda <rodda at kde dot org>
- Date: Wed, 11 Jun 2008 13:36:26 -0400
- Subject: Re: SIGCHLD ignored
- References: <200806112121.06783.ghost@cs.msu.su>
On Wed, Jun 11, 2008 at 09:21:05PM +0400, Vladimir Prus wrote:
>
> A fellow KDevelop hacker has reported that when running kdevelop itself
> under CVS HEAD of gdb, kdevelop hangs. What happens if that kdevelop spawns
> subprocess, and then does not notice it has exited, because it never
> receives SIGCHLD. I attach a much reduced project that requires only Qt4,
> and probably an even more reduced project is possible.
>
> If I apply the attached patch to GDB, things work fine -- but I suspect
> this 'fix' will break something else.
>
> Pedro, I think this SIGCHLD magic is your doing -- do you have any ideas
> how to fix it?
linux_nat_create_inferior is already unblocking signals before
creating. Does normal_mask contain SIGCHLD?
The approach taken (search for "signal" in fork-child.c, first
comment) may not be compatible with async...
--
Daniel Jacobowitz
CodeSourcery