From owner-freebsd-bugs@FreeBSD.ORG Thu Feb 2 08:20:12 2012 Return-Path: Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 9C7411065674 for ; Thu, 2 Feb 2012 08:20:12 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 59D128FC1B for ; Thu, 2 Feb 2012 08:20:12 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.5/8.14.5) with ESMTP id q128KCUF036043 for ; Thu, 2 Feb 2012 08:20:12 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.5/8.14.5/Submit) id q128KC9e036042; Thu, 2 Feb 2012 08:20:12 GMT (envelope-from gnats) Resent-Date: Thu, 2 Feb 2012 08:20:12 GMT Resent-Message-Id: <201202020820.q128KC9e036042@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, "Eugene M. Zheganin" Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 0CEFA106566C for ; Thu, 2 Feb 2012 08:17:47 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from red.freebsd.org (red.freebsd.org [IPv6:2001:4f8:fff6::22]) by mx1.freebsd.org (Postfix) with ESMTP id EC1108FC21 for ; Thu, 2 Feb 2012 08:17:46 +0000 (UTC) Received: from red.freebsd.org (localhost [127.0.0.1]) by red.freebsd.org (8.14.4/8.14.4) with ESMTP id q128Hkie041479 for ; Thu, 2 Feb 2012 08:17:46 GMT (envelope-from nobody@red.freebsd.org) Received: (from nobody@localhost) by red.freebsd.org (8.14.4/8.14.4/Submit) id q128Hks0041478; Thu, 2 Feb 2012 08:17:46 GMT (envelope-from nobody) Message-Id: <201202020817.q128Hks0041478@red.freebsd.org> Date: Thu, 2 Feb 2012 08:17:46 GMT From: "Eugene M. Zheganin" To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Cc: Subject: kern/164705: inability to terminate process in D state X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 02 Feb 2012 08:20:12 -0000 >Number: 164705 >Category: kern >Synopsis: inability to terminate process in D state >Confidential: no >Severity: critical >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Thu Feb 02 08:20:11 UTC 2012 >Closed-Date: >Last-Modified: >Originator: Eugene M. Zheganin >Release: 8.2-STABLE >Organization: RealService LLC >Environment: FreeBSD bsdrookie.norma.com. 8.2-STABLE FreeBSD 8.2-STABLE #0: Mon Jul 25 14:13:03 YEKST 2011 emz@:/usr/obj/usr/src/sys/GENERIC amd64 >Description: There's only two holy grails in FreeBSD: one, nowadays patched but sometimes still haunting FreeBSD, is the panic (livelock, hangup, name it yourself) when the mounted media is physically removed (a diskette, a flash-disk etc). And the second - this is inability to terminate a process when it hangs in D state. Of course, kill -9 didn't work (as always. I'm guessing thi isn't a 'uncatchable uniterruptable signal' as it's man page says, It looks more like 'no big deal, safe to ignore signal, just for a process knows that something is up') Last time I plugged the USB-mouse out of its port to hadle the mess with the cord, and when I plugged it back - hald hanged in the D state, so did all of the usbconfigs and so on. I had to reboot the FreeBSD just to get my mouse back. Like we're back in 1996 with an non-OSR Windows 95. It's completely ridiculous. >How-To-Repeat: I'm pretty sure that if you're actually using FreeBSD, then at least once in a lifetime you got the need to kill something, you realise you cannot, and then when trying to understand what the hell is going on you see the magical D letter in ps's output, which means you're doomed. >Fix: There's always an answer. Reboot loves you. >Release-Note: >Audit-Trail: >Unformatted: