Summary: | [libusb] [panic] USB hub attachment panics kernel during libusb device scan | ||
---|---|---|---|
Product: | Base System | Reporter: | Victor Liu <victor.liu> |
Component: | usb | Assignee: | freebsd-usb (Nobody) <usb> |
Status: | Open --- | ||
Severity: | Affects Only Me | CC: | Alexander88207, mohammad |
Priority: | Normal | Keywords: | crash |
Version: | 5.4-RELEASE | ||
Hardware: | Any | ||
OS: | Any |
Description
Victor Liu
2007-07-05 04:00:09 UTC
Would you happen to know if this happens on FreeBSD -current? Warner Thanks for the update Victor. I can't get it to happen in current. Maybe I'm doing something differently than you. Do you have an easy recipe for causing the panic? Warner Here is the code I just used to panic it just now (requires libusb): /////////// usbtest.c: #include "/usr/local/include/usb.h" int main(int argc, char **argv){ while(1){ usb_init (); usb_find_busses (); usb_find_devices (); } return 0; } //////////// Makefile: CC=gcc LD=ld CFLAGS = -g -c -Wall all: usbtest.o $(CC) -o usbtest usbtest.o /usr/local/lib/libusb.a clean: rm -f usbtest usbtest.tgz *.o *~ It took me about 15 plug-in/unplug cycles to get it to crash (sometimes as many as 30 during previous testing when I'm unlucky). There's about a 200ms window during which the panic will occur, and it's hard to say exactly when that is. You can probably add a printf to given an indication of where in the loop you're plugging in the hub, so you can change the timing around a bit. -victor For bugs matching the following criteria: Status: In Progress Changed: (is less than) 2014-06-01 Reset to default assignee and clear in-progress tags. Mail being skipped Keyword: crash – in lieu of summary line prefix: [panic] * bulk change for the keyword * summary lines may be edited manually (not in bulk). Keyword descriptions and search interface: <https://bugs.freebsd.org/bugzilla/describekeywords.cgi> Keyword: patch or patch-ready – in lieu of summary line prefix: [patch] * bulk change for the keyword * summary lines may be edited manually (not in bulk). Keyword descriptions and search interface: <https://bugs.freebsd.org/bugzilla/describekeywords.cgi> |