Patches to get Arla running on FreeBSD 8-CURRENT

Alec Kloss alec-keyword-arla.4d43de at SetFilePointer.com
Wed Jul 30 04:23:46 CEST 2008


I've been kicking around arla from CVS against a pretty
recent -current.  I can load nnpfs, start arlad, get and list
tokens, but attempting to "ls /afs" results in a seemingly
permanent hang after showing this:

lock order reversal:
 1st 0xc1c8dd64 user map (user map) @
/usr/current/src/sys/vm/vm_map.c:2208
 2nd 0xc2088ce8 ufs (ufs) @
/usr/current/src/sys/vm/vm_object.c:1053
KDB: stack backtrace:
db_trace_self_wrapper(c0b49785,c878ea98,c07d02ae,c0b4c052,c2088ce8,...)
at db_trace_self_wrapper+0x26
kdb_backtrace(c0b4c052,c2088ce8,c0b4049d,c0b4049d,c0b6d558,...) at
kdb_backtrace+0x29
witness_checkorder(c2088ce8,9,c0b6d558,41d,c0783fb4,...) at
witness_checkorder+0x6de
__lockmgr_args(c2088ce8,80400,c2088d04,0,0,...) at
__lockmgr_args+0x777
ffs_lock(c878eba0,0,9f,80400,c2088c90,...) at ffs_lock+0x8a
VOP_LOCK1_APV(c0c3e160,c878eba0,c0c56080,c2088c90,80400,...) at
VOP_LOCK1_APV+0xa5
_vn_lock(c2088c90,80400,c0b6d558,41d,28725000,...) at _vn_lock+0x5e
vm_object_sync(c2010174,0,0,2000,0,...) at vm_object_sync+0x186
vm_map_sync(c1c8dd20,28725000,28727000,0,0,...) at
vm_map_sync+0x281
msync(c1ebc000,c878ecf8,c,c0b4ca63,c0c1aed8,...) at msync+0x6c
syscall(c878ed38) at syscall+0x2a3
Xint0x80_syscall() at Xint0x80_syscall+0x20
--- syscall (65, FreeBSD ELF32, msync), eip = 0x2827007f, esp =
0x2857374c, ebp = 0x285737c8 ---

I've gotten remote GDB set up and working at least with the kernel
sources... I'm not sure if it'll let me step into nnpfs correctly
or not.  I'm rebuilding a kernel with options as described here:

http://www.freebsd.org/doc/en/books/developers-handbook/kerneldebug-deadlocks.html

to see if I can glean any more info.  Anyone (Robert maybe?) got
any other tips for me?

-- 
Alec Kloss  alec at SetFilePointer.com   IM: angryspamhater at yahoo.com
PGP key at http://pgp.mit.edu:11371/pks/lookup?op=get&search=0xA241980E
"No Bunny!" -- Simon, from Frisky Dingo
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.stacken.kth.se/pipermail/arla-drinkers/attachments/20080730/4588389c/attachment.bin


More information about the Arla-drinkers mailing list