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

From: Jason Harmening <gte990t_at_mail.gatech.edu>
Date: Fri, 5 Nov 2004 11:59:31 -0500
The following patch, sent to me from David Xu by way of Marc Ramirez, seems to 
fix the "unkillable process" problem:

Index: kern_thread.c
===================================================================
RCS file: /home/ncvs/src/sys/kern/kern_thread.c,v
retrieving revision 1.205
diff -u -r1.205 kern_thread.c
--- kern_thread.c    4 Nov 2004 22:13:16 -0000    1.205
+++ kern_thread.c    5 Nov 2004 04:23:24 -0000
_at__at_ -832,11 +832,10 _at__at_
                         continue;
                     /*
                      * maybe other inhibitted states too?
-                     * XXXKSE Is it totally safe to
-                     * suspend a non-interruptable thread?
                      */
-                    if (td2->td_inhibitors &
-                        (TDI_SLEEPING | TDI_SWAPPED))
+                    if ((td2->td_flags & TDF_SINTR) &&
+                        (td2->td_inhibitors &
+                        (TDI_SLEEPING | TDI_SWAPPED)))
                         thread_suspend_one(td2);
                     break;
                 }


On Tuesday 02 November 2004 09:00, you wrote:
> Jason Harmening wrote:
> > I just upgraded to 5.3-RC2, and I'm still running into the problem where
> > processes will hang in an unkillable state.  In particular, this happens
> > for me with OpenOffice under a heavy load.   'ps' reports the state as
> > 'TL' and 'top' reports the state as STOP.  Neither kill -CONT nor kill
> > -KILL will work.
>
> Same here. With OpenOffice and Java under high load.
Received on Fri Nov 05 2004 - 15:40:29 UTC

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