Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 5 Nov 2004 11:59:31 -0500
From:      Jason Harmening <gte990t@mail.gatech.edu>
To:        Alex Dupre <sysadmin@alexdupre.com>, Boris Kovalenko <boris@ntmk.ru>, Michael Nottebrock <michaelnottebrock@gmx.net>
Cc:        freebsd-threads@freebsd.org
Subject:   Re: [FreeBSD 5.3-RC2] Processes STILL hanging in unkillable state
Message-ID:  <200411051159.32077.gte990t@mail.gatech.edu>
In-Reply-To: <418792ED.8010700@alexdupre.com>
References:  <200411020143.34251.gte990t@mail.gatech.edu> <418792ED.8010700@alexdupre.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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
@@ -832,11 +832,10 @@
                         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.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200411051159.32077.gte990t>