Date: Thu, 25 Dec 2014 14:33:49 +0200 From: Andriy Gapon <avg@FreeBSD.org> To: Hans Petter Selasky <hps@selasky.org>, freebsd-stable@FreeBSD.org Subject: Re: Help debugging stable/10 Message-ID: <549C042D.3090108@FreeBSD.org> In-Reply-To: <549BD90B.2050000@selasky.org> References: <5488F58D.7060708@ShaneWare.Biz> <201412161129.57704.jhb@freebsd.org> <549BC924.3050402@ShaneWare.Biz> <549BD90B.2050000@selasky.org>
next in thread | previous in thread | raw e-mail | index | archive | help
On 25/12/2014 11:29, Hans Petter Selasky wrote: > The cam_sim_free() is stuck, blocking the rest of that controller from > enumerating. It might look like a non-USB stack issue. > > MAV: Do you have some ideas where to start looking, now we have a dump? Any > refcounts to check in particular? Apparently sim->refcount > 0. Not sure how to check who has the reference(s). >> Thread 254 (Thread 100039): >> #0 sched_switch (td=0xfffff8000669e000, newtd=<value optimized out>, >> flags=<value optimized out>) >> at /usr/src/sys/kern/sched_ule.c:1945 >> #1 0xffffffff809350b1 in mi_switch (flags=260, newtd=0x0) at >> /usr/src/sys/kern/kern_synch.c:493 >> #2 0xffffffff80972a2a in sleepq_wait (wchan=0x0, pri=0) at >> /usr/src/sys/kern/subr_sleepqueue.c:617 >> #3 0xffffffff80934ad7 in _sleep (ident=<value optimized out>, lock=<value >> optimized out>, >> priority=<value optimized out>, wmesg=<value optimized out>, sbt=<value >> optimized out>, pr=<value optimized out>, >> flags=<value optimized out>) at /usr/src/sys/kern/kern_synch.c:255 >> #4 0xffffffff802df838 in cam_sim_free (sim=0xfffff801f5ee8900, free_devq=1) >> at /usr/src/sys/cam/cam_sim.c:109 >> #5 0xffffffff807a5549 in umass_detach (dev=<value optimized out>) at >> /usr/src/sys/dev/usb/storage/umass.c:2139 >> #6 0xffffffff8095d042 in device_detach (dev=0xfffff8018b028900) at >> device_if.h:214 >> #7 0xffffffff807b23b1 in usb_detach_device (udev=0xfffff801ea710000, >> iface_index=<value optimized out>, flag=0 '\0') >> at /usr/src/sys/dev/usb/usb_device.c:1148 >> #8 0xffffffff807b14d6 in usb_unconfigure (udev=0xfffff801ea710000, flag=2 >> '\002') >> at /usr/src/sys/dev/usb/usb_device.c:537 >> #9 0xffffffff807b4466 in usb_free_device (udev=0xfffff801ea710000, >> flag=<value optimized out>) >> at /usr/src/sys/dev/usb/usb_device.c:2175 >> #10 0xffffffff807bda6f in uhub_explore (udev=0xfffff8000d6c4000) at >> /usr/src/sys/dev/usb/usb_hub.c:647 >> #11 0xffffffff807be0d9 in uhub_explore (udev=0xfffff8000d07d000) at >> /usr/src/sys/dev/usb/usb_hub.c:574 >> #12 0xffffffff807a42c0 in usb_bus_explore (pm=<value optimized out>) >> at /usr/src/sys/dev/usb/controller/usb_controller.c:406 >> #13 0xffffffff807c05af in usb_process (arg=0xfffffe0000ac4db0) at >> /usr/src/sys/dev/usb/usb_process.c:177 >> #14 0xffffffff808fc66a in fork_exit (callout=0xffffffff807c0490 <usb_process>, >> arg=0xfffffe0000ac4db0, >> ---Type <return> to continue, or q <return> to quit--- >> frame=0xfffffe0212f7aac0) at /usr/src/sys/kern/kern_fork.c:996 >> #15 0xffffffff80d10eee in fork_trampoline () at >> /usr/src/sys/amd64/amd64/exception.S:611 >> #16 0x0000000000000000 in ?? () > > > _______________________________________________ > freebsd-stable@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-stable > To unsubscribe, send any mail to "freebsd-stable-unsubscribe@freebsd.org" > -- Andriy Gapon
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?549C042D.3090108>