Subject: panic: lockdebug_lookup: uninitialized lock (1, id=0)
To: None <current-users@netbsd.org>
From: Patrick Welche <prlw1@newn.cam.ac.uk>
List: current-users
Date: 10/11/2007 21:34:07
Same message, but different trace to

http://mail-index.netbsd.org/current-users/2007/09/07/0004.html

and easily reproducible, which is good.

panic: lockdebug_lookup: uninitialized lock (1, id=0)
Stopped in pid 556.1 (ls) at    netbsd:breakpoint+0x1:  ret
db{0}> bt
breakpoint(c052b44a,cdbfc578,cdbfc57c,c0355cda,1621fc0) at netbsd:breakpoint+0x1

panic(c052a408,0,bfc5ac,0,0) at netbsd:panic+0xd1
lockdebug_lookup(0,cdbfc5c4,1,c032bf09,0) at netbsd:lockdebug_lookup+0x3d
lockdebug_free(cde917c0,0,cdbd6a20,22c,1) at netbsd:lockdebug_free+0x25
rw_destroy(cde917c0,1,0,0,0) at netbsd:rw_destroy+0x1b
genfs_node_destroy(cde92eb8,0,3,c05321fc,13a) at netbsd:genfs_node_destroy+0x20
cd9660_reclaim(cdbfc64c,0,c0531920,cde92eb8,cdbd6a20) at netbsd:cd9660_reclaim+0x9a 
VOP_RECLAIM(cde92eb8,cdbd6a20,ffffffff,cdbd6a20,0) at netbsd:VOP_RECLAIM+0x34
vclean(cde92eb8,8,cdbd6a20,c05321fc,13a) at netbsd:vclean+0x4a1
vgonel(cde92eb8,cdbd6a20,4ac,cde92eb8,0) at netbsd:vgonel+0xad
vrecycle(cde92eb8,0,cdbd6a20,c03255b7,cdbfc707) at netbsd:vrecycle+0x5e
cd9660_inactive(cdbfc72c,0,c05318e0,cde92eb8,cdbd6a20) at netbsd:cd9660_inactive+0x99 
VOP_INACTIVE(cde92eb8,cdbd6a20,2eb,cde8f66c,cde917bc) at netbsd:VOP_INACTIVE+0x34 
vput(cde92eb8,0,0,0,cdbfc7b0) at netbsd:vput+0x1e4
cd9660_vget_internal(c2d13000,0,0,cdbfc924,1) at netbsd:cd9660_vget_internal+0x380 
cd9660_lookup(cdbfc9c8,c05e1200,cdbfc9dc,c03db89b,c05daee8) at netbsd:cd9660_lookup+0x861 
VOP_LOOKUP(cde90314,cdbfcb90,cdbfcba4,c03adbf5,cdbfc9fc) at netbsd:VOP_LOOKUP+0x3a
lookup(cdbfcb7c,20002,400,cdbfcb98,0) at netbsd:lookup+0x4dc
namei(cdbfcb7c,cdbfcacc,cdbfcadc,c032bf9c,cdbfca07) at netbsd:namei+0x37e
vn_open(cdbfcb7c,1,0,c0355b0f,6) at netbsd:vn_open+0xcf
sys_open(cdbd6a20,cdbfcc40,cdbfcc38,c045c123,0) at netbsd:sys_open+0xfa
syscall_plain() at netbsd:syscall_plain+0x191
--- syscall (number 5) ---
0xbbae9767:
db{0}> show vnode cde92eb8
OBJECT 0xcde92eb8: locked=0, pgops=0xc05d8b6c, npages=0, refs=0

VNODE flags 1000<XLOCK>
mp 0xc2d13000 numoutput 0 size 0xffffffffffffffff writesize 0xffffffffffffffff
data 0xcde917bc writecount 0 holdcnt 0
tag VT_ISOFS(14) type UNKNOWN(0) mount 0xc2d13000 typedata 0x0
db{0}> kgdb
$S05#b8~ ... and then it went horribly wrong.

This is with today's -current/i386, mounting a vnd of an iso made with
makefs, options rockridge, which has quite a deep directory tree.

Cheers,

Patrick