Subject: kern/24033: knote assertion fails
To: None <>
From: Martin Husemann <>
List: netbsd-bugs
Date: 01/09/2004 22:39:51
>Number:         24033
>Category:       kern
>Synopsis:       knote assertion fails
>Confidential:   no
>Severity:       critical
>Priority:       high
>Responsible:    kern-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Jan 09 21:40:00 UTC 2004
>Originator:     Martin Husemann
>Release:        NetBSD 1.6ZG
System: NetBSD 1.6ZG NetBSD 1.6ZG (GENERIC_DEBUG) #0: Fri Jan 9 10:47:59 CET 2004 sparc64
Architecture: sparc64
Machine: sparc64

After running "make -k regress" for some time, my DEBUG and DIAGNOSTIC kernel
failed an assertion:

panic: kernel diagnostic assertion "p->p_stat == SDEAD || pfind(kn->kn_id) == p" failed: file "../../../../kern/kern_event.c", line 427
kdb breakpoint at 13187f4
Stopped in pid 669.1 (sh) at    netbsd:cpu_Debugger+0x4:        nop
db> tr
__assert(144c390, 1473598, 1ab, 14735d8, 16ee7850, e6a0000) at netbsd:__assert+0x18
filt_procdetach(2e34200, 14741a8, 356, 0, 40100, 188d400) at netbsd:filt_procdetach+0xac
filt_proc(2e34200, 80000000, 6, 1474f28, 140, 0) at netbsd:filt_proc+0xcc
knote(2e34200, 80000000, d7ac0d0, 0, 0, e655aa0) at netbsd:knote+0x1c
exit1(e654890, 0, 40224180, ffffffffffffd178, 12, 240) at netbsd:exit1+0x510
sys_exit(0, 16ee7dd0, 16ee7dc0, 40900000, 9182009205, badcafe) at netbsd:sys_exit+0x38
syscall(16ee7ed0, 1, 40930474, 800, 188dc00, 0) at netbsd:syscall+0x2d8
?(0, 0, a, badcafe, 220ed0, ffffffffffffffff) at 0x1009614

Fallout from the killing of the reaper?


Not sure if it's repeatable yet - I'll try and add a note if it is.