>Number: 6367
>Category: amd64
>Synopsis: Running fstat on amd64 SMP kernel always results in panic
>Confidential: yes
>Severity: serious
>Priority: medium
>Responsible: bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: sw-bug
>Submitter-Id: unknown
>Arrival-Date: Fri Apr 30 09:50:01 GMT 2010
>Closed-Date:
>Last-Modified:
>Originator:
>Release:
>Organization:
>Environment:
System : OpenBSD 4.7
Details : OpenBSD 4.7-current (GENERIC.MP) #218: Sun Apr 25
02:20:20 MDT 2010
[email protected]:/usr/src/sys/arch/amd64/compile/GENERIC.MP
Architecture: OpenBSD.amd64
Machine : amd64
>Description:
When running fstat, the machine will lock up every time.
>How-To-Repeat:
1. Log into shell
2. run fstat
3. System will lock up or run very slowly
4. I pressed the power button to make it drop into ddb (^C, ^Z don't
work)
>Fix:
Unknown.
dmesg:
OpenBSD 4.7-current (GENERIC.MP) #218: Sun Apr 25 02:20:20 MDT 2010
[email protected]:/usr/src/sys/arch/amd64/compile/GENERIC.MP
real mem = 2146197504 (2046MB)
avail mem = 2075348992 (1979MB)
mainbus0 at root
bios0 at mainbus0: SMBIOS rev. 2.4 @ 0xedaa0 (72 entries)
bios0: vendor Hewlett-Packard version "786D7 v02.06" date 03/09/2009
bios0: Hewlett-Packard HP xw4400 Workstation
acpi0 at bios0: rev 0
acpi0: tables DSDT FACP SSDT APIC ASF! MCFG TCPA SLIC HPET
acpi0: wakeup devices PCI0(S4) PEG1(S4) PCX1(S4) PCX2(S4) PCX5(S4) PCX6(S4)
HUB_(S4) COM1(S4) COM2(S4) USB1(S3) USB2(S3) USB3(S3) USB4(S3) EUSB(S3) PBTN(S4)
acpitimer0 at acpi0: 3579545 Hz, 24 bits
acpimadt0 at acpi0 addr 0xfee00000: PC-AT compat
cpu0 at mainbus0: apid 0 (boot processor)
cpu0: Intel(R) Core(TM)2 CPU 6600 @ 2.40GHz, 2400.45 MHz
cpu0:
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,SBF,SSE3,MWAIT,DS-CPL,VMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,NXE,LONG
cpu0: 4MB 64b/line 16-way L2 cache
cpu0: apic clock running at 266MHz
cpu1 at mainbus0: apid 1 (application processor)
cpu1: Intel(R) Core(TM)2 CPU 6600 @ 2.40GHz, 2400.09 MHz
cpu1:
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,SBF,SSE3,MWAIT,DS-CPL,VMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,NXE,LONG
cpu1: 4MB 64b/line 16-way L2 cache
ioapic0 at mainbus0: apid 1 pa 0xfec00000, version 20, 24 pins
ioapic0: misconfigured as apic 0, remapped to apid 1
acpihpet0 at acpi0: 14318179 Hz
acpiprt0 at acpi0: bus 0 (PCI0)
acpiprt1 at acpi0: bus 1 (PEG1)
acpiprt2 at acpi0: bus 16 (PCX1)
acpiprt3 at acpi0: bus -1 (PCX2)
acpiprt4 at acpi0: bus 40 (PCX5)
acpiprt5 at acpi0: bus 63 (PCX6)
acpiprt6 at acpi0: bus 5 (HUB_)
acpicpu0 at acpi0: PSS
acpicpu1 at acpi0: PSS
acpibtn0 at acpi0: PBTN
cpu0: Enhanced SpeedStep 2400 MHz: speeds: 2400, 1596 MHz
pci0 at mainbus0 bus 0
pchb0 at pci0 dev 0 function 0 "Intel 82975X Host" rev 0x00
ppb0 at pci0 dev 1 function 0 "Intel 82975X PCIE" rev 0x00: apic 1 int 16 (irq
10)
pci1 at ppb0 bus 1
vga1 at pci1 dev 0 function 0 "ATI Radeon X1650 Pro" rev 0x00
wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation)
wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
radeondrm0 at vga1: apic 1 int 16 (irq 10)
drm0 at radeondrm0
"ATI Radeon X1650 Pro Sec" rev 0x00 at pci1 dev 0 function 1 not configured
azalia0 at pci0 dev 27 function 0 "Intel 82801GB HD Audio" rev 0x01: apic 1 int
21 (irq 11)
azalia0: codecs: Realtek ALC262
audio0 at azalia0
ppb1 at pci0 dev 28 function 0 "Intel 82801GB PCIE" rev 0x01
pci2 at ppb1 bus 16
ppb2 at pci0 dev 28 function 4 "Intel 82801G PCIE" rev 0x01: apic 1 int 16 (irq
10)
pci3 at ppb2 bus 40
ppb3 at pci0 dev 28 function 5 "Intel 82801G PCIE" rev 0x01: apic 1 int 17 (irq
10)
pci4 at ppb3 bus 63
bge0 at pci4 dev 0 function 0 "Broadcom BCM5755" rev 0x02, BCM5755 A2 (0xa002):
apic 1 int 17 (irq 10), address 00:1a:4b:c5:41:9b
brgphy0 at bge0 phy 1: BCM5755 10/100/1000baseT PHY, rev. 0
uhci0 at pci0 dev 29 function 0 "Intel 82801GB USB" rev 0x01: apic 1 int 20
(irq 5)
uhci1 at pci0 dev 29 function 1 "Intel 82801GB USB" rev 0x01: apic 1 int 18
(irq 11)
uhci2 at pci0 dev 29 function 2 "Intel 82801GB USB" rev 0x01: apic 1 int 21
(irq 11)
uhci3 at pci0 dev 29 function 3 "Intel 82801GB USB" rev 0x01: apic 1 int 22
(irq 11)
ehci0 at pci0 dev 29 function 7 "Intel 82801GB USB" rev 0x01: apic 1 int 20
(irq 5)
usb0 at ehci0: USB revision 2.0
uhub0 at usb0 "Intel EHCI root hub" rev 2.00/1.00 addr 1
ppb4 at pci0 dev 30 function 0 "Intel 82801BA Hub-to-PCI" rev 0xe1
pci5 at ppb4 bus 5
pcib0 at pci0 dev 31 function 0 "Intel 82801GB LPC" rev 0x01
pciide0 at pci0 dev 31 function 1 "Intel 82801GB IDE" rev 0x01: DMA, channel 0
configured to compatibility, channel 1 configured to compatibility
atapiscsi0 at pciide0 channel 0 drive 1
scsibus0 at atapiscsi0: 2 targets
cd0 at scsibus0 targ 0 lun 0: <HL-DT-ST, DVD+-RW GSA-H21L, W516> ATAPI 5/cdrom
removable
cd0(pciide0:0:1): using PIO mode 4, Ultra-DMA mode 3
pciide0: channel 1 disabled (no drives)
ahci0 at pci0 dev 31 function 2 "Intel 82801GR AHCI" rev 0x01: apic 1 int 19
(irq 5), AHCI 1.1
ahci0: PHY offline on port 1
ahci0: PHY offline on port 2
ahci0: PHY offline on port 3
scsibus1 at ahci0: 32 targets
sd0 at scsibus1 targ 0 lun 0: <ATA, ST3250620AS, 3.AH> SCSI3 0/direct fixed
sd0: 238475MB, 512 bytes/sec, 488397168 sec total
usb1 at uhci0: USB revision 1.0
uhub1 at usb1 "Intel UHCI root hub" rev 1.00/1.00 addr 1
usb2 at uhci1: USB revision 1.0
uhub2 at usb2 "Intel UHCI root hub" rev 1.00/1.00 addr 1
usb3 at uhci2: USB revision 1.0
uhub3 at usb3 "Intel UHCI root hub" rev 1.00/1.00 addr 1
usb4 at uhci3: USB revision 1.0
uhub4 at usb4 "Intel UHCI root hub" rev 1.00/1.00 addr 1
isa0 at pcib0
isadma0 at isa0
com0 at isa0 port 0x3f8/8 irq 4: ns16550a, 16 byte fifo
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
midi0 at pcppi0: <PC speaker>
spkr0 at pcppi0
mtrr: Pentium Pro MTRR support
umass0 at uhub0 port 5 configuration 1 interface 0 "HLDS Inc SuperMulti RW" rev
2.00/1.59 addr 2
umass0: using ATAPI over Bulk-Only
scsibus2 at umass0: 2 targets, initiator 0
cd1 at scsibus2 targ 1 lun 0: <HL-DT-ST, DVDRAM GE20LU10, FE05> ATAPI 5/cdrom
removable
uhidev0 at uhub1 port 1 configuration 1 interface 0 "Logitech Logitech USB
Optical Mouse" rev 2.00/43.00 addr 2
uhidev0: iclass 3/1
ums0 at uhidev0: 3 buttons, Z dir
wsmouse0 at ums0 mux 0
vscsi0 at root
scsibus3 at vscsi0: 256 targets
softraid0 at root
root on sd0a swap on sd0b dump on sd0b
WARNING: / was not properly unmounted
usbdevs:
Controller /dev/usb0:
addr 1: high speed, self powered, config 1, EHCI root hub(0x0000),
Intel(0x8086), rev 1.00
port 1 powered
port 2 powered
port 3 powered
port 4 powered
port 5 addr 2: high speed, self powered, config 1, SuperMulti RW(0x1640), HLDS
Inc(0x152e), rev 1.59, iSerialNumber 00101016400076EC5
port 6 powered
port 7 powered
port 8 powered
Controller /dev/usb1:
addr 1: full speed, self powered, config 1, UHCI root hub(0x0000),
Intel(0x8086), rev 1.00
port 1 addr 2: low speed, power 100 mA, config 1, Logitech USB Optical
Mouse(0xc018), Logitech(0x046d), rev 43.00
port 2 powered
Controller /dev/usb2:
addr 1: full speed, self powered, config 1, UHCI root hub(0x0000),
Intel(0x8086), rev 1.00
port 1 powered
port 2 powered
Controller /dev/usb3:
addr 1: full speed, self powered, config 1, UHCI root hub(0x0000),
Intel(0x8086), rev 1.00
port 1 powered
port 2 powered
Controller /dev/usb4:
addr 1: full speed, self powered, config 1, UHCI root hub(0x0000),
Intel(0x8086), rev 1.00
port 1 powered
port 2 powered
ddb:
panic: tsleep: not SONPROC
Stopped at Debugger+0x5: leave
ddb{0}> trace
Debugger() at Debugger+0x5
panic() at panic+0x122
sleep_setup() at sleep_setup+0x112
rw_enter() at rw_enter+0xd0
exit1() at exit1+0x14d
postsig() at postsig+0x210
syscall() at syscall+0x1ba
--- syscall (number 4) ---
end trace frame: 0x0, count: -7
0x20804ae1a:
ddb{0}> mach ddbcpu 0
Invalid cpu 0
ddb{0}> mach ddbcpu 1
Stopped at Debugger+0x5: leave
ddb{0}> trace
Debugger() at Debugger+0x5
x86_ipi_handler() at x86_ipi_handler+0x63
Xresume_lapic_ipi() at Xresume_lapic_ipi+0x1b
--- interrupt ---
Bad frame pointer: 0xffff8000156bfe80
end trace frame: 0xffff8000156bfe80, count: -3
__mp_lock+0x4f:
ddb{1}>
ps:
ksh was listed as the active program at time of crash, surprisingly, not
fstat.
>Release-Note:
>Audit-Trail:
>Unformatted: