Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 21 Apr 2014 08:13:13 -0400
From:      Anthony Jenkins <Scoobi_doo@yahoo.com>
To:        freebsd-wireless@freebsd.org
Subject:   urtwn panic
Message-ID:  <53550B59.6020103@yahoo.com>

next in thread | raw e-mail | index | archive | help
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=<value optimized out>, 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=<value optimized out>, code=0)
     at /usr/src/sys/ddb/db_main.c:231
#5  0xffffffff80628289 in kdb_trap (type=3, code=0, tf=<value optimized 
out>)
     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=<value optimized out>) at cpufunc.h:63
#9  0xffffffff805f0594 in vpanic (fmt=<value optimized out>,
     ap=<value optimized out>) 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=<value optimized out>)
     at /usr/src/sys/kern/subr_turnstile.c:226
---Type <return> to continue, or q <return> to quit---
#12 0xffffffff8063b43f in turnstile_wait (ts=0xfffff801253a56c0,
     owner=<value optimized out>, queue=0)
     at /usr/src/sys/kern/subr_turnstile.c:742
#13 0xffffffff805dbb76 in __mtx_lock_sleep (c=0xfffffe00175fe360,
     tid=18446735283083894784, opts=<value optimized out>,
     file=<value optimized out>, line=<value optimized out>)
     at /usr/src/sys/kern/kern_mutex.c:508
#14 0xffffffff805db912 in __mtx_lock_flags (c=<value optimized out>, 
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=<value optimized out>,
     fd=<value optimized out>, com=<value optimized out>) 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 <return> to continue, or q <return> 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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?53550B59.6020103>