Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 26 Apr 2003 13:32:40 +0900
From:      AIDA Shinra <shinra@j10n.org>
To:        freebsd-current@freebsd.org
Subject:   panic: sleeping thread owns a mutex
Message-ID:  <86znmdq3o7.wl@j10n.org>

next in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?86znmdq3o7.wl>