Subject: kern/8440: panic: vrele: ref cnt on 1.4.1/i386
To: None <>
From: Hubert Feyrer <>
List: netbsd-bugs
Date: 09/18/1999 13:35:44
>Number:         8440
>Category:       kern
>Synopsis:       panic: vrele: ref cnt on 1.4.1/i386
>Confidential:   no
>Severity:       critical
>Priority:       high
>Responsible:    kern-bug-people (Kernel Bug People)
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sat Sep 18 13:35:00 1999
>Originator:     Hubert Feyrer
Hubert Feyrer <>
>Release:        1.4.1
Dell Optiplex GX1p (PIII-500, 384MB RAM, 60% buffer cache)

	I just got this (typed in manually):

	vrele: nad ref count: type VDIR, usecount -1, writecount 0, refcount 1,
		tag VT_UFS, ino 1936384, on dev 0, 4
	panic: vrele: ref cnt
	Stopped in mv at	_Debugger+0x4:  leave
	db> t
	_Debugger(fcfc3b94,fd1aa508,fcfbffff,fd151e50,f01526e8) at _Debugger+0x4
	_panic(f0152689,f0152674,fcfc3b94,fcfc3b94,fd151e74) at _panic+0x55
	_vrele(fcfc3b94) at _crele+0x50
	_rename_files(efbfd686,efbfd6bf,fd1aa508,0,fd151fa8) at _rename_files+0x3bf
	_sys_rename(fd1aa508,fd151f88,fd151f80,0,2) at _sys_rename+0x15
	_syscall() at _syscall+0x20e
	--- syscall (number 128) ---

	Looking at the source, it seems the vp->v_usecount < 0 is the 
	problem. Beyond that, I have no idea what this is. I just hope
	that the system isn't thrashed. :>

	This is a pretty vanilla 1.4.1 installation, btw. (kernel from
	1.4.1 sources, config can be provided).

	The system was in a big "make package" in pkgsrc when it crashed.

	Please not.