From owner-freebsd-current@FreeBSD.ORG Fri Apr 25 21:32:46 2003 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 30F7A37B401 for ; Fri, 25 Apr 2003 21:32:46 -0700 (PDT) Received: from mx.j10n.org (203.141.155.228.user.ca.il24.net [203.141.155.228]) by mx1.FreeBSD.org (Postfix) with ESMTP id D388B43FBF for ; Fri, 25 Apr 2003 21:32:44 -0700 (PDT) (envelope-from shinra@j10n.org) Received: from e-note.j10n.org (e-note.j10n.org [IPv6:2002:cb8d:9be4:1::1]) by mx.j10n.org (8.12.8p1/8.12.8) with ESMTP id h3Q4Wgwm036138 for ; Sat, 26 Apr 2003 13:32:42 +0900 (JST) (envelope-from shinra@j10n.org) Received: from e-note.j10n.org (localhost [IPv6:::1]) by e-note.j10n.org (8.12.9/8.12.9) with ESMTP id h3Q4WfKA000807 for ; Sat, 26 Apr 2003 13:32:41 +0900 (JST) (envelope-from shinra@j10n.org) Date: Sat, 26 Apr 2003 13:32:40 +0900 Message-ID: <86znmdq3o7.wl@j10n.org> From: AIDA Shinra To: freebsd-current@freebsd.org User-Agent: Wanderlust/2.10.0 (Venus) SEMI/1.14.5 (Awara-Onsen) FLIM/1.14.3 (=?ISO-8859-4?Q?Unebigory=F2mae?=) APEL/10.4 MULE XEmacs/21.4 (patch 10) (Military Intelligence) (i386-unknown-freebsd4.7) MIME-Version: 1.0 (generated by SEMI 1.14.5 - "Awara-Onsen") Content-Type: text/plain; charset=US-ASCII Subject: panic: sleeping thread owns a mutex X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 26 Apr 2003 04:32:46 -0000 My kernel always panics when I remove my wi pccard (WLI-PCM-S11). I am using OLDCARD and enabling hw.pcic.intr_path=1. With NEWCARD no cards work. I reported this bug 2 weeks ago but even today's kernel panics in exactly the same way. Anyone experiencing the same problem? Or just my misconfiguration? wi0: wi_cmd: busy bit won't clear. wi0: timeout in wi_seek to fc80/0 wi0: timeout in wi_seek to fc80/0 wi0: timeout in wi_seek to fc80/0 Sleeping on "itrmh" with the following non-sleepablelocks held: exclusive sleep mutex wi0 (network driver) r = 0 (0xc178a638) locked @ /usr/freebsd/src/sys/dev/wi/if_wi.c:1029 panic: sleeping thread owns a mutex syncing disks, buffers remaining... 1322 1322 panic: mi_switch: switch in a critical section Uptime: 4m8s Dumping 119 MB ata0: resetting devices .. done 16 32 48 64 80 96 112 --- Reading symbols from /boot/kernel/snd_pcm.ko...done. Loaded symbols for /boot/kernel/snd_pcm.ko Reading symbols from /boot/kernel/snd_via82c686.ko...done. Loaded symbols for /boot/kernel/snd_via82c686.ko Reading symbols from /usr/obj/usr/freebsd/src/sys/LOCAL/modules/usr/freebsd/src/sys/modules/apm/apm.ko.debug...done. Loaded symbols for /usr/obj/usr/freebsd/src/sys/LOCAL/modules/usr/freebsd/src/sys/modules/apm/apm.ko.debug Reading symbols from /usr/obj/usr/freebsd/src/sys/LOCAL/modules/usr/freebsd/src/sys/modules/ipfw/ipfw.ko.debug... done. Loaded symbols for /usr/obj/usr/freebsd/src/sys/LOCAL/modules/usr/freebsd/src/sys/modules/ipfw/ipfw.ko.debug Reading symbols from /boot/kernel/logo_saver.ko...done. Loaded symbols for /boot/kernel/logo_saver.ko Reading symbols from /usr/obj/usr/freebsd/src/sys/LOCAL/modules/usr/freebsd/src/sys/modules/linux/linux.ko.debug... done. Loaded symbols for /usr/obj/usr/freebsd/src/sys/LOCAL/modules/usr/freebsd/src/sys/modules/linux/linux.ko.debug Reading symbols from /boot/kernel/if_wi.ko.debug...done. Loaded symbols for /boot/kernel/if_wi.ko.debug Reading symbols from /usr/obj/usr/freebsd/src/sys/LOCAL/modules/usr/freebsd/src/sys/modules/wlan/wlan.ko.debug... done. Loaded symbols for /usr/obj/usr/freebsd/src/sys/LOCAL/modules/usr/freebsd/src/sys/modules/wlan/wlan.ko.debug Reading symbols from /usr/obj/usr/freebsd/src/sys/LOCAL/modules/usr/freebsd/src/sys/modules/rc4/rc4.ko.debug...done. Loaded symbols for /usr/obj/usr/freebsd/src/sys/LOCAL/modules/usr/freebsd/src/sys/modules/rc4/rc4.ko.debug #0 doadump () at /usr/freebsd/src/sys/kern/kern_shutdown.c:238 238 dumping++; (kgdb) bt #0 doadump () at /usr/freebsd/src/sys/kern/kern_shutdown.c:238 #1 0xc01f6f43 in boot (howto=260) at /usr/freebsd/src/sys/kern/kern_shutdown.c:370 #2 0xc01f728b in panic () at /usr/freebsd/src/sys/kern/kern_shutdown.c:543 #3 0xc01fdf61 in mi_switch () at /usr/freebsd/src/sys/kern/kern_synch.c:477 #4 0xc01f6c2a in boot (howto=256) at /usr/freebsd/src/sys/kern/kern_shutdown.c:310 #5 0xc01f728b in panic () at /usr/freebsd/src/sys/kern/kern_shutdown.c:543 #6 0xc01ed3cb in propagate_priority (td=0x0) at /usr/freebsd/src/sys/kern/kern_mutex.c:138 #7 0xc01edb59 in _mtx_lock_sleep (m=0xc178a638, opts=0, file=0xc18a58bc "/usr/freebsd/src/sys/dev/wi/if_wi.c", line=563) at /usr/freebsd/src/sys/kern/kern_mutex.c:626 #8 0xc01ed5f7 in _mtx_lock_flags (m=0xc178a638, opts=0, file=0xc18a58bc "/usr/freebsd/src/sys/dev/wi/if_wi.c", line=563) at /usr/freebsd/src/sys/kern/kern_mutex.c:329 #9 0xc188dfa4 in wi_intr (arg=0xc178a000) at /usr/freebsd/src/sys/dev/wi/if_wi.c:563 #10 0xc01e3852 in ithread_loop (arg=0xc18d3480) at /usr/freebsd/src/sys/kern/kern_intr.c:537 #11 0xc01e2840 in fork_exit (callout=0xc18cea80, arg=0x0, frame=0x0) at /usr/freebsd/src/sys/kern/kern_fork.c:795 (kgdb) up 9 #9 0xc188dfa4 in wi_intr (arg=0xc178a000) at /usr/freebsd/src/sys/dev/wi/if_wi.c:563 563 WI_LOCK(sc); (kgdb) list 558 struct wi_softc *sc = arg; 559 struct ifnet *ifp = &sc->sc_ic.ic_if; 560 u_int16_t status; 561 WI_LOCK_DECL(); 562 563 WI_LOCK(sc); 564 565 if (sc->wi_gone || (ifp->if_flags & IFF_UP) == 0) { 566 CSR_WRITE_2(sc, WI_INT_EN, 0); 567 CSR_WRITE_2(sc, WI_EVENT_ACK, ~0); (kgdb) q