From owner-freebsd-current@FreeBSD.ORG Thu Oct 28 08:19:55 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 C08B816A4CE; Thu, 28 Oct 2004 08:19:55 +0000 (GMT) Received: from vbook.fbsd.ru (asplinux.ru [195.133.213.194]) by mx1.FreeBSD.org (Postfix) with ESMTP id 232C743D41; Thu, 28 Oct 2004 08:19:55 +0000 (GMT) (envelope-from vova@vbook.fbsd.ru) Received: from vova by vbook.fbsd.ru with local (Exim 4.42 (FreeBSD)) id 1CMuV3-0000Ll-9Y; Thu, 28 Oct 2004 00:34:29 +0400 From: Vladimir Grebenschikov To: Ken Smith In-Reply-To: <20041027193133.GA27473@electra.cse.Buffalo.EDU> References: <1098870425.1062.14.camel@localhost> <417F9483.7040003@freebsd.org> <1098880551.1062.20.camel@localhost> <1098880647.1062.22.camel@localhost> <20041027193133.GA27473@electra.cse.Buffalo.EDU> Content-Type: text/plain; charset=KOI8-R Content-Transfer-Encoding: quoted-printable Organization: SWsoft Date: Thu, 28 Oct 2004 00:34:28 +0400 Message-Id: <1098909268.1132.3.camel@localhost> Mime-Version: 1.0 X-Mailer: Evolution 2.0.0FreeBSD GNOME Team Port Sender: Vladimir Grebenschikov cc: David Xu 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: Thu, 28 Oct 2004 08:19:55 -0000 =F7 =D3=D2, 27/10/2004 =D7 15:31 -0400, Ken Smith =D0=C9=DB=C5=D4: > On Wed, Oct 27, 2004 at 04:37:27PM +0400, Vladimir Grebenschikov wrote: >=20 > > Looks like I should upgrade to 1.251: > >=20 > > 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); > > } >=20 > Yes, but before you do... :-) >=20 > If it's not too late can you do: >=20 > ps -o f -l >=20 > Or if anyone "succeeds" at wedging processes (especially if you > already have the above patch applied) can you try this? Sorry, it is too late, also I had no patch applied. I guess my case can be reproduced by killing -KILL gdb attached to stopped process. With updated kernel process being debugged disapper with gdb. > I have a trivial procedure that produces unkillable processes > before the above patch, and this patch fixes that case. I've got > one person reporting that he can still get wedged processes even > with the above patch though so I'm looking for a bit more information. >=20 > Thanks... >=20 --=20 Vladimir B. Grebenschikov SWsoft Inc. vova@sw-soft.com