Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 225879 - dev-libs/libusb-0.1.12 fails to detect device remove and goes into infintive cycle
Summary: dev-libs/libusb-0.1.12 fails to detect device remove and goes into infintive ...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Unspecified (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Robin Johnson
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-06-11 11:55 UTC by roma1390
Modified: 2008-06-25 03:25 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
patch (libusb-0.1.12.diff,588 bytes, patch)
2008-06-11 11:57 UTC, roma1390
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description roma1390 2008-06-11 11:55:55 UTC
libusb-0.1.12 on usb_bulk_read or usb_bulk_write goes into infinitive when user removes usb device (or device firmware reset device itself).

strace from program which called usb_bulk_read with timeout 1000

9388  14:00:31 ioctl(11, USBDEVFS_REAPURBNDELAY, 0xbf84af08) = -1 ENODEV (No such device)
9388  14:00:31 select(12, NULL, [], NULL, {0, 1000}) = 0 (Timeout)
9388  14:00:31 ioctl(11, USBDEVFS_REAPURBNDELAY, 0xbf84af08) = -1 ENODEV (No such device)
9388  14:00:31 select(12, NULL, [], NULL, {0, 1000}) = 0 (Timeout)
9388  14:00:31 ioctl(11, USBDEVFS_REAPURBNDELAY, 0xbf84af08) = -1 ENODEV (No such device)
9388  14:00:31 select(12, NULL, [], NULL, {0, 1000}) = 0 (Timeout)
9388  14:00:31 ioctl(11, USBDEVFS_REAPURBNDELAY, 0xbf84af08) = -1 ENODEV (No such device)
9388  14:00:31 select(12, NULL, [], NULL, {0, 1000}) = 0 (Timeout)
9388  14:00:31 ioctl(11, USBDEVFS_REAPURBNDELAY, 0xbf84af08) = -1 ENODEV (No such device)
9388  14:00:31 select(12, NULL, [], NULL, {0, 1000}) = 0 (Timeout)
9388  14:00:31 ioctl(11, USBDEVFS_REAPURBNDELAY, 0xbf84af08) = -1 ENODEV (No such device)
9388  14:00:31 select(12, NULL, [], NULL, {0, 1000}) = 0 (Timeout)
9388  14:00:31 ioctl(11, USBDEVFS_REAPURBNDELAY, 0xbf84af08) = -1 ENODEV (No such device)
9388  14:00:31 select(12, NULL, [], NULL, {0, 1000}) = 0 (Timeout)
9388  14:00:31 ioctl(11, USBDEVFS_REAPURBNDELAY, 0xbf84af08) = -1 ENODEV (No such device)
9388  14:00:31 select(12, NULL, [], NULL, {0, 1000}) = 0 (Timeout)


Reproducible: Always

Steps to Reproduce:
Comment 1 roma1390 2008-06-11 11:57:22 UTC
Created attachment 156339 [details, diff]
patch

This patch fixes described problem
Comment 2 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2008-06-25 03:25:50 UTC
dsd: for your edification as upstream


incvs.