Subject: kern/14870: genfs_vnops.c assertion failure
To: None <gnats-bugs@gnats.netbsd.org>
From: None <g.mcgarry@ieee.org>
List: netbsd-bugs
Date: 12/08/2001 19:07:53
>Number:         14870
>Category:       kern
>Synopsis:       genfs_vnops.c assertion failure
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    kern-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Dec 07 22:08:00 PST 2001
>Closed-Date:
>Last-Modified:
>Originator:     Gregory McGarry
>Release:        NetBSD-current
>Organization:
	
>Environment:

This is a very unusual configuration:

- NetBSD/hp300 on a 340
- running serial console over dca0
- running diskless with root over nfs
- running the Xhpux X server (under COMPAT_HPUX) on the topcat display

The -current sources are some weeks old, so I will be updating and
trying again RSN.

>Description:

While the X server is running, type 'reboot' on the serial console to
see:

Dec  8 12:07:02 reboot: rebooted by root
Dec  8 12:07:03 init: kernel security level changed from 0 to 1
panic: kernel diagnostic assertion "bytes != 0" failed: file "/rdrive/netbsd/cur
rent/src/sys/miscfs/genfs/genfs_vnops.c", line 1330

Stopped in pid 13 (Xhpux) at    cpu_Debugger+0x6:       unlk    a6
db> t 
cpu_Debugger(0,0,0,7e66d0,7e660c) + 6
panic(b9d92,abd8d,ac034,abe45,532) + a0
__assert(abd8d,abe45,532,ac034,2) + 1a
genfs_gop_write(7c95f0,7e66d0,2,1b,7e6814) + d4
nfs_gop_write(7c95f0,7e66d0,2,1b,36be000) + 14
genfs_putpages(7e6828,0,0,ab7f0,7c95f0) + 6be
VOP_PUTPAGES(7c95f0,0,0,0,0) + 50
uvn_put(7c95f0,0,0,0,0,1b) + 1c
vinvalbuf(7c95f0,1,1a5f00,7c0cb0,0,0) + 3a
nfs_vinvalbuf(7c95f0,1,1a5f00,7c0cb0,1) + fc
nfs_close(7e6920,aaebc,7c95f0,2,1a5f00) + 48
VOP_CLOSE(7c95f0,2,1a5f00,7c0cb0,7c95f0) + 38
vn_close(7c95f0,2,1a5f00,7c0cb0,7c95f0) + 32
coredump(7c0cb0) + 202
sigexit(7c0cb0,c,0,40c,0) + 2c
postsig(c) + 90
machine_userret(7c0cb0,7e6f60,0,40c,0) + 18
syscall(127) + 18e
m68k_sigreturn_stub() + 24

>How-To-Repeat:

As above.  This submission is a placeholder until I get an opportunity
to look into in more detail.

>Fix:

N/A

>Release-Note:
>Audit-Trail:
>Unformatted: