It might be sufficient to check if the list head is null before trying to 
remove the transfer from the list since the transfer is not on a list when it 
completes. Try adding the check:

if (itransfer->list->list_head) 

on lone 1534 of io.c before:

list_del(&itransfer->list);


And let me know if that resolves the issue.

-Nathan

On Jul 17, 2013, at 1:13 AM, Lilk <notificati...@github.com> wrote:

> Well, I managed to get a little more output by also changing -g to -g3 in my 
> app.
> 
> [ 6.852191] [00006703] libusbx: debug [handle_events] poll() returned 1
> [ 6.852199] [00006703] libusbx: debug [op_handle_events] checking fd 7 with 
> revents = 0
> nf is disconnected ? ;)
> [ 6.852203] [00006703] libusbx: debug [op_handle_events] checking fd 9 with 
> revents = 0
> [ 6.852206] [00006703] libusbx: debug [op_handle_events] checking fd 14 with 
> revents = 1
> Recycling
> [ 6.852212] [00006703] libusbx: debug [darwin_handle_callback] handling 
> interrupt completion with kernel status -536870165
> 
> Program received signal EXC_BAD_ACCESS, Could not access memory.
> Reason: KERN_INVALID_ADDRESS at address: 0x0000000000000000
> [Switching to process 59188 thread 0x6703]
> 0x00000001001ea7b8 in usbi_handle_transfer_completion (itransfer=0x1021eaf80, 
> status=LIBUSB_TRANSFER_CANCELLED) at libusbi.h:128
> 128     entry->next->prev = entry->prev;
> (gdb) where
> #0  0x00000001001ea7b8 in usbi_handle_transfer_completion 
> (itransfer=0x1021eaf80, status=LIBUSB_TRANSFER_CANCELLED) at libusbi.h:128
> #1  0x00000001001ed60b in op_handle_events (ctx=0x102137ba8, fds=0x105228d60, 
> nfds=86150496, num_ready=86150496) at darwin_usb.c:1799
> #2  0x00000001001ea5e3 in handle_events (ctx=0x102137a90, tv=<value 
> temporarily unavailable, due to optimizations>) at io.c:2042
> Previous frame inner to this frame (gdb could not unwind past this frame)
> Current language:  auto; currently c
> (gdb)
> —
> Reply to this email directly or view it on GitHub.
> 
> ------------------------------------------------------------------------------
> See everything from the browser to the database with AppDynamics
> Get end-to-end visibility with application monitoring from AppDynamics
> Isolate bottlenecks and diagnose root cause in seconds.
> Start your free trial of AppDynamics Pro today!
> http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk_______________________________________________
> libusbx-devel mailing list
> libusbx-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/libusbx-devel

------------------------------------------------------------------------------
See everything from the browser to the database with AppDynamics
Get end-to-end visibility with application monitoring from AppDynamics
Isolate bottlenecks and diagnose root cause in seconds.
Start your free trial of AppDynamics Pro today!
http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk
_______________________________________________
libusbx-devel mailing list
libusbx-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/libusbx-devel

Reply via email to