>Synopsis:      panic: kernel diagnostic assertion "__mp_lock_held(&sched_lock) 
>== 0" failed
>Category:      kernel
>Environment:
        System      : OpenBSD 5.4
        Details     : OpenBSD 5.4-current (GENERIC.MP) #117: Sun Nov  3 
11:42:47 MST 2013
                         
[email protected]:/usr/src/sys/arch/i386/compile/GENERIC.MP

        Architecture: OpenBSD.i386
        Machine     : i386
>Description:
        I left the machine, with X running and locked (xlock, mode
        lightning).  I came back to find a ddb{0}> prompt.

        I copied the trace information, but there was too much in the ps
        listing to copy (no serial port on this machine, so no serial
        console).  I did copy the one line from ps that began with "*";
        it's after the traces.

        I needed the machine, so rebooted it, but if you need more
        information, let me know and I'll try to get it.

        Recent e-mails have accused apmd of troublemaking; it was running
        with flags "-aC".

        panic message and traces
        ------------------------
        panic: kernel diagnostic assertion "__mp_lock_held(&sched_lock) == 0" 
failed: file "../../../../kern/kern_lock.c", line 126
        Stopped at Debugger+0x4: popl %ebp
        RUN AT LEAST ...
        ddb{0}> trace
        Debugger(d0994d53,f799dd14,d097360c,f799dd14,d056cc5e) at Debugger+0x4
        panic(d097360c,d09309a6,d0970204,d09704c4,7e) at panic+0x67
        __assert(d09309a6,d09704c4,7e,d0970204,d050fd07) at __assert+0x2e
        _kernel_lock(d03bee2e,da509e88,b7000,f799dd8c,d03c27b2) at 
_kernel_lock+0x48
        trap() at trap+0x260
        --- trap (number -639821120) ---
        Bad frame pointer: 0xd9d3b63c
        0:
        ddb{0}> mach ddbcpu 1
        Stopped at Debugger+0x4: popl %ebp
        RUN AT LEAST ...
        ddb{1}> trace
        Debugger(d4784400,d4785538,3f003f,203287,da349ab4) at Debugger+0x4
        i386_ipi_handler(b0,20,0,10,10) at i386_ipi_handler+0x5f
        Xintripi() at Xintripi+0x49
        --- interrupt ---
        __mp_lock(d0b23f44,0,f61bfd58,f61bfd54,da2c498c) at __mp_lock+0x55
        selwakeup(da2c49b4,1,d9c56200,3,da721008) at selwakeup+0x63
        sowakeup(da2c4904,da2c498c,0,0,da3d51e4) at sowakeup+0x2e
        sorwakeup(da2c4904,d9c56200,f61bfdbc,d03c654a,87723000) at 
sorwakeup+0x49
        uipc_usrreq(da2c47e8,9,d9c56200,0,0) at uipc_usrreq+0x4f7
        sosend(da2c47e8,0,f61bfeb0,d9c56200,0) at sosend+0x494
        soo_write(da315e1c,da315e38,f61bfeb0,da750aa0,f4519e82) at 
soo_write+0x3b
        dofilewritev(da721008,10,da315e1c,cfbedf24,1) at dofilewritev+0x133
        sys_writev(da721008,f61bff64,f61bff84,d03bcbe2,d0b1f744) at 
sys_writev+0x7c
        syscall() at syscall+0x11e
        --- syscall (number 1006809184) ---
        0x2:
        ddb{1}> mach ddbcpu 2
        Stopped at Debugger+0x4: popl %ebp
        RUN AT LEAST ...
        ddb{1}> trace
        Debugger(d4784800,f5364f00,d0868861,d4850a80,d4784834) at Debugger+0x4
        i386_ipi_handler(0,20,0,10,10) at i386_ipi_handler+0x5f
        Xintripi() at Xintripi+0x49
        --- interrupt ---
        cpu_idle_mwait_cycle(d03c308a,d0b216a0,d4784800,d4784800,f5364f90) at 
cpu_idle_mwait_cycle+0x58
        cpu_idle_cycle(d4784800) at cpu_idle_cycle+0xc
        Bad frame pointer: 0xd0ca7e58
        ddb{2}> mach ddbcpu 3
        Stopped at Debugger+0x4: popl %ebp
        RUN AT LEAST ...
        ddb{3}> trace
        Debugger(d4784c00,f5366f0c,d0b23f44,287,d4784c34) at Debugger+0x4
        i386_ipi_handler(b0,20,0,10,10) at i386_ipi_handler+0x5f
        Xintripi() at Xintripi+0x49
        --- interrupt ---
        __mp_lock(d0b23f44,d4784c00,d4784c00,f5366f90,d03bcc12) at 
__mp_lock+0x50
        sched_idle(d4784c00) at sched_idle+0x1bd
        Bad frame pointer: 0xd0ca7e58
        ddb{3}> ps
        ...
        *    8      0      0      0      7  0x40100200            idle3
        ...

        ddb{3}> boot dump
        syncing disks...

        *** at this point, it froze completely; I pressed the reset button ***

>How-To-Repeat:
        unknown; it's only happened the once, and I was away from the
        machine at the time
>Fix:
        don't know

dmesg:
OpenBSD 5.4-current (GENERIC.MP) #117: Sun Nov  3 11:42:47 MST 2013
    [email protected]:/usr/src/sys/arch/i386/compile/GENERIC.MP
cpu0: AMD Phenom(tm) II X4 945 Processor ("AuthenticAMD" 686-class, 512KB L2 
cache) 3.02 GHz
cpu0: 
FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,MMX,FXSR,SSE,SSE2,HTT,NXE,MMXX,FFXSR,LONG,3DNOW2,3DNOW,SSE3,MWAIT,CX16,POPCNT,LAHF,CMPLEG,SVM,EAPICSP,AMCR8,ABM,SSE4A,MASSE,3DNOWP,OSVW,IBS,SKINIT,WDT,ITSC
real mem  = 3621179392 (3453MB)
avail mem = 3550154752 (3385MB)
mainbus0 at root
bios0 at mainbus0: AT/286+ BIOS, date 09/17/09, BIOS32 rev. 0 @ 0xfb7d0, SMBIOS 
rev. 2.4 @ 0xf0100 (55 entries)
bios0: vendor Award Software International, Inc. version "F6" date 09/17/2009
bios0: Gigabyte Technology Co., Ltd. GA-MA790GP-UD4H
acpi0 at bios0: rev 0
acpi0: sleep states S0 S3 S4 S5
acpi0: tables DSDT FACP SSDT HPET MCFG TAMG APIC
acpi0: wakeup devices USB0(S3) USB1(S3) USB2(S3) USB3(S3) USB4(S3) USB5(S3) 
USB6(S3) SBAZ(S4) P2P_(S5) PCE2(S4) PCE3(S4) PCE4(S4) PCE5(S4) PCE6(S4) 
PCE7(S4) PCE9(S4) [...]
acpitimer0 at acpi0: 3579545 Hz, 32 bits
acpihpet0 at acpi0: 14318180 Hz
acpimcfg0 at acpi0 addr 0xe0000000, bus 0-255
acpimadt0 at acpi0 addr 0xfee00000: PC-AT compat
cpu0 at mainbus0: apid 0 (boot processor)
cpu0: AMD erratum 721 detected and fixed
cpu0: apic clock running at 200MHz
cpu0: mwait min=64, max=64, C-substates=0.0.0.0.0, IBE
cpu1 at mainbus0: apid 1 (application processor)
cpu1: AMD Phenom(tm) II X4 945 Processor ("AuthenticAMD" 686-class, 512KB L2 
cache) 3.02 GHz
cpu1: 
FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,MMX,FXSR,SSE,SSE2,HTT,NXE,MMXX,FFXSR,LONG,3DNOW2,3DNOW,SSE3,MWAIT,CX16,POPCNT,LAHF,CMPLEG,SVM,EAPICSP,AMCR8,ABM,SSE4A,MASSE,3DNOWP,OSVW,IBS,SKINIT,WDT,ITSC
cpu2 at mainbus0: apid 2 (application processor)
cpu2: AMD Phenom(tm) II X4 945 Processor ("AuthenticAMD" 686-class, 512KB L2 
cache) 3.02 GHz
cpu2: 
FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,MMX,FXSR,SSE,SSE2,HTT,NXE,MMXX,FFXSR,LONG,3DNOW2,3DNOW,SSE3,MWAIT,CX16,POPCNT,LAHF,CMPLEG,SVM,EAPICSP,AMCR8,ABM,SSE4A,MASSE,3DNOWP,OSVW,IBS,SKINIT,WDT,ITSC
cpu3 at mainbus0: apid 3 (application processor)
cpu3: AMD Phenom(tm) II X4 945 Processor ("AuthenticAMD" 686-class, 512KB L2 
cache) 3.02 GHz
cpu3: 
FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,MMX,FXSR,SSE,SSE2,HTT,NXE,MMXX,FFXSR,LONG,3DNOW2,3DNOW,SSE3,MWAIT,CX16,POPCNT,LAHF,CMPLEG,SVM,EAPICSP,AMCR8,ABM,SSE4A,MASSE,3DNOWP,OSVW,IBS,SKINIT,WDT,ITSC
ioapic0 at mainbus0: apid 2 pa 0xfec00000, version 21, 24 pins
ioapic0: misconfigured as apic 0, remapped to apid 2
acpiprt0 at acpi0: bus 0 (PCI0)
acpiprt1 at acpi0: bus 4 (P2P_)
acpiprt2 at acpi0: bus 2 (PCE2)
acpiprt3 at acpi0: bus -1 (PCE3)
acpiprt4 at acpi0: bus -1 (PCE4)
acpiprt5 at acpi0: bus -1 (PCE5)
acpiprt6 at acpi0: bus -1 (PCE6)
acpiprt7 at acpi0: bus -1 (PCE7)
acpiprt8 at acpi0: bus -1 (PCE9)
acpiprt9 at acpi0: bus 3 (PCEA)
acpiprt10 at acpi0: bus -1 (PCEB)
acpiprt11 at acpi0: bus -1 (PCEC)
acpiprt12 at acpi0: bus 1 (AGP_)
acpicpu0 at acpi0: PSS
acpicpu1 at acpi0: PSS
acpicpu2 at acpi0: PSS
acpicpu3 at acpi0: PSS
acpibtn0 at acpi0: PWRB
bios0: ROM list: 0xc0000/0xea00 0xd0000/0x4000 0xd4000/0x5c00 0xda000/0x3600!
cpu0: 3014 MHz: speeds: 3000 2300 1800 800 MHz
pci0 at mainbus0 bus 0: configuration mode 1 (bios)
pchb0 at pci0 dev 0 function 0 "AMD RS780 Host" rev 0x00
ppb0 at pci0 dev 1 function 0 "AMD RS780 PCIE" rev 0x00
pci1 at ppb0 bus 1
radeondrm0 at pci1 dev 5 function 0 "ATI Radeon HD 3300" rev 0x00: apic 2 int 18
drm0 at radeondrm0
azalia0 at pci1 dev 5 function 1 "ATI RS780 HD Audio" rev 0x00: msi
azalia0: no supported codecs
ppb1 at pci0 dev 2 function 0 "AMD RS780 PCIE" rev 0x00: apic 2 int 18
pci2 at ppb1 bus 2
mpi0 at pci2 dev 0 function 0 "Symbios Logic SAS1068E" rev 0x08: msi
scsibus0 at mpi0: 112 targets
sd0 at scsibus0 targ 8 lun 0: <LSILOGIC, Logical Volume, 3000> SCSI2 0/direct 
fixed naa.600508e000000000bf3cb049cfd33e06
sd0: 285148MB, 512 bytes/sector, 583983104 sectors
cd0 at scsibus0 targ 11 lun 0: <HL-DT-ST, DVDRAM GH22LS40, LL01> ATAPI 5/cdrom 
removable
ppb2 at pci0 dev 10 function 0 "AMD RS780 PCIE" rev 0x00: apic 2 int 18
pci3 at ppb2 bus 3
re0 at pci3 dev 0 function 0 "Realtek 8168" rev 0x02: RTL8168C/8111C (0x3c00), 
apic 2 int 18, address 00:24:1d:1e:32:8b
rgephy0 at re0 phy 7: RTL8169S/8110S PHY, rev. 2
ahci0 at pci0 dev 17 function 0 "ATI SBx00 SATA" rev 0x00: apic 2 int 22, AHCI 
1.1
scsibus1 at ahci0: 32 targets
ohci0 at pci0 dev 18 function 0 "ATI SB700 USB" rev 0x00: apic 2 int 16, 
version 1.0, legacy support
ohci1 at pci0 dev 18 function 1 "ATI SB700 USB" rev 0x00: apic 2 int 16, 
version 1.0, legacy support
ehci0 at pci0 dev 18 function 2 "ATI SB700 USB2" rev 0x00: apic 2 int 17
usb0 at ehci0: USB revision 2.0
uhub0 at usb0 "ATI EHCI root hub" rev 2.00/1.00 addr 1
ohci2 at pci0 dev 19 function 0 "ATI SB700 USB" rev 0x00: apic 2 int 18, 
version 1.0, legacy support
ohci3 at pci0 dev 19 function 1 "ATI SB700 USB" rev 0x00: apic 2 int 18, 
version 1.0, legacy support
ehci1 at pci0 dev 19 function 2 "ATI SB700 USB2" rev 0x00: apic 2 int 19
usb1 at ehci1: USB revision 2.0
uhub1 at usb1 "ATI EHCI root hub" rev 2.00/1.00 addr 1
piixpm0 at pci0 dev 20 function 0 "ATI SBx00 SMBus" rev 0x3a: SMI
iic0 at piixpm0
spdmem0 at iic0 addr 0x50: 2GB DDR2 SDRAM non-parity PC2-6400CL5
spdmem1 at iic0 addr 0x51: 2GB DDR2 SDRAM non-parity PC2-6400CL5
pciide0 at pci0 dev 20 function 1 "ATI SB700 IDE" rev 0x00: DMA, channel 0 
configured to compatibility, channel 1 configured to compatibility
azalia1 at pci0 dev 20 function 2 "ATI SBx00 HD Audio" rev 0x00: apic 2 int 16
azalia1: codecs: Realtek ALC885
audio0 at azalia1
pcib0 at pci0 dev 20 function 3 "ATI SB700 ISA" rev 0x00
ppb3 at pci0 dev 20 function 4 "ATI SB600 PCI" rev 0x00
pci4 at ppb3 bus 4
siop0 at pci4 dev 6 function 0 "Symbios Logic 53c1010-33" rev 0x01: apic 2 int 
20, using 8K of on-board RAM
scsibus2 at siop0: 16 targets, initiator 7
sd1 at scsibus2 targ 5 lun 0: <IBM-ESXS, DTN036W3UWDY10FN, S23J> SCSI3 0/direct 
fixed naa.5005076717c29ed1
sd1: 34715MB, 512 bytes/sector, 71096640 sectors
siop1 at pci4 dev 6 function 1 "Symbios Logic 53c1010-33" rev 0x01: apic 2 int 
21, using 8K of on-board RAM
scsibus3 at siop1: 16 targets, initiator 7
cd1 at scsibus3 targ 2 lun 0: <PLEXTOR, CD-R PX-W124TS, 1.07> SCSI2 5/cdrom 
removable
st0 at scsibus3 targ 4 lun 0: <ECRIX, VXA-1, 2959> SCSI2 1/sequential removable 
t10.ECRIX_VXA-1_V22959_0000031180FB
ohci4 at pci0 dev 20 function 5 "ATI SB700 USB" rev 0x00: apic 2 int 18, 
version 1.0, legacy support
pchb1 at pci0 dev 24 function 0 "AMD AMD64 10h HyperTransport" rev 0x00
pchb2 at pci0 dev 24 function 1 "AMD AMD64 10h Address Map" rev 0x00
pchb3 at pci0 dev 24 function 2 "AMD AMD64 10h DRAM Cfg" rev 0x00
km0 at pci0 dev 24 function 3 "AMD AMD64 10h Misc Cfg" rev 0x00
pchb4 at pci0 dev 24 function 4 "AMD AMD64 10h Link Cfg" rev 0x00
usb2 at ohci0: USB revision 1.0
uhub2 at usb2 "ATI OHCI root hub" rev 1.00/1.00 addr 1
usb3 at ohci1: USB revision 1.0
uhub3 at usb3 "ATI OHCI root hub" rev 1.00/1.00 addr 1
usb4 at ohci2: USB revision 1.0
uhub4 at usb4 "ATI OHCI root hub" rev 1.00/1.00 addr 1
usb5 at ohci3: USB revision 1.0
uhub5 at usb5 "ATI OHCI root hub" rev 1.00/1.00 addr 1
isa0 at pcib0
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
pms0 at pckbc0 (aux slot)
pckbc0: using irq 12 for aux slot
wsmouse0 at pms0 mux 0
pcppi0 at isa0 port 0x61
spkr0 at pcppi0
it0 at isa0 port 0x2e/2: IT8718F rev 5, EC port 0x228
npx0 at isa0 port 0xf0/16: reported by CPUID; using exception 16
fdc0 at isa0 port 0x3f0/6 irq 6 drq 2
fd0 at fdc0 drive 0: 1.44MB 80 cyl, 2 head, 18 sec
usb6 at ohci4: USB revision 1.0
uhub6 at usb6 "ATI OHCI root hub" rev 1.00/1.00 addr 1
mtrr: Pentium Pro MTRR support, 8 var ranges, 88 fixed ranges
siop0: target 5 now using tagged DT 16 bit 80.0 MHz 62 REQ/ACK offset xfers
udsbr0 at uhub2 port 2 "GemTek Corp USB FM Radio" rev 1.00/4.10 addr 2
radio0 at udsbr0
vscsi0 at root
scsibus4 at vscsi0: 256 targets
softraid0 at root
scsibus5 at softraid0: 256 targets
root device (default sd1a): sd0a
swap device (default sd0b): 
root on sd0a swap on sd0b dump on sd0b
cpu1: AMD erratum 721 detected and fixed
cpu2: AMD erratum 721 detected and fixed
cpu3: AMD erratum 721 detected and fixed
drm: initializing kernel modesetting (RS780 0x1002:0x9614 0x1458:0xD000).
radeondrm0: VRAM: 128M 0x00000000C0000000 - 0x00000000C7FFFFFF (128M used)
radeondrm0: GTT: 512M 0x00000000A0000000 - 0x00000000BFFFFFFF
ttm_pool_mm_shrink_init stub
drm: PCIE GART of 512M enabled (table at 0x00000000C0040000).
radeondrm0: 1024x768
wsdisplay0 at radeondrm0 mux 1: console (std, vt100 emulation), using wskbd0
wsdisplay0: screen 1-5 added (std, vt100 emulation)

usbdevs:
Controller /dev/usb0:
addr 1: high speed, self powered, config 1, EHCI root hub(0x0000), ATI(0x1002), 
rev 1.00
 port 1 powered
 port 2 powered
 port 3 powered
 port 4 powered
 port 5 powered
 port 6 powered
Controller /dev/usb1:
addr 1: high speed, self powered, config 1, EHCI root hub(0x0000), ATI(0x1002), 
rev 1.00
 port 1 powered
 port 2 powered
 port 3 powered
 port 4 powered
 port 5 powered
 port 6 powered
Controller /dev/usb2:
addr 1: full speed, self powered, config 1, OHCI root hub(0x0000), ATI(0x1002), 
rev 1.00
 port 1 powered
 port 2 addr 2: low speed, power 100 mA, config 1, USB FM Radio(0x1002), GemTek 
Corp(0x04b4), rev 4.10
 port 3 powered
Controller /dev/usb3:
addr 1: full speed, self powered, config 1, OHCI root hub(0x0000), ATI(0x1002), 
rev 1.00
 port 1 powered
 port 2 powered
 port 3 powered
Controller /dev/usb4:
addr 1: full speed, self powered, config 1, OHCI root hub(0x0000), ATI(0x1002), 
rev 1.00
 port 1 powered
 port 2 powered
 port 3 powered
Controller /dev/usb5:
addr 1: full speed, self powered, config 1, OHCI root hub(0x0000), ATI(0x1002), 
rev 1.00
 port 1 powered
 port 2 powered
 port 3 powered
Controller /dev/usb6:
addr 1: full speed, self powered, config 1, OHCI root hub(0x0000), ATI(0x1002), 
rev 1.00
 port 1 powered
 port 2 powered

Reply via email to