Bug 162054 - usbdump just hangs on 9.0-RC1
Summary: usbdump just hangs on 9.0-RC1
Status: Open
Alias: None
Product: Base System
Classification: Unclassified
Component: usb (show other bugs)
Version: Unspecified
Hardware: Any Any
: Normal Affects Only Me
Assignee: freebsd-usb (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-10-27 10:20 UTC by edwin
Modified: 2017-12-31 22:32 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description edwin 2011-10-27 10:20:11 UTC
On my machine running 9.0-RC1, updated from 8.2 via FreeBSD-update:

When running "usbdump -i usbus4" and connecting any USB device so far (memory, iPhone, 3G modem), it just hangs and doesn't output anything. Closing it with ^C is not possible, only ^Z and kill %1 is possible.

ktrace on usbdump shows that it is reading properly.
Running Wireshark on usb04 shows that frames are being received.

Running usbdump on a file captured from an old machine (FreeBSD X.x.x.x 9.0-CURRENT FreeBSD 9.0-CURRENT #0 r224195: Tue Jul 19 17:45:03 CST 2011 X@X:/usr/obj/usr/src/sys/GENERIC  amd64) shows the output as expected.

Running usbdump on a file captured on this machine doesn't output anything, but can be aborted with ^C.

I have uploaded a tar ball at http://www.mavetju.org/~edwin/usbdump-problem.tar.gz with in it:
- output of trace in ktrace.out
- iphone.cap of when it doesn't work.
- usbdumptest from the old 9.0-CURRENT machine.

Help :-P
Comment 1 edwin 2011-10-27 10:40:52 UTC
As a test I compiled usbdump myself instead of using the one supplied by =
FreeBSD-update:

[~/usbdump/usbdump] edwin@t43>sudo ./usbdump-9 -i usbus4
19:35:11.080561 usbus4.2 =
SUBM-CTRL-EP=3D00000000,SPD=3DHIGH,NFR=3D1,SLEN=3D8,IVAL=3D0
19:35:11.080638 usbus4.2 =
DONE-CTRL-EP=3D00000000,SPD=3DHIGH,NFR=3D1,SLEN=3D0,IVAL=3D0,ERR=3D0
19:35:11.080645 usbus4.2 =
SUBM-CTRL-EP=3D00000000,SPD=3DHIGH,NFR=3D1,SLEN=3D0,IVAL=3D0

This is:
 * $FreeBSD: stable/9/usr.sbin/usbdump/usbdump.c 226565 2011-10-20 =
14:45:16Z hselasky $

Honestly=85 No idea where it went wrong.
I'll poke Colin Percival about this.=
Comment 2 edwin 2011-10-27 10:46:09 UTC
Hello Colin,

I just submitted a PR on this issue: usb/162054: usbdump just hangs on =
9.0-RC1.

The usbdump used was gotten via freebsd-update earlier this week.
I compiled usbdump myself from the stable/9 source code and it worked =
fine.

Not sure if this is something you want to know about.

Edwin=
Comment 3 Eitan Adler freebsd_committer freebsd_triage 2017-12-31 08:00:28 UTC
For bugs matching the following criteria:

Status: In Progress Changed: (is less than) 2014-06-01

Reset to default assignee and clear in-progress tags.

Mail being skipped