[long] panic on a recent current

From: Thierry Herbelot <thierry_at_herbelot.com>
Date: Tue, 18 May 2004 21:05:04 +0200
on a recent -current, running KDE and simultaneously building the world.

As the machine is quite slow, I post this message "raw" (further in the 
message : a gdb session and the full dmesg)
I'm trying to reproduce the panic.
The kernel config file is the straight "GENERIC".

	TfH

multi-cur# ident /boot/kernel/kernel | grep subr_sleepqueue.c
     $FreeBSD: src/sys/kern/subr_sleepqueue.c,v 1.7 2004/05/14 20:51:42 bde 
Exp $

panic: Assertion TD_ON_SLEEPQ(td) failed 
at /files3/src/sys/kern/subr_sleepqueue.c:782
at line 782 in file /files3/src/sys/kern/subr_sleepqueue.c
cpuid = 0;
Debugger("panic")
Stopped at      Debugger+0x46:  xchgl   %ebx,in_Debugger.0
db> where
Debugger(c07c0b1a) at Debugger+0x46
__panic(c07c378a,30e,c07bff11,c07c38b1,c07c378a) at __panic+0x13d
sleepq_abort(c2c9c6e0,c2d1fa50,c2d1fa50,81,cdd26c3c) at sleepq_abort+0x6d
tdsigwakeup(c2c9c6e0,e,2,c08803a0,0) at tdsigwakeup+0xd2
do_tdsignal(c2c9c6e0,e,0,cdd26c74,c05e6852) at do_tdsignal+0x4ce
tdsignal(c2c9c6e0,e,0,c2d1fa50,e) at tdsignal+0x44
psignal(c2d1fa50,e,c2d1fabc,0,c07c1b89,210) at psignal+0x65
realitexpire(c2d1fa50) at realitexpire+0x29
softclock(0) at softclock+0x176
ithread_loop(c14e5b00,cdd26d48,c14e5b00,c05d40bc,0) at ithread_loop+0x1a4
fork_exit(c05d40bc,c14e5b00,cdd26d48) at fork_exit+0xa8
fork_trampoline() at fork_trampoline+0x8
--- trap 0x1, eip = 0, esp = 0xcdd26d7c, ebp = 0 ---
db>

gdb -k session :

(kgdb) multi-cur# gdb -k kernel.debug /files3/tmp/vmcore.0
GNU gdb 5.2.1 (FreeBSD)
Copyright 2002 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "i386-undermydesk-freebsd"...
panic: Assertion TD_ON_SLEEPQ(td) failed 
at /files3/src/sys/kern/subr_sleepqueue.c:782
panic messages:
---
panic: Assertion TD_ON_SLEEPQ(td) failed 
at /files3/src/sys/kern/subr_sleepqueue.c:782
at line 782 in file /files3/src/sys/kern/subr_sleepqueue.c
cpuid = 0;
Debugger("panic")
panic: from debugger
at line 453 in file /files3/src/sys/ddb/db_command.ccpuid = 0;
boot() called on cpu#0
Uptime: 48m56s
Dumping 256 MB
 16 32 48 64 80 96 112 128 144 160 176 192 208 224 240
---
Reading symbols from /boot/kernel/snd_es137x.ko...done.
Loaded symbols for /boot/kernel/snd_es137x.ko
Reading symbols from /boot/kernel/snd_pcm.ko...done.
Loaded symbols for /boot/kernel/snd_pcm.ko
Reading symbols from /boot/kernel/snd_mss.ko...done.
Loaded symbols for /boot/kernel/snd_mss.ko
Reading symbols from /boot/kernel/joy.ko...done.
Loaded symbols for /boot/kernel/joy.ko
Reading symbols from /boot/kernel/vinum.ko...done.
Loaded symbols for /boot/kernel/vinum.ko
#0  doadump () at /files3/src/sys/kern/kern_shutdown.c:236
236             dumping++;
(kgdb) backtrace
#0  doadump () at /files3/src/sys/kern/kern_shutdown.c:236
#1  0xc05e3f39 in boot (howto=260) at /files3/src/sys/kern/kern_shutdown.c:370
#2  0xc05e427b in __panic () at /files3/src/sys/kern/kern_shutdown.c:548
#3  0xc045d047 in db_panic () at /files3/src/sys/ddb/db_command.c:453
#4  0xc045cfd4 in db_command (last_cmdp=0xc08639c0, cmd_table=0x0,
    aux_cmd_tablep=0xc07e555c, aux_cmd_tablep_end=0xc07e5574)
    at /files3/src/sys/ddb/db_command.c:348
#5  0xc045d0b4 in db_command_loop () at /files3/src/sys/ddb/db_command.c:475
#6  0xc045f849 in db_trap (type=3, code=0) at /files3/src/sys/ddb/db_trap.c:73
#7  0xc07477a9 in kdb_trap (type=3, code=0, regs=0xcdd26b5c)
    at /files3/src/sys/i386/i386/db_interface.c:159
#8  0xc0759d6c in trap (frame=
      {tf_fs = 24, tf_es = 16, tf_ds = 16, tf_edi = -1065615599, tf_esi = 1, 
tf_ebp = -841847904, tf_isp = -841847928, tf_ebx = 0, tf_edx = 0, tf_ecx = 
-1056882688, tf_eax = 18, tf_trapno = 3, tf_err = 0, tf_eip = -1066108306, 
tf_cs = 8, tf_eflags = 134, tf_esp = -841847852, tf_ss = -841847872})
    at /files3/src/sys/i386/i386/trap.c:579
#9  0xc0747a6e in Debugger (msg=0xc07c0b1a "panic") at machine/cpufunc.h:56
#10 0xc05e422d in __panic (
    file=0xc07c378a "/files3/src/sys/kern/subr_sleepqueue.c", line=782,
    fmt=0xc07bff11 "Assertion %s failed at %s:%d")
    at /files3/src/sys/kern/kern_shutdown.c:532
#11 0xc06031d5 in sleepq_abort (td=0xc2c9c6e0)
---Type <return> to continue, or q <return> to quit---
    at /files3/src/sys/kern/subr_sleepqueue.c:783
#12 0xc05e709a in tdsigwakeup (td=0xc2c9c6e0, sig=14, action=0x2)
    at /files3/src/sys/kern/kern_sig.c:1995
#13 0xc05e6e3a in do_tdsignal (td=0xc2c9c6e0, sig=14, target=SIGTARGET_P)
    at /files3/src/sys/kern/kern_sig.c:1881
#14 0xc05e690c in tdsignal (td=0x0, sig=14, target=SIGTARGET_P)
    at /files3/src/sys/kern/kern_sig.c:1651
#15 0xc05e68c1 in psignal (p=0xc2d1fa50, sig=14)
    at /files3/src/sys/kern/kern_sig.c:1637
#16 0xc05f0aa1 in realitexpire (arg=0xc2d1fa50)
    at /files3/src/sys/kern/kern_time.c:529
#17 0xc05f104a in softclock (dummy=0x0)
    at /files3/src/sys/kern/kern_timeout.c:255
#18 0xc05d4260 in ithread_loop (arg=0xc14e5b00)
    at /files3/src/sys/kern/kern_intr.c:574
#19 0xc05d35a8 in fork_exit (callout=0xc05d40bc <ithread_loop>,
    arg=0xc14e5b00, frame=0xcdd26d48) at /files3/src/sys/kern/kern_fork.c:816
(kgdb) up 11
#11 0xc06031d5 in sleepq_abort (td=0xc2c9c6e0)
    at /files3/src/sys/kern/subr_sleepqueue.c:783
783             MPASS(td->td_flags & TDF_SINTR);
(kgdb) list
778     {
779             void *wchan;
780
781             mtx_assert(&sched_lock, MA_OWNED);
782             MPASS(TD_ON_SLEEPQ(td));
783             MPASS(td->td_flags & TDF_SINTR);
784
785             /*
786              * If the TDF_TIMEOUT flag is set, just leave. A
787              * timeout is scheduled anyhow.
(kgdb)


full dmesg :

Copyright (c) 1992-2004 The FreeBSD Project.
Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994
        The Regents of the University of California. All rights reserved.
FreeBSD 5.2-CURRENT #145: Tue May 18 15:36:35 CEST 2004
    thierry.herbelot_at_multi-cur.herbelot.nom:/files3/obj/files3/src/sys/GENERIC
WARNING: WITNESS option enabled, expect reduced performance.
Preloaded elf kernel "/boot/kernel/kernel" at 0xc09d8000.
Preloaded elf module "/boot/kernel/snd_es137x.ko" at 0xc09d81f4.
Preloaded elf module "/boot/kernel/snd_pcm.ko" at 0xc09d82a4.
Preloaded elf module "/boot/kernel/snd_mss.ko" at 0xc09d8350.
Preloaded acpi_dsdt "/boot/DSDT.aml" at 0xc09d83fc.
Preloaded elf module "/boot/kernel/joy.ko" at 0xc09d8440.
MPTable: <OEM00000 PROD00000000>
Timecounter "i8254" frequency 1193182 Hz quality 0
CPU: Pentium II/Pentium II Xeon/Celeron (334.09-MHz 686-class CPU)
  Origin = "GenuineIntel"  Id = 0x665  Stepping = 5
  Features=0x183fbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,MMX,FXSR>
real memory  = 268435456 (256 MB)
avail memory = 253091840 (241 MB)
FreeBSD/SMP: Multiprocessor System Detected: 2 CPUs
 cpu0 (BSP): APIC ID:  0
 cpu1 (AP): APIC ID:  1
ioapic0: Assuming intbase of 0
ioapic0 <Version 1.1> irqs 0-23 on motherboard
random: <entropy source, Software, Yarrow>
Pentium Pro MTRR support enabled
npx0: [FAST]
npx0: <math processor> on motherboard
npx0: INT 16 interface
pcibios: BIOS version 2.10
pcib0: <MPTable Host-PCI bridge> at pcibus 0 on motherboard
pci0: <PCI bus> on pcib0
pcib0: slot 7 INTD routed to irq 19
pcib0: slot 9 INTA routed to irq 19
pcib0: slot 11 INTA routed to irq 18
pcib0: slot 13 INTA routed to irq 17
pcib0: slot 15 INTA routed to irq 16
pcib0: slot 17 INTA routed to irq 19
pcib0: slot 19 INTA routed to irq 18
pcib0: slot 19 INTB routed to irq 18
agp0: <Intel 82443BX (440 BX) host to PCI bridge> mem 0xd8000000-0xdbffffff at 
device 0.0 on pci0
agp0: Reserved 0x4000000 bytes for rid 0x10 type 3 at 0xd8000000
pcib1: <MPTable PCI-PCI bridge> at device 1.0 on pci0
pci1: <PCI bus> on pcib1
pcib1: slot 0 INTA routed to irq 16
pci1: <display, VGA> at device 0.0 (no driver attached)
isab0: <PCI-ISA bridge> at device 7.0 on pci0
isa0: <ISA bus> on isab0
atapci0: <Intel PIIX4 UDMA33 controller> port 
0xf000-0xf00f,0x376,0x170-0x177,0x3f6,0x1f0-0x1f7 at device 7.1 on pci0
atapci0: Reserved 0x10 bytes for rid 0x20 type 4 at 0xf000
atapci0: Reserved 0x8 bytes for rid 0x10 type 4 at 0x1f0
atapci0: Reserved 0x1 bytes for rid 0x14 type 4 at 0x3f6
ata0: at 0x1f0 irq 14 on atapci0
atapci0: Reserved 0x8 bytes for rid 0x18 type 4 at 0x170
atapci0: Reserved 0x1 bytes for rid 0x1c type 4 at 0x376
ata1: at 0x170 irq 15 on atapci0
uhci0: <Intel 82371AB/EB (PIIX4) USB controller> port 0xc000-0xc01f irq 19 at 
device 7.2 on pci0
uhci0: Reserved 0x20 bytes for rid 0x20 type 4 at 0xc000
uhci0: [GIANT-LOCKED]
usb0: <Intel 82371AB/EB (PIIX4) USB controller> on uhci0
usb0: USB revision 1.0
uhub0: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub0: 2 ports with 2 removable, self powered
piix0: <PIIX Timecounter> port 0x5000-0x500f at device 7.3 on pci0
Timecounter "PIIX" frequency 3579545 Hz quality 0
ed0: <NE2000 PCI Ethernet (RealTek 8029)> port 0xc400-0xc41f irq 19 at device 
9.0 on pci0
ed0: Reserved 0x20 bytes for rid 0x10 type 4 at 0xc400
ed0: [GIANT-LOCKED]
ed0: Ethernet address: 00:40:05:65:66:13
type NE2000 (16 bit)
dc0: <82c169 PNIC 10/100BaseTX> port 0xc800-0xc8ff mem 0xdf000000-0xdf0000ff 
irq 18 at device 11.0 on pci0
dc0: Reserved 0x100 bytes for rid 0x10 type 4 at 0xc800
miibus0: <MII bus> on dc0
bmtphy0: <BCM5201 10/100baseTX PHY> on miibus0
bmtphy0:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
dc0: Ethernet address: 00:02:e3:08:63:af
dc0: [GIANT-LOCKED]
pcm0: <AudioPCI ES1373-8> port 0xcc00-0xcc3f irq 17 at device 13.0 on pci0
pcm0: Reserved 0x40 bytes for rid 0x10 type 4 at 0xcc00
pcm0: <Cirrus Logic CS4297A AC97 Codec>
pcm0: [GIANT-LOCKED]
re0: Reserved 0x100 bytes for rid 0x10 type 4 at 0xd000
rl0: <RealTek 8139 10/100BaseTX> port 0xd000-0xd0ff mem 0xdf001000-0xdf0010ff 
irq 16 at device 15.0 on pci0
miibus1: <MII bus> on rl0
rlphy0: <RealTek internal media interface> on miibus1
rlphy0:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
rl0: Ethernet address: 00:40:95:30:38:36
rl0: [GIANT-LOCKED]
pcm1: <AudioPCI ES1370> port 0xd400-0xd43f irq 19 at device 17.0 on pci0
pcm1: Reserved 0x40 bytes for rid 0x10 type 4 at 0xd400
pcm1: [GIANT-LOCKED]
atapci1: <HighPoint HPT366 UDMA66 controller> port 
0xe000-0xe0ff,0xdc00-0xdc03,0xd800-0xd807 irq 18 at device 19.0 on pci0
atapci1: Reserved 0x100 bytes for rid 0x20 type 4 at 0xe000
atapci1: Reserved 0x8 bytes for rid 0x10 type 4 at 0xd800
atapci1: Reserved 0x4 bytes for rid 0x14 type 4 at 0xdc00
ata2: at 0xd800 on atapci1
atapci2: <HighPoint HPT366 UDMA66 controller> port 
0xec00-0xecff,0xe800-0xe803,0xe400-0xe407 irq 18 at device 19.1 on pci0
atapci2: Reserved 0x100 bytes for rid 0x20 type 4 at 0xec00
atapci2: Reserved 0x8 bytes for rid 0x10 type 4 at 0xe400
atapci2: Reserved 0x4 bytes for rid 0x14 type 4 at 0xe800
ata3: at 0xe400 on atapci2
cpu0 on motherboard
cpu1 on motherboard
orm0: <Option ROMs> at iomem 0xef000-0xeffff,0xcc000-0xcd7ff,0xc0000-0xcbfff 
on isa0
pmtimer0 on isa0
atkbdc0: <Keyboard controller (i8042)> at port 0x64,0x60 on isa0
atkbd0: <AT Keyboard> irq 1 on atkbdc0
kbd0 at atkbd0
atkbd0: [GIANT-LOCKED]
psm0: <PS/2 Mouse> irq 12 on atkbdc0
psm0: [GIANT-LOCKED]
psm0: model Generic PS/2 mouse, device ID 0
fdc0: <Enhanced floppy controller (i82077, NE72065 or clone)> at port 
0x3f7,0x3f0-0x3f5 irq 6 drq 2 on isa0
fdc0: FIFO enabled, 8 bytes threshold
ppc0: <Parallel port> at port 0x378-0x37f irq 7 on isa0
ppc0: Generic chipset (NIBBLE-only) in COMPATIBLE mode
ppbus0: <Parallel port bus> on ppc0
plip0: <PLIP network interface> on ppbus0
lpt0: <Printer> on ppbus0
lpt0: Interrupt-driven port
ppi0: <Parallel I/O> on ppbus0
sc0: <System console> at flags 0x100 on isa0
sc0: VGA <16 virtual consoles, flags=0x100>
sio0 at port 0x3f8-0x3ff irq 4 flags 0x10 on isa0
sio0: type 16550A, console
sio1 at port 0x2f8-0x2ff irq 3 on isa0
sio1: type 16550A
vga0: <Generic ISA VGA> at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0
pcm2: <Yamaha OPL-SAx> at port 
0x370-0x371,0x330-0x331,0x388-0x38b,0x530-0x537,0x220-0x22f irq 5 drq 1,0 on 
isa0
pcm2: [GIANT-LOCKED]
joy0: <Generic PnP Joystick> at port 0x201 on isa0
unknown: <PNP0303> can't assign resources (port)
unknown: <PNP0c02> can't assign resources (memory)
unknown: <PNP0a03> can't assign resources (port)
unknown: <PNP0f13> can't assign resources (irq)
unknown: <PNP0501> can't assign resources (port)
unknown: <PNP0700> can't assign resources (port)
unknown: <PNP0400> can't assign resources (port)
unknown: <PNP0501> can't assign resources (port)
Timecounters tick every 1.000 msec
ad0: 6149MB <Maxtor 86480D6> [13328/15/63] at ata0-master UDMA33
ad2: 9671MB <IBM-DTTA-351010> [19650/16/63] at ata1-master UDMA33
ad4: 9671MB <IBM-DTTA-351010> [19650/16/63] at ata2-master UDMA33
acd0: CDROM <NEC CD-ROM DRIVE:28B> at ata3-master PIO4
Received on Tue May 18 2004 - 13:52:03 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:37:54 UTC