From owner-freebsd-wireless@FreeBSD.ORG Mon Apr 21 12:15:52 2014 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 039429BF for ; Mon, 21 Apr 2014 12:15:52 +0000 (UTC) Received: from nm7.bullet.mail.bf1.yahoo.com (nm7.bullet.mail.bf1.yahoo.com [98.139.212.166]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id B2FB811BC for ; Mon, 21 Apr 2014 12:15:51 +0000 (UTC) Received: from [98.139.214.32] by nm7.bullet.mail.bf1.yahoo.com with NNFMP; 21 Apr 2014 12:13:19 -0000 Received: from [68.142.230.72] by tm15.bullet.mail.bf1.yahoo.com with NNFMP; 21 Apr 2014 12:13:19 -0000 Received: from [127.0.0.1] by smtp229.mail.bf1.yahoo.com with NNFMP; 21 Apr 2014 12:13:19 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s1024; t=1398082399; bh=32mPkJG0IkyVi4hTfV8gLS0VDZrGfZ+cOfmXoDxr7xU=; h=X-Yahoo-Newman-Id:X-Yahoo-Newman-Property:X-YMail-OSG:X-Yahoo-SMTP:X-Rocket-Received:Message-ID:Date:From:User-Agent:MIME-Version:To:Subject:Content-Type:Content-Transfer-Encoding; b=CpN3Wn3cDX2hOByJJM5sRkmX4iGlxMFNvn50Vz8uqDSI5APFgLchzih9QQM0UeA3w/L1P2uIyxs+y6VotlN/lgUz8sdiRhxMIxhOOItC5l9Td5sSMLcL93BxFHW45mVESIMuWRcnQ1kZiI5aDvzOPg3Q77puuQVs0rVj7SfSoh8= X-Yahoo-Newman-Id: 494133.61853.bm@smtp229.mail.bf1.yahoo.com X-Yahoo-Newman-Property: ymail-3 X-YMail-OSG: 4pLHtW8VM1mIP6FbiaJErJZZFkQuXC_o3t5OH5lDO1L7hJu 0FEg_U.DeiynvFM0dWZG3A4KTwY5u3awL.gwOVVDvo.Htfy9cyz00DyF3zKm 4sfqpL561D7lJCd2V_uBrPfDjlTqKsqErRDjOP3ZZbO_BI11CHLyWVeYdEdo G5ghzuoapI.f9dGzR3ZjmuWBM4O9FxdcLpCa.dQ9Sz62aCgsBlI3x.POPzQf T5.Bx799xGIOoXbR3niNGNKY2sPjogzypq7UrILoKlT2JCWWaN5G7zERIMg0 J6vOCLi75sY4Ok7OindyCdBlJ9wiIdpj8qYBJDed5pBlwMHKqWx.83p4qJg2 Tx8rIzzeCIw2IDZfFa2hPKXo7yQLnm1BYlM.pFNl6dbwRu_XXZYRe8Djt1P_ pY4uGvf7k1SXX5M_Oz35WgwsB2ldTYhkpvILbu2EVpnqjzSvbWGPH8rRlbRv _fDetRnCapGI5M1gqwvHbzI73L0Bx38q1dLB1iHyRkYS9MT12fCEsBp9igkK ThzMWYJoN2cCdA_dgYQ5_ag-- X-Yahoo-SMTP: 9sPoSQ2swBBlERuQ.0vs8XLc_MeClW0- X-Rocket-Received: from [10.0.1.88] (Scoobi_doo@70.90.74.161 with plain [98.138.105.21]) by smtp229.mail.bf1.yahoo.com with SMTP; 21 Apr 2014 12:13:19 +0000 UTC Message-ID: <53550B59.6020103@yahoo.com> Date: Mon, 21 Apr 2014 08:13:13 -0400 From: Anthony Jenkins User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:24.0) Gecko/20100101 Thunderbird/24.4.0 MIME-Version: 1.0 To: freebsd-wireless@freebsd.org Subject: urtwn panic Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-wireless@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: "Discussions of 802.11 stack, tools device driver development." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 21 Apr 2014 12:15:52 -0000 I'm getting a panic with the latest kernel (r264719) and the if_urtwn driver. I have a coredump available to triage. [root@ajenkins-hplaptop /usr/src]# kgdb /usr/obj/usr/src/sys/MYKERNEL/kernel.debug /var/crash/vmcore.last GNU gdb 6.1.1 [FreeBSD] Copyright 2004 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 "amd64-marcel-freebsd"... Unread portion of the kernel message buffer: Sleeping on "fwload" with the following non-sleepable locks held: exclusive sleep mutex urtwn0 (network driver) r = 0 (0xfffffe00175fe348) locked @ /usr/src/sys/dev/usb/usb_request.c:722 KDB: stack backtrace: db_trace_self_wrapper() at db_trace_self_wrapper+0x2b/frame 0xfffffe0447e095e0 kdb_backtrace() at kdb_backtrace+0x39/frame 0xfffffe0447e09690 witness_warn() at witness_warn+0x4b5/frame 0xfffffe0447e09750 _sleep() at _sleep+0x70/frame 0xfffffe0447e097f0 firmware_get() at firmware_get+0x13a/frame 0xfffffe0447e09850 urtwn_init_locked() at urtwn_init_locked+0x18cd/frame 0xfffffe0447e09910 urtwn_ioctl() at urtwn_ioctl+0x12a/frame 0xfffffe0447e09960 taskqueue_run_locked() at taskqueue_run_locked+0xf0/frame 0xfffffe0447e099c0 taskqueue_thread_loop() at taskqueue_thread_loop+0x9b/frame 0xfffffe0447e099f0 fork_exit() at fork_exit+0x84/frame 0xfffffe0447e09a30 fork_trampoline() at fork_trampoline+0xe/frame 0xfffffe0447e09a30 --- trap 0, rip = 0, rsp = 0xfffffe0447e09af0, rbp = 0 --- Sleeping thread (tid 100892, pid 0) owns a non-sleepable lock KDB: stack backtrace of thread 100892: sched_switch() at sched_switch+0x47f/frame 0xfffffe0447e096a0 mi_switch() at mi_switch+0x179/frame 0xfffffe0447e096e0 sleepq_switch() at sleepq_switch+0x152/frame 0xfffffe0447e09720 sleepq_wait() at sleepq_wait+0x43/frame 0xfffffe0447e09750 _sleep() at _sleep+0x366/frame 0xfffffe0447e097f0 firmware_get() at firmware_get+0x13a/frame 0xfffffe0447e09850 urtwn_init_locked() at urtwn_init_locked+0x18cd/frame 0xfffffe0447e09910 urtwn_ioctl() at urtwn_ioctl+0x12a/frame 0xfffffe0447e09960 taskqueue_run_locked() at taskqueue_run_locked+0xf0/frame 0xfffffe0447e099c0 taskqueue_thread_loop() at taskqueue_thread_loop+0x9b/frame 0xfffffe0447e099f0 fork_exit() at fork_exit+0x84/frame 0xfffffe0447e09a30 fork_trampoline() at fork_trampoline+0xe/frame 0xfffffe0447e09a30 --- trap 0, rip = 0, rsp = 0xfffffe0447e09af0, rbp = 0 --- panic: sleeping thread cpuid = 3 KDB: stack backtrace: db_trace_self_wrapper() at db_trace_self_wrapper+0x2b/frame 0xfffffe0447e814b0 kdb_backtrace() at kdb_backtrace+0x39/frame 0xfffffe0447e81560 vpanic() at vpanic+0x124/frame 0xfffffe0447e815a0 panic() at panic+0x43/frame 0xfffffe0447e81600 propagate_priority() at propagate_priority+0x2fd/frame 0xfffffe0447e81640 turnstile_wait() at turnstile_wait+0x34f/frame 0xfffffe0447e81690 __mtx_lock_sleep() at __mtx_lock_sleep+0x1b6/frame 0xfffffe0447e81710 __mtx_lock_flags() at __mtx_lock_flags+0x102/frame 0xfffffe0447e81760 urtwn_ioctl() at urtwn_ioctl+0x41/frame 0xfffffe0447e817b0 ifioctl() at ifioctl+0x8f5/frame 0xfffffe0447e81870 kern_ioctl() at kern_ioctl+0x22b/frame 0xfffffe0447e818d0 sys_ioctl() at sys_ioctl+0x13c/frame 0xfffffe0447e81920 amd64_syscall() at amd64_syscall+0x25a/frame 0xfffffe0447e81a30 Xfast_syscall() at Xfast_syscall+0xfb/frame 0xfffffe0447e81a30 --- syscall (54, FreeBSD ELF64, sys_ioctl), rip = 0x800fa342a, rsp = 0x7fffffffdc88, rbp = 0x7fffffffe500 --- KDB: enter: panic Reading symbols from /boot/kernel/zfs.ko.symbols...done. Loaded symbols for /boot/kernel/zfs.ko.symbols Reading symbols from /boot/kernel/opensolaris.ko.symbols...done. Loaded symbols for /boot/kernel/opensolaris.ko.symbols ... #0 doadump (textdump=0) at pcpu.h:219 219 pcpu.h: No such file or directory. in pcpu.h (kgdb) where #0 doadump (textdump=0) at pcpu.h:219 #1 0xffffffff802fb8ae in db_dump (dummy=, dummy2=0, dummy3=0, dummy4=0x0) at /usr/src/sys/ddb/db_command.c:543 #2 0xffffffff802fb34d in db_command (cmd_table=0x0) at /usr/src/sys/ddb/db_command.c:449 #3 0xffffffff802fb0c4 in db_command_loop () at /usr/src/sys/ddb/db_command.c:502 #4 0xffffffff802fda90 in db_trap (type=, code=0) at /usr/src/sys/ddb/db_main.c:231 #5 0xffffffff80628289 in kdb_trap (type=3, code=0, tf=) at /usr/src/sys/kern/subr_kdb.c:656 #6 0xffffffff808ad8ae in trap (frame=0xfffffe0447e81490) at /usr/src/sys/amd64/amd64/trap.c:573 #7 0xffffffff80892262 in calltrap () at /usr/src/sys/amd64/amd64/exception.S:231 #8 0xffffffff806279ee in kdb_enter (why=0xffffffff809d5a90 "panic", msg=) at cpufunc.h:63 #9 0xffffffff805f0594 in vpanic (fmt=, ap=) at /usr/src/sys/kern/kern_shutdown.c:749 #10 0xffffffff805f0603 in panic (fmt=0xffffffff80d41e50 "\004") at /usr/src/sys/kern/kern_shutdown.c:685 #11 0xffffffff8063ab6d in propagate_priority (td=) at /usr/src/sys/kern/subr_turnstile.c:226 ---Type to continue, or q to quit--- #12 0xffffffff8063b43f in turnstile_wait (ts=0xfffff801253a56c0, owner=, queue=0) at /usr/src/sys/kern/subr_turnstile.c:742 #13 0xffffffff805dbb76 in __mtx_lock_sleep (c=0xfffffe00175fe360, tid=18446735283083894784, opts=, file=, line=) at /usr/src/sys/kern/kern_mutex.c:508 #14 0xffffffff805db912 in __mtx_lock_flags (c=, opts=0, file=0xffffffff81ab33e8 "/usr/src/sys/modules/usb/urtwn/../../../dev/usb/wlan/if_urtwn.c", line=1787) at /usr/src/sys/kern/kern_mutex.c:223 #15 0xffffffff81aa9b51 in urtwn_ioctl (ifp=0xfffff80125a3e800, cmd=3223349575, data=0xfffff80011577780 "urtwn0") at /usr/src/sys/modules/usb/urtwn/../../../dev/usb/wlan/if_urtwn.c:1787 #16 0xffffffff806bad65 in ifioctl (so=0xfffff80192990828, cmd=3223349575, data=0xfffff80011577780 "urtwn0", td=0xfffff80145e16000) at /usr/src/sys/net/if.c:2465 #17 0xffffffff80648c5b in kern_ioctl (td=, fd=, com=) at file.h:323 #18 0xffffffff806489dc in sys_ioctl (td=0xfffff80145e16000, uap=0xfffffe0447e819c0) at /usr/src/sys/kern/sys_generic.c:702 #19 0xffffffff808ae78a in amd64_syscall (td=0xfffff80145e16000, traced=0) at subr_syscall.c:133 #20 0xffffffff8089254b in Xfast_syscall () ---Type to continue, or q to quit--- at /usr/src/sys/amd64/amd64/exception.S:390 #21 0x0000000800fa342a in ?? () Previous frame inner to this frame (corrupt stack?) Current language: auto; currently minimal (kgdb) Anthony Jenkins