Panic during atactl in daily(8)

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Panic during atactl in daily(8)

Michał Markowski
Recently my 5.2-current machine freezes every time during daily(8)
(either started as cron job or by hand using `sudo sh /etc/daily`).
This is probably related to this commit:
http://marc.info/?l=openbsd-cvs&m=135524582414842&w=2 because running
atactl manually on sd0 have the same effect (see below) and replacing
/etc/daily with old revision (1.74) solves the problem.


$ sysctl -n hw.disknames | grep -Eo '[sw]d[0-9]+'
wd0
sd0
$ sudo atactl wd0
Password:
Model:   512MB  ATA Flash Disk, Rev: ADAA328E, Serial #: B121118779T001176412
Device type: ATA, fixed
Cylinders: 993, heads: 16, sec/track: 63, total sectors: 1000944
Device capabilities:
        IORDY operation
Device supports the following standards:
ATA-1 ATA-2 ATA-3 ATA-4 ATA-5 ATA-6
Device supports the following command sets:
        NOP command
        READ BUFFER command
        WRITE BUFFER command
        Read look-ahead
        Write cache
        Power Management feature set
        Security Mode feature set
        Set Max security extension commands
        Advanced Power Management feature set
        CFA feature set
        DOWNLOAD MICROCODE command
Device has enabled the following command sets/features:
        NOP command
        READ BUFFER command
        WRITE BUFFER command
        Read look-ahead
        Write cache
        Power Management feature set
        Set Max security extension commands
        Advanced Power Management feature set
        CFA feature set
        DOWNLOAD MICROCODE command
$ sudo atactl sd0
Timeout, server not responding.


ddb after running /etc/daily:

panic: ehci_device_clear_toggle: queue active
Stopped at      Debugger+0x4:   popl    %ebp
RUN AT LEAST 'trace' AND 'ps' AND INCLUDE OUTPUT WHEN REPORTING THIS PANIC!
DO NOT EVEN BOTHER REPORTING THIS WITHOUT INCLUDING THAT INFORMATION!
ddb> trace
Debugger(d08fa9bc,f54b3eb8,d08cd3e0,f54b3eb8,35f0f811) at Debugger+0x4
panic(d08cd3e0,f54bbf60,f54b3eec,d07d4f52,d1549800) at panic+0x5d
ehci_device_clear_toggle(d1549800,80,f54b3eec,d035a0e0,d1564d40) at ehci_device
_clear_toggle+0x29
umass_clear_endpoint_stall(d1563800,0,d1564b00,d08cd93a,40) at umass_clear_endp
oint_stall+0x22
usb_transfer_complete(d1564d00,16,d08cd93a,0,f) at usb_transfer_complete+0x22b
ehci_abort_xfer(d1564d00,f,1,1,d1564d6c) at ehci_abort_xfer+0x218
ehci_timeout_task(d1564d00,20,d09b22c7,0,d5cdb744) at ehci_timeout_task+0x2d
usb_abort_task_thread(d5cdb744) at usb_abort_task_thread+0xb1
Bad frame pointer: 0xd0bc6e28
ddb> ps
   PID   PPID   PGRP    UID  S       FLAGS  WAIT          COMMAND
 22305   1665   1665      0  3        0x80  piperd        grep
  1531   1665   1665      0  3        0x80  piperd        sed
  5488   1665   1665      0  3           0  syncxs        atactl
  1665  21848   1665      0  3        0x88  pause         sh
 21848  24755  21848   1000  3        0x88  pause         zsh
 24755  18966  18966   1000  3        0x80  select        sshd
 18966   3896  18966      0  3        0x80  poll          sshd
 26221      1  26221      0  3        0x80  ttyin         getty
 10697      1  10697      0  3        0x80  ttyin         getty
  8392      1   8392      0  3        0x80  ttyin         getty
 17032      1  17032      0  3        0x80  ttyin         getty
 21102      1  21102      0  3        0x80  ttyin         getty
 19810      1  19810      0  3        0x80  select        cron
 16550      1  16550     99  3        0x80  poll          sndiod
 25790      1  25790      0  3        0x80  select        inetd
  3860      1   3860      0  3        0x80  select        sendmail
  3896      1   3896      0  3        0x80  select        sshd
  1587   1508   1508     74  3        0x80  bpf           pflogd
  8743   2978  10981     83  3        0x80  poll          ntpd
  2978  10981  10981     83  3        0x80  poll          ntpd
 10981      1  10981      0  3        0x80  poll          ntpd
  1508      1   1508      0  3        0x80  netio         pflogd
  6356  19043  19043     73  3        0x80  poll          syslogd
 19043      1  19043      0  3        0x80  netio         syslogd
    14      0      0      0  3    0x100200  aiodoned      aiodoned
    13      0      0      0  3    0x100200  syncer        update
    12      0      0      0  3    0x100200  cleaner       cleaner
    11      0      0      0  3    0x100200  reaper        reaper
    10      0      0      0  3    0x100200  pgdaemon      pagedaemon
     9      0      0      0  3    0x100200  bored         crypto
     8      0      0      0  3    0x100200  pftm          pfpurge
     7      0      0      0  3    0x100200  usbtsk        usbtask
*    6      0      0      0  7    0x100200                usbatsk
     5      0      0      0  3    0x100200  apmev         apm0
     4      0      0      0  3    0x100200  bored         syswq
     3      0      0      0  3  0x40100200                idle0
     2      0      0      0  3    0x100200  kmalloc       kmthread
     1      0      1      0  3        0x80  wait          init
     0     -1      0      0  3       0x200  scheduler     swapper


dmesg:

OpenBSD 5.2-current (GENERIC) #13: Sat Jan  5 22:10:50 CET 2013
    [hidden email]:/usr/src/sys/arch/i386/compile/GENERIC
cpu0: AMD Athlon(tm) Processor ("AuthenticAMD" 686-class, 256KB L2
cache) 1.01 GHz
cpu0: FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,MMX,FXSR,SSE,MPC,MMXX,3DNOW2,3DNOW
real mem  = 519565312 (495MB)
avail mem = 500097024 (476MB)
mainbus0 at root
bios0 at mainbus0: AT/286+ BIOS, date 12/14/05, BIOS32 rev. 0 @
0xfa640, SMBIOS rev. 2.3 @ 0xf0800 (34 entries)
bios0: vendor Phoenix Technologies, LTD version "786A1 v1.03" date 12/14/2005
bios0: Hewlett-Packard hp t5000 series
apm0 at bios0: Power Management spec V1.2 (slowidle)
acpi at bios0 function 0x0 not configured
pcibios0 at bios0: rev 2.1 @ 0xf0000/0xdef4
pcibios0: PCI IRQ Routing Table rev 1.0 @ 0xfde70/112 (5 entries)
pcibios0: PCI Exclusive IRQs: 3 5 9 10 11 15
pcibios0: PCI Interrupt Router at 000:02:0 ("SiS 85C503 System" rev 0x00)
pcibios0: PCI bus #1 is the last bus
bios0: ROM list: 0xc0000/0x8000 0xc8000/0x4000!
cpu0 at mainbus0: (uniprocessor)
pci0 at mainbus0 bus 0: configuration mode 1 (bios)
pchb0 at pci0 dev 0 function 0 "SiS 741 PCI" rev 0x03
sisagp0 at pchb0
agp0 at sisagp0: aperture at 0xe8000000, size 0x4000000
ppb0 at pci0 dev 1 function 0 "SiS 648FX AGP" rev 0x00
pci1 at ppb0 bus 1
vga1 at pci1 dev 0 function 0 "SiS 6330 VGA" rev 0x00
wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation)
wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
pcib0 at pci0 dev 2 function 0 "SiS 85C503 System" rev 0x25
pciide0 at pci0 dev 2 function 5 "SiS 5513 EIDE" rev 0x00: 741: DMA,
channel 0 configured to compatibility, channel 1 configured to
compatibility
wd0 at pciide0 channel 0 drive 0: < 512MB ATA Flash Disk>
wd0: 1-sector PIO, LBA, 488MB, 1000944 sectors
wd0(pciide0:0:0): using PIO mode 4, DMA mode 2
pciide0: channel 1 ignored (disabled)
auich0 at pci0 dev 2 function 7 "SiS 7012 AC97" rev 0xa0: irq 10, SiS7012 AC97
ac97: codec id 0x414c4760 (Avance Logic ALC655 rev 0)
audio0 at auich0
ohci0 at pci0 dev 3 function 0 "SiS 5597/5598 USB" rev 0x0f: irq 9,
version 1.0, legacy support
ohci1 at pci0 dev 3 function 1 "SiS 5597/5598 USB" rev 0x0f: irq 3,
version 1.0, legacy support
ehci0 at pci0 dev 3 function 2 "SiS 7002 USB" rev 0x00: irq 5
usb0 at ehci0: USB revision 2.0
uhub0 at usb0 "SiS EHCI root hub" rev 2.00/1.00 addr 1
vr0 at pci0 dev 10 function 0 "VIA RhineII-2" rev 0x8d: irq 15,
address 00:16:35:06:af:eb
ukphy0 at vr0 phy 1: Generic IEEE 802.3u media interface, rev. 13: OUI
0x004063, model 0x0034
isa0 at pcib0
isadma0 at isa0
com0 at isa0 port 0x3f8/8 irq 4: ns16550a, 16 byte fifo
com0: console
pckbc0 at isa0 port 0x60/5
pckbd0 at pckbc0 (kbd slot)
pckbc0: using irq 1 for kbd slot
wskbd0 at pckbd0: console keyboard, using wsdisplay0
pcppi0 at isa0 port 0x61
spkr0 at pcppi0
lpt0 at isa0 port 0x378/4 irq 7
npx0 at isa0 port 0xf0/16: reported by CPUID; using exception 16
usb1 at ohci0: USB revision 1.0
uhub1 at usb1 "SiS OHCI root hub" rev 1.00/1.00 addr 1
usb2 at ohci1: USB revision 1.0
uhub2 at usb2 "SiS OHCI root hub" rev 1.00/1.00 addr 1
mtrr: Pentium Pro MTRR support
umass0 at uhub0 port 4 configuration 1 interface 0 " USB DISK 2.0" rev
2.00/1.00 addr 2
umass0: using SCSI over Bulk-Only
scsibus0 at umass0: 2 targets, initiator 0
sd0 at scsibus0 targ 1 lun 0: <, USB DISK 2.0, PMAP> SCSI0 0/direct
removable serial.13fe3d007B407000039B
sd0: 7385MB, 512 bytes/sector, 15124992 sectors
vscsi0 at root
scsibus1 at vscsi0: 256 targets
softraid0 at root
scsibus2 at softraid0: 256 targets
root on wd0a (2eaa40c00688f325.a) swap on wd0b dump on wd0b

--
Michał Markowski