From owner-freebsd-net@FreeBSD.ORG Mon Dec 5 13:44:29 2011 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id F0799106566C for ; Mon, 5 Dec 2011 13:44:29 +0000 (UTC) (envelope-from break19@gmail.com) Received: from mail-qy0-f182.google.com (mail-qy0-f182.google.com [209.85.216.182]) by mx1.freebsd.org (Postfix) with ESMTP id A7DC78FC08 for ; Mon, 5 Dec 2011 13:44:29 +0000 (UTC) Received: by qcse13 with SMTP id e13so2093547qcs.13 for ; Mon, 05 Dec 2011 05:44:29 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; bh=XT4ZhU7zC3xE/64qbFLHYog7oThxGi7VavO/pgoCeW8=; b=MQ8eapXeNxjOjaDL3QS7RzjnxIrC/B8Ju42Tys35UxCPC9egNWw+tOlW2ZSQro10Yv +kx5/b22TeGyOasa5ptRjpjb0Ngbn6CF/XbxvE217S/NAEAVcF+loktODuY42qdyIkUo cTFPOcTyFjPaE8en4fpmpYYxxHzfOUmFPCRtc= MIME-Version: 1.0 Received: by 10.229.38.203 with SMTP id c11mr1955516qce.233.1323092668850; Mon, 05 Dec 2011 05:44:28 -0800 (PST) Received: by 10.229.24.143 with HTTP; Mon, 5 Dec 2011 05:44:28 -0800 (PST) In-Reply-To: <4EDCA970.4050109@FreeBSD.org> References: <201110042008.48915.break19@gmail.com> <201110071816.17335.break19@gmail.com> <201110071936.50071.break19@gmail.com> <1322792905.1975.3.camel@esl.kevlo.org> <4ED846C1.5040109@gmail.com> <4EDC32F5.3020205@gmail.com> <4EDCA970.4050109@FreeBSD.org> Date: Mon, 5 Dec 2011 07:44:28 -0600 Message-ID: From: Chuck Burns To: "Andrey V. Elsukov" Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: freebsd-net@freebsd.org, Adrian Chadd Subject: Re: [urtw] Wifi link dying randomly. reboot required to reconnect. X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 05 Dec 2011 13:44:30 -0000 freebeast dumped core - see /var/crash/vmcore.0 Sun Dec =A04 14:58:49 CST 2011 FreeBSD freebeast 10.0-CURRENT FreeBSD 10.0-CURRENT #4 r228221: Sat Dec =A03 09:10:37 CST 2011 toor@freebeast:/usr/obj/usr/src/sys/GENERIC =A0amd64 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. =A0Type "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 =3D 1; apic id =3D 01instruction pointer =A0 =A0 =3D 0x20:0xffffffff8092f692stack pointer =A0 =A0 =3D 0x28:0xffffff808fc149c0frame pointer =A0 =A0 =A0 =A0 =A0 =3D 0x28:0xffffff808fc149e0code segment =A0 =A0 =A0 =A0 =A0 =A0=3D base 0x0, li= mit 0xfffff, type 0x1b=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =3D DPL 0= , pres 1, long 1, def32 0, gran 1processor eflags =A0 =A0 =A0 =A0=3D interrupt enabled, resum= e, IOPL =3D 0current process =A0 =A0 =A0 =A0 =3D 15 (usbus2) Fatal trap 9: general protection fault while in kernel modecpuid =3D 1; apic id =3D 01instruction pointer =3D 0x20:0xffffffff8092f692 stack pointer =3D 0x28:0xffffff808fc149c0 frame pointer =3D 0x28:0xffffff808fc149e0 code segment =3D base 0x0, limit 0xfffff, type 0x1b =3D DPL 0, pres 1, long 1, def32 0, gran 1 processor eflags =3D interrupt enabled, resume, IOPL =3D 0 current process =3D 15 (usbus2) Fatal trap 9: general protection fault while in kernel mode cpuid =3D 1; apic id =3D 01 instruction pointer =3D 0x20:0xffffffff8092f692 stack pointer =3D 0x28:0xffffff808fc149c0 frame pointer =3D 0x28:0xffffff808fc149e0 code segment =3D base 0x0, limit 0xfffff, type 0x1b =3D DPL 0, pres 1, long 1, def32 0, gran 1 processor eflags =3D interrupt enabled, resume, IOPL =3D 0 current process =3D 15 (usbus2) Fatal trap 9: general protection fault while in kernel mode cpuid =3D 1; apic id =3D 01 instruction pointer =3D 0x20:0xffffffff8092f692 stack pointer =3D 0x28:0xffffff808fc149c0 frame pointer =3D 0x28:0xffffff808fc149e0 code segment =3D base 0x0, limit 0xfffff, type 0x1b =3D DPL 0, pres 1, long 1, def32 0, gran 1 processor eflags =3D interrupt enabled, resume, IOPL =3D 0 current process =3D 15 (usbus2) Fatal trap 9: general protection fault while in kernel mode cpuid =3D 1; apic id =3D 01 instruction pointer =3D 0x20:0xffffffff8092f692 stack pointer =3D 0x28:0xffffff808fc149c0 frame pointer =3D 0x28:0xffffff808fc149e0 code segment =3D base 0x0, limit 0xfffff, type 0x1b =3D DPL 0, pres 1, long 1, def32 0, gran 1 processor eflags =3D interrupt enabled, resume, IOPL =3D 0 current process =3D 15 (usbus2) Fatal trap 9: general protection fault while in kernel mode cpuid =3D 1; apic id =3D 01 instruction pointer =3D 0x20:0xffffffff8092f692 stack pointer =3D 0x28:0xffffff808fc149c0 frame pointer =3D 0x28:0xffffff808fc149e0 code segment =3D base 0x0, limit 0xfffff, type 0x1b =3D DPL 0, pres 1, long 1, def32 0, gran 1 processor eflags =3D interrupt enabled, resume, IOPL =3D 0 current process =3D 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=3D0) at /usr/src/sys/kern/kern_shutdown.c:261 261 if (textdump && textdump_pending) { (kgdb) #0 doadump (textdump=3D0) at /usr/src/sys/kern/kern_shutdown.c:261 #1 0xffffffff802f5ea0 in db_dump (dummy=3DVariable "dummy" is not availabl= e. ) at /usr/src/sys/ddb/db_command.c:537 #2 0xffffffff802f5491 in db_command (last_cmdp=3D0xffffffff81105ae0, cmd_table=3DVariable "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=3DVariable "type" is not available. ) at /usr/src/sys/ddb/db_main.c:229 #5 0xffffffff8086f191 in kdb_trap (type=3D9, code=3D0, tf=3D0xffffff808fc1= 4910) at /usr/src/sys/kern/subr_kdb.c:625 #6 0xffffffff80b233fd in trap_fatal (frame=3D0xffffff808fc14910, eva=3DVariable "eva" is not available. ) at /usr/src/sys/amd64/amd64/trap.c:814 #7 0xffffffff80b238ac in trap (frame=3D0xffffff808fc14910) 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=3D0xffffff8003565000) at ieee80211_ratectl.h:84 #10 0xffffffff8071634b in urtw_free_data_list (sc=3DVariable "sc" is not available. ) at /usr/src/sys/dev/usb/wlan/if_urtw.c:989 #11 0xffffffff8071bf75 in urtw_detach (dev=3D0xfffffe0005b22a00) at /usr/src/sys/dev/usb/wlan/if_urtw.c:957 #12 0xffffffff80868d54 in device_detach (dev=3D0xfffffe0005b22a00) at device_if.h:214 #13 0xffffffff806df6a8 in usb_detach_device (udev=3D0xfffffe0005b19000, iface_index=3D32 ' ', flag=3DVariable "flag" is not available. ) at /usr/src/sys/dev/usb/usb_device.c:1062 #14 0xffffffff806dffc4 in usb_unconfigure (udev=3D0xfffffe0005b19000, flag=3DVariable "flag" is not available. ) at /usr/src/sys/dev/usb/usb_device.c:455 #15 0xffffffff806e02a6 in usb_free_device (udev=3D0xfffffe0005b19000, flag=3DVariable "flag" is not available. ) at /usr/src/sys/dev/usb/usb_device.c:2089 #16 0xffffffff806e86fe in uhub_explore (udev=3D0xfffffe0005b17000) at /usr/src/sys/dev/usb/usb_hub.c:356 #17 0xffffffff806d3a30 in usb_bus_explore (pm=3DVariable "pm" is not availa= ble. ) at /usr/src/sys/dev/usb/controller/usb_controller.c:259 #18 0xffffffff806ec2e3 in usb_process (arg=3DVariable "arg" is not availabl= e. ) at /usr/src/sys/dev/usb/usb_process.c:174 #19 0xffffffff8080c7b5 in fork_exit ( callout=3D0xffffffff806ec220 , arg=3D0xffffff8000764db0, frame=3D0xffffff808fc14c50) 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=3D0xffffff8000764db0, newtd=3D0xffffffff806ec220, flags=3DVariable "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 : > 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