Hi

I run OpenBSD 4.3-stable on a soekris net-5501.

Today I was dumping files from a wd0 disk to a mountpoint on sd0 disk (external USB). I "accidently" unplugged the power cable of sd0 disk and my system paniced. I think this should not happen, so here are some more details:

This is my dmesg:
OpenBSD 4.3 (GENERIC) #0: Tue Nov 18 00:09:32 CET 2008
    [EMAIL PROTECTED]:/usr/src/sys/arch/i386/compile/GENERIC
cpu0: Geode(TM) Integrated Processor by AMD PCS ("AuthenticAMD" 586-class) 434 MHz
cpu0: FPU,DE,PSE,TSC,MSR,CX8,SEP,PGE,CMOV,CFLUSH,MMX
real mem  = 268005376 (255MB)
avail mem = 251092992 (239MB)
mainbus0 at root
bios0 at mainbus0: AT/286+ BIOS, date 20/71/05, BIOS32 rev. 0 @ 0xfac40
pcibios0 at bios0: rev 2.0 @ 0xf0000/0x10000
pcibios0: pcibios_get_intr_routing - function not supported
pcibios0: PCI IRQ Routing information unavailable.
pcibios0: PCI bus #0 is the last bus
bios0: ROM list: 0xc8000/0xa800
cpu0 at mainbus0
pci0 at mainbus0 bus 0: configuration mode 1 (bios)
pchb0 at pci0 dev 1 function 0 "AMD Geode LX" rev 0x30
glxsb0 at pci0 dev 1 function 2 "AMD Geode LX Crypto" rev 0x00: RNG AES
vr0 at pci0 dev 6 function 0 "VIA VT6105M RhineIII" rev 0x96: irq 11, address 00:00:24:c9:5e:28 ukphy0 at vr0 phy 1: Generic IEEE 802.3u media interface, rev. 3: OUI 0x004063, model 0x0034 vr1 at pci0 dev 7 function 0 "VIA VT6105M RhineIII" rev 0x96: irq 5, address 00:00:24:c9:5e:29 ukphy1 at vr1 phy 1: Generic IEEE 802.3u media interface, rev. 3: OUI 0x004063, model 0x0034 vr2 at pci0 dev 8 function 0 "VIA VT6105M RhineIII" rev 0x96: irq 9, address 00:00:24:c9:5e:2a ukphy2 at vr2 phy 1: Generic IEEE 802.3u media interface, rev. 3: OUI 0x004063, model 0x0034 vr3 at pci0 dev 9 function 0 "VIA VT6105M RhineIII" rev 0x96: irq 12, address 00:00:24:c9:5e:2b ukphy3 at vr3 phy 1: Generic IEEE 802.3u media interface, rev. 3: OUI 0x004063, model 0x0034 glxpcib0 at pci0 dev 20 function 0 "AMD CS5536 ISA" rev 0x03: rev 0, 32-bit 3579545Hz timer, watchdog, gpio
gpio0 at glxpcib0: 32 pins
pciide0 at pci0 dev 20 function 2 "AMD CS5536 IDE" rev 0x01: DMA, channel 0 wired to compatibility, channel 1 wired to compatibility
wd0 at pciide0 channel 0 drive 0: <WDC WD3200BEVT-00ZCT0>
wd0: 16-sector PIO, LBA48, 305245MB, 625142448 sectors
wd0(pciide0:0:0): using PIO mode 4, Ultra-DMA mode 2
pciide0: channel 1 ignored (disabled)
ohci0 at pci0 dev 21 function 0 "AMD CS5536 USB" rev 0x02: irq 15, version 1.0, legacy support
ehci0 at pci0 dev 21 function 1 "AMD CS5536 USB" rev 0x02: irq 15
usb0 at ehci0: USB revision 2.0
uhub0 at usb0 "AMD EHCI root hub" rev 2.00/1.00 addr 1
isa0 at glxpcib0
isadma0 at isa0
pckbc0 at isa0 port 0x60/5
pckbd0 at pckbc0 (kbd slot)
pckbc0: using irq 1 for kbd slot
wskbd0 at pckbd0: console keyboard
pcppi0 at isa0 port 0x61
midi0 at pcppi0: <PC speaker>
spkr0 at pcppi0
nsclpcsio0 at isa0 port 0x2e/2: NSC PC87366 rev 9: GPIO VLM TMS
gpio1 at nsclpcsio0: 29 pins
npx0 at isa0 port 0xf0/16: reported by CPUID; using exception 16
pccom0 at isa0 port 0x3f8/8 irq 4: ns16550a, 16 byte fifo
pccom0: console
pccom1 at isa0 port 0x2f8/8 irq 3: ns16550a, 16 byte fifo
usb1 at ohci0: USB revision 1.0
uhub1 at usb1 "AMD OHCI root hub" rev 1.00/1.00 addr 1
biomask e5c5 netmask ffe5 ttymask ffe7
mtrr: K6-family MTRR support (2 registers)
softraid0 at root
root on wd0a swap on wd0b dump on wd0b
WARNING: / was not properly unmounted
umass0 at uhub0 port 1 configuration 1 interface 0 "Western Digital External HDD" rev 2.00/1.04 addr 2
umass0: using SCSI over Bulk-Only
scsibus0 at umass0: 2 targets
sd0 at scsibus0 targ 1 lun 0: <WD, 5000AAV External, 1.04> SCSI2 0/direct fixed sd0: 476940MB, 60801 cyl, 255 head, 63 sec, 512 bytes/sec, 976773168 sec total

I attached my serial cable and saw the ddb prompt. I don't know what's above the ddb. But, here's ps and trace.

ddb> ps
   PID   PPID   PGRP    UID  S       FLAGS  WAIT          COMMAND
 13421  20895  14064      0  3        0x80  pipewr        dump
 20048  20895  14064      0  3        0x80  pause         dump
 22908  20895  14064      0  3        0x80  pause         dump
 20895  19284  14064      0  3        0x80  netio         dump
 13095  29623  14064      0  2      0x4000                cat
 19284  29623  14064      0  3      0x4080  wait          dump
 28848  24380  14064      0  3      0x4080  piperd        tee
 29623  24380  14064      0  3        0x80  pause         sh
 13899  32093  15477     25  3     0x44180  piperd        sendmail
 24380  14064  14064      0  3      0x4080  pause         sh
 14064  32093  14064      0  3      0x4080  pause         sh
 32093  15477  15477      0  3        0x80  piperd        cron
 20889   7256   7256     67  3       0x180  netcon        httpd
 14742      1  14742      0  3      0x4082  ttyin         getty
 15477      1  15477      0  3        0x80  select        cron
 26526      1  16890      0  3        0x82  nanosleep     perl
 28111      1  28111      0  3        0x81  select        nmbd
  7325  11156  11156      0  3       0x181  pause         smbd
 11156      1  11156      0  3       0x181  select        smbd
 32124      1  32124      0  3        0x80  select        sshd
 17686   7256   7256     67  3       0x180  netcon        httpd
 27968   7256   7256     67  3       0x180  netcon        httpd
  7216   7256   7256     67  3       0x180  netcon        httpd
 14204   7256   7256     67  3       0x180  netcon        httpd
 11005   7256   7256     67  3       0x180  netcon        httpd
 22759      1  22759      0  3     0x40180  select        sendmail
 27238      1  27238      0  3       0x180  select        inetd
  7256      1   7256     67  3       0x180  select        httpd
 18628      1  18628     77  3       0x180  poll          dhcpd
 22153      1  22153      0  3        0x80  poll          ntpd
  7671      1   7671     83  3       0x180  poll          ntpd
 31071   4159   4159     70  3       0x180  select        named
  4159      1   4159      0  3       0x180  netio         named
 10100  15371  15371     74  3       0x180  bpf           pflogd
 15371      1  15371      0  3        0x80  netio         pflogd
 28057   5556   5556     73  2       0x100                syslogd
  5556      1   5556      0  3        0x88  netio         syslogd
 13545      1  13545     77  3       0x180  poll          dhclient
  5571      1  16890      0  3        0x82  poll          dhclient
    14      0      0      0  3    0x100200  bored         crypto
    13      0      0      0  3    0x100200  aiodoned      aiodoned
    12      0      0      0  3    0x100200  syncer        update
    11      0      0      0  3    0x100200  cleaner       cleaner
    10      0      0      0  3    0x100200  reaper        reaper
     9      0      0      0  3    0x100200  pgdaemon      pagedaemon
     8      0      0      0  3    0x100200  pftm          pfpurge
     7      0      0      0  3    0x100200  usbevt        usb1
     6      0      0      0  3    0x100200  usbtsk        usbtask
*    5      0      0      0  7    0x100200                usb0
     4      0      0      0  3    0x100200  bored         syswq
     3      0      0      0  3    0x100200                idle0
     2      0      0      0  3    0x100200  kmalloc       kmthread
     1      0      1      0  3      0x4080  wait          init
     0     -1      0      0  3     0x80200  scheduler     swapper
ddb> trace
Debugger(d078ac70,50,d82b9d4c,d0809460,d8391000) at Debugger+0x4
panic(d06b2401,d06d8062,d82b9d8c,7b00,d82b9d74) at panic+0x63
pool_do_put(d0809460,d8391000,0,7e0a,d103cc80) at pool_do_put+0x193
pool_put(d0809460,d8391000,d82b9dec,d0494fee,d1026630) at pool_put+0x27
scsi_free_xs(d8391000,1,d82b9e4c,0) at scsi_free_xs+0x3c
scsi_done(d8391000,0,0,d0627a02,0) at scsi_done+0xb3
umass_scsi_cb(d0dff800,d8391000,4000,3,d0dff800) at umass_scsi_cb+0x8a
umass_detach(d0dff800,1,10,d0628037,d0d7db00) at umass_detach+0xfb
config_detach(d0dff800,1,d82b9f0c,d06285b0,d0d7db00) at config_detach+0x228
usb_disconnect_port(d0d91f30,d0d7c600,10) at usb_disconnect_port+0x65
uhub_explore(d0d7db00,d0626744,d82b9f8c,d06267f9,0) at uhub_explore+0x205
usb_discover(d0d7db80,d06267cc,8,246,d61e5560) at usb_discover+0x36
usb_event_thread(d0d7db80) at usb_event_thread+0x91
Bad frame pointer: 0xd092ce78
ddb>

ps: I won't pull out the cable again ;-)

Kind regards,

Tom Van Looy

Reply via email to