From owner-freebsd-current@FreeBSD.ORG Fri Nov 5 16:40:29 2004 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id BB7ED16A4D1; Fri, 5 Nov 2004 16:40:29 +0000 (GMT) Received: from hellmouth7.gatech.edu (hellmouth7.gatech.edu [130.207.165.169]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1B1C643D2D; Fri, 5 Nov 2004 16:40:18 +0000 (GMT) (envelope-from gte990t@mail.gatech.edu) Received: from hellmouth7.gatech.edu (localhost [127.0.0.1]) by hellmouth7.gatech.edu (Postfix) with SMTP id A4C50226F; Fri, 5 Nov 2004 11:40:17 -0500 (EST) (envelope-from gte990t@mail.gatech.edu) Received: from mailprx2.gatech.edu (mailprx2.prism.gatech.edu [130.207.171.21]) by hellmouth7.gatech.edu (Postfix) with ESMTP id 8EDD02123; Fri, 5 Nov 2004 11:40:17 -0500 (EST) (envelope-from gte990t@mail.gatech.edu) Received: from [192.168.0.3] (r58h96.res.gatech.edu [128.61.58.96]) (using TLSv1 with cipher RC4-MD5 (128/128 bits)) (No client certificate requested) (sasl: method=PLAIN, username=gte990t, sender=n/a) by mailprx2.gatech.edu (Postfix) with ESMTP id 448B23A612; Fri, 5 Nov 2004 11:40:15 -0500 (EST) (envelope-from gte990t@mail.gatech.edu) From: Jason Harmening To: Alex Dupre , Boris Kovalenko , Michael Nottebrock Date: Fri, 5 Nov 2004 11:59:31 -0500 User-Agent: KMail/1.7 References: <200411020143.34251.gte990t@mail.gatech.edu> <418792ED.8010700@alexdupre.com> In-Reply-To: <418792ED.8010700@alexdupre.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200411051159.32077.gte990t@mail.gatech.edu> X-Mailman-Approved-At: Sat, 06 Nov 2004 13:14:54 +0000 cc: freebsd-current@freebsd.org cc: freebsd-threads@freebsd.org Subject: Re: [FreeBSD 5.3-RC2] Processes STILL hanging in unkillable state X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 05 Nov 2004 16:40:30 -0000 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.