On Mon, May 14, 2012 at 9:16 PM, Xiaofan Chen <xiaof...@gmail.com> wrote:
> Somehow xusb now segfaults sometimes.

BTW, 1.0.11 release never segfaults.


mymacmini:examples xiaofanc$ ./xusb -d 04d8:fa2e
Using libusbx v1.0.11.10499

Opening device...
[timestamp] [threadID] facility level [function call] <message>
--------------------------------------------------------------------------------
[ 0.000000] [00000e07] libusbx: info [process_new_device] allocating
new device for location 0xfa000000
[ 0.000062] [00000e07] libusbx: info [darwin_check_configuration]
active config: 1, first config: 1
[ 0.000074] [00000e07] libusbx: info [process_new_device] found device
with address 1 at 001-05ac-8006-09-00
[ 0.000457] [00000e07] libusbx: info [process_new_device] allocating
new device for location 0xfa100000
[ 0.000629] [00000e07] libusbx: info [darwin_check_configuration]
active config: 1, first config: 1
[ 0.000644] [00000e07] libusbx: info [process_new_device] found device
with address 2 at 002-0424-2513-09-00
[ 0.000985] [00000e07] libusbx: info [process_new_device] allocating
new device for location 0xfa110000
[ 0.188494] [00000e07] libusbx: info [process_new_device] allocating
new device for location 0xfa130000
[ 0.188859] [00000e07] libusbx: info [darwin_check_configuration]
active config: 1, first config: 1
[ 0.188879] [00000e07] libusbx: info [process_new_device] found device
with address 4 at 004-05e3-0606-09-00
[ 0.189244] [00000e07] libusbx: info [process_new_device] allocating
new device for location 0xfa120000
[ 0.190361] [00000e07] libusbx: info [darwin_check_configuration]
active config: 1, first config: 1
[ 0.190377] [00000e07] libusbx: info [process_new_device] found device
with address 5 at 005-04f2-0760-00-00
[ 0.190747] [00000e07] libusbx: info [process_new_device] allocating
new device for location 0xfa113000
[ 0.376891] [00000e07] libusbx: warning
[darwin_cache_device_descriptor] could not retrieve device descriptor
05ac:8281: device not responding. skipping device
[ 0.377576] [00000e07] libusbx: info [process_new_device] allocating
new device for location 0xfa132000
[ 0.378246] [00000e07] libusbx: info [darwin_check_configuration]
active config: 1, first config: 1
[ 0.378265] [00000e07] libusbx: info [process_new_device] found device
with address 8 at 008-046d-c52b-00-00
[ 0.378665] [00000e07] libusbx: info [process_new_device] allocating
new device for location 0xfa133000
[ 0.379483] [00000e07] libusbx: info [darwin_check_configuration]
active config: 1, first config: 1
[ 0.379499] [00000e07] libusbx: info [process_new_device] found device
with address 9 at 009-046d-c054-00-00
[ 0.380020] [00000e07] libusbx: info [process_new_device] allocating
new device for location 0xfa134000
[ 0.380372] [00000e07] libusbx: info [darwin_check_configuration]
active config: 1, first config: 1
[ 0.380392] [00000e07] libusbx: info [process_new_device] found device
with address 10 at 010-0483-3744-00-00
[ 0.380890] [00000e07] libusbx: info [process_new_device] allocating
new device for location 0xfa131000
[ 0.381397] [00000e07] libusbx: info [darwin_check_configuration]
active config: 1, first config: 1
[ 0.381415] [00000e07] libusbx: info [process_new_device] found device
with address 6 at 006-04d8-fa2e-00-00
[ 0.381828] [00000e07] libusbx: info [process_new_device] allocating
new device for location 0xfd000000
[ 0.381881] [00000e07] libusbx: info [darwin_check_configuration]
active config: 1, first config: 1
[ 0.381905] [00000e07] libusbx: info [process_new_device] found device
with address 1 at 001-05ac-8006-09-00
[ 0.382258] [00000e07] libusbx: info [process_new_device] allocating
new device for location 0xfd100000
[ 0.382482] [00000e07] libusbx: info [darwin_check_configuration]
active config: 1, first config: 1
[ 0.382495] [00000e07] libusbx: info [process_new_device] found device
with address 2 at 002-0424-2513-09-00
[ 0.382858] [00000e07] libusbx: info [process_new_device] allocating
new device for location 0xfd110000
[ 0.529794] [00000e07] libusbx: info [darwin_check_configuration]
active config: 1, first config: 1
[ 0.529824] [00000e07] libusbx: info [process_new_device] found device
with address 3 at 003-05ac-8242-00-00
[ 0.530309] [00000e07] libusbx: info [process_new_device] allocating
new device for location 0xfd130000
[ 0.530747] [00000e07] libusbx: info [darwin_check_configuration]
active config: 1, first config: 1
[ 0.530769] [00000e07] libusbx: info [process_new_device] found device
with address 4 at 004-0ac8-3420-ef-02
[ 0.532700] [00000e07] libusbx: info [darwin_open] device open for access
speed: 12 Mbit/s (USB 1.0 FullSpeed)

Reading device descriptor:
            length: 18
      device class: 0
               S/N: 3
           VID:PID: 04D8:FA2E
         bcdDevice: 0001
   iMan:iProd:iSer: 1:2:3
          nb confs: 1

Reading configuration descriptors:
             nb interfaces: 1
              interface[0]: id = 0
interface[0].altsetting[0]: num endpoints = 2
   Class.SubClass.Protocol: 00.00.00
       endpoint[0].address: 01
           max packet size: 0020
          polling interval: 00
       endpoint[1].address: 81
           max packet size: 0020
          polling interval: 00
interface[0].altsetting[1]: num endpoints = 2
   Class.SubClass.Protocol: 00.00.00
       endpoint[0].address: 01
           max packet size: 0040
          polling interval: 00
       endpoint[1].address: 81
           max packet size: 0040
          polling interval: 00

Claiming interface 0...
[ 0.533471] [00000e07] libusbx: info [get_endpoints] building table of
endpoints.
[ 0.533501] [00000e07] libusbx: info [get_endpoints] interface: 0 pipe
1: dir: 0 number: 1
[ 0.533519] [00000e07] libusbx: info [get_endpoints] interface: 0 pipe
2: dir: 1 number: 1
[ 0.533567] [00000e07] libusbx: info [darwin_claim_interface] interface opened

Reading string descriptors:
[ 0.533950] [00001707] libusbx: info [darwin_async_io_callback] an
async io operation has completed
[ 0.533989] [00000e07] libusbx: info [op_handle_events] checking fd 4
with revents = 0
[ 0.534005] [00000e07] libusbx: info [op_handle_events] checking fd 6
with revents = 1
[ 0.534020] [00000e07] libusbx: info [darwin_handle_callback] handling
control completion with kernel status 0
[ 0.534697] [00001707] libusbx: info [darwin_async_io_callback] an
async io operation has completed
[ 0.534733] [00000e07] libusbx: info [op_handle_events] checking fd 4
with revents = 0
[ 0.534751] [00000e07] libusbx: info [op_handle_events] checking fd 6
with revents = 1
[ 0.534765] [00000e07] libusbx: info [darwin_handle_callback] handling
control completion with kernel status 0
   String (0x01): "Travis Robinson"
[ 0.535073] [00001707] libusbx: info [darwin_async_io_callback] an
async io operation has completed
[ 0.535104] [00000e07] libusbx: info [op_handle_events] checking fd 4
with revents = 0
[ 0.535121] [00000e07] libusbx: info [op_handle_events] checking fd 6
with revents = 1
[ 0.535135] [00000e07] libusbx: info [darwin_handle_callback] handling
control completion with kernel status 0
[ 0.535826] [00001707] libusbx: info [darwin_async_io_callback] an
async io operation has completed
[ 0.535860] [00000e07] libusbx: info [op_handle_events] checking fd 4
with revents = 0
[ 0.535874] [00000e07] libusbx: info [op_handle_events] checking fd 6
with revents = 1
[ 0.535887] [00000e07] libusbx: info [darwin_handle_callback] handling
control completion with kernel status 0
   String (0x02): "Benchmark Device"
[ 0.536197] [00001707] libusbx: info [darwin_async_io_callback] an
async io operation has completed
[ 0.536230] [00000e07] libusbx: info [op_handle_events] checking fd 4
with revents = 0
[ 0.536243] [00000e07] libusbx: info [op_handle_events] checking fd 6
with revents = 1
[ 0.536255] [00000e07] libusbx: info [darwin_handle_callback] handling
control completion with kernel status 0
[ 0.536693] [00001707] libusbx: info [darwin_async_io_callback] an
async io operation has completed
[ 0.536725] [00000e07] libusbx: info [op_handle_events] checking fd 4
with revents = 0
[ 0.536742] [00000e07] libusbx: info [op_handle_events] checking fd 6
with revents = 1
[ 0.536756] [00000e07] libusbx: info [darwin_handle_callback] handling
control completion with kernel status 0
   String (0x03): "LUSBW1"
[ 0.537069] [00001707] libusbx: info [darwin_async_io_callback] an
async io operation has completed
[ 0.537101] [00000e07] libusbx: info [op_handle_events] checking fd 4
with revents = 0
[ 0.537114] [00000e07] libusbx: info [op_handle_events] checking fd 6
with revents = 1
[ 0.537127] [00000e07] libusbx: info [darwin_handle_callback] handling
control completion with kernel status 0
[ 0.537451] [00001707] libusbx: info [darwin_async_io_callback] an
async io operation has completed
[ 0.537484] [00000e07] libusbx: info [op_handle_events] checking fd 4
with revents = 0
[ 0.537498] [00000e07] libusbx: info [op_handle_events] checking fd 6
with revents = 1
[ 0.537510] [00000e07] libusbx: info [darwin_handle_callback] handling
control completion with kernel status -536854449
[ 0.537519] [00000e07] libusbx: warning [darwin_transfer_status]
transfer error: pipe is stalled

Releasing interface 0...
Closing device...
[ 0.539096] [00001707] libusbx: info [event_thread_main] thread exiting

-- 
Xiaofan

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
libusbx-devel mailing list
libusbx-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/libusbx-devel

Reply via email to