Hi Zoltán,

A while ago you submitted a patch for libusb to fix issues
with a libusb based app for your weatherstation:
http://libusbx.1081486.n5.nabble.com/Libusbx-devel-libusb-interrupt-transfer-does-not-return-in-case-of-error-td626.html

This resulted in this patch being added to libusb:
https://github.com/libusbx/libusbx/commit/2f5023c41d3176e56bf0abc521b7c5f8b1ac4664

I encountered this patch while working on some other libusb stuff, and
I believe it is wrong, it may make things work, but it is masking the
real problem.

In your original mail you gave this bit of libusb output logging:

[372849.680990] [0000275b] libusbx: error [reap_for_handle] reap failed error 
-1 errno=14
[372849.681752] [0000275b] libusbx: error [handle_events] backend handle_events 
failed with error -1
[372850.680466] [0000275b] libusbx: warning [handle_timeout] async cancel 
failed -5 errno=22

The problem begins with reap_for_handle failing with errno == 14, which is
EFAULT. So the real problem is the weather station application you're using
passing in an invalid (or too short) buffer, and thus is an application bug
(or so I believe).

If you can send us (a link to) the sources for the weather station app, I can
take a quick look if I can spot the problem.

Note this issue is being tracked here:
https://github.com/libusbx/libusbx/issues/76

You can either reply directly in the bug-tracker, or simply reply to this mail
and then I'll keep the tracker updated.

Regards,

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

Reply via email to