On 07/14/2014 08:28 AM, Peter Stuge wrote:
[libusb details; thank you]

I had noticed the version confusion and the fork, and won't be getting involved in that fight. Ubuntu 12.04-LTS seems to use 1.0.9 from libusb.org (yours) while Ubuntu 14.04-LTS seems to use 1.0.16 from libusbx (theirs).

At the moment I'm using pre-built 1.0.9. I will also verify against pre-built 1.0.16 and self-built head of libusbx (currently 1.0.19) before declaring the rtl-sdr patch ready to merge.

The libusb_submit_transfer() inconsistency I saw was ultimately my error, but appeared otherwise due to an apparent bug in libusb which I'll send you off-list as it's not relevant to rtl-sdr.

I did reliably reproduce a problem with libusb_cancel_transfer() when 15 transfers were submitted, and after the first callback they were all cancelled: in that situation, the callbacks for successful cancels were not reliably invoked. https://github.com/pabigot/rtl-sdr/commit/bf458c873f80347e3ecc2bd2253a0e69e39cc796 fixed that in my branch.

If I do encounter other problems related specifically to libusb behavior (any version) I'll move the discussion to the libusb-devel mailing list.

At this time I have no confirmed issues present in the patches at https://github.com/pabigot/rtl-sdr/compare/pabigot:master...fix-libusb-segv-r2 although sometimes control-C does not take effect as quickly as I expect. I'm continuing to monitor that issue, but look forward to feedback from people trying the changes on other platforms.

Peter


Reply via email to