View Issue Details

IDProjectCategoryView StatusLast Update
0000656Other Unix PortBugpublic2022-05-14 20:39
ReporterErdmann Assigned Topsmedley  
PrioritynormalSeveritymajorReproducibilityalways
Status closedResolutionfixed 
PlatformOS/2OSeComStationOS Version2.2 beta
Summary0000656: lsusb - crashes on one of my devices
Descriptionlsusb-20130526.zip,libusb-1.0.16-rc6-20130525.zip:

When I run "lsusb" without any switch I get an overview of all attached USB devices.

However if I attach one particular device and rerun "lsusb", it always crashes with this error, it also crashes if I had the problematic device attached initially:

LIBC PANIC!!
_um_free_maybe_lock: Tried to free block twice - block=200365a0 lock=0x1
pid=0x0044 ppid=0x003d tid=0x0001 slot=0x0091 pri=0x0200 mc=0x0000 ps=0x0010
D:\OS2\APPS\LSUSB.EXE
Process dumping was disabled, use DUMPPROC / PROCDUMP to enable it.

As USB stack I have tried David's 11.13 and also my current 11.199 (11.200 in the works) but the behaviour/problem is exactly the same.



Steps To Reproduce1) plug in problematic device
2) run "lsusb"
Additional InformationThe device report for the problematic device, taken from USBRES.EXE (which does a bad job on properly decoding the descriptors):
<<< Device Description >>>
 Type : 01
 USB Rev : 110
 Class : Reserved (0)
 Subclass : Reserved (0)
 Protocol : Reserved (0)
  Device Information is defined at interface Level
 Max. packetsize : 08
 Vendor ID : 1130
 Product ID : 6920
 Device Release# : 9D9E
 Strings:
  Manufacturer Name : TP6920
  Product Name : TP6920
  Serial number : 0621
 Number of Configurations : 1

 Configuration 0 :
  Lenght : 132
  Name : 0621
  Value : 1
  Attributes : 0x80
  Power : 100 mA
  Interfaces : 3

  Interface 0
   Alt Setting : 0
   Name : <NONE>
   Class : Audio
   SubClass : AudioControl
   Protocol : Not used(0)
   Endpoints : 0
     Audiocontrol CS Interface Descriptor
     Length : 9
     Type : 0x24
     Subtype : 0x01
    Header :
     Audio Device Class Release Number : 0100
     Max size of AudioControl interface descriptor. : 32597
     Number of AudioStreaming and MIDIStreaming interfaces : 1
      1. Streaming interface on Device Interface 1
     Audiocontrol CS Interface Descriptor
    Input Terminal :
     Length : 12
     Type : 0x24
     Subtype : 0x02
     Unique Terminal ID : 4
     Terminal Type : 0x0201
     Assoc. Terminal ID : 0
     Number of Log. Channels : 1
     Spatial channel location : 0x0001
     Name of Channel : Not Implemented
     Name of Terminal : Has Index 9(GetString Error -225)
     Audiocontrol CS Interface Descriptor
    Feature Unit :
    Length : 9
    Type : 36
    Subtype : 6
    Dumped Data :
     05 04 01 01 02 00
     09
     Unique Unit ID : 5
     Source ID : 4
     Size of Control Item : 1
     ControlMap for Master : 0x01
     ControlMap for Channel 1 : 0x02
     Name of Feature Unit : Has Index 9(GetString Error -225)
     Audiocontrol CS Interface Descriptor
    Output Terminal :
     Length : 9
     Type : 0x24
     Subtype : 0x03
     Unique Terminal ID : 6
     Terminal Type : 0x0101
     Assoc. Terminal ID : 0
     Source ID : 5
     Name of Terminal : Not Implemented

  Interface 1
   Alt Setting : 0
   Name : <NONE>
   Class : Audio
   SubClass : Streaming Audio
   Protocol : Not used(0)
   Endpoints : 0

  Interface 1
   Alt Setting : 1
   Name : <NONE>
   Class : Audio
   SubClass : Streaming Audio
   Protocol : Not used(0)
   Endpoints : 1
    General Endpoint Information:
     Length : 7
     Type : 0x24
     Subtype : 0x01
     Controls:
      - Pitch
      - Locktime 32654 ms
     Audiostreaming CS Interface Descriptor
     Format Type:
     Length : 11
     Type : 0x24
     Subtype : 0x02
      Physical Channels : 1
      Subframe size : 2
      Bits used : 16
      Supported Frequencies
       - 24000Hz
       - 8586505Hz

   Endpoint 0:
    Address : 83
    Attributes : 09
    Packetsize : 0030
    Interval : 1
    General Endpoint Information:
     Length : 7
     Type : 0x25
     Subtype : 0x01
     Controls:
      - Locktime 32681 (No Unit)

  Interface 2
   Alt Setting : 0
   Name : <NONE>
   Class : Storage Device
   SubClass : SCSI transparent command set
   Protocol : Bulk-Only Transport
   Endpoints : 2

   Endpoint 0:
    Address : 84
    Attributes : 02
    Packetsize : 0008
    Interval : 0

   Endpoint 1:
    Address : 05
    Attributes : 02
    Packetsize : 0008
    Interval : 0
TagsNo tags attached.

Activities

psmedley

2022-05-14 06:48

administrator   ~0004258

Is this still a problem with https://smedley.id.au/tmp/lsusb-013.zip

Erdmann

2022-05-14 17:29

reporter   ~0004299

it is no longer a problem with your recent builds ofd lsusb. You can close this ticket.

psmedley

2022-05-14 20:39

administrator   ~0004300

Fixed in latest lsusb

Issue History

Date Modified Username Field Change
2015-09-20 13:40 Erdmann New Issue
2022-05-14 06:48 psmedley Assigned To => psmedley
2022-05-14 06:48 psmedley Status new => feedback
2022-05-14 06:48 psmedley Note Added: 0004258
2022-05-14 17:29 Erdmann Note Added: 0004299
2022-05-14 17:29 Erdmann Status feedback => assigned
2022-05-14 20:39 psmedley Status assigned => resolved
2022-05-14 20:39 psmedley Resolution open => fixed
2022-05-14 20:39 psmedley Note Added: 0004300
2022-05-14 20:39 psmedley Status resolved => closed