[OpenAFS-port-freebsd] panic on freebsd-current

Pawel Worach pawel_worach@yahoo.com
Mon, 17 May 2004 15:04:33 -0700 (PDT)


Hi folks,

I'm trying to run the AFS client on freebsd-current, when starting
afsd my system panics with "mount: lost mount".

FreeBSD-current as of 2004-05-17 and openafs cvs HEAD from the same
date.

Any ideas?

Regards
Pawel

tail of kernel message buffer:
Starting AFS cache scan...found 0 non-empty cache files (0%).
panic: mount: lost mount
at line 932 in file /usr/src/sys/kern/vfs_mount.c
Debugger("panic")
panic: from debugger
at line 453 in file /usr/src/sys/ddb/db_command.c
Uptime: 1m30s
Dumping 255 MB
 16 32 48 64 80 96 112 128 144 160 176 192 208 224 240

full stacktrace:
(kgdb) bt
#0  doadump () at /usr/src/sys/kern/kern_shutdown.c:236
#1  0xc050d439 in boot (howto=260) at
/usr/src/sys/kern/kern_shutdown.c:370
#2  0xc050d838 in __panic () at /usr/src/sys/kern/kern_shutdown.c:548
#3  0xc04601c2 in db_panic () at /usr/src/sys/ddb/db_command.c:453
#4  0xc0460112 in db_command (last_cmdp=0xc070a020, cmd_table=0x0, 
    aux_cmd_tablep=0xc06db508, aux_cmd_tablep_end=0xc06db50c)
    at /usr/src/sys/ddb/db_command.c:348
#5  0xc0460265 in db_command_loop () at
/usr/src/sys/ddb/db_command.c:475
#6  0xc0463425 in db_trap (type=3, code=0) at
/usr/src/sys/ddb/db_trap.c:73
#7  0xc0674f8c in kdb_trap (type=3, code=0, regs=0xce6c6afc)
    at /usr/src/sys/i386/i386/db_interface.c:159
#8  0xc06856fc in trap (frame=
      {tf_fs = -1068498920, tf_es = -1026162672, tf_ds = 16, tf_edi =
1, tf_esi = -1066651362, tf_ebp = -831755448, tf_isp = -831755480,
tf_ebx = 0, tf_edx = 0, tf_ecx = -1056882688, tf_eax = 18, tf_trapno =
3, tf_err = 0, tf_eip = -1066970556, tf_cs = 8, tf_eflags = 646, tf_esp
= -1066575064, tf_ss = -1066669622})
    at /usr/src/sys/i386/i386/trap.c:579
#9  0xc0675244 in Debugger (msg=0x0) at machine/cpufunc.h:56
#10 0xc050d775 in __panic (file=0xc06c30d3
"/usr/src/sys/kern/vfs_mount.c", 
    line=932, fmt=0xc06c311e "mount: lost mount")
    at /usr/src/sys/kern/kern_shutdown.c:532
#11 0xc056a9fe in vfs_domount (td=0xc2d639a0, fstype=0xc3076a40 "AFS", 
    fspath=0xc2e86e80 "/afs", fsflags=0, fsdata=0x0, compat=1)
    at /usr/src/sys/kern/vfs_mount.c:932
#12 0xc0569d80 in mount (td=0x0, uap=0xce6c6d14)
    at /usr/src/sys/kern/vfs_mount.c:632
#13 0xc0686140 in syscall (frame=
      {tf_fs = 47, tf_es = 47, tf_ds = -1078001617, tf_edi = 0, tf_esi
= 1, tf_ebp = -1077941160, tf_isp = -831754892, tf_ebx = 0, tf_edx =
49, tf_ecx = 49, tf_eax = 21, tf_trapno = 12, tf_err = 2, tf_eip =
672029103, tf_cs = 31, tf_eflags = 646, tf_esp = -1077954532, tf_ss =
47}) at /usr/src/sys/i386/i386/trap.c:1004
#14 0x280e59af in ?? ()
---Can't read userspace from dump, or kernel process---
(kgdb) frame 11
#11 0xc056a9fe in vfs_domount (td=0xc2d639a0, fstype=0xc3076a40 "AFS", 
    fspath=0xc2e86e80 "/afs", fsflags=0, fsdata=0x0, compat=1)
    at /usr/src/sys/kern/vfs_mount.c:932
932                             panic("mount: lost mount");
(kgdb) list
927                     vp->v_mountedhere = mp;
928                     mtx_lock(&mountlist_mtx);
929                     TAILQ_INSERT_TAIL(&mountlist, mp, mnt_list);
930                     mtx_unlock(&mountlist_mtx);
931                     if (VFS_ROOT(mp, &newdp))
932                             panic("mount: lost mount");
933                     checkdirs(vp, newdp);
934                     vput(newdp);
935                     VOP_UNLOCK(vp, 0, td);
936                     if ((mp->mnt_flag & MNT_RDONLY) == 0)
(kgdb) print *mp
$1 = {mnt_list = {tqe_next = 0x0, tqe_prev = 0xc2c4f000}, mnt_op =
0xc2f1e200, 
  mnt_vfc = 0xc2f28e80, mnt_vnodecovered = 0xc31c8a28, mnt_syncer =
0x0, 
  mnt_nvnodelist = {tqh_first = 0x0, tqh_last = 0xc2bdc418}, mnt_lock =
{
    lk_interlock = 0xc0713034, lk_flags = 17825792, lk_sharecount = 1, 
    lk_waitcount = 0, lk_exclusivecount = 0, lk_prio = 80, 
    lk_wmesg = 0xc06c30b3 "vfslock", lk_timo = 0, lk_lockholder =
0xffffffff, 
    lk_newlock = 0x0}, mnt_mtx = {mtx_object = {lo_class = 0xc06ed5dc, 
      lo_name = 0xc06c30a2 "struct mount mtx", 
      lo_type = 0xc06c30a2 "struct mount mtx", lo_flags = 196608,
lo_list = {
        tqe_next = 0x0, tqe_prev = 0x0}, lo_witness = 0x0}, mtx_lock =
4, 
    mtx_recurse = 0}, mnt_writeopcount = 0, mnt_flag = 0, mnt_opt =
0x0, 
  mnt_optnew = 0x0, mnt_kern_flag = 0, mnt_maxsymlinklen = 0, mnt_stat
= {
    f_version = 0, f_type = 6, f_flags = 0, f_bsize = 8192, f_iosize =
8192, 
    f_blocks = 2000000, f_bfree = 2000000, f_bavail = 2000000, 
    f_files = 2000000, f_ffree = 2000000, f_syncwrites = 0,
f_asyncwrites = 0, 
    f_syncreads = 0, f_asyncreads = 0, f_spare = {0, 0, 0, 0, 0, 0, 0,
0, 0, 
      0}, f_namemax = 0, f_owner = 0, f_fsid = {val = {100728577, 6}}, 
    f_charspare = '\0' <repeats 79 times>, 
    f_fstypename = "afs", '\0' <repeats 12 times>, 
    f_mntfromname = "AFS", '\0' <repeats 84 times>, 
    f_mntonname = '\0' <repeats 87 times>}, mnt_cred = 0xc2e86e00, 
  mnt_data = 0x0, mnt_time = 0, mnt_iosize_max = 65536, mnt_export =
0x0, 
  mnt_mntlabel = 0x0, mnt_fslabel = 0x0, mnt_nvnodelistsize = 0}
(kgdb) print *newdp
$2 = {v_interlock = {mtx_object = {lo_class = 0x0, lo_name = 0xc1300cb8
"", 
      lo_type = 0x0, lo_flags = 0, lo_list = {tqe_next = 0x0, tqe_prev
= 0x0}, 
      lo_witness = 0x0}, mtx_lock = 32, mtx_recurse = 0}, v_iflag =
149815296, 
  v_usecount = 0, v_numoutput = 0, v_vxthread = 0xc1301ee4, 
  v_holdcnt = 4194304, v_cleanblkhd = {tqh_first = 0x10000, tqh_last =
0x65}, 
  v_cleanblkroot = 0x0, v_cleanbufcnt = 0, v_dirtyblkhd = {tqh_first =
0x0, 
    tqh_last = 0xc1301600}, v_dirtyblkroot = 0xc130f748, 
  v_dirtybufcnt = -1053889344, v_vflag = 3241077944, v_writecount = 0, 
  v_object = 0xc0727e20, v_lastw = 12846, v_cstart = 149819392, 
  v_lasta = -4526083351668326400, v_clen = 147849216, v_un = {
    vu_mountedhere = 0x10001, vu_socket = 0x10001, vu_spec = {
      vu_cdev = 0x10001, vu_specnext = {sle_next = 0x0}}, 
    vu_fifoinfo = 0x10001}, v_freelist = {tqe_next = 0xff, tqe_prev =
0x0}, 
  v_nmntvnodes = {tqe_next = 0xc1302848, tqe_prev = 0xc1301648},
v_synclist = {
    le_next = 0x0, le_prev = 0x0}, v_type = VNON, v_tag = 0x0, v_data =
0x0, 
  v_lock = {lk_interlock = 0x0, lk_flags = 0, lk_sharecount =
149823488, 
    lk_waitcount = 0, lk_exclusivecount = 0, lk_prio = 0, 
    lk_wmesg = 0xc1301f74 "", lk_timo = 4194307, lk_lockholder = 0x2, 
    lk_newlock = 0x0}, v_vnlock = 0x0, v_op = 0x0, v_mount = 0x0, 
  v_cache_src = {lh_first = 0xc1301690}, v_cache_dst = {
    tqh_first = 0xc1312dd8, tqh_last = 0xc1309d50}, v_id = 3241188680, 
  v_dd = 0x0, v_ddid = 3228728864, v_pollinfo = 0x3370, v_label = 0x0, 
  v_cachedfs = 149827584, v_cachedid = 0}




	
		
__________________________________
Do you Yahoo!?
SBC Yahoo! - Internet access at a great low price.
http://promo.yahoo.com/sbc/