Re: [Libusbx-devel] stress program crashes in libusb_exit(NULL);

2012-11-27 Thread Ludovic Rousseau
2012/11/26 Toby Gray : > On 25/11/12 22:43, Pete Batard wrote: >> >> It was mentioned that the stress test fails on Windows and Linux as well. >> >> Linux: >> # ./tests/stress >> Starting test run: init_and_exit... >> Success (0) >> Starting test run: get_device_list... >> Success (0) >> Starting t

Re: [Libusbx-devel] stress program crashes in libusb_exit(NULL);

2012-11-26 Thread Xiaofan Chen
On Tue, Nov 27, 2012 at 6:57 AM, Pete Batard wrote: > On 2012.11.26 13:57, Toby Gray wrote: >> I'm not very familiar with the Windows backend, but had a quick look and >> can't seem to find anywhere that LstK_Init is called. > > This is just a limitation for devices that are handled by the libusbK

Re: [Libusbx-devel] stress program crashes in libusb_exit(NULL);

2012-11-26 Thread Pete Batard
On 2012.11.26 13:57, Toby Gray wrote: > I'm not very familiar with the Windows backend, but had a quick look and > can't seem to find anywhere that LstK_Init is called. This is just a limitation for devices that are handled by the libusbK driver. > If it is an issue then I'd probably suggest add

Re: [Libusbx-devel] stress program crashes in libusb_exit(NULL);

2012-11-26 Thread Pete Batard
On 2012.11.26 13:28, Toby Gray wrote: > It turns out the reference counting for the default context was slightly > off, introduced by this commit: > https://github.com/libusbx/libusbx/commit/cf6e68acb116c63f4a8c9d30ee4f2757e8c2e12a > > > It moved the setting of usbi_default_context to earlier in th

Re: [Libusbx-devel] stress program crashes in libusb_exit(NULL);

2012-11-26 Thread Toby Gray
On 26/11/12 01:31, Xiaofan Chen wrote: > If using libusbK, there is potentially another limitation. > http://libusb.6.n5.nabble.com/libusb-win32-devel-LstK-Init-return-error-tp5710868p5710878.html > "The module (LstK_Init) will only allow 64 outstanding lists at any > giving time; after which it re

Re: [Libusbx-devel] stress program crashes in libusb_exit(NULL);

2012-11-26 Thread Toby Gray
On 25/11/12 22:43, Pete Batard wrote: It was mentioned that the stress test fails on Windows and Linux as well. Linux: # ./tests/stress Starting test run: init_and_exit... Success (0) Starting test run: get_device_list... Success (0) Starting test run: many_device_lists... Success (0) Starting t

Re: [Libusbx-devel] stress program crashes in libusb_exit(NULL);

2012-11-25 Thread Xiaofan Chen
On Mon, Nov 26, 2012 at 6:43 AM, Pete Batard wrote: > It was mentioned that the stress test fails on Windows and Linux as well. > > Linux: > # ./tests/stress > Starting test run: init_and_exit... > Success (0) > Starting test run: get_device_list... > Success (0) > Starting test run: many_device_l

Re: [Libusbx-devel] stress program crashes in libusb_exit(NULL);

2012-11-25 Thread Pete Batard
It was mentioned that the stress test fails on Windows and Linux as well. Linux: # ./tests/stress Starting test run: init_and_exit... Success (0) Starting test run: get_device_list... Success (0) Starting test run: many_device_lists... Success (0) Starting test run: default_context_change... Segme