From gvs@road.yandex.ru  Wed Sep  1 06:29:15 2004
Return-Path: <gvs@road.yandex.ru>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id AD55816A4CE
	for <FreeBSD-gnats-submit@freebsd.org>; Wed,  1 Sep 2004 06:29:15 +0000 (GMT)
Received: from road.yandex.ru (road.yandex.ru [213.180.193.165])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 05EEF43D48
	for <FreeBSD-gnats-submit@freebsd.org>; Wed,  1 Sep 2004 06:29:14 +0000 (GMT)
	(envelope-from gvs@road.yandex.ru)
Received: from road.yandex.ru (localhost.yandex.net [127.0.0.1] (may be forged))
	by road.yandex.ru (8.13.1/8.13.1) with ESMTP id i816TP6M000407
	for <FreeBSD-gnats-submit@freebsd.org>; Wed, 1 Sep 2004 10:29:26 +0400 (MSD)
	(envelope-from gvs@road.yandex.ru)
Received: (from root@localhost)
	by road.yandex.ru (8.13.1/8.13.1/Submit) id i7VBUSMZ026486;
	Tue, 31 Aug 2004 15:30:28 +0400 (MSD)
	(envelope-from gvs)
Message-Id: <200408311130.i7VBUSMZ026486@road.yandex.ru>
Date: Tue, 31 Aug 2004 15:30:28 +0400 (MSD)
From: Seva Gluschenko <gvs@rinet.ru>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: processes list is broken
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         71226
>Category:       kern
>Synopsis:       processes list is broken
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed Sep 01 06:30:20 GMT 2004
>Closed-Date:    Fri Oct 01 16:41:00 GMT 2004
>Last-Modified:  Fri Oct 01 16:41:00 GMT 2004
>Originator:     Seva Gluschenko
>Release:        FreeBSD 5.3-BETA1 i386
>Organization:
Yandex LLC
>Environment:
System: FreeBSD road.yandex.ru 5.3-BETA1 FreeBSD 5.3-BETA1 #10: Fri Aug 27 11:18:42 MSD 2004 gvs@road.yandex.ru:/local/obj/local/usr/src/sys/ROAD i386


	
>Description:
	While examining process list on my box I've found some hung processes:

> ps ax | grep kblan
 1028  ??  RN     0:00,13 /usr/local/bin/kblankscrn.kss -root
 9395  ??  RN     0:00,10 /usr/local/bin/kblankscrn.kss -root
22415  ??  RN     0:00,01 /usr/local/bin/kblankscrn.kss -root
22723  ??  RN     0:00,11 /usr/local/bin/kblankscrn.kss -root
22930  ??  RN     0:00,01 /usr/local/bin/kblankscrn.kss -root
23040  ??  RN     0:00,10 /usr/local/bin/kblankscrn.kss -root
23063  ??  RN     0:00,11 /usr/local/bin/kblankscrn.kss -root
23147  ??  RN     0:00,01 /usr/local/bin/kblankscrn.kss -root
23340  ??  RN     0:00,12 /usr/local/bin/kblankscrn.kss -root
23342  ??  RN     0:00,01 /usr/local/bin/kblankscrn.kss -root
23345  ??  RN     0:00,10 /usr/local/bin/kblankscrn.kss -root
25625  ??  RN     0:00,00 /usr/local/bin/kblankscrn.kss -root
25915  ??  RN     0:00,01 /usr/local/bin/kblankscrn.kss -root
26035  ??  RN     0:00,01 /usr/local/bin/kblankscrn.kss -root

	I used kill on them. Nothing changes. I used kill -9. No reaction
	at all. The list is pretty the same. Thinking hard, then I used
	ktrace/kdump. They produced zero output, e.g. processes aren't really
	exist anymore - but still occupy some entries in process list.

	There maybe some conditions for process hanging to happen since
	kblankscrn was the only one found, otherwise process list
	should be fulfilled quite easy.

>How-To-Repeat:
	I use KDE-3.3.0, screensaver is configured for blanking screen. Dunno
	if it helps to reproduce.
>Fix:

	Sorry, no fix known.


>Release-Note:
>Audit-Trail:

From: Sergey Akifyev <asa@gascom.ru>
To: Seva Gluschenko <gvs@rinet.ru>
Cc: FreeBSD-gnats-submit@FreeBSD.org
Subject: Re: kern/71226: processes list is broken
Date: Wed, 01 Sep 2004 11:19:04 +0400

 --=-U7N7q+YGT59xVrazGJJF
 Content-Type: text/plain
 Content-Transfer-Encoding: quoted-printable
 
 On Tue, 2004-08-31 at 15:30, Seva Gluschenko wrote:=09
 > >Description:
 > 	While examining process list on my box I've found some hung processes:
 >=20
 > > ps ax | grep kblan
 >  1028  ??  RN     0:00,13 /usr/local/bin/kblankscrn.kss -root
 
 > 	I used kill on them. Nothing changes. I used kill -9. No reaction
 > 	at all. The list is pretty the same. Thinking hard, then I used
 > 	ktrace/kdump. They produced zero output, e.g. processes aren't really
 > 	exist anymore - but still occupy some entries in process list.
 >=20
 > 	There maybe some conditions for process hanging to happen since
 > 	kblankscrn was the only one found, otherwise process list
 > 	should be fulfilled quite easy.
 
 Are theese zombies in fact? You should try to kill their parent (see man
 waitpid for details). You can determine parent PID of process by issuing
 following command:
 
 # ps jax|fgrep kblankscrn.kss|fgrep -v fgrep|awk '{print $3}'
 --=20
 regards,
 Sergey Akifyev <asa@gascom.ru>
 JSC Gascom <http://www.gascom.ru>
 PGP key available from:
 ftp://ftp.gascom.ru/pub/PGP-keys/asa.txt
 
 --=-U7N7q+YGT59xVrazGJJF
 Content-Type: application/pgp-signature; name=signature.asc
 Content-Description: This is a digitally signed message part
 
 -----BEGIN PGP SIGNATURE-----
 Version: GnuPG v1.2.5 (FreeBSD)
 
 iD8DBQBBNXfnbu06QwmNwNsRAlJmAJ99GL5XyVnulJsdrCK8sqXkKCnKOwCfTN+8
 mMSPOt/wCOmk4fgOrNX7YB0=
 =hN1W
 -----END PGP SIGNATURE-----
 
 --=-U7N7q+YGT59xVrazGJJF--
 

From: Seva Gluschenko <gvs@rinet.ru>
To: Sergey Akifyev <asa@gascom.ru>
Cc: Seva Gluschenko <gvs@rinet.ru>, FreeBSD-gnats-submit@FreeBSD.org
Subject: Re: kern/71226: processes list is broken
Date: Wed, 01 Sep 2004 11:28:26 +0400

 Sergey Akifyev wrote:
 
 >>>ps ax | grep kblan
 >>
 >> 1028  ??  RN     0:00,13 /usr/local/bin/kblankscrn.kss -root
 []
 > Are theese zombies in fact? You should try to kill their parent (see man
 > waitpid for details). You can determine parent PID of process by issuing
 > following command:
 > 
 > # ps jax|fgrep kblankscrn.kss|fgrep -v fgrep|awk '{print $3}'
 
 Yep, they're in fact zombies, but I have no much interest to kill their 
 parent:
 
  > ps jaxp 775
 USER   PID  PPID  PGID   SID JOBC STAT  TT       TIME COMMAND
 gvs    775     1   613   613    0 RN    ??    0:00,00 
 /usr/local/bin/kblankscrn.kss -root
 
 -gvs

From: Maxim Konovalov <maxim@macomnet.ru>
To: Seva Gluschenko <gvs@rinet.ru>
Cc: bug-followup@freebsd.org
Subject: Re: kern/71226: processes list is broken
Date: Wed, 1 Sep 2004 12:19:13 +0400 (MSD)

 >  >>>ps ax | grep kblan
 >  >>
 >  >> 1028  ??  RN     0:00,13 /usr/local/bin/kblankscrn.kss -root
 >  []
 >  > Are theese zombies in fact? You should try to kill their parent (see man
 >  > waitpid for details). You can determine parent PID of process by issuing
 >  > following command:
 >  >
 >  > # ps jax|fgrep kblankscrn.kss|fgrep -v fgrep|awk '{print $3}'
 >
 >  Yep, they're in fact zombies, but I have no much interest to kill their
 >  parent:
 
 And what do you expect from FreeBSD?
 
 >   > ps jaxp 775
 >  USER   PID  PPID  PGID   SID JOBC STAT  TT       TIME COMMAND
 >  gvs    775     1   613   613    0 RN    ??    0:00,00
 >  /usr/local/bin/kblankscrn.kss -root
 
 -- 
 Maxim Konovalov

From: Seva Gluschenko <gvs@rinet.ru>
To: Maxim Konovalov <maxim@macomnet.ru>
Cc: bug-followup@freebsd.org
Subject: Re: kern/71226: processes list is broken
Date: Wed, 01 Sep 2004 12:29:42 +0400

 Maxim Konovalov wrote:
 
 >> >>>ps ax | grep kblan
 >> >>
 >> >> 1028  ??  RN     0:00,13 /usr/local/bin/kblankscrn.kss -root
 >> []
 >> > Are theese zombies in fact? You should try to kill their parent (see man
 >> > waitpid for details). You can determine parent PID of process by issuing
 >> > following command:
 >> >
 >> > # ps jax|fgrep kblankscrn.kss|fgrep -v fgrep|awk '{print $3}'
 >>
 >> Yep, they're in fact zombies, but I have no much interest to kill their
 >> parent:
 > 
 > 
 > And what do you expect from FreeBSD?
 
 I can't understand your question here. Did you notice the parent, 
 /sbin/init? Isn't the job of init to finish zombies? The process isn't 
 actually running, ktrace produces zero lentgh file - but somewhere in 
 kernel (?) it is considered running - why? If it is kblanscrn.kss who 
 sucks, why it doesn't even do NOOP?
 
 > 
 > 
 >>  > ps jaxp 775
 >> USER   PID  PPID  PGID   SID JOBC STAT  TT       TIME COMMAND
 >> gvs    775     1   613   613    0 RN    ??    0:00,00
 >> /usr/local/bin/kblankscrn.kss -root
 > 
 > 
 
State-Changed-From-To: open->closed 
State-Changed-By: kris 
State-Changed-When: Fri Oct 1 16:40:54 GMT 2004 
State-Changed-Why:  
Does this persist with later betas?  Earlier ones had scheduler 
problems which could have caused this. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=71226 
>Unformatted:
