[urtw] Wifi link dying randomly. reboot required to reconnect.

Chuck Burns break19 at gmail.com
Mon Dec 5 13:44:30 UTC 2011


freebeast dumped core - see /var/crash/vmcore.0
Sun Dec  4 14:58:49 CST 2011
FreeBSD freebeast 10.0-CURRENT FreeBSD 10.0-CURRENT #4 r228221: Sat
Dec  3 09:10:37 CST 2011
toor at freebeast:/usr/obj/usr/src/sys/GENERIC  amd64
panic:
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 arewelcome 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:Fatal trap 9: general
protection fault while in kernel modecpuid = 1; apic id =
01instruction pointer     = 0x20:0xffffffff8092f692stack pointer
    = 0x28:0xffffff808fc149c0frame pointer           =
0x28:0xffffff808fc149e0code segment            = base 0x0, limit
0xfffff, type 0x1b                        = DPL 0, pres 1, long 1,
def32 0, gran 1processor eflags        = interrupt enabled, resume,
IOPL = 0current process         = 15 (usbus2)

Fatal trap 9: general protection fault while in kernel modecpuid = 1;
apic id = 01instruction pointer     = 0x20:0xffffffff8092f692
stack pointer           = 0x28:0xffffff808fc149c0
frame pointer           = 0x28:0xffffff808fc149e0
code segment            = base 0x0, limit 0xfffff, type 0x1b
                        = DPL 0, pres 1, long 1, def32 0, gran 1
processor eflags        = interrupt enabled, resume, IOPL = 0
current process         = 15 (usbus2)


Fatal trap 9: general protection fault while in kernel mode
cpuid = 1; apic id = 01
instruction pointer     = 0x20:0xffffffff8092f692
stack pointer           = 0x28:0xffffff808fc149c0
frame pointer           = 0x28:0xffffff808fc149e0
code segment            = base 0x0, limit 0xfffff, type 0x1b
                        = DPL 0, pres 1, long 1, def32 0, gran 1
processor eflags        = interrupt enabled, resume, IOPL = 0
current process         = 15 (usbus2)


Fatal trap 9: general protection fault while in kernel mode
cpuid = 1; apic id = 01
instruction pointer     = 0x20:0xffffffff8092f692
stack pointer           = 0x28:0xffffff808fc149c0
frame pointer           = 0x28:0xffffff808fc149e0
code segment            = base 0x0, limit 0xfffff, type 0x1b
                        = DPL 0, pres 1, long 1, def32 0, gran 1
processor eflags        = interrupt enabled, resume, IOPL = 0
current process         = 15 (usbus2)


Fatal trap 9: general protection fault while in kernel mode
cpuid = 1; apic id = 01
instruction pointer     = 0x20:0xffffffff8092f692
stack pointer           = 0x28:0xffffff808fc149c0
frame pointer           = 0x28:0xffffff808fc149e0
code segment            = base 0x0, limit 0xfffff, type 0x1b
                        = DPL 0, pres 1, long 1, def32 0, gran 1
processor eflags        = interrupt enabled, resume, IOPL = 0
current process         = 15 (usbus2)


Fatal trap 9: general protection fault while in kernel mode
cpuid = 1; apic id = 01
instruction pointer     = 0x20:0xffffffff8092f692
stack pointer           = 0x28:0xffffff808fc149c0
frame pointer           = 0x28:0xffffff808fc149e0
code segment            = base 0x0, limit 0xfffff, type 0x1b
                        = DPL 0, pres 1, long 1, def32 0, gran 1
processor eflags        = interrupt enabled, resume, IOPL = 0
current process         = 15 (usbus2)

Reading symbols from /boot/kernel/vesa.ko...Reading symbols from
/boot/kernel/vesa.ko.symbols...done.
done.
Loaded symbols for /boot/kernel/vesa.ko
Reading symbols from /boot/kernel/zfs.ko...Reading symbols from
/boot/kernel/zfs.ko.symbols...done.
done.
Loaded symbols for /boot/kernel/zfs.ko
Reading symbols from /boot/kernel/opensolaris.ko...Reading symbols
from /boot/kernel/opensolaris.ko.symbols...done.
done.
Loaded symbols for /boot/kernel/opensolaris.ko
Reading symbols from /boot/kernel/amdtemp.ko...Reading symbols from
/boot/kernel/amdtemp.ko.symbols...done.
done.
Loaded symbols for /boot/kernel/amdtemp.ko
Reading symbols from /boot/kernel/linprocfs.ko...Reading symbols from
/boot/kernel/linprocfs.ko.symbols...done.
done.
Loaded symbols for /boot/kernel/linprocfs.ko
Reading symbols from /boot/kernel/linux.ko...Reading symbols from
/boot/kernel/linux.ko.symbols...done.
done.
Loaded symbols for /boot/kernel/linux.ko
Reading symbols from /boot/modules/nvidia.ko...done.
Loaded symbols for /boot/modules/nvidia.ko
#0  doadump (textdump=0) at /usr/src/sys/kern/kern_shutdown.c:261
261             if (textdump && textdump_pending) {
(kgdb) #0  doadump (textdump=0) at /usr/src/sys/kern/kern_shutdown.c:261
#1  0xffffffff802f5ea0 in db_dump (dummy=Variable "dummy" is not available.
)
    at /usr/src/sys/ddb/db_command.c:537
#2  0xffffffff802f5491 in db_command (last_cmdp=0xffffffff81105ae0,
cmd_table=Variable "cmd_table" is not available.

) at /usr/src/sys/ddb/db_command.c:448
#3  0xffffffff802f56e0 in db_command_loop ()
    at /usr/src/sys/ddb/db_command.c:501
#4  0xffffffff802f7849 in db_trap (type=Variable "type" is not available.
) at /usr/src/sys/ddb/db_main.c:229
#5  0xffffffff8086f191 in kdb_trap (type=9, code=0, tf=0xffffff808fc14910)
    at /usr/src/sys/kern/subr_kdb.c:625
#6  0xffffffff80b233fd in trap_fatal (frame=0xffffff808fc14910,
eva=Variable "eva" is not available.
)
    at /usr/src/sys/amd64/amd64/trap.c:814
#7  0xffffffff80b238ac in trap (frame=0xffffff808fc14910)
    at /usr/src/sys/amd64/amd64/trap.c:617
#8  0xffffffff80b0dc0f in calltrap ()
    at /usr/src/sys/amd64/amd64/exception.S:228
#9  0xffffffff8092f692 in node_free (ni=0xffffff8003565000)
    at ieee80211_ratectl.h:84
#10 0xffffffff8071634b in urtw_free_data_list (sc=Variable "sc" is not
available.
)
    at /usr/src/sys/dev/usb/wlan/if_urtw.c:989
#11 0xffffffff8071bf75 in urtw_detach (dev=0xfffffe0005b22a00)
    at /usr/src/sys/dev/usb/wlan/if_urtw.c:957
#12 0xffffffff80868d54 in device_detach (dev=0xfffffe0005b22a00)
    at device_if.h:214
#13 0xffffffff806df6a8 in usb_detach_device (udev=0xfffffe0005b19000,
    iface_index=32 ' ', flag=Variable "flag" is not available.
) at /usr/src/sys/dev/usb/usb_device.c:1062
#14 0xffffffff806dffc4 in usb_unconfigure (udev=0xfffffe0005b19000,
flag=Variable "flag" is not available.
)
    at /usr/src/sys/dev/usb/usb_device.c:455
#15 0xffffffff806e02a6 in usb_free_device (udev=0xfffffe0005b19000,
flag=Variable "flag" is not available.
)
    at /usr/src/sys/dev/usb/usb_device.c:2089
#16 0xffffffff806e86fe in uhub_explore (udev=0xfffffe0005b17000)
    at /usr/src/sys/dev/usb/usb_hub.c:356
#17 0xffffffff806d3a30 in usb_bus_explore (pm=Variable "pm" is not available.
)
    at /usr/src/sys/dev/usb/controller/usb_controller.c:259
#18 0xffffffff806ec2e3 in usb_process (arg=Variable "arg" is not available.
)
    at /usr/src/sys/dev/usb/usb_process.c:174
#19 0xffffffff8080c7b5 in fork_exit (
    callout=0xffffffff806ec220 <usb_process>, arg=0xffffff8000764db0,
    frame=0xffffff808fc14c50) at /usr/src/sys/kern/kern_fork.c:995
#20 0xffffffff80b0e13e in fork_trampoline ()
    at /usr/src/sys/amd64/amd64/exception.S:602
#21 0x0000000000000000 in ?? ()
#22 0x0000000000000000 in ?? ()
#23 0x0000000000000001 in ?? ()
#24 0x0000000000000000 in ?? ()
#25 0x0000000000000000 in ?? ()
#26 0x0000000000000000 in ?? ()
#27 0x0000000000000000 in ?? ()
#28 0x0000000000000000 in ?? ()
#29 0x0000000000000000 in ?? ()
#30 0x0000000000000000 in ?? ()
#31 0x0000000000000000 in ?? ()
#32 0x0000000000000000 in ?? ()
#33 0x0000000000000000 in ?? ()
#34 0x0000000000000000 in ?? ()
#35 0x0000000000000000 in ?? ()
#36 0x0000000000000000 in ?? ()
#37 0x0000000000000000 in ?? ()
#38 0x0000000000000000 in ?? ()
#39 0x0000000000000000 in ?? ()
#40 0x0000000000000000 in ?? ()
#41 0x0000000000000000 in ?? ()
#42 0x0000000000000000 in ?? ()
#43 0x0000000000000000 in ?? ()
#44 0x0000000000000000 in ?? ()
#45 0xffffffff8115ba40 in tdq_cpu ()
#46 0x0000000000000000 in ?? ()
#47 0xffffffff8115ba00 in tdq_cpu ()
#48 0xfffffe00026d18c0 in ?? ()
#49 0xffffff808fc142b0 in ?? ()
#50 0xffffff808fc14258 in ?? ()
#51 0xfffffe0005805460 in ?? ()
#52 0xffffffff80861e9b in sched_switch (td=0xffffff8000764db0,
    newtd=0xffffffff806ec220, flags=Variable "flags" is not available.
) at /usr/src/sys/kern/sched_ule.c:1853
Previous frame inner to this frame (corrupt stack?)
(kgdb)

------------------------------------------------------------------------
ipcs -a

Message Queues:
T           ID          KEY MODE        OWNER    GROUP    CREATOR
CGROUP                 CBYTES                 QNUM
QBYTES        LSPID        LRPID STIME    RTIME    CTIME

Shared Memory:
T           ID          KEY MODE        OWNER    GROUP    CREATOR
CGROUP         NATTCH        SEGSZ         CPID         LPID ATIME
DTIME    CTIME
m       131073            0 --rw------- break19  break19  break19
break19             2       393216        30956         8510  7:32:49
7:45:24  7:32:49

Semaphores:
T           ID          KEY MODE        OWNER    GROUP    CREATOR
CGROUP          NSEMS OTIME    CTIME
s       196608   1953729362 --rw------- break19  break19  break19
break19             1 22:49:26 22:46:45


------------------------------------------------------------------------
ipcs -T

msginfo:
        msgmax:        16384    (max characters in a message)
        msgmni:           40    (# of message queues)
        msgmnb:         2048    (max characters in a message queue)
        msgtql:           40    (max # of messages in system)
        msgssz:            8    (size of a message segment)
        msgseg:         2048    (# of message segments in system)

shminfo:
        shmmax:    536870912    (max shared memory segment size)
        shmmin:            1    (min shared memory segment size)
        shmmni:          192    (max number of shared memory identifiers)
        shmseg:          128    (max shared memory segments per process)
        shmall:       131072    (max amount of shared memory in pages)

seminfo:
        semmni:           50    (# of semaphore identifiers)
        semmns:          340    (# of semaphores in system)
        semmnu:          150    (# of undo structures in system)
        semmsl:          340    (max # of semaphores per id)
        semopm:          100    (max # of operations per semop call)
        semume:           50    (max # of undo entries per process)
        semusz:          632    (size in bytes of undo structure)
        semvmx:        32767    (semaphore maximum value)
        semaem:        16384    (adjust on exit max value)

------------------------------------------------------------------------
Hope that is enough info.


2011/12/5 Andrey V. Elsukov <ae at freebsd.org>:
> On 05.12.2011 9:29, Adrian Chadd wrote:
>> Hi,
>>
>> Can you please just fire up kgdb and get a backtrace from the core?
>
> There should be core.X.txt file, usually it already has a backtrace.
>
> --
> WBR, Andrey V. Elsukov


More information about the freebsd-net mailing list