From owner-freebsd-hackers@FreeBSD.ORG Thu Aug 3 09:33:38 2006 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5402716A4EA for ; Thu, 3 Aug 2006 09:33:38 +0000 (UTC) (envelope-from freebsd4@fadesa.es) Received: from fuego.fadesa.es (fuego.fadesa.es [195.55.55.9]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4325943D68 for ; Thu, 3 Aug 2006 09:33:32 +0000 (GMT) (envelope-from freebsd4@fadesa.es) Received: (from root@localhost) by fuego.fadesa.es (8.9.3p2/8.8.8) id LAA11723 for ; Thu, 3 Aug 2006 11:28:26 +0200 Received: from tierra.fadesa.es(195.55.55.7) by fuego.fadesa.es Thu, 3 Aug 06 11:28:13 +0200 Received: from [195.55.55.6] (filemon.fadesa.es [195.55.55.6] (may be forged)) by tierra.fadesa.es (8.9.3p2/8.8.8) with ESMTP id LAA11687 for ; Thu, 3 Aug 2006 11:33:03 +0200 Message-ID: <44D1C2CF.1020403@fadesa.es> Date: Thu, 03 Aug 2006 11:33:03 +0200 From: =?UTF-8?B?Ikpvc8OpIE0uIEZhbmRpw7FvIg==?= User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.13) Gecko/20060417 X-Accept-Language: gl, es, en MIME-Version: 1.0 To: freebsd-hackers@freebsd.org References: <44CF7A28.6020704@fadesa.es> <200608011429.42407.jhb@freebsd.org> In-Reply-To: <200608011429.42407.jhb@freebsd.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: quoted-printable X-Logged: Logged by tierra.fadesa.es as LAA11687 at Thu Aug 3 11:33:03 2006 Subject: Re: ural(4) and panic on sleeping thread (6.1-R) X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 03 Aug 2006 09:33:38 -0000 John Baldwin wrote: > In kgdb, do 'proc 783', and then 'where' to get a stack trace of the th= read=20 > that did the wrong thing. (The thread that panics is just an innocent= =20 > victim that bumped into the miscreant.) (kgdb) proc 783 (kgdb) where #0 0xc065f2c7 in sched_switch (td=3D0xc283e900, newtd=3D0xc2535780, flag= s=3D1) at /usr/src/sys/kern/sched_4bsd.c:973 #1 0xc06544e2 in mi_switch (flags=3D1, newtd=3D0x0) at /usr/src/sys/kern/kern_synch.c:336 #2 0xc066c012 in sleepq_switch (wchan=3D0x0) at /usr/src/sys/kern/subr_sleepqueue.c:445 #3 0xc066c102 in sleepq_wait (wchan=3D0xc2cfda00) at /usr/src/sys/kern/subr_sleepqueue.c:525 #4 0xc065422d in msleep (ident=3D0xc2cfda00, mtx=3D0x0, priority=3D76, wmesg=3D0xc08a076d "usbsyn", timo=3D0) at /usr/src/sys/kern/kern_syn= ch.c:209 #5 0xc05ee105 in usbd_transfer (xfer=3D0xc2cfda00) at /usr/src/sys/dev/usb/usbdi.c:344 #6 0xc05ee125 in usbd_sync_transfer (xfer=3D0x0) at /usr/src/sys/dev/usb/usbdi.c:355 #7 0xc05ee901 in usbd_do_request_flags_pipe (dev=3D0xc276cc00, pipe=3D0x= 0, req=3D0xd4bf2a4c, data=3D0xd4bf2a4a, flags=3D0, actlen=3D0x0, timeou= t=3D5000) at /usr/src/sys/dev/usb/usbdi.c:982 #8 0xc05ee8a0 in usbd_do_request_flags (dev=3D0x0, req=3D0xd4bf2a4c, data=3D0xd4bf2a4a, flags=3D0, actlen=3D0x0, timo=3D5000) at /usr/src/sys/dev/usb/usbdi.c:953 #9 0xc05ee87e in usbd_do_request (dev=3D0xc276cc00, req=3D0xd4bf2a4c, data=3D0xd4bf2a4a) at /usr/src/sys/dev/usb/usbdi.c:945 #10 0xc05d7876 in ural_read (sc=3D0xc2768000, reg=3D0) at /usr/src/sys/dev/usb/if_ural.c:1545 #11 0xc05d7a43 in ural_bbp_write (sc=3D0xc2768000, reg=3D22 '\026', val=3D= 8 '\b') at /usr/src/sys/dev/usb/if_ural.c:1619 #12 0xc05d83d5 in ural_bbp_init (sc=3D0xc2768000) at /usr/src/sys/dev/usb/if_ural.c:1998 #13 0xc05d85bd in ural_init (priv=3D0xc2768000) at /usr/src/sys/dev/usb/if_ural.c:2104 #14 0xc05d76ae in ural_ioctl (ifp=3D0xc2796400, cmd=3D2149607696, data=3D0xd4bf2b08 "@1\222=C3=80|-\222=C3=800+=C2=BF=C3=94") at /usr/src/sys/dev/usb/if_ural.c:1470 #15 0xc06b9c54 in if_setflag (ifp=3D0xc2796400, flag=3D0, pflag=3D0, refcount=3D0xc2796444, onswitch=3D0) at /usr/src/sys/net/if.c:1664