Please merge with libusb-1.0-0-dev (2:1.0.9~rc3-2 ) in Debian Unstable

Asked by Boris Derzhavets

Question information

Language:
English Edit question
Status:
Answered
For:
Ubuntu libusb Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Boris Derzhavets (bderzhavets) said :
#1

Per http://libusb.org/ticket/56 :-

Changed 11 days ago by Graeme Gill <graeme2@…>

    Owner set to Graeme Gill <graeme2@…>
    Status changed from new to closed
    Resolution set to fixed

In [6696512aade99bb15d6792af90ae329af270eba6/libusb]:

Fix #56 race condition causing delayed completion of sync transfers

The sync API had a race where it would check a condition to know if it
needed to call a libusb_handle_events() function. However, the check
was done outside of the lock that is held while the condition is set,
so another thread could completely serve whatever was needed to make
the condition true between it being checked and the event handler being
called. This situation would be detected after a libusb-internal timeout
of 60 seconds, after which the transfer would be completed without
error, but with significant delay.

Original patch at http://marc.info/?l=libusb-devel&m=127252114815709

Changes by Hans de Goede:

    Renamed the "race-proof" functions from libusb_handle_events*_check() to libusb_handle_events*_completed()
    Drop r = 0 setting in libusb_handle_events_timeout_completed() (to make both completed checking cases identical flow wise)

Signed-off-by: Hans de Goede <hdegoede@…>
[stuge: Simplify libusb_handle_events_timeout() change with a goto]
[pbatard: Fix _handle_events_timeout() and _completed() definitions]

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#2

This is ubuntu support, not debian. So even if it happened, it wouldn't affect the ubuntu repos. I suggest you post on a debian forum.

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#3

You may find an ubuntu ppa here to get the version you want:
https://launchpad.net/ubuntu/+ppas?name_filter=libusb

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#4

Also which release are you using?

cat /etc/lsb-release

will tell you if you are unsure.

Revision history for this message
Boris Derzhavets (bderzhavets) said :
#5

I am working with libusb-1.0-2:1.0.9~rc3-2ubuntu3 been built by myself
View PPA "Qemu-kvm 1.0 & Spice 0.10.0 & Spice-Gtk-0.7.81 & Libusb 1.0.9-rc3 for Precise" :-
https://launchpad.net/~bderzhavets/+archive/lib-usbredir47

Libusb 1.0.8 is current for Precise and for Oneiric. Libusb 1.0.8 is affected by bug #56.
View http://ludovicrousseau.blogspot.com/2011/12/libusb-109-rc3.html

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#6

I suggest you report a bug to suggest it be included to the main repos

Can you help with this problem?

Provide an answer of your own, or ask Boris Derzhavets for more information if necessary.

To post a message you must log in.