Re: [FreeBSD 5.3-RC2] Processes STILL hanging in unkillable state

From: Marc Ramirez <marc.ramirez_at_bluecirclesoft.com>
Date: Thu, 4 Nov 2004 18:10:46 -0500
On Thursday 04 November 2004 05:16 pm, David Xu wrote:
>
> I have committed a fix, can you try ?
>
> >davidxu     2004-11-04 22:13:16 UTC
> >
> >  FreeBSD src repository
> >
> >  Modified files:
> >    sys/kern             kern_thread.c
> >  Log:
> >  Don't forget to turn off P_SINGLE_BOUNDARY for
> > thread_single(SINGLE_EXIT), otherwise a threaded process which calls
> > execv() will hang in kernel and may can not be killed!
> >
> >  Revision  Changes    Path
> >  1.205     +1 -1      src/sys/kern/kern_thread.c

I'm running RC2, so I back-ported your fix. 

The problem still exists.

Here's my diff, you can check to make sure I didn't fat-finger anything:

$ diff /usr/src/sys/kern/kern_thread.c~ /usr/src/sys/kern/kern_thread.c
883c883
<               p->p_flag &= ~(P_STOPPED_SINGLE | P_SINGLE_EXIT);
---
>               p->p_flag &= ~(P_STOPPED_SINGLE | P_SINGLE_EXIT | P_SINGLE_BOUNDARY);

Thanks!

Marc.

-- 
Marc Ramirez
Blue Circle Software Corporation
513-688-1070 (main)
513-382-1270 (direct)
http://www.bluecirclesoft.com
http://www.mrami.com (personal)

Received on Thu Nov 04 2004 - 22:11:02 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:38:21 UTC