From owner-freebsd-bugs@FreeBSD.ORG Thu Feb 2 09:10:10 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 97FE9106564A for ; Thu, 2 Feb 2012 09:10:10 +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 684518FC14 for ; Thu, 2 Feb 2012 09:10:10 +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 q129AAGQ082594 for ; Thu, 2 Feb 2012 09:10:10 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.5/8.14.5/Submit) id q129AA4h082593; Thu, 2 Feb 2012 09:10:10 GMT (envelope-from gnats) Date: Thu, 2 Feb 2012 09:10:10 GMT Message-Id: <201202020910.q129AA4h082593@freefall.freebsd.org> To: freebsd-bugs@FreeBSD.org From: =?windows-1251?B?yu7t/Oru4iDF4uPl7ejp?= Cc: Subject: Re: kern/164705: inability to terminate process in D state X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: =?windows-1251?B?yu7t/Oru4iDF4uPl7ejp?= List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 02 Feb 2012 09:10:10 -0000 The following reply was made to PR kern/164705; it has been noted by GNATS. From: =?windows-1251?B?yu7t/Oru4iDF4uPl7ejp?= To: "Eugene M. Zheganin" Cc: freebsd-gnats-submit@FreeBSD.org Subject: Re: kern/164705: inability to terminate process in D state Date: Thu, 2 Feb 2012 11:02:38 +0200 Здравствуйте, Eugene. Вы писали 2 февраля 2012 г., 10:17:46: >>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: EMZ> RealService LLC >>Environment: EMZ> FreeBSD bsdrookie.norma.com. 8.2-STABLE FreeBSD 8.2-STABLE #0: EMZ> Mon Jul 25 14:13:03 YEKST 2011 EMZ> emz@:/usr/obj/usr/src/sys/GENERIC amd64 >>Description: EMZ> There's only two holy grails in FreeBSD: one, nowadays patched EMZ> but sometimes still haunting FreeBSD, is the panic (livelock, EMZ> hangup, name it yourself) when the mounted media is physically EMZ> removed (a diskette, a flash-disk etc). EMZ> And the second - this is inability to terminate a process when EMZ> it hangs in D state. Of course, kill -9 didn't work (as always. EMZ> I'm guessing thi isn't a 'uncatchable uniterruptable signal' as EMZ> it's man page says, It looks more like 'no big deal, safe to EMZ> ignore signal, just for a process knows that something is up') EMZ> Last time I plugged the USB-mouse out of its port to hadle the EMZ> mess with the cord, and when I plugged it back - hald hanged in EMZ> the D state, so did all of the usbconfigs and so on. EMZ> I had to reboot the FreeBSD just to get my mouse back. Like EMZ> we're back in 1996 with an non-OSR Windows 95. EMZ> It's completely ridiculous. >>How-To-Repeat: EMZ> I'm pretty sure that if you're actually using FreeBSD, then at EMZ> least once in a lifetime you got the need to kill something, you EMZ> realise you cannot, and then when trying to understand what the EMZ> hell is going on you see the magical D letter in ps's output, which means you're doomed. >>Fix: EMZ> There's always an answer. Reboot loves you. not always, I have process going to 'T' state (STOP). and it is not killed even when I run 'reboot' only hard reboot helps ( as developers sayed: >A signal cannot forcibly kill a process that is stuck in the kernel. >Allowing this would put the integrity of the kernel data structures at >risk and likely cause hangs, data corruption or panics later on. see: bin/164526: kill(1) can not kill process despite on -KILL -- С уважением, Коньков mailto:kes-kes@yandex.ru