From owner-freebsd-current@FreeBSD.ORG Wed Oct 27 12:37:30 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 E598A16A4CE; Wed, 27 Oct 2004 12:37:29 +0000 (GMT) Received: from vbook.fbsd.ru (asplinux.ru [195.133.213.194]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7A17B43D5E; Wed, 27 Oct 2004 12:37:29 +0000 (GMT) (envelope-from vova@vbook.fbsd.ru) Received: from vova by vbook.fbsd.ru with local (Exim 4.42 (FreeBSD)) id 1CMn3P-000Gce-Uu; Wed, 27 Oct 2004 16:37:27 +0400 From: Vladimir Grebenschikov To: David Xu In-Reply-To: <1098880551.1062.20.camel@localhost> References: <1098870425.1062.14.camel@localhost> <417F9483.7040003@freebsd.org> <1098880551.1062.20.camel@localhost> Content-Type: text/plain; charset=KOI8-R Content-Transfer-Encoding: quoted-printable Organization: SWsoft Date: Wed, 27 Oct 2004 16:37:27 +0400 Message-Id: <1098880647.1062.22.camel@localhost> Mime-Version: 1.0 X-Mailer: Evolution 2.0.0FreeBSD GNOME Team Port Sender: Vladimir Grebenschikov cc: "current@freebsd.org" 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 12:37:30 -0000 =F7 =D3=D2, 27/10/2004 =D7 16:35 +0400, Vladimir Grebenschikov =D0=C9=DB=C5= =D4: > =F7 =D3=D2, 27/10/2004 =D7 20:28 +0800, David Xu =D0=C9=DB=C5=D4: > > Can you tell me which revision of sys/kern/kern_exit.c you are using ? >=20 > % cvs status sys/kern/kern_exit.c > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > File: kern_exit.c Status: Needs Patch >=20 > Working revision: 1.250 Thu Oct 21 09:04:25 2004 > Repository revision: 1.251 /ext/ncvs/src/sys/kern/kern_exit.c,v > Sticky Tag: (none) > Sticky Date: (none) > Sticky Options: (none) > % Looks like I should upgrade to 1.251: diff -u -r1.251 -r1.250 --- sys/kern/kern_exit.c 23 Oct 2004 11:20:26 -0000 1.251 +++ sys/kern/kern_exit.c 5 Oct 2004 18:51:11 -0000 1.250 @@ -403,7 +403,7 @@ * since their existence means someone is screwing up. */ if (q->p_flag & P_TRACED) { - q->p_flag &=3D ~(P_TRACED | P_STOPPED_TRACE); + q->p_flag &=3D ~P_TRACED; psignal(q, SIGKILL); } PROC_UNLOCK(q); >=20 > > Vladimir Grebenschikov wrote: > >=20 > > >Hi > > > > > >FreeBSD -CURRENT > > > > > >After gdb crash on httpd process, process still present, and listen > > >sockets but it is in T state and can't be killed. > > > > > ># 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 > > > > > >How to deal with such processes (except reboot ?) > > > > > > =20 > > > --=20 Vladimir B. Grebenschikov SWsoft Inc. vova@sw-soft.com