gnu/77818: GDB locks in wait4() when running applications

David Xu davidxu at freebsd.org
Thu May 26 04:00:13 GMT 2005


The following reply was made to PR gnu/77818; it has been noted by GNATS.

From: David Xu <davidxu at freebsd.org>
To: =?UTF-8?B?IlNlw6FuIEMuIEZhcmxleSI=?= <sean-freebsd at farley.org>
Cc: bug-followup at freebsd.org
Subject: RE: gnu/77818: GDB locks in wait4() when running applications
Date: Thu, 26 May 2005 11:54:29 +0800

 -----Original Message-----
 From: Se¨¢n C. Farley [mailto:sean-freebsd at farley.org]
 Sent: 2005年5月25日 23:41
 To: David Xu
 Cc: bug-followup at freebsd.org
 Subject: Re: gnu/77818: GDB locks in wait4() when running applications
 
  >> The other problem is that nanosleep() is exiting immediately with a
  >> return of zero although the time to sleep has not passed.  To see it
  >> do this, remove the BROKEN_NANOSLEEP_WITHIN_GDB definition at the top
  >> of the program and recompile.
  >>
  >
  > This is a long history bug, I believe it is still in RELENG_4. Now the
  > bug is in kern_sig.c: do_tdsignal(), when process is being debugged, a
  > masked signal can wake up a sleeping thread! that's why it is broken.
 
 Is it fixable?  Should I open a PR for it, or is there one already?
 
 Seán
 -- 
 sean-freebsd at farley.org
 -------------------------------
 
 It is fixable,  I am working on it. please keep this PR.
 
 David Xu
 


More information about the freebsd-bugs mailing list