Subject: softdep crash
To: None <current-users@netbsd.org>
From: Sean Doran <smd@ebone.net>
List: current-users
Date: 09/14/2000 17:48:56
(also see PR 10824)

i have a panic in a kernel built today, while doing heavy filesystem
work (during the making of libc_p.a)

	Sean.

#0  0xc02779e0 in hexdigits.35 ()
can not access 0xc0274940, invalid translation (invalid PTE)
can not access 0xc0274940, invalid translation (invalid PTE)
can not access 0xc0274940, invalid translation (invalid PTE)
can not access 0xc0274940, invalid translation (invalid PTE)
#1  0x30bd000 in ?? ()
#2  0xc01edfe7 in cpu_reboot (howto=260, bootstr=0x0)
    at ../../../../arch/i386/i386/machdep.c:1132
#3  0xc0151651 in panic () at ../../../../kern/subr_prf.c:240
#4  0xc01ca67a in softdep_fsync_mountdev (vp=0xd92379d4)
#5  0xc01cfa56 in ffs_fsync (v=0xd9ee999c)
    at ../../../../ufs/ffs/ffs_vnops.c:249
#6  0xc01ce985 in ffs_sync (mp=0xc0778200, waitfor=2, cred=0xc0787300, 
    p=0xd9565010) at ../../../../sys/vnode_if.h:449
#7  0xc0173445 in sys_sync (p=0xd9565010, v=0x0, retval=0x0)
    at ../../../../kern/vfs_syscalls.c:568
#8  0xc016dc64 in vfs_shutdown () at ../../../../kern/vfs_subr.c:2370
#9  0xc01edfbf in cpu_reboot (howto=256, bootstr=0x0)
    at ../../../../arch/i386/i386/machdep.c:1119
#10 0xc0151651 in panic () at ../../../../kern/subr_prf.c:240
#11 0xc01c8e48 in softdep_disk_write_complete (bp=0xc4a5bb18)
    at ../../../../ufs/ffs/ffs_softdep.c:3048
#12 0xc0167cd7 in biodone (bp=0xc4a5bb18) at ../../../../kern/vfs_bio.c:952
#13 0xc02034aa in wddone (v=0xc0730800) at ../../../../dev/ata/wd.c:620
#14 0xc0205d8f in wdc_ata_bio_done (chp=0xc072e8b0, xfer=0xc072f000)
    at ../../../../dev/ata/ata_wdc.c:657
#15 0xc020561c in wdc_ata_bio_intr (chp=0xc072e8b0, xfer=0xc072f000, irq=1)
    at ../../../../dev/ata/ata_wdc.c:598
#16 0xc011d0ed in wdcintr (arg=0xc072e8b0) at ../../../../dev/ic/wdc.c:690
#17 0xc02110f6 in pciide_compat_intr (arg=0xc072e8b0)
    at ../../../../dev/pci/pciide.c:735
#18 0xc01019c8 in Xintr14 ()
    at ../../../../ufs/ffs/ffs_softdep.c:221

(gdb) frame 11
#11 0xc01c8e48 in softdep_disk_write_complete (bp=0xc4a5bb18)
    at ../../../../ufs/ffs/ffs_softdep.c:3048
3048                    panic("softdep_disk_write_complete: lock is held");
(gdb) print lk
$2 = {lkt_spl = 0, lkt_held = 5263}

newlaptoy# ps -l -p 5263 -M netbsd.0.core
UID  PID PPID CPU PRI NI  VSZ RSS WCHAN STAT TT    TIME COMMAND
  0 5263    3  36  72  4 3908   0 -     RN+  p7 0:36.00 (ar)

newlaptoy# vmstat -m -M netbsd.0.core
Kmem statistics are not being gathered by the kernel.
vmstat: pool name trashed: invalid translation (invalid PTE)