Subject: kern/24329: KERN_PROC2 null dereference
To: None <gnats-bugs@gnats.netbsd.org>
From: None <yamt@mwd.biglobe.ne.jp>
List: netbsd-bugs
Date: 02/06/2004 10:10:44
>Number:         24329
>Category:       kern
>Synopsis:       KERN_PROC2 null dereference
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    kern-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Feb 06 01:11:00 UTC 2004
>Closed-Date:
>Last-Modified:
>Originator:     YAMAMOTO Takashi <yamt@mwd.biglobe.ne.jp>
>Release:        NetBSD 1.6ZI
>Organization:

>Environment:
Architecture: i386
Machine: i386
>Description:
	proc_representative_lwp() sometimes returns NULL for fill_kproc2().

	i've seen this twice.  and in both cases,
		p_nlwps == 1
		p_lwps.lh_first == NULL
		p_rlwps == 0
		p_zlwps == 0
		p_stat == SACTIVE
		p_flag == P_EXEC|P_CONTROLT
		the process was at the head of allprocs.
>How-To-Repeat:
	run top(1) on SMP box, run build.sh, and stay?
>Fix:
	
>Release-Note:
>Audit-Trail:
>Unformatted: