Subject: 1.6R panic with MFS /tmp
To: None <current-users@netbsd.org>
From: Martti Kuparinen <martti.kuparinen@iki.fi>
List: current-users
Date: 04/17/2003 11:34:21
Hi!

I just rebuilt my host and it panics after trying to mount the MFS /tmp.
Commenting out /tmp from fstab "fixes" this problem. Below is fstab and
backtrace from the crash. All ideas are welcome...

Martti

---
Martti Kuparinen <martti.kuparinen@iki.fi>      NetBSD - No media hype
http://www.iki.fi/kuparine/                     http://www.netbsd.org/


/dev/wd0a               /               ffs     rw              1       1
/dev/wd0b               none            swap    sw              0       0
/dev/wd0e               /windows/c      ntfs    ro              0       0
/kern                   /kern           kernfs  rw              0       0
/proc                   /proc           procfs  rw              0       0
#swap                   /tmp            mfs     rw,-s=248m      0       0
/dev/cd0a               /cdrom          cd9660  ro,noauto       0       0



NetBSD n52 1.6R NetBSD 1.6R (N52) #0: Thu Apr 17 11:14:18 EEST 2003  root@n52:/usr/src/sys/arch/i386/compile/N52 i386



(gdb) target kcore /var/crash/core
panic: lockmgr: draining against myself
#0  0x1 in ?? ()
(gdb) bt
#0  0x1 in ?? ()
#1  0xc03abf5f in cpu_reboot (howto=256, bootstr=0x0)
    at ../../../../arch/i386/i386/machdep.c:877
#2  0xc0304887 in db_sync_cmd () at ../../../../ddb/db_command.c:723
#3  0xc030448c in db_command (last_cmdp=0xc06c007c, cmd_table=0xc05681e0)
    at ../../../../ddb/db_command.c:456
#4  0xc030408b in db_command_loop () at ../../../../ddb/db_command.c:247
#5  0xc0307b7c in db_trap (type=1, code=0) at ../../../../ddb/db_trap.c:97
#6  0xc03a9933 in kdb_trap (type=1, code=0, regs=0xe36ea830)
    at ../../../../arch/i386/i386/db_interface.c:224
#7  0xc03b7443 in trap (frame={tf_gs = 16, tf_fs = 48, tf_es = -479330288,
      tf_ds = -479395824, tf_edi = -1068061376, tf_esi = 260,
      tf_ebp = -479287184, tf_ebx = -479287140, tf_edx = 0, tf_ecx = 3840,
      tf_eax = 6298, tf_trapno = 1, tf_err = 0, tf_eip = -1069901284,
      tf_cs = 8, tf_eflags = 514, tf_esp = -479287152, tf_ss = -1070356752,
      tf_vm86_es = -479335804, tf_vm86_ds = 65543, tf_vm86_fs = 0,
      tf_vm86_gs = -1070609094}) at ../../../../arch/i386/i386/trap.c:285
#8  0xc0102d06 in calltrap ()
#9  0xc033a6f0 in panic (fmt=0xc056ad40 "lockmgr: draining against myself")
    at ../../../../kern/subr_prf.c:230
#10 0xc0324e09 in lockmgr (lkp=0xe36dea84, flags=65543, interlkp=0xe36dea18)
    at ../../../../kern/kern_lock.c:778
#11 0xc0362080 in genfs_lock (v=0xe36ea914)
---Type <return> to continue, or q <return> to quit---
    at ../../../../miscfs/genfs/genfs_vnops.c:328
#12 0xc0360e6e in VOP_LOCK (vp=0xe36dea18, flags=65543)
    at ../../../../kern/vnode_if.c:1112
#13 0xc035995a in vclean (vp=0xe36dea18, flags=8, p=0xe36e31a8)
    at ../../../../kern/vfs_subr.c:1555
#14 0xc0359afe in vgonel (vp=0xe36dea18, p=0xe36e31a8)
    at ../../../../kern/vfs_subr.c:1699
#15 0xc03598ab in vflush (mp=0xc1150000, skipvp=0x0, flags=2)
    at ../../../../kern/vfs_subr.c:1483
#16 0xc02e5353 in ffs_flushfiles (mp=0xc1150000, flags=2, p=0xe36e31a8)
    at ../../../../ufs/ffs/ffs_vfsops.c:1158
#17 0xc02e5155 in ffs_unmount (mp=0xc1150000, mntflags=524288, p=0xe36e31a8)
    at ../../../../ufs/ffs/ffs_vfsops.c:1077
#18 0xc035bf17 in dounmount (mp=0xc1150000, flags=524288, p=0xe36e31a8)
    at ../../../../kern/vfs_syscalls.c:527
#19 0xc035ab62 in vfs_unmountall (p=0xe36e31a8)
    at ../../../../kern/vfs_subr.c:2488
#20 0xc035add1 in vfs_shutdown () at ../../../../kern/vfs_subr.c:2594
#21 0xc03abf2b in cpu_reboot (howto=256, bootstr=0x0)
    at ../../../../arch/i386/i386/machdep.c:863
#22 0xc0304887 in db_sync_cmd () at ../../../../ddb/db_command.c:723
#23 0xc030448c in db_command (last_cmdp=0xc06c007c, cmd_table=0xc05681e0)
    at ../../../../ddb/db_command.c:456
---Type <return> to continue, or q <return> to quit---
#24 0xc030408b in db_command_loop () at ../../../../ddb/db_command.c:247
#25 0xc0307b7c in db_trap (type=6, code=0) at ../../../../ddb/db_trap.c:97
#26 0xc03a9933 in kdb_trap (type=6, code=0, regs=0xe36ead28)
    at ../../../../arch/i386/i386/db_interface.c:224
#27 0xc03b7443 in trap (frame={tf_gs = -1053425648, tf_fs = 48, tf_es = 16,
      tf_ds = -479330288, tf_edi = -1055276488, tf_esi = -1053401088,
      tf_ebp = -479285728, tf_ebx = 0, tf_edx = 2, tf_ecx = 28, tf_eax = 0,
      tf_trapno = 6, tf_err = 0, tf_eip = -1070613665, tf_cs = 8,
      tf_eflags = 66182, tf_esp = -1077936729, tf_ss = 0,
      tf_vm86_es = -1077937516, tf_vm86_ds = 0, tf_vm86_fs = -1053401600,
      tf_vm86_gs = -479317592}) at ../../../../arch/i386/i386/trap.c:285
#28 0xc0102d06 in calltrap ()
#29 0xc035ba2c in sys_mount (l=0xe3318980, v=0xe36eaf80, retval=0xe36eaf78)
    at ../../../../kern/vfs_syscalls.c:319
#30 0xc03b6e8b in syscall_plain (frame={tf_gs = 31, tf_fs = 1209008159,
      tf_es = -1078001633, tf_ds = 1209008159, tf_edi = -1077936996,
      tf_esi = -1077937252, tf_ebp = -1077936996, tf_ebx = 130023424,
      tf_edx = -1077938028, tf_ecx = -1077936872, tf_eax = 21, tf_trapno = 3,
      tf_err = 2, tf_eip = 1208517071, tf_cs = 23, tf_eflags = 598,
      tf_esp = -1077938240, tf_ss = 31, tf_vm86_es = 0, tf_vm86_ds = 0,
      tf_vm86_fs = 0, tf_vm86_gs = 0})
    at ../../../../arch/i386/i386/syscall.c:156
#31 0xc0100c6b in syscall1 ()
can not access 0xbfbffc9c, invalid translation (invalid PDE)
can not access 0xbfbffc9c, invalid translation (invalid PDE)
Cannot access memory at address 0xbfbffc9c
(gdb)