Hi, On 06/13/2013 03:57 PM, Xiaofan Chen wrote: > On Thu, Jun 13, 2013 at 9:20 PM, Toby Gray <toby.g...@realvnc.com> wrote: >> On 13/06/13 14:07, Hans de Goede wrote: >>> Hi, >>> >>> On 06/13/2013 02:41 PM, Xiaofan Chen wrote: >>>> stress test failed with the latest git tree. >>>> 1.0.15 release works fine. >>>> >>>> mcuee@ubuntu1304vm:~/Desktop/build/libusbx$ ./tests/stress >>>> Starting test run: init_and_exit... >>>> Failed to init libusb on iteration 382: -99 >>>> Failure (1) >>>> Starting test run: get_device_list... >>>> Failed to init libusb: -99 >>>> Failure (1) >>>> Starting test run: many_device_lists... >>>> Failed to init libusb: -99 >>>> Failure (1) >>>> Starting test run: default_context_change... >>>> Failed to init libusb: -99 >>>> Failure (1) >>>> --- >>>> Ran 4 tests >>>> Passed 0 tests >>>> Failed 4 tests >>>> Error in 0 tests >>>> Skipped 0 tests >>> Hmm, not good. Can you please do: >>> export LIBUSB_DEBUG=5 >>> >>> And then run the stress test again? >>> >>> It may be useful to redirect the output to a log file, >>> since it will probably generate a lot of output. >> >> You'll also need to run the tests with -v to prevent them from >> redirecting stderr and stdout during tests. >> >> It might make sense for the -v option to set the debug level to 5 >> automatically. > > Thanks for the tips. > > The error seems to be related to udev. > > libusbx: error [linux_udev_start_event_monitor] could not create linux > hotplug event thread > libusbx: error [op_init] error starting hotplug event monitor > Failed to init libusb: -99
Hmm, as Nathan has already pointed out this is caused by pthread_create failing. I think you may be running out of resources and/or hitting a ulimit. This may also be related to the udev fd not being non-blocking issue Chris Dickens reported. I've just pushed 2 patches to master, one to log the error code when pthread_create fails, and a cleaned-up version of Chris' non-blocking patch. Can you please retry with the latest master, and tell us what the error code is (if it still fails) ? Thanks, Hans ------------------------------------------------------------------------------ This SF.net email is sponsored by Windows: Build for Windows Store. http://p.sf.net/sfu/windows-dev2dev _______________________________________________ libusbx-devel mailing list libusbx-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/libusbx-devel