[precise] lsusb -t hangs with no output

Bug #1446863 reported by Pali
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
usbutils
Fix Released
Medium
usbutils (Ubuntu)
Fix Released
Undecided
Unassigned
Precise
Won't Fix
Low
Unassigned

Bug Description

Program lsusb with -t option hangs and go into infinite loop. This problem is fixed by upstream commit: https://github.com/gregkh/usbutils/commit/f16b3198b289f5009ac8c516da50a14cc7a17cf2

Revision history for this message
In , Michael (michael-redhat-bugs) wrote :

Created attachment 701636
strace of lsusb stopped with ^C after a delay.

Description of problem:
lsusb -t hangs and produces no output. This also blocks sosreport.

Version-Release number of selected component (if applicable):

How reproducible:
every time.

Steps to Reproduce:
1. lsusb -t

Actual results:
nothing happens

Expected results:
tree output of USB devices

Additional info:
Bug #814087 seems a bit similar but produced output and is for an older Fedora.

strace was completed by me pressing ^C at the end.

attached will be:
strace
backtrace at lockup point
lsusb -v

Additional info:

Revision history for this message
In , Michael (michael-redhat-bugs) wrote :

Created attachment 701637
backtrace of a locked up LSUSB

Revision history for this message
In , Michael (michael-redhat-bugs) wrote :

Created attachment 701638
lsusb -v output - N.B. does not lock up

Revision history for this message
In , Lukáš (luk-redhat-bugs) wrote :

Created attachment 702395
possible patch

Revision history for this message
In , Lukáš (luk-redhat-bugs) wrote :

Can you please try this patch version?
http://people.fedoraproject.org/~lnykryn/usbutils/006-4/

Revision history for this message
In , Michael (michael-redhat-bugs) wrote :

Yes; that seems to fix it. (running as normal user)

[hoop@agata ~]$ lsusb -t

(wait a very very long time)

[hoop@agata ~]$ ./usr/bin/lsusb -t
/: Bus 04.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/2p, 5000M
/: Bus 03.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/2p, 480M
/: Bus 02.Port 1: Dev 1, Class=root_hub, Driver=ehci_hcd/2p, 480M
    |__ Port 1: Dev 2, If 0, Class=Hub, Driver=hub/8p, 480M
        |__ Port 6: Dev 3, If 0, Class=Communications, Driver=, 480M
        |__ Port 6: Dev 3, If 1, Class=Communications, Driver=cdc_acm, 480M
        |__ Port 6: Dev 3, If 2, Class=CDC Data, Driver=cdc_acm, 480M
        |__ Port 6: Dev 3, If 3, Class=Communications, Driver=cdc_acm, 480M
        |__ Port 6: Dev 3, If 4, Class=CDC Data, Driver=cdc_acm, 480M
        |__ Port 6: Dev 3, If 5, Class=Communications, Driver=cdc_wdm, 480M
        |__ Port 6: Dev 3, If 6, Class=Communications, Driver=cdc_ncm, 480M
        |__ Port 6: Dev 3, If 7, Class=CDC Data, Driver=cdc_ncm, 480M
        |__ Port 6: Dev 3, If 8, Class=Communications, Driver=cdc_wdm, 480M
        |__ Port 6: Dev 3, If 9, Class=Communications, Driver=cdc_acm, 480M
        |__ Port 6: Dev 3, If 10, Class=CDC Data, Driver=cdc_acm, 480M
        |__ Port 8: Dev 4, If 0, Class=Application Specific Interface, Driver=, 12M
        |__ Port 8: Dev 4, If 1, Class=Chip/SmartCard, Driver=, 12M
/: Bus 01.Port 1: Dev 1, Class=root_hub, Driver=ehci_hcd/2p, 480M
    |__ Port 1: Dev 2, If 0, Class=Hub, Driver=hub/6p, 480M
        |__ Port 4: Dev 3, If 0, Class=Wireless, Driver=btusb, 12M
        |__ Port 4: Dev 3, If 1, Class=Wireless, Driver=btusb, 12M
        |__ Port 4: Dev 3, If 2, Class=Vendor Specific Class, Driver=, 12M
        |__ Port 4: Dev 3, If 3, Class=Application Specific Interface, Driver=, 12M
        |__ Port 5: Dev 4, If 0, Class=Video, Driver=uvcvideo, 480M
        |__ Port 5: Dev 4, If 1, Class=Video, Driver=uvcvideo, 480M

Revision history for this message
In , Lukáš (luk-redhat-bugs) wrote :

Thanks for checking, I will prepare an update tomorrow.

Revision history for this message
In , Fedora (fedora-redhat-bugs) wrote :

usbutils-006-4.fc18 has been submitted as an update for Fedora 18.
https://admin.fedoraproject.org/updates/usbutils-006-4.fc18

Revision history for this message
In , Fedora (fedora-redhat-bugs) wrote :

Package usbutils-006-4.fc18:
* should fix your issue,
* was pushed to the Fedora 18 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing usbutils-006-4.fc18'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2013-3074/usbutils-006-4.fc18
then log in and leave karma (feedback).

Revision history for this message
In , Fedora (fedora-redhat-bugs) wrote :

usbutils-006-4.fc18 has been pushed to the Fedora 18 stable repository. If problems still persist, please make note of it in this bug report.

Martin Pitt (pitti)
Changed in usbutils (Ubuntu):
status: New → Fix Released
Changed in usbutils (Ubuntu Precise):
importance: Undecided → Low
Revision history for this message
Pali (pali) wrote : [Bug 1446863] Re: [precise] lsusb -t hangs with no output

Martin Pitt: can you look at this bug? It is really annoying when such
utility like lsusb does not working on system...

Revision history for this message
Pali (pali) wrote :

Patch which fixing this bug is linked in description and is already part
in upstream lsusb version. So there is no potential regression or impact.
Can you include this patch into 12.04 LTS release?

Changed in usbutils:
importance: Unknown → Medium
status: Unknown → Fix Released
Revision history for this message
Steve Langasek (vorlon) wrote :

The Precise Pangolin has reached end of life, so this bug will not be fixed for that release

Changed in usbutils (Ubuntu Precise):
status: New → Won't Fix
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.