Re: Patches to get Arla running on FreeBSD 8-CURRENT

Alec Kloss <[email protected]>
Newsgroups gmane.os.freebsd.devel.afs,gmane.comp.file-systems.arla.general
Message-ID <[email protected]>
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  [email protected]   IM: [email protected]
PGP key at http://pgp.mit.edu:11371/pks/lookup?op=get&search=0xA241980E
"No Bunny!" -- Simon, from Frisky Dingo
signature.asc (application/pgp-signature, 187 B)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (FreeBSD)

iD8DBQFIj9Cx2s33paJBmA4RAiOzAJwJ2V9ASOINfOEMsr9Jwon84jT00QCcDvJp
rFa68xMWxUt4ZCmjy02V194=
=5GeD
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.