From owner-freebsd-current@FreeBSD.ORG Wed Oct 27 10:00:21 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 49FEE16A4CE for ; Wed, 27 Oct 2004 10:00:21 +0000 (GMT) Received: from vbook.fbsd.ru (asplinux.ru [195.133.213.194]) by mx1.FreeBSD.org (Postfix) with ESMTP id ECDC443D31 for ; Wed, 27 Oct 2004 10:00:20 +0000 (GMT) (envelope-from vova@vbook.fbsd.ru) Received: from vova by vbook.fbsd.ru with local (Exim 4.42 (FreeBSD)) id 1CMkbL-000Ent-Oc for current@freebsd.org; Wed, 27 Oct 2004 14:00:19 +0400 From: Vladimir Grebenschikov To: "current@freebsd.org" In-Reply-To: <1098870425.1062.14.camel@localhost> References: <1098870425.1062.14.camel@localhost> Content-Type: text/plain; charset=KOI8-R Content-Transfer-Encoding: quoted-printable Organization: SWsoft Date: Wed, 27 Oct 2004 14:00:19 +0400 Message-Id: <1098871219.1062.19.camel@localhost> Mime-Version: 1.0 X-Mailer: Evolution 2.0.0FreeBSD GNOME Team Port Sender: Vladimir Grebenschikov Subject: Re: Unkillable process 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: Wed, 27 Oct 2004 10:00:21 -0000 =F7 =D3=D2, 27/10/2004 =D7 13:47 +0400, Vladimir Grebenschikov =D0=C9=DB=C5= =D4: > Hi >=20 > FreeBSD -CURRENT >=20 > After gdb crash on httpd process, process still present, and listen > sockets but it is in T state and can't be killed. >=20 > # ps alxx | fgrep htt > 0 56647 1 0 76 0 5044 2720 - T p9- > 0:00.14 /usr/local/sbin/httpd -X > # kill -CONT 56647 > # ps alxx | fgrep htt > 0 56647 1 0 76 0 5044 2720 - T p9- > 0:00.14 /usr/local/sbin/httpd -X > # kill -9 56647 > # ps alxx | fgrep htt > 0 56647 1 0 76 0 5044 2720 - T p9- > 0:00.14 /usr/local/sbin/httpd -X > # procctl 56647 > # kill -9 56647 > # ps alxx | fgrep htt > 0 56647 1 0 76 0 5044 2720 - T p9- > 0:00.14 /usr/local/sbin/httpd -X > # mount /proc > # cat /proc/56647/status=20 > httpd 56647 1 56647 0 5,9 noflags 1098869811,34135 0,119132 0,21623 > nochan 0 0 0,0,0,2,3,4,5,20 - > #=20 >=20 > How to deal with such processes (except reboot ?) ok, I can to stop debugging with gdb, but is it "right" way ? And if I have no gdb ? # gdb httpd 56647 GNU gdb 6.1.1 [FreeBSD] Copyright 2004 Free Software Foundation, Inc. GDB is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain conditions. Type "show copying" to see the conditions. There is absolutely no warranty for GDB. Type "show warranty" for details. This GDB was configured as "i386-marcel-freebsd"... Attaching to program: /usr/local/sbin/httpd, process 56647 Reading symbols from /lib/libz.so.2...done. Loaded symbols for /lib/libz.so.2 ... 0x2809e7b4 in r_debug_state () from /libexec/ld-elf.so.1 (gdb) q The program is running. Quit anyway (and detach it)? (y or n) y Detaching from program: /usr/local/sbin/httpd, process 56647 # ps alxx | fgrep htt #=20 --=20 Vladimir B. Grebenschikov SWsoft Inc. vova@sw-soft.com