Subject: kern/27876: reproducible panic due to assert in sys/miscfs/genfs/genfs_vnops.c
To: None <>
From: S.P.Zeidler <>
List: netbsd-bugs
Date: 11/04/2004 13:35:25
>Number:         27876
>Category:       kern
>Synopsis:       reproducible panic due to assert in sys/miscfs/genfs/genfs_vnops.c
>Confidential:   no
>Severity:       critical
>Priority:       high
>Responsible:    kern-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Nov 04 12:36:00 UTC 2004
>Originator:     S.P.Zeidler
>Release:        NetBSD 2.0_RC4 (~ 24.Oct)
System: NetBSD 2.0_RC4 NetBSD 2.0_RC4 (SERPENS) #2: Tue Oct 26 12:10:17 MEST 2004 amiga
Architecture: m68k
Machine: amiga

panic: kernel diagnostic assertion "pg == NULL || pg->uobject ==
uobj" failed: file "../../../../miscfs/genfs/genfs_vnops.c", line 1134
Stopped in pid 4.1 (ioflush) at netbsd:cpu_Debugger+0x6:        unlk    a6
db> call_sicallback: 5548 more dynamic structures 5575 total

db> trace
cpu_Debugger(1,49c1c5c,328190,49c1c40,18738c) + 6
panic(1becec,1921b5,1ac4e1,1ac36d,46e) + f8
__assert(1921b5,1ac36d,46e,1ac4e1,312710) + 1a
genfs_putpages(49c1d9c,1,3,0,4f13bb4) + 4d4
ffs_putpages(49c1d9c,1abe88,4f13bb4,0,0) + 24
VOP_PUTPAGES(4f13bb4,0,0,0,0,11) + 44
ffs_full_fsync(49c1e84,4f13b0c,3,0,49a04c8) + 1d0
ffs_fsync(49c1e84,1ab91c,4f13bb4,3d7e80,0) + 38
VOP_FSYNC(4f13bb4,3d7e80,0,0,0,0,0,49a04c8) + 50
ffs_sync(543400,3,3d7e80,49a04c8) + 194
sync_fsync(49c1f2c,1ab91c,4df1554,3d7e80,8) + 9a
VOP_FSYNC(4df1554,3d7e80,8,0,0,0,0) + 50
sched_sync(49ae180) + 17e
proc_trampoline() + 2

db> show reg
d0          0x2700      start+0x236
d1          0x8
d2          0x100
d3          0x1becec    aoutm68k_syscallnames+0x66c
d4          0
d5          0x1556c000
d6          0
d7          0x1556c000
a0          0x29c000    emul_netbsd_aoutm68k_object+0x66f9c
a1          0
a2          0xebe08     printf
a3          0x312710    emul_netbsd_aoutm68k_object+0xdd6ac
a4          0x7fffffff
a5          0xffffe000
a6          0x49c1c10   emul_netbsd_aoutm68k_object+0x478cbac
sp          0xdfffffc   emul_netbsd_aoutm68k_object+0xddcaf98
pc          0x142714    cpu_Debugger+0x6
sr          0x2000
netbsd:cpu_Debugger+0x6:        unlk    a6

	I can trigger this fault by trying to run an (INN history) expire, 
	but I probably also triggered it previously by a make install in pkgsrc