[FreeBSD 5.3-RC2] Processes STILL hanging in unkillable state
Jason Harmening
gte990t at mail.gatech.edu
Fri Nov 5 08:40:30 PST 2004
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.
More information about the freebsd-threads
mailing list