From owner-freebsd-current@FreeBSD.ORG Tue May 18 15:52:03 2004 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id BF93C16A4DA for ; Tue, 18 May 2004 15:52:03 -0700 (PDT) Received: from herbelot.dyndns.org (herbelot.net1.nerim.net [62.212.117.213]) by mx1.FreeBSD.org (Postfix) with ESMTP id 49E92440DC for ; Tue, 18 May 2004 13:42:21 -0700 (PDT) (envelope-from thierry@herbelot.com) Received: from [192.168.2.6] (diversion.herbelot.nom [192.168.2.6]) by herbelot.dyndns.org (8.12.11/8.12.10) with ESMTP id i4IIn9BA014344 for ; Tue, 18 May 2004 20:49:09 +0200 (CEST) From: Thierry Herbelot To: current ML Date: Tue, 18 May 2004 21:05:04 +0200 User-Agent: KMail/1.6.2 X-Warning: Windows can lose your files X-Op-Sys: Le FriBi de la mort qui tue X-Org: TfH&Co X-MailScanner: Found to be clean MIME-Version: 1.0 Content-Disposition: inline Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Message-Id: <200405182105.04275.thierry@herbelot.com> Subject: [long] panic on a recent current X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: thierry@herbelot.com List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 18 May 2004 22:52:04 -0000 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 to continue, or q 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 , 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@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: 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 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 irqs 0-23 on motherboard random: Pentium Pro MTRR support enabled npx0: [FAST] npx0: on motherboard npx0: INT 16 interface pcibios: BIOS version 2.10 pcib0: at pcibus 0 on motherboard pci0: 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: mem 0xd8000000-0xdbffffff at device 0.0 on pci0 agp0: Reserved 0x4000000 bytes for rid 0x10 type 3 at 0xd8000000 pcib1: at device 1.0 on pci0 pci1: on pcib1 pcib1: slot 0 INTA routed to irq 16 pci1: at device 0.0 (no driver attached) isab0: at device 7.0 on pci0 isa0: on isab0 atapci0: 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: 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: 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: port 0x5000-0x500f at device 7.3 on pci0 Timecounter "PIIX" frequency 3579545 Hz quality 0 ed0: 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: on dc0 bmtphy0: on miibus0 bmtphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto dc0: Ethernet address: 00:02:e3:08:63:af dc0: [GIANT-LOCKED] pcm0: port 0xcc00-0xcc3f irq 17 at device 13.0 on pci0 pcm0: Reserved 0x40 bytes for rid 0x10 type 4 at 0xcc00 pcm0: pcm0: [GIANT-LOCKED] re0: Reserved 0x100 bytes for rid 0x10 type 4 at 0xd000 rl0: port 0xd000-0xd0ff mem 0xdf001000-0xdf0010ff irq 16 at device 15.0 on pci0 miibus1: on rl0 rlphy0: on miibus1 rlphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto rl0: Ethernet address: 00:40:95:30:38:36 rl0: [GIANT-LOCKED] pcm1: 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: 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: 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: