Subject: Panic with softdep
To: None <current-users@NetBSD.ORG>
From: Martin Husemann <>
List: current-users
Date: 12/11/1999 17:12:16
Is it only me?

I get ocasional panics from softdep, already filled a PR about it (but 
asked fvdl in the meantime to close it, because I couldn't reproduce
it any more). Now it happened again, source supped from today:

panic: softdep_disk_write_complete: lock is held
#0  0xf025bb60 in ums_accessops ()
#1  0x15f8000 in ?? ()
#2  0xf01d3f0b in cpu_reboot ()
#3  0xf012ad1c in log ()
#4  0xf022b132 in initiate_write_filepage ()
#5  0xf022af4b in softdep_disk_io_initiation ()
#6  0xf014fb66 in spec_strategy ()
#7  0xf01bfc06 in ufs_strategy ()
#8  0xf014048c in bwrite ()
#9  0xf01412af in vn_bwrite ()
#10 0xf0140df4 in bawrite ()
#11 0xf01ba142 in ffs_fsync ()
#12 0xf01b8cc6 in ffs_sync ()
#13 0xf014b4f5 in sys_sync ()
#14 0xf01465a1 in vfs_shutdown ()
#15 0xf01d3ee3 in cpu_reboot ()
#16 0xf012ad1c in log ()
#17 0xf022b5f4 in softdep_disk_write_complete ()
#18 0xf0140f73 in biodone ()
#19 0xf01e1ea6 in wddone ()
#20 0xf01e4529 in wdc_ata_bio_done ()
#21 0xf01e4454 in wdc_ata_bio_intr ()
#22 0xf0108074 in wdcintr ()
#23 0xf01ed42e in pciide_compat_intr ()
#24 0xf0101868 in Xintr14 ()
#25 0xf01b644b in ffs_truncate ()
#26 0xf01baa7c in ufs_inactive ()
#27 0xf0145857 in vput ()
#28 0xf022ab65 in handle_workitem_remove ()
#29 0xf0226dbc in softdep_process_worklist ()
#30 0xf0150101 in sched_sync ()
#31 0xf0100317 in proc_trampoline ()
#32 0xf01011b0 in Xintr5 ()
#33 0xf0124079 in tsleep ()
#34 0xf01c43f5 in uvm_scheduler ()
#35 0xf011814e in main ()

The machine is an i386, nothing unusual. No special filesystems:

/dev/wd0a on / type ffs (local, soft dependencies)
/dev/wd0e on /usr type ffs (local, soft dependencies)

Dmesg appended below.

Is it realy rock-solid for everyone out there, as the traffic on the lists
seems to imply?


NetBSD 1.4P (RUMOLT) #0: Sat Dec 11 14:53:29 MET 1999
cpu0: family 6 model 5 step 3
cpu0: Intel Pentium II (Deschutes) (686-class)
total memory = 255 MB
avail memory = 235 MB
using 2822 buffers containing 13184 KB of memory
BIOS32 rev. 0 found at 0xfb0c0
mainbus0 (root)
pci0 at mainbus0 bus 0: configuration mode 1
pci0: i/o space, memory space enabled
pchb0 at pci0 dev 0 function 0
pchb0: vendor 0x8086 product 0x7190 (rev. 0x03)
ppb0 at pci0 dev 1 function 0: vendor 0x8086 product 0x7191 (rev. 0x03)
pci1 at ppb0 bus 1
pci1: i/o space, memory space enabled
vga0 at pci1 dev 0 function 0: vendor 0x10de product 0x0028 (rev. 0x11)
wsdisplay0 at vga0: console (80x25, vt100 emulation)
pcib0 at pci0 dev 7 function 0
pcib0: vendor 0x8086 product 0x7110 (rev. 0x02)
pciide0 at pci0 dev 7 function 1: Intel 82371AB IDE controller (PIIX4)
pciide0: bus-master DMA support present
pciide0: primary channel wired to compatibility mode
wd0 at pciide0 channel 0 drive 0: <IBM-DTTA-371440>
wd0: drive supports 16-sector pio transfers, lba addressing
wd0: 13783MB, 16383 cyl, 16 head, 63 sec, 512 bytes/sect x 28229040 sectors
wd0: 32-bits data port
wd0: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 2
pciide0: primary channel interrupting at irq 14
wd0(pciide0:0:0): using PIO mode 4, Ultra-DMA mode 2 (using DMA data transfers)
pciide0: secondary channel wired to compatibility mode
pciide0: disabling secondary channel (no drives)
uhci0 at pci0 dev 7 function 2: vendor 0x8086 product 0x7112 (rev. 0x01)
uhci0: interrupting at irq 11
usb0 at uhci0: USB revision 1.0
uhub0 at usb0
uhub0: vendor 0x8086 UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub0: 2 ports with 2 removable, self powered
ums0 at uhub0 port 2 configuration 1 interface 0
ums0: Logitech USB-PS/2 Mouse M-BA47, rev 1.00/1.20, addr 2, iclass 3/1
ums0: 4 buttons and Z dir.
wsmouse0 at ums0
vendor 0x8086 product 0x7113 (miscellaneous bridge, revision 0x02) at pci0 dev 7 function 3 not configured
vr0 at pci0 dev 11 function 0: VIA VT3043 (Rhine) 10/100 Ethernet
vr0: interrupting at irq 11
vr0: Ethernet address: 00:80:c8:f9:e4:37
ukphy0 at vr0 phy 8: Generic IEEE 802.3u media interface
ukphy0: OUI 0x00606e, model 0x0000, rev. 0
ukphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
isa0 at pcib0
com0 at isa0 port 0x3f8-0x3ff irq 4: ns16550a, working fifo
com1 at isa0 port 0x2f8-0x2ff irq 3: ns16550a, working fifo
pckbc0 at isa0 port 0x60-0x64
pckbd0 at pckbc0 (kbd slot)
pckbc0: using irq 1 for kbd slot
wskbd0 at pckbd0: console keyboard, using wsdisplay0
lpt0 at isa0 port 0x378-0x37b irq 7
pcppi0 at isa0 port 0x61
sysbeep0 at pcppi0
isapnp0 at isa0 port 0x279: ISA Plug 'n Play device support
npx0 at isa0 port 0xf0-0xff: using exception 16
fdc0 at isa0 port 0x3f0-0x3f7 irq 6 drq 2
fd0 at fdc0 drive 0: 1.44MB, 80 cyl, 2 head, 18 sec
isapnp0: read port 0x203
isic0 at isapnp0 port 0x160/8 irq 5: Elsa QuickStep 1000 (ISA)
isic0: ISAC 2085 Version A1/A2 or 2086/2186 Version 1.1 (IOM-2)
isic0: HSCX 82525 or 21525 Version 2.1
isapnp0: <Creative ViBRA16X PnP, CTL0043, , Audio> port 0x220/16,0x330/2,0x388/4 irq 5 drq 1,3 not configured
joy0 at isapnp0 port 0x201/1
joy0: Creative ViBRA16X PnP Game
joy0: joystick connected
apm0 at mainbus0: Power Management spec V1.2 (slowidle)
apm0: A/C state: on
apm0: battery charge state: no battery
biomask ff45 netmask ff65 ttymask ffe7
i4b: ISDN call control device attached
i4btrc: 2 ISDN trace device(s) attached
i4bctl: ISDN system control port attached
i4brbch: 4 raw B channel access device(s) attached
i4btel: 2 ISDN telephony interface device(s) attached
i4bipr: 2 IP over raw HDLC ISDN device(s) attached (VJ header compression)
i4bisppp: 2 ISDN SyncPPP device(s) attached
boot device: wd0
root on wd0a dumps on wd0b
IP Filter: initialized.  Default = pass all, Logging = disabled
wsdisplay0: screen 1 added (80x25, vt100 emulation)
wsdisplay0: screen 2 added (80x25, vt100 emulation)
wsdisplay0: screen 3 added (80x25, vt100 emulation)
wsdisplay0: screen 4 added (80x25, vt100 emulation)