libusb: Timeouts with usb_bulk_write() and usb_bulk_read()

Bug #12695 reported by Debian Bug Importer
4
Affects Status Importance Assigned to Milestone
libusb (Debian)
Fix Released
Unknown
libusb (Ubuntu)
Invalid
High
Unassigned

Bug Description

Automatically imported from Debian bug report #294368 http://bugs.debian.org/294368

Revision history for this message
Debian Bug Importer (debzilla) wrote :

Automatically imported from Debian bug report #294368 http://bugs.debian.org/294368

Revision history for this message
Debian Bug Importer (debzilla) wrote :

Message-Id: <email address hidden>
Date: Wed, 09 Feb 2005 14:14:12 +0100
From: Aurelien Jarno <email address hidden>
To: Debian Bug Tracking System <email address hidden>
Subject: libusb: Timeouts with usb_bulk_write() and usb_bulk_read()

Package: libusb
Severity: grave
Tags: sid
Justification: renders package unusable

Version 0.1.9 of libusb seems to have timeout problems on big
usb_bulk_write or usb_bulk_read transger. The problem has been seen at
least with a scanner and libsane.

The way usb_bulk_write() and usb_bulk_read() are handled in libusb has
changed between version 0.1.8 and 0.1.9. Version 0.1.8 was using an
ioctl in a synchronous way, whereas version 0.1.9 is using the new URB
kernel interface which accepts asynchronous requests (using multiple
ioctl).

If the problem is not solved soon, I'll upload a version of libusb
0.1.9, with the usb_bulk_write() and usb_bulk_read() functions of
version 0.1.8. The changes are not big as these two functions are only
20 lines long each. This solution has the advantage to let the new
functions of libusb available.

-- System Information:
Debian Release: 3.1
  APT prefers testing
  APT policy: (990, 'testing'), (500, 'unstable'), (1, 'experimental')
Architecture: i386 (i686)
Kernel: Linux 2.6.10
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8) (ignored: LC_ALL set to fr_FR.UTF-8)

Revision history for this message
In , Aurelien Jarno (aurel32) wrote : Bug#294368: fixed in libusb 1:0.1.9-3

Source: libusb
Source-Version: 1:0.1.9-3

We believe that the bug you reported is fixed in the latest version of
libusb, which is due to be installed in the Debian FTP archive:

libusb-0.1-4_0.1.9-3_i386.deb
  to pool/main/libu/libusb/libusb-0.1-4_0.1.9-3_i386.deb
libusb-dev_0.1.9-3_i386.deb
  to pool/main/libu/libusb/libusb-dev_0.1.9-3_i386.deb
libusb_0.1.9-3.diff.gz
  to pool/main/libu/libusb/libusb_0.1.9-3.diff.gz
libusb_0.1.9-3.dsc
  to pool/main/libu/libusb/libusb_0.1.9-3.dsc

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed. If you
have further comments please address them to <email address hidden>,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Aurelien Jarno <email address hidden> (supplier of updated libusb package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing <email address hidden>)

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Format: 1.7
Date: Wed, 9 Feb 2005 21:09:55 +0100
Source: libusb
Binary: libusb-dev libusb-0.1-4
Architecture: source i386
Version: 1:0.1.9-3
Distribution: unstable
Urgency: medium
Maintainer: Aurelien Jarno <email address hidden>
Changed-By: Aurelien Jarno <email address hidden>
Description:
 libusb-0.1-4 - userspace USB programming library
 libusb-dev - userspace USB programming library development files
Closes: 294368
Changes:
 libusb (1:0.1.9-3) unstable; urgency=medium
 .
   * Urgency set to medium so that fix for bug #294139 propagates to
     testing quickly.
   * Patched the loop condition so that transfers bigger than 16Ko
     work (closes: bug#294368).
Files:
 5a8fa5df0f2d1e39e2c612c251b744f1 652 libs optional libusb_0.1.9-3.dsc
 6f1bddebdaf74b403fb643ad95642737 26865 libs optional libusb_0.1.9-3.diff.gz
 a0c4ea496cdff9265069574d32995921 20000 libs optional libusb-0.1-4_0.1.9-3_i386.deb
 f7f1dd57a3f6954341f2e1b9732b61bc 33880 libdevel optional libusb-dev_0.1.9-3_i386.deb

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.5 (GNU/Linux)

iD8DBQFCCm5bw3ao2vG823MRAuC6AJwMOg+yZmV9USVLsXke3lhidzonCACgiKVZ
0467Rtn64WDofOuUbvD+EWk=
=51vA
-----END PGP SIGNATURE-----

Revision history for this message
Debian Bug Importer (debzilla) wrote :

Message-Id: <email address hidden>
Date: Wed, 09 Feb 2005 15:47:53 -0500
From: Aurelien Jarno <email address hidden>
To: <email address hidden>
Subject: Bug#294368: fixed in libusb 1:0.1.9-3

Source: libusb
Source-Version: 1:0.1.9-3

We believe that the bug you reported is fixed in the latest version of
libusb, which is due to be installed in the Debian FTP archive:

libusb-0.1-4_0.1.9-3_i386.deb
  to pool/main/libu/libusb/libusb-0.1-4_0.1.9-3_i386.deb
libusb-dev_0.1.9-3_i386.deb
  to pool/main/libu/libusb/libusb-dev_0.1.9-3_i386.deb
libusb_0.1.9-3.diff.gz
  to pool/main/libu/libusb/libusb_0.1.9-3.diff.gz
libusb_0.1.9-3.dsc
  to pool/main/libu/libusb/libusb_0.1.9-3.dsc

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed. If you
have further comments please address them to <email address hidden>,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Aurelien Jarno <email address hidden> (supplier of updated libusb package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing <email address hidden>)

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Format: 1.7
Date: Wed, 9 Feb 2005 21:09:55 +0100
Source: libusb
Binary: libusb-dev libusb-0.1-4
Architecture: source i386
Version: 1:0.1.9-3
Distribution: unstable
Urgency: medium
Maintainer: Aurelien Jarno <email address hidden>
Changed-By: Aurelien Jarno <email address hidden>
Description:
 libusb-0.1-4 - userspace USB programming library
 libusb-dev - userspace USB programming library development files
Closes: 294368
Changes:
 libusb (1:0.1.9-3) unstable; urgency=medium
 .
   * Urgency set to medium so that fix for bug #294139 propagates to
     testing quickly.
   * Patched the loop condition so that transfers bigger than 16Ko
     work (closes: bug#294368).
Files:
 5a8fa5df0f2d1e39e2c612c251b744f1 652 libs optional libusb_0.1.9-3.dsc
 6f1bddebdaf74b403fb643ad95642737 26865 libs optional libusb_0.1.9-3.diff.gz
 a0c4ea496cdff9265069574d32995921 20000 libs optional libusb-0.1-4_0.1.9-3_i386.deb
 f7f1dd57a3f6954341f2e1b9732b61bc 33880 libdevel optional libusb-dev_0.1.9-3_i386.deb

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.5 (GNU/Linux)

iD8DBQFCCm5bw3ao2vG823MRAuC6AJwMOg+yZmV9USVLsXke3lhidzonCACgiKVZ
0467Rtn64WDofOuUbvD+EWk=
=51vA
-----END PGP SIGNATURE-----

Revision history for this message
Matt Zimmerman (mdz) wrote :

    libusb | 1:0.1.8-17ubuntu2 | http://us.archive.ubuntu.com hoary/main Sources

Changed in libusb:
status: Unknown → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.