Subject: kern/24329: KERN_PROC2 null dereference
To: None <>
From: None <>
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
>Originator:     YAMAMOTO Takashi <>
>Release:        NetBSD 1.6ZI

Architecture: i386
Machine: i386
	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.
	run top(1) on SMP box, run, and stay?