libftdi Archives

Subject: [1.0] 2 invalid frees and multiple invalid reads and writes in ftdi_usb_get_strings

From: Matthias Janke <matthias.janke@xxxxxxxxxxxxxxxxxxxxxxx>
To: libftdi@xxxxxxxxxxxxxxxxxxxxxxx
Date: Mon, 27 Jun 2011 15:33:29 +0200
Hi,

Thanks for the fast memleak patch, it works great for me. It fixed my device not
found path, too. I'm still struggling with the find_all example. The device 
found path gives many errors in valgrind (log below). As far as I could locate 
it they all come from ftdi_usb_get_strings downwards. I tried to apply Uwes 
patch 
(http://developer.intra2net.com/mailarchive/html/libftdi/2011/msg00254.html) 
but it did't apply cleanly. I also tested with libusb-stuge branch, but it 
gives 
similar results. I can send a log too. Since I'm not familiar with libftdi's 
internals could someone please look into it. 
Thanks and Cheers

Matthias

==23413== Memcheck, a memory error detector
==23413== Copyright (C) 2002-2010, and GNU GPL'd, by Julian Seward et al.
==23413== Using Valgrind-3.6.1 and LibVEX; rerun with -h for copyright info
==23413== Command: ./find_all 
==23413== 
==23413== Invalid read of size 8
==23413==    at 0x53BE428: libusb_open (in /usr/lib64/libusb-1.0.so.0.0.0)
==23413==    by 0x4E31B52: ftdi_usb_get_strings (ftdi.c:374)
==23413==    by 0x4009E2: main (in /home/maja/Projekte/LogicBoxSDK/find_all)
==23413==  Address 0x5a03bf0 is 48 bytes inside a block of size 112 free'd
==23413==    at 0x4C28B72: free (vg_replace_malloc.c:366)
==23413==    by 0x53BDA44: libusb_free_device_list (in 
/usr/lib64/libusb-1.0.so.0.0.0)
==23413==    by 0x4E31A98: ftdi_usb_find_all (ftdi.c:307)
==23413==    by 0x400913: main (in /home/maja/Projekte/LogicBoxSDK/find_all)
==23413== 
==23413== Invalid read of size 4
==23413==    at 0x57DB237: pthread_mutex_lock (in /lib64/libpthread-2.12.1.so)
==23413==    by 0x53BD8E8: libusb_ref_device (in /usr/lib64/libusb-1.0.so.0.0.0)
==23413==    by 0x53BE4A7: libusb_open (in /usr/lib64/libusb-1.0.so.0.0.0)
==23413==    by 0x4E31B52: ftdi_usb_get_strings (ftdi.c:374)
==23413==    by 0x4009E2: main (in /home/maja/Projekte/LogicBoxSDK/find_all)
==23413==  Address 0x5a03bd0 is 16 bytes inside a block of size 112 free'd
==23413==    at 0x4C28B72: free (vg_replace_malloc.c:366)
==23413==    by 0x53BDA44: libusb_free_device_list (in 
/usr/lib64/libusb-1.0.so.0.0.0)
==23413==    by 0x4E31A98: ftdi_usb_find_all (ftdi.c:307)
==23413==    by 0x400913: main (in /home/maja/Projekte/LogicBoxSDK/find_all)
==23413== 
==23413== Invalid read of size 4
==23413==    at 0x57DB25F: pthread_mutex_lock (in /lib64/libpthread-2.12.1.so)
==23413==    by 0x53BD8E8: libusb_ref_device (in /usr/lib64/libusb-1.0.so.0.0.0)
==23413==    by 0x53BE4A7: libusb_open (in /usr/lib64/libusb-1.0.so.0.0.0)
==23413==    by 0x4E31B52: ftdi_usb_get_strings (ftdi.c:374)
==23413==    by 0x4009E2: main (in /home/maja/Projekte/LogicBoxSDK/find_all)
==23413==  Address 0x5a03bc0 is 0 bytes inside a block of size 112 free'd
==23413==    at 0x4C28B72: free (vg_replace_malloc.c:366)
==23413==    by 0x53BDA44: libusb_free_device_list (in 
/usr/lib64/libusb-1.0.so.0.0.0)
==23413==    by 0x4E31A98: ftdi_usb_find_all (ftdi.c:307)
==23413==    by 0x400913: main (in /home/maja/Projekte/LogicBoxSDK/find_all)
==23413== 
==23413== Invalid read of size 4
==23413==    at 0x57DB26A: pthread_mutex_lock (in /lib64/libpthread-2.12.1.so)
==23413==    by 0x53BD8E8: libusb_ref_device (in /usr/lib64/libusb-1.0.so.0.0.0)
==23413==    by 0x53BE4A7: libusb_open (in /usr/lib64/libusb-1.0.so.0.0.0)
==23413==    by 0x4E31B52: ftdi_usb_get_strings (ftdi.c:374)
==23413==    by 0x4009E2: main (in /home/maja/Projekte/LogicBoxSDK/find_all)
==23413==  Address 0x5a03bc8 is 8 bytes inside a block of size 112 free'd
==23413==    at 0x4C28B72: free (vg_replace_malloc.c:366)
==23413==    by 0x53BDA44: libusb_free_device_list (in 
/usr/lib64/libusb-1.0.so.0.0.0)
==23413==    by 0x4E31A98: ftdi_usb_find_all (ftdi.c:307)
==23413==    by 0x400913: main (in /home/maja/Projekte/LogicBoxSDK/find_all)
==23413== 
==23413== Invalid write of size 4
==23413==    at 0x57DB272: pthread_mutex_lock (in /lib64/libpthread-2.12.1.so)
==23413==    by 0x53BD8E8: libusb_ref_device (in /usr/lib64/libusb-1.0.so.0.0.0)
==23413==    by 0x53BE4A7: libusb_open (in /usr/lib64/libusb-1.0.so.0.0.0)
==23413==    by 0x4E31B52: ftdi_usb_get_strings (ftdi.c:374)
==23413==    by 0x4009E2: main (in /home/maja/Projekte/LogicBoxSDK/find_all)
==23413==  Address 0x5a03bc8 is 8 bytes inside a block of size 112 free'd
==23413==    at 0x4C28B72: free (vg_replace_malloc.c:366)
==23413==    by 0x53BDA44: libusb_free_device_list (in 
/usr/lib64/libusb-1.0.so.0.0.0)
==23413==    by 0x4E31A98: ftdi_usb_find_all (ftdi.c:307)
==23413==    by 0x400913: main (in /home/maja/Projekte/LogicBoxSDK/find_all)
==23413== 
==23413== Invalid read of size 4
==23413==    at 0x57DB276: pthread_mutex_lock (in /lib64/libpthread-2.12.1.so)
==23413==    by 0x53BD8E8: libusb_ref_device (in /usr/lib64/libusb-1.0.so.0.0.0)
==23413==    by 0x53BE4A7: libusb_open (in /usr/lib64/libusb-1.0.so.0.0.0)
==23413==    by 0x4E31B52: ftdi_usb_get_strings (ftdi.c:374)
==23413==    by 0x4009E2: main (in /home/maja/Projekte/LogicBoxSDK/find_all)
==23413==  Address 0x5a03bcc is 12 bytes inside a block of size 112 free'd
==23413==    at 0x4C28B72: free (vg_replace_malloc.c:366)
==23413==    by 0x53BDA44: libusb_free_device_list (in 
/usr/lib64/libusb-1.0.so.0.0.0)
==23413==    by 0x4E31A98: ftdi_usb_find_all (ftdi.c:307)
==23413==    by 0x400913: main (in /home/maja/Projekte/LogicBoxSDK/find_all)
==23413== 
==23413== Invalid read of size 4
==23413==    at 0x53BD8E9: libusb_ref_device (in /usr/lib64/libusb-1.0.so.0.0.0)
==23413==    by 0x53BE4A7: libusb_open (in /usr/lib64/libusb-1.0.so.0.0.0)
==23413==    by 0x4E31B52: ftdi_usb_get_strings (ftdi.c:374)
==23413==    by 0x4009E2: main (in /home/maja/Projekte/LogicBoxSDK/find_all)
==23413==  Address 0x5a03be8 is 40 bytes inside a block of size 112 free'd
==23413==    at 0x4C28B72: free (vg_replace_malloc.c:366)
==23413==    by 0x53BDA44: libusb_free_device_list (in 
/usr/lib64/libusb-1.0.so.0.0.0)
==23413==    by 0x4E31A98: ftdi_usb_find_all (ftdi.c:307)
==23413==    by 0x400913: main (in /home/maja/Projekte/LogicBoxSDK/find_all)
==23413== 
==23413== Invalid read of size 4
==23413==    at 0x57DCC27: pthread_mutex_unlock (in /lib64/libpthread-2.12.1.so)
==23413==    by 0x53BD8F3: libusb_ref_device (in /usr/lib64/libusb-1.0.so.0.0.0)
==23413==    by 0x53BE4A7: libusb_open (in /usr/lib64/libusb-1.0.so.0.0.0)
==23413==    by 0x4E31B52: ftdi_usb_get_strings (ftdi.c:374)
==23413==    by 0x4009E2: main (in /home/maja/Projekte/LogicBoxSDK/find_all)
==23413==  Address 0x5a03bd0 is 16 bytes inside a block of size 112 free'd
==23413==    at 0x4C28B72: free (vg_replace_malloc.c:366)
==23413==    by 0x53BDA44: libusb_free_device_list (in 
/usr/lib64/libusb-1.0.so.0.0.0)
==23413==    by 0x4E31A98: ftdi_usb_find_all (ftdi.c:307)
==23413==    by 0x400913: main (in /home/maja/Projekte/LogicBoxSDK/find_all)
==23413== 
==23413== Invalid write of size 4
==23413==    at 0x57DCC39: pthread_mutex_unlock (in /lib64/libpthread-2.12.1.so)
==23413==    by 0x53BD8F3: libusb_ref_device (in /usr/lib64/libusb-1.0.so.0.0.0)
==23413==    by 0x53BE4A7: libusb_open (in /usr/lib64/libusb-1.0.so.0.0.0)
==23413==    by 0x4E31B52: ftdi_usb_get_strings (ftdi.c:374)
==23413==    by 0x4009E2: main (in /home/maja/Projekte/LogicBoxSDK/find_all)
==23413==  Address 0x5a03bc8 is 8 bytes inside a block of size 112 free'd
==23413==    at 0x4C28B72: free (vg_replace_malloc.c:366)
==23413==    by 0x53BDA44: libusb_free_device_list (in 
/usr/lib64/libusb-1.0.so.0.0.0)
==23413==    by 0x4E31A98: ftdi_usb_find_all (ftdi.c:307)
==23413==    by 0x400913: main (in /home/maja/Projekte/LogicBoxSDK/find_all)
==23413== 
==23413== Invalid read of size 4
==23413==    at 0x57DCC40: pthread_mutex_unlock (in /lib64/libpthread-2.12.1.so)
==23413==    by 0x53BD8F3: libusb_ref_device (in /usr/lib64/libusb-1.0.so.0.0.0)
==23413==    by 0x53BE4A7: libusb_open (in /usr/lib64/libusb-1.0.so.0.0.0)
==23413==    by 0x4E31B52: ftdi_usb_get_strings (ftdi.c:374)
==23413==    by 0x4009E2: main (in /home/maja/Projekte/LogicBoxSDK/find_all)
==23413==  Address 0x5a03bcc is 12 bytes inside a block of size 112 free'd
==23413==    at 0x4C28B72: free (vg_replace_malloc.c:366)
==23413==    by 0x53BDA44: libusb_free_device_list (in 
/usr/lib64/libusb-1.0.so.0.0.0)
==23413==    by 0x4E31A98: ftdi_usb_find_all (ftdi.c:307)
==23413==    by 0x400913: main (in /home/maja/Projekte/LogicBoxSDK/find_all)
==23413== 
==23413== Invalid read of size 4
==23413==    at 0x57DCC49: pthread_mutex_unlock (in /lib64/libpthread-2.12.1.so)
==23413==    by 0x53BD8F3: libusb_ref_device (in /usr/lib64/libusb-1.0.so.0.0.0)
==23413==    by 0x53BE4A7: libusb_open (in /usr/lib64/libusb-1.0.so.0.0.0)
==23413==    by 0x4E31B52: ftdi_usb_get_strings (ftdi.c:374)
==23413==    by 0x4009E2: main (in /home/maja/Projekte/LogicBoxSDK/find_all)
==23413==  Address 0x5a03bc0 is 0 bytes inside a block of size 112 free'd
==23413==    at 0x4C28B72: free (vg_replace_malloc.c:366)
==23413==    by 0x53BDA44: libusb_free_device_list (in 
/usr/lib64/libusb-1.0.so.0.0.0)
==23413==    by 0x4E31A98: ftdi_usb_find_all (ftdi.c:307)
==23413==    by 0x400913: main (in /home/maja/Projekte/LogicBoxSDK/find_all)
==23413== 
==23413== Invalid read of size 1
==23413==    at 0x53C33CB: op_open (in /usr/lib64/libusb-1.0.so.0.0.0)
==23413==    by 0x53BE4CD: libusb_open (in /usr/lib64/libusb-1.0.so.0.0.0)
==23413==    by 0x4E31B52: ftdi_usb_get_strings (ftdi.c:374)
==23413==    by 0x4009E2: main (in /home/maja/Projekte/LogicBoxSDK/find_all)
==23413==  Address 0x5a03bf9 is 57 bytes inside a block of size 112 free'd
==23413==    at 0x4C28B72: free (vg_replace_malloc.c:366)
==23413==    by 0x53BDA44: libusb_free_device_list (in 
/usr/lib64/libusb-1.0.so.0.0.0)
==23413==    by 0x4E31A98: ftdi_usb_find_all (ftdi.c:307)
==23413==    by 0x400913: main (in /home/maja/Projekte/LogicBoxSDK/find_all)
==23413== 
==23413== Invalid read of size 1
==23413==    at 0x53C33D0: op_open (in /usr/lib64/libusb-1.0.so.0.0.0)
==23413==    by 0x53BE4CD: libusb_open (in /usr/lib64/libusb-1.0.so.0.0.0)
==23413==    by 0x4E31B52: ftdi_usb_get_strings (ftdi.c:374)
==23413==    by 0x4009E2: main (in /home/maja/Projekte/LogicBoxSDK/find_all)
==23413==  Address 0x5a03bf8 is 56 bytes inside a block of size 112 free'd
==23413==    at 0x4C28B72: free (vg_replace_malloc.c:366)
==23413==    by 0x53BDA44: libusb_free_device_list (in 
/usr/lib64/libusb-1.0.so.0.0.0)
==23413==    by 0x4E31A98: ftdi_usb_find_all (ftdi.c:307)
==23413==    by 0x400913: main (in /home/maja/Projekte/LogicBoxSDK/find_all)
==23413== 
==23413== Invalid read of size 8
==23413==    at 0x53C3406: op_open (in /usr/lib64/libusb-1.0.so.0.0.0)
==23413==    by 0x53BE4CD: libusb_open (in /usr/lib64/libusb-1.0.so.0.0.0)
==23413==    by 0x4E31B52: ftdi_usb_get_strings (ftdi.c:374)
==23413==    by 0x4009E2: main (in /home/maja/Projekte/LogicBoxSDK/find_all)
==23413==  Address 0x5a03bf0 is 48 bytes inside a block of size 112 free'd
==23413==    at 0x4C28B72: free (vg_replace_malloc.c:366)
==23413==    by 0x53BDA44: libusb_free_device_list (in 
/usr/lib64/libusb-1.0.so.0.0.0)
==23413==    by 0x4E31A98: ftdi_usb_find_all (ftdi.c:307)
==23413==    by 0x400913: main (in /home/maja/Projekte/LogicBoxSDK/find_all)
==23413== 
==23413== Invalid read of size 8
==23413==    at 0x53C2C80: __open_sysfs_attr (in /usr/lib64/libusb-1.0.so.0.0.0)
==23413==    by 0x53C32C0: op_get_device_descriptor (in 
/usr/lib64/libusb-1.0.so.0.0.0)
==23413==    by 0x53BF7B4: libusb_get_device_descriptor (in 
/usr/lib64/libusb-1.0.so.0.0.0)
==23413==    by 0x4E31B82: ftdi_usb_get_strings (ftdi.c:377)
==23413==    by 0x4009E2: main (in /home/maja/Projekte/LogicBoxSDK/find_all)
==23413==  Address 0x5a03c18 is 88 bytes inside a block of size 112 free'd
==23413==    at 0x4C28B72: free (vg_replace_malloc.c:366)
==23413==    by 0x53BDA44: libusb_free_device_list (in 
/usr/lib64/libusb-1.0.so.0.0.0)
==23413==    by 0x4E31A98: ftdi_usb_find_all (ftdi.c:307)
==23413==    by 0x400913: main (in /home/maja/Projekte/LogicBoxSDK/find_all)
==23413== 
==23413== Invalid read of size 1
==23413==    at 0x508426B: vfprintf (in /lib64/libc-2.12.1.so)
==23413==    by 0x50AAA31: vsnprintf (in /lib64/libc-2.12.1.so)
==23413==    by 0x508B662: snprintf (in /lib64/libc-2.12.1.so)
==23413==    by 0x53C2CA1: __open_sysfs_attr (in /usr/lib64/libusb-1.0.so.0.0.0)
==23413==    by 0x53C32C0: op_get_device_descriptor (in 
/usr/lib64/libusb-1.0.so.0.0.0)
==23413==    by 0x53BF7B4: libusb_get_device_descriptor (in 
/usr/lib64/libusb-1.0.so.0.0.0)
==23413==    by 0x4E31B82: ftdi_usb_get_strings (ftdi.c:377)
==23413==    by 0x4009E2: main (in /home/maja/Projekte/LogicBoxSDK/find_all)
==23413==  Address 0x5a03c70 is 0 bytes inside a block of size 6 free'd
==23413==    at 0x4C28B72: free (vg_replace_malloc.c:366)
==23413==    by 0x53BD9C6: libusb_unref_device (in 
/usr/lib64/libusb-1.0.so.0.0.0)
==23413==    by 0x53BDA44: libusb_free_device_list (in 
/usr/lib64/libusb-1.0.so.0.0.0)
==23413==    by 0x4E31A98: ftdi_usb_find_all (ftdi.c:307)
==23413==    by 0x400913: main (in /home/maja/Projekte/LogicBoxSDK/find_all)
==23413== 
==23413== Invalid read of size 1
==23413==    at 0x50AF040: _IO_default_xsputn (in /lib64/libc-2.12.1.so)
==23413==    by 0x508407B: vfprintf (in /lib64/libc-2.12.1.so)
==23413==    by 0x50AAA31: vsnprintf (in /lib64/libc-2.12.1.so)
==23413==    by 0x508B662: snprintf (in /lib64/libc-2.12.1.so)
==23413==    by 0x53C2CA1: __open_sysfs_attr (in /usr/lib64/libusb-1.0.so.0.0.0)
==23413==    by 0x53C32C0: op_get_device_descriptor (in 
/usr/lib64/libusb-1.0.so.0.0.0)
==23413==    by 0x53BF7B4: libusb_get_device_descriptor (in 
/usr/lib64/libusb-1.0.so.0.0.0)
==23413==    by 0x4E31B82: ftdi_usb_get_strings (ftdi.c:377)
==23413==    by 0x4009E2: main (in /home/maja/Projekte/LogicBoxSDK/find_all)
==23413==  Address 0x5a03c70 is 0 bytes inside a block of size 6 free'd
==23413==    at 0x4C28B72: free (vg_replace_malloc.c:366)
==23413==    by 0x53BD9C6: libusb_unref_device (in 
/usr/lib64/libusb-1.0.so.0.0.0)
==23413==    by 0x53BDA44: libusb_free_device_list (in 
/usr/lib64/libusb-1.0.so.0.0.0)
==23413==    by 0x4E31A98: ftdi_usb_find_all (ftdi.c:307)
==23413==    by 0x400913: main (in /home/maja/Projekte/LogicBoxSDK/find_all)
==23413== 
==23413== Invalid read of size 1
==23413==    at 0x50AF04F: _IO_default_xsputn (in /lib64/libc-2.12.1.so)
==23413==    by 0x508407B: vfprintf (in /lib64/libc-2.12.1.so)
==23413==    by 0x50AAA31: vsnprintf (in /lib64/libc-2.12.1.so)
==23413==    by 0x508B662: snprintf (in /lib64/libc-2.12.1.so)
==23413==    by 0x53C2CA1: __open_sysfs_attr (in /usr/lib64/libusb-1.0.so.0.0.0)
==23413==    by 0x53C32C0: op_get_device_descriptor (in 
/usr/lib64/libusb-1.0.so.0.0.0)
==23413==    by 0x53BF7B4: libusb_get_device_descriptor (in 
/usr/lib64/libusb-1.0.so.0.0.0)
==23413==    by 0x4E31B82: ftdi_usb_get_strings (ftdi.c:377)
==23413==    by 0x4009E2: main (in /home/maja/Projekte/LogicBoxSDK/find_all)
==23413==  Address 0x5a03c72 is 2 bytes inside a block of size 6 free'd
==23413==    at 0x4C28B72: free (vg_replace_malloc.c:366)
==23413==    by 0x53BD9C6: libusb_unref_device (in 
/usr/lib64/libusb-1.0.so.0.0.0)
==23413==    by 0x53BDA44: libusb_free_device_list (in 
/usr/lib64/libusb-1.0.so.0.0.0)
==23413==    by 0x4E31A98: ftdi_usb_find_all (ftdi.c:307)
==23413==    by 0x400913: main (in /home/maja/Projekte/LogicBoxSDK/find_all)
==23413== 
==23413== Invalid read of size 8
==23413==    at 0x53C0574: libusb_submit_transfer (in 
/usr/lib64/libusb-1.0.so.0.0.0)
==23413==    by 0x53C1EF1: libusb_control_transfer (in 
/usr/lib64/libusb-1.0.so.0.0.0)
==23413==    by 0x53C0009: libusb_get_string_descriptor_ascii (in 
/usr/lib64/libusb-1.0.so.0.0.0)
==23413==    by 0x4E31BC6: ftdi_usb_get_strings (ftdi.c:382)
==23413==    by 0x4009E2: main (in /home/maja/Projekte/LogicBoxSDK/find_all)
==23413==  Address 0x5a03bf0 is 48 bytes inside a block of size 112 free'd
==23413==    at 0x4C28B72: free (vg_replace_malloc.c:366)
==23413==    by 0x53BDA44: libusb_free_device_list (in 
/usr/lib64/libusb-1.0.so.0.0.0)
==23413==    by 0x4E31A98: ftdi_usb_find_all (ftdi.c:307)
==23413==    by 0x400913: main (in /home/maja/Projekte/LogicBoxSDK/find_all)
==23413== 
==23413== Invalid read of size 8
==23413==    at 0x53C05A7: libusb_submit_transfer (in 
/usr/lib64/libusb-1.0.so.0.0.0)
==23413==    by 0x53C1EF1: libusb_control_transfer (in 
/usr/lib64/libusb-1.0.so.0.0.0)
==23413==    by 0x53C0009: libusb_get_string_descriptor_ascii (in 
/usr/lib64/libusb-1.0.so.0.0.0)
==23413==    by 0x4E31BC6: ftdi_usb_get_strings (ftdi.c:382)
==23413==    by 0x4009E2: main (in /home/maja/Projekte/LogicBoxSDK/find_all)
==23413==  Address 0x5a03bf0 is 48 bytes inside a block of size 112 free'd
==23413==    at 0x4C28B72: free (vg_replace_malloc.c:366)
==23413==    by 0x53BDA44: libusb_free_device_list (in 
/usr/lib64/libusb-1.0.so.0.0.0)
==23413==    by 0x4E31A98: ftdi_usb_find_all (ftdi.c:307)
==23413==    by 0x400913: main (in /home/maja/Projekte/LogicBoxSDK/find_all)
==23413== 
==23413== Invalid read of size 8
==23413==    at 0x53C1F0C: libusb_control_transfer (in 
/usr/lib64/libusb-1.0.so.0.0.0)
==23413==    by 0x53C0009: libusb_get_string_descriptor_ascii (in 
/usr/lib64/libusb-1.0.so.0.0.0)
==23413==    by 0x4E31BC6: ftdi_usb_get_strings (ftdi.c:382)
==23413==    by 0x4009E2: main (in /home/maja/Projekte/LogicBoxSDK/find_all)
==23413==  Address 0x5a03bf0 is 48 bytes inside a block of size 112 free'd
==23413==    at 0x4C28B72: free (vg_replace_malloc.c:366)
==23413==    by 0x53BDA44: libusb_free_device_list (in 
/usr/lib64/libusb-1.0.so.0.0.0)
==23413==    by 0x4E31A98: ftdi_usb_find_all (ftdi.c:307)
==23413==    by 0x400913: main (in /home/maja/Projekte/LogicBoxSDK/find_all)
==23413== 
==23413== Invalid read of size 8
==23413==    at 0x53C0E3E: usbi_handle_transfer_completion (in 
/usr/lib64/libusb-1.0.so.0.0.0)
==23413==    by 0x53C4B0A: op_handle_events (in /usr/lib64/libusb-1.0.so.0.0.0)
==23413==    by 0x53C0BC0: handle_events (in /usr/lib64/libusb-1.0.so.0.0.0)
==23413==    by 0x53C1774: libusb_handle_events_timeout (in 
/usr/lib64/libusb-1.0.so.0.0.0)
==23413==    by 0x53C18AC: libusb_handle_events (in 
/usr/lib64/libusb-1.0.so.0.0.0)
==23413==    by 0x53C1F14: libusb_control_transfer (in 
/usr/lib64/libusb-1.0.so.0.0.0)
==23413==    by 0x53C0009: libusb_get_string_descriptor_ascii (in 
/usr/lib64/libusb-1.0.so.0.0.0)
==23413==    by 0x4E31BC6: ftdi_usb_get_strings (ftdi.c:382)
==23413==    by 0x4009E2: main (in /home/maja/Projekte/LogicBoxSDK/find_all)
==23413==  Address 0x5a03bf0 is 48 bytes inside a block of size 112 free'd
==23413==    at 0x4C28B72: free (vg_replace_malloc.c:366)
==23413==    by 0x53BDA44: libusb_free_device_list (in 
/usr/lib64/libusb-1.0.so.0.0.0)
==23413==    by 0x4E31A98: ftdi_usb_find_all (ftdi.c:307)
==23413==    by 0x400913: main (in /home/maja/Projekte/LogicBoxSDK/find_all)
==23413== 
==23413== Invalid read of size 8
==23413==    at 0x53C0574: libusb_submit_transfer (in 
/usr/lib64/libusb-1.0.so.0.0.0)
==23413==    by 0x53C1EF1: libusb_control_transfer (in 
/usr/lib64/libusb-1.0.so.0.0.0)
==23413==    by 0x53C008B: libusb_get_string_descriptor_ascii (in 
/usr/lib64/libusb-1.0.so.0.0.0)
==23413==    by 0x4E31BC6: ftdi_usb_get_strings (ftdi.c:382)
==23413==    by 0x4009E2: main (in /home/maja/Projekte/LogicBoxSDK/find_all)
==23413==  Address 0x5a03bf0 is 48 bytes inside a block of size 112 free'd
==23413==    at 0x4C28B72: free (vg_replace_malloc.c:366)
==23413==    by 0x53BDA44: libusb_free_device_list (in 
/usr/lib64/libusb-1.0.so.0.0.0)
==23413==    by 0x4E31A98: ftdi_usb_find_all (ftdi.c:307)
==23413==    by 0x400913: main (in /home/maja/Projekte/LogicBoxSDK/find_all)
==23413== 
==23413== Invalid read of size 8
==23413==    at 0x53C05A7: libusb_submit_transfer (in 
/usr/lib64/libusb-1.0.so.0.0.0)
==23413==    by 0x53C1EF1: libusb_control_transfer (in 
/usr/lib64/libusb-1.0.so.0.0.0)
==23413==    by 0x53C008B: libusb_get_string_descriptor_ascii (in 
/usr/lib64/libusb-1.0.so.0.0.0)
==23413==    by 0x4E31BC6: ftdi_usb_get_strings (ftdi.c:382)
==23413==    by 0x4009E2: main (in /home/maja/Projekte/LogicBoxSDK/find_all)
==23413==  Address 0x5a03bf0 is 48 bytes inside a block of size 112 free'd
==23413==    at 0x4C28B72: free (vg_replace_malloc.c:366)
==23413==    by 0x53BDA44: libusb_free_device_list (in 
/usr/lib64/libusb-1.0.so.0.0.0)
==23413==    by 0x4E31A98: ftdi_usb_find_all (ftdi.c:307)
==23413==    by 0x400913: main (in /home/maja/Projekte/LogicBoxSDK/find_all)
==23413== 
==23413== Invalid read of size 8
==23413==    at 0x53C1F0C: libusb_control_transfer (in 
/usr/lib64/libusb-1.0.so.0.0.0)
==23413==    by 0x53C008B: libusb_get_string_descriptor_ascii (in 
/usr/lib64/libusb-1.0.so.0.0.0)
==23413==    by 0x4E31BC6: ftdi_usb_get_strings (ftdi.c:382)
==23413==    by 0x4009E2: main (in /home/maja/Projekte/LogicBoxSDK/find_all)
==23413==  Address 0x5a03bf0 is 48 bytes inside a block of size 112 free'd
==23413==    at 0x4C28B72: free (vg_replace_malloc.c:366)
==23413==    by 0x53BDA44: libusb_free_device_list (in 
/usr/lib64/libusb-1.0.so.0.0.0)
==23413==    by 0x4E31A98: ftdi_usb_find_all (ftdi.c:307)
==23413==    by 0x400913: main (in /home/maja/Projekte/LogicBoxSDK/find_all)
==23413== 
==23413== Invalid read of size 8
==23413==    at 0x53C0574: libusb_submit_transfer (in 
/usr/lib64/libusb-1.0.so.0.0.0)
==23413==    by 0x53C1EF1: libusb_control_transfer (in 
/usr/lib64/libusb-1.0.so.0.0.0)
==23413==    by 0x53C0009: libusb_get_string_descriptor_ascii (in 
/usr/lib64/libusb-1.0.so.0.0.0)
==23413==    by 0x4E31C16: ftdi_usb_get_strings (ftdi.c:391)
==23413==    by 0x4009E2: main (in /home/maja/Projekte/LogicBoxSDK/find_all)
==23413==  Address 0x5a03bf0 is 48 bytes inside a block of size 112 free'd
==23413==    at 0x4C28B72: free (vg_replace_malloc.c:366)
==23413==    by 0x53BDA44: libusb_free_device_list (in 
/usr/lib64/libusb-1.0.so.0.0.0)
==23413==    by 0x4E31A98: ftdi_usb_find_all (ftdi.c:307)
==23413==    by 0x400913: main (in /home/maja/Projekte/LogicBoxSDK/find_all)
==23413== 
==23413== Invalid read of size 8
==23413==    at 0x53C05A7: libusb_submit_transfer (in 
/usr/lib64/libusb-1.0.so.0.0.0)
==23413==    by 0x53C1EF1: libusb_control_transfer (in 
/usr/lib64/libusb-1.0.so.0.0.0)
==23413==    by 0x53C0009: libusb_get_string_descriptor_ascii (in 
/usr/lib64/libusb-1.0.so.0.0.0)
==23413==    by 0x4E31C16: ftdi_usb_get_strings (ftdi.c:391)
==23413==    by 0x4009E2: main (in /home/maja/Projekte/LogicBoxSDK/find_all)
==23413==  Address 0x5a03bf0 is 48 bytes inside a block of size 112 free'd
==23413==    at 0x4C28B72: free (vg_replace_malloc.c:366)
==23413==    by 0x53BDA44: libusb_free_device_list (in 
/usr/lib64/libusb-1.0.so.0.0.0)
==23413==    by 0x4E31A98: ftdi_usb_find_all (ftdi.c:307)
==23413==    by 0x400913: main (in /home/maja/Projekte/LogicBoxSDK/find_all)
==23413== 
==23413== Invalid read of size 8
==23413==    at 0x53C1F0C: libusb_control_transfer (in 
/usr/lib64/libusb-1.0.so.0.0.0)
==23413==    by 0x53C0009: libusb_get_string_descriptor_ascii (in 
/usr/lib64/libusb-1.0.so.0.0.0)
==23413==    by 0x4E31C16: ftdi_usb_get_strings (ftdi.c:391)
==23413==    by 0x4009E2: main (in /home/maja/Projekte/LogicBoxSDK/find_all)
==23413==  Address 0x5a03bf0 is 48 bytes inside a block of size 112 free'd
==23413==    at 0x4C28B72: free (vg_replace_malloc.c:366)
==23413==    by 0x53BDA44: libusb_free_device_list (in 
/usr/lib64/libusb-1.0.so.0.0.0)
==23413==    by 0x4E31A98: ftdi_usb_find_all (ftdi.c:307)
==23413==    by 0x400913: main (in /home/maja/Projekte/LogicBoxSDK/find_all)
==23413== 
==23413== Invalid read of size 8
==23413==    at 0x53C0574: libusb_submit_transfer (in 
/usr/lib64/libusb-1.0.so.0.0.0)
==23413==    by 0x53C1EF1: libusb_control_transfer (in 
/usr/lib64/libusb-1.0.so.0.0.0)
==23413==    by 0x53C008B: libusb_get_string_descriptor_ascii (in 
/usr/lib64/libusb-1.0.so.0.0.0)
==23413==    by 0x4E31C16: ftdi_usb_get_strings (ftdi.c:391)
==23413==    by 0x4009E2: main (in /home/maja/Projekte/LogicBoxSDK/find_all)
==23413==  Address 0x5a03bf0 is 48 bytes inside a block of size 112 free'd
==23413==    at 0x4C28B72: free (vg_replace_malloc.c:366)
==23413==    by 0x53BDA44: libusb_free_device_list (in 
/usr/lib64/libusb-1.0.so.0.0.0)
==23413==    by 0x4E31A98: ftdi_usb_find_all (ftdi.c:307)
==23413==    by 0x400913: main (in /home/maja/Projekte/LogicBoxSDK/find_all)
==23413== 
==23413== Invalid read of size 8
==23413==    at 0x53C05A7: libusb_submit_transfer (in 
/usr/lib64/libusb-1.0.so.0.0.0)
==23413==    by 0x53C1EF1: libusb_control_transfer (in 
/usr/lib64/libusb-1.0.so.0.0.0)
==23413==    by 0x53C008B: libusb_get_string_descriptor_ascii (in 
/usr/lib64/libusb-1.0.so.0.0.0)
==23413==    by 0x4E31C16: ftdi_usb_get_strings (ftdi.c:391)
==23413==    by 0x4009E2: main (in /home/maja/Projekte/LogicBoxSDK/find_all)
==23413==  Address 0x5a03bf0 is 48 bytes inside a block of size 112 free'd
==23413==    at 0x4C28B72: free (vg_replace_malloc.c:366)
==23413==    by 0x53BDA44: libusb_free_device_list (in 
/usr/lib64/libusb-1.0.so.0.0.0)
==23413==    by 0x4E31A98: ftdi_usb_find_all (ftdi.c:307)
==23413==    by 0x400913: main (in /home/maja/Projekte/LogicBoxSDK/find_all)
==23413== 
==23413== Invalid read of size 8
==23413==    at 0x53C1F0C: libusb_control_transfer (in 
/usr/lib64/libusb-1.0.so.0.0.0)
==23413==    by 0x53C008B: libusb_get_string_descriptor_ascii (in 
/usr/lib64/libusb-1.0.so.0.0.0)
==23413==    by 0x4E31C16: ftdi_usb_get_strings (ftdi.c:391)
==23413==    by 0x4009E2: main (in /home/maja/Projekte/LogicBoxSDK/find_all)
==23413==  Address 0x5a03bf0 is 48 bytes inside a block of size 112 free'd
==23413==    at 0x4C28B72: free (vg_replace_malloc.c:366)
==23413==    by 0x53BDA44: libusb_free_device_list (in 
/usr/lib64/libusb-1.0.so.0.0.0)
==23413==    by 0x4E31A98: ftdi_usb_find_all (ftdi.c:307)
==23413==    by 0x400913: main (in /home/maja/Projekte/LogicBoxSDK/find_all)
==23413== 
==23413== Invalid read of size 8
==23413==    at 0x53BE27C: libusb_close (in /usr/lib64/libusb-1.0.so.0.0.0)
==23413==    by 0x4E314C0: ftdi_usb_close_internal (ftdi.c:64)
==23413==    by 0x4E31C95: ftdi_usb_get_strings (ftdi.c:407)
==23413==    by 0x4009E2: main (in /home/maja/Projekte/LogicBoxSDK/find_all)
==23413==  Address 0x5a03bf0 is 48 bytes inside a block of size 112 free'd
==23413==    at 0x4C28B72: free (vg_replace_malloc.c:366)
==23413==    by 0x53BDA44: libusb_free_device_list (in 
/usr/lib64/libusb-1.0.so.0.0.0)
==23413==    by 0x4E31A98: ftdi_usb_find_all (ftdi.c:307)
==23413==    by 0x400913: main (in /home/maja/Projekte/LogicBoxSDK/find_all)
==23413== 
==23413== Invalid read of size 8
==23413==    at 0x53C2C4A: op_close (in /usr/lib64/libusb-1.0.so.0.0.0)
==23413==    by 0x53BE30A: libusb_close (in /usr/lib64/libusb-1.0.so.0.0.0)
==23413==    by 0x4E314C0: ftdi_usb_close_internal (ftdi.c:64)
==23413==    by 0x4E31C95: ftdi_usb_get_strings (ftdi.c:407)
==23413==    by 0x4009E2: main (in /home/maja/Projekte/LogicBoxSDK/find_all)
==23413==  Address 0x5a03bf0 is 48 bytes inside a block of size 112 free'd
==23413==    at 0x4C28B72: free (vg_replace_malloc.c:366)
==23413==    by 0x53BDA44: libusb_free_device_list (in 
/usr/lib64/libusb-1.0.so.0.0.0)
==23413==    by 0x4E31A98: ftdi_usb_find_all (ftdi.c:307)
==23413==    by 0x400913: main (in /home/maja/Projekte/LogicBoxSDK/find_all)
==23413== 
==23413== Invalid read of size 4
==23413==    at 0x57DB237: pthread_mutex_lock (in /lib64/libpthread-2.12.1.so)
==23413==    by 0x53BD99A: libusb_unref_device (in 
/usr/lib64/libusb-1.0.so.0.0.0)
==23413==    by 0x53BE313: libusb_close (in /usr/lib64/libusb-1.0.so.0.0.0)
==23413==    by 0x4E314C0: ftdi_usb_close_internal (ftdi.c:64)
==23413==    by 0x4E31C95: ftdi_usb_get_strings (ftdi.c:407)
==23413==    by 0x4009E2: main (in /home/maja/Projekte/LogicBoxSDK/find_all)
==23413==  Address 0x5a03bd0 is 16 bytes inside a block of size 112 free'd
==23413==    at 0x4C28B72: free (vg_replace_malloc.c:366)
==23413==    by 0x53BDA44: libusb_free_device_list (in 
/usr/lib64/libusb-1.0.so.0.0.0)
==23413==    by 0x4E31A98: ftdi_usb_find_all (ftdi.c:307)
==23413==    by 0x400913: main (in /home/maja/Projekte/LogicBoxSDK/find_all)
==23413== 
==23413== Invalid read of size 4
==23413==    at 0x57DB25F: pthread_mutex_lock (in /lib64/libpthread-2.12.1.so)
==23413==    by 0x53BD99A: libusb_unref_device (in 
/usr/lib64/libusb-1.0.so.0.0.0)
==23413==    by 0x53BE313: libusb_close (in /usr/lib64/libusb-1.0.so.0.0.0)
==23413==    by 0x4E314C0: ftdi_usb_close_internal (ftdi.c:64)
==23413==    by 0x4E31C95: ftdi_usb_get_strings (ftdi.c:407)
==23413==    by 0x4009E2: main (in /home/maja/Projekte/LogicBoxSDK/find_all)
==23413==  Address 0x5a03bc0 is 0 bytes inside a block of size 112 free'd
==23413==    at 0x4C28B72: free (vg_replace_malloc.c:366)
==23413==    by 0x53BDA44: libusb_free_device_list (in 
/usr/lib64/libusb-1.0.so.0.0.0)
==23413==    by 0x4E31A98: ftdi_usb_find_all (ftdi.c:307)
==23413==    by 0x400913: main (in /home/maja/Projekte/LogicBoxSDK/find_all)
==23413== 
==23413== Invalid read of size 4
==23413==    at 0x57DB26A: pthread_mutex_lock (in /lib64/libpthread-2.12.1.so)
==23413==    by 0x53BD99A: libusb_unref_device (in 
/usr/lib64/libusb-1.0.so.0.0.0)
==23413==    by 0x53BE313: libusb_close (in /usr/lib64/libusb-1.0.so.0.0.0)
==23413==    by 0x4E314C0: ftdi_usb_close_internal (ftdi.c:64)
==23413==    by 0x4E31C95: ftdi_usb_get_strings (ftdi.c:407)
==23413==    by 0x4009E2: main (in /home/maja/Projekte/LogicBoxSDK/find_all)
==23413==  Address 0x5a03bc8 is 8 bytes inside a block of size 112 free'd
==23413==    at 0x4C28B72: free (vg_replace_malloc.c:366)
==23413==    by 0x53BDA44: libusb_free_device_list (in 
/usr/lib64/libusb-1.0.so.0.0.0)
==23413==    by 0x4E31A98: ftdi_usb_find_all (ftdi.c:307)
==23413==    by 0x400913: main (in /home/maja/Projekte/LogicBoxSDK/find_all)
==23413== 
==23413== Invalid write of size 4
==23413==    at 0x57DB272: pthread_mutex_lock (in /lib64/libpthread-2.12.1.so)
==23413==    by 0x53BD99A: libusb_unref_device (in 
/usr/lib64/libusb-1.0.so.0.0.0)
==23413==    by 0x53BE313: libusb_close (in /usr/lib64/libusb-1.0.so.0.0.0)
==23413==    by 0x4E314C0: ftdi_usb_close_internal (ftdi.c:64)
==23413==    by 0x4E31C95: ftdi_usb_get_strings (ftdi.c:407)
==23413==    by 0x4009E2: main (in /home/maja/Projekte/LogicBoxSDK/find_all)
==23413==  Address 0x5a03bc8 is 8 bytes inside a block of size 112 free'd
==23413==    at 0x4C28B72: free (vg_replace_malloc.c:366)
==23413==    by 0x53BDA44: libusb_free_device_list (in 
/usr/lib64/libusb-1.0.so.0.0.0)
==23413==    by 0x4E31A98: ftdi_usb_find_all (ftdi.c:307)
==23413==    by 0x400913: main (in /home/maja/Projekte/LogicBoxSDK/find_all)
==23413== 
==23413== Invalid read of size 4
==23413==    at 0x57DB276: pthread_mutex_lock (in /lib64/libpthread-2.12.1.so)
==23413==    by 0x53BD99A: libusb_unref_device (in 
/usr/lib64/libusb-1.0.so.0.0.0)
==23413==    by 0x53BE313: libusb_close (in /usr/lib64/libusb-1.0.so.0.0.0)
==23413==    by 0x4E314C0: ftdi_usb_close_internal (ftdi.c:64)
==23413==    by 0x4E31C95: ftdi_usb_get_strings (ftdi.c:407)
==23413==    by 0x4009E2: main (in /home/maja/Projekte/LogicBoxSDK/find_all)
==23413==  Address 0x5a03bcc is 12 bytes inside a block of size 112 free'd
==23413==    at 0x4C28B72: free (vg_replace_malloc.c:366)
==23413==    by 0x53BDA44: libusb_free_device_list (in 
/usr/lib64/libusb-1.0.so.0.0.0)
==23413==    by 0x4E31A98: ftdi_usb_find_all (ftdi.c:307)
==23413==    by 0x400913: main (in /home/maja/Projekte/LogicBoxSDK/find_all)
==23413== 
==23413== Invalid read of size 4
==23413==    at 0x53BD99B: libusb_unref_device (in 
/usr/lib64/libusb-1.0.so.0.0.0)
==23413==    by 0x53BE313: libusb_close (in /usr/lib64/libusb-1.0.so.0.0.0)
==23413==    by 0x4E314C0: ftdi_usb_close_internal (ftdi.c:64)
==23413==    by 0x4E31C95: ftdi_usb_get_strings (ftdi.c:407)
==23413==    by 0x4009E2: main (in /home/maja/Projekte/LogicBoxSDK/find_all)
==23413==  Address 0x5a03be8 is 40 bytes inside a block of size 112 free'd
==23413==    at 0x4C28B72: free (vg_replace_malloc.c:366)
==23413==    by 0x53BDA44: libusb_free_device_list (in 
/usr/lib64/libusb-1.0.so.0.0.0)
==23413==    by 0x4E31A98: ftdi_usb_find_all (ftdi.c:307)
==23413==    by 0x400913: main (in /home/maja/Projekte/LogicBoxSDK/find_all)
==23413== 
==23413== Invalid write of size 4
==23413==    at 0x53BD9A3: libusb_unref_device (in 
/usr/lib64/libusb-1.0.so.0.0.0)
==23413==    by 0x53BE313: libusb_close (in /usr/lib64/libusb-1.0.so.0.0.0)
==23413==    by 0x4E314C0: ftdi_usb_close_internal (ftdi.c:64)
==23413==    by 0x4E31C95: ftdi_usb_get_strings (ftdi.c:407)
==23413==    by 0x4009E2: main (in /home/maja/Projekte/LogicBoxSDK/find_all)
==23413==  Address 0x5a03be8 is 40 bytes inside a block of size 112 free'd
==23413==    at 0x4C28B72: free (vg_replace_malloc.c:366)
==23413==    by 0x53BDA44: libusb_free_device_list (in 
/usr/lib64/libusb-1.0.so.0.0.0)
==23413==    by 0x4E31A98: ftdi_usb_find_all (ftdi.c:307)
==23413==    by 0x400913: main (in /home/maja/Projekte/LogicBoxSDK/find_all)
==23413== 
==23413== Invalid read of size 4
==23413==    at 0x57DCC27: pthread_mutex_unlock (in /lib64/libpthread-2.12.1.so)
==23413==    by 0x53BD9AA: libusb_unref_device (in 
/usr/lib64/libusb-1.0.so.0.0.0)
==23413==    by 0x53BE313: libusb_close (in /usr/lib64/libusb-1.0.so.0.0.0)
==23413==    by 0x4E314C0: ftdi_usb_close_internal (ftdi.c:64)
==23413==    by 0x4E31C95: ftdi_usb_get_strings (ftdi.c:407)
==23413==    by 0x4009E2: main (in /home/maja/Projekte/LogicBoxSDK/find_all)
==23413==  Address 0x5a03bd0 is 16 bytes inside a block of size 112 free'd
==23413==    at 0x4C28B72: free (vg_replace_malloc.c:366)
==23413==    by 0x53BDA44: libusb_free_device_list (in 
/usr/lib64/libusb-1.0.so.0.0.0)
==23413==    by 0x4E31A98: ftdi_usb_find_all (ftdi.c:307)
==23413==    by 0x400913: main (in /home/maja/Projekte/LogicBoxSDK/find_all)
==23413== 
==23413== Invalid write of size 4
==23413==    at 0x57DCC39: pthread_mutex_unlock (in /lib64/libpthread-2.12.1.so)
==23413==    by 0x53BD9AA: libusb_unref_device (in 
/usr/lib64/libusb-1.0.so.0.0.0)
==23413==    by 0x53BE313: libusb_close (in /usr/lib64/libusb-1.0.so.0.0.0)
==23413==    by 0x4E314C0: ftdi_usb_close_internal (ftdi.c:64)
==23413==    by 0x4E31C95: ftdi_usb_get_strings (ftdi.c:407)
==23413==    by 0x4009E2: main (in /home/maja/Projekte/LogicBoxSDK/find_all)
==23413==  Address 0x5a03bc8 is 8 bytes inside a block of size 112 free'd
==23413==    at 0x4C28B72: free (vg_replace_malloc.c:366)
==23413==    by 0x53BDA44: libusb_free_device_list (in 
/usr/lib64/libusb-1.0.so.0.0.0)
==23413==    by 0x4E31A98: ftdi_usb_find_all (ftdi.c:307)
==23413==    by 0x400913: main (in /home/maja/Projekte/LogicBoxSDK/find_all)
==23413== 
==23413== Invalid read of size 4
==23413==    at 0x57DCC40: pthread_mutex_unlock (in /lib64/libpthread-2.12.1.so)
==23413==    by 0x53BD9AA: libusb_unref_device (in 
/usr/lib64/libusb-1.0.so.0.0.0)
==23413==    by 0x53BE313: libusb_close (in /usr/lib64/libusb-1.0.so.0.0.0)
==23413==    by 0x4E314C0: ftdi_usb_close_internal (ftdi.c:64)
==23413==    by 0x4E31C95: ftdi_usb_get_strings (ftdi.c:407)
==23413==    by 0x4009E2: main (in /home/maja/Projekte/LogicBoxSDK/find_all)
==23413==  Address 0x5a03bcc is 12 bytes inside a block of size 112 free'd
==23413==    at 0x4C28B72: free (vg_replace_malloc.c:366)
==23413==    by 0x53BDA44: libusb_free_device_list (in 
/usr/lib64/libusb-1.0.so.0.0.0)
==23413==    by 0x4E31A98: ftdi_usb_find_all (ftdi.c:307)
==23413==    by 0x400913: main (in /home/maja/Projekte/LogicBoxSDK/find_all)
==23413== 
==23413== Invalid read of size 4
==23413==    at 0x57DCC49: pthread_mutex_unlock (in /lib64/libpthread-2.12.1.so)
==23413==    by 0x53BD9AA: libusb_unref_device (in 
/usr/lib64/libusb-1.0.so.0.0.0)
==23413==    by 0x53BE313: libusb_close (in /usr/lib64/libusb-1.0.so.0.0.0)
==23413==    by 0x4E314C0: ftdi_usb_close_internal (ftdi.c:64)
==23413==    by 0x4E31C95: ftdi_usb_get_strings (ftdi.c:407)
==23413==    by 0x4009E2: main (in /home/maja/Projekte/LogicBoxSDK/find_all)
==23413==  Address 0x5a03bc0 is 0 bytes inside a block of size 112 free'd
==23413==    at 0x4C28B72: free (vg_replace_malloc.c:366)
==23413==    by 0x53BDA44: libusb_free_device_list (in 
/usr/lib64/libusb-1.0.so.0.0.0)
==23413==    by 0x4E31A98: ftdi_usb_find_all (ftdi.c:307)
==23413==    by 0x400913: main (in /home/maja/Projekte/LogicBoxSDK/find_all)
==23413== 
==23413== Invalid read of size 8
==23413==    at 0x53C27FB: op_destroy_device (in /usr/lib64/libusb-1.0.so.0.0.0)
==23413==    by 0x53BD9C6: libusb_unref_device (in 
/usr/lib64/libusb-1.0.so.0.0.0)
==23413==    by 0x53BE313: libusb_close (in /usr/lib64/libusb-1.0.so.0.0.0)
==23413==    by 0x4E314C0: ftdi_usb_close_internal (ftdi.c:64)
==23413==    by 0x4E31C95: ftdi_usb_get_strings (ftdi.c:407)
==23413==    by 0x4009E2: main (in /home/maja/Projekte/LogicBoxSDK/find_all)
==23413==  Address 0x5a03c18 is 88 bytes inside a block of size 112 free'd
==23413==    at 0x4C28B72: free (vg_replace_malloc.c:366)
==23413==    by 0x53BDA44: libusb_free_device_list (in 
/usr/lib64/libusb-1.0.so.0.0.0)
==23413==    by 0x4E31A98: ftdi_usb_find_all (ftdi.c:307)
==23413==    by 0x400913: main (in /home/maja/Projekte/LogicBoxSDK/find_all)
==23413== 
==23413== Invalid free() / delete / delete[]
==23413==    at 0x4C28B72: free (vg_replace_malloc.c:366)
==23413==    by 0x53BD9C6: libusb_unref_device (in 
/usr/lib64/libusb-1.0.so.0.0.0)
==23413==    by 0x53BE313: libusb_close (in /usr/lib64/libusb-1.0.so.0.0.0)
==23413==    by 0x4E314C0: ftdi_usb_close_internal (ftdi.c:64)
==23413==    by 0x4E31C95: ftdi_usb_get_strings (ftdi.c:407)
==23413==    by 0x4009E2: main (in /home/maja/Projekte/LogicBoxSDK/find_all)
==23413==  Address 0x5a03c70 is 0 bytes inside a block of size 6 free'd
==23413==    at 0x4C28B72: free (vg_replace_malloc.c:366)
==23413==    by 0x53BD9C6: libusb_unref_device (in 
/usr/lib64/libusb-1.0.so.0.0.0)
==23413==    by 0x53BDA44: libusb_free_device_list (in 
/usr/lib64/libusb-1.0.so.0.0.0)
==23413==    by 0x4E31A98: ftdi_usb_find_all (ftdi.c:307)
==23413==    by 0x400913: main (in /home/maja/Projekte/LogicBoxSDK/find_all)
==23413== 
==23413== Invalid read of size 8
==23413==    at 0x53BD9C7: libusb_unref_device (in 
/usr/lib64/libusb-1.0.so.0.0.0)
==23413==    by 0x53BE313: libusb_close (in /usr/lib64/libusb-1.0.so.0.0.0)
==23413==    by 0x4E314C0: ftdi_usb_close_internal (ftdi.c:64)
==23413==    by 0x4E31C95: ftdi_usb_get_strings (ftdi.c:407)
==23413==    by 0x4009E2: main (in /home/maja/Projekte/LogicBoxSDK/find_all)
==23413==  Address 0x5a03bf0 is 48 bytes inside a block of size 112 free'd
==23413==    at 0x4C28B72: free (vg_replace_malloc.c:366)
==23413==    by 0x53BDA44: libusb_free_device_list (in 
/usr/lib64/libusb-1.0.so.0.0.0)
==23413==    by 0x4E31A98: ftdi_usb_find_all (ftdi.c:307)
==23413==    by 0x400913: main (in /home/maja/Projekte/LogicBoxSDK/find_all)
==23413== 
==23413== Invalid read of size 8
==23413==    at 0x53BD9D4: libusb_unref_device (in 
/usr/lib64/libusb-1.0.so.0.0.0)
==23413==    by 0x53BE313: libusb_close (in /usr/lib64/libusb-1.0.so.0.0.0)
==23413==    by 0x4E314C0: ftdi_usb_close_internal (ftdi.c:64)
==23413==    by 0x4E31C95: ftdi_usb_get_strings (ftdi.c:407)
==23413==    by 0x4009E2: main (in /home/maja/Projekte/LogicBoxSDK/find_all)
==23413==  Address 0x5a03c08 is 72 bytes inside a block of size 112 free'd
==23413==    at 0x4C28B72: free (vg_replace_malloc.c:366)
==23413==    by 0x53BDA44: libusb_free_device_list (in 
/usr/lib64/libusb-1.0.so.0.0.0)
==23413==    by 0x4E31A98: ftdi_usb_find_all (ftdi.c:307)
==23413==    by 0x400913: main (in /home/maja/Projekte/LogicBoxSDK/find_all)
==23413== 
==23413== Invalid read of size 8
==23413==    at 0x53BD9D8: libusb_unref_device (in 
/usr/lib64/libusb-1.0.so.0.0.0)
==23413==    by 0x53BE313: libusb_close (in /usr/lib64/libusb-1.0.so.0.0.0)
==23413==    by 0x4E314C0: ftdi_usb_close_internal (ftdi.c:64)
==23413==    by 0x4E31C95: ftdi_usb_get_strings (ftdi.c:407)
==23413==    by 0x4009E2: main (in /home/maja/Projekte/LogicBoxSDK/find_all)
==23413==  Address 0x5a03c00 is 64 bytes inside a block of size 112 free'd
==23413==    at 0x4C28B72: free (vg_replace_malloc.c:366)
==23413==    by 0x53BDA44: libusb_free_device_list (in 
/usr/lib64/libusb-1.0.so.0.0.0)
==23413==    by 0x4E31A98: ftdi_usb_find_all (ftdi.c:307)
==23413==    by 0x400913: main (in /home/maja/Projekte/LogicBoxSDK/find_all)
==23413== 
==23413== Invalid read of size 8
==23413==    at 0x53BD9DC: libusb_unref_device (in 
/usr/lib64/libusb-1.0.so.0.0.0)
==23413==    by 0x53BE313: libusb_close (in /usr/lib64/libusb-1.0.so.0.0.0)
==23413==    by 0x4E314C0: ftdi_usb_close_internal (ftdi.c:64)
==23413==    by 0x4E31C95: ftdi_usb_get_strings (ftdi.c:407)
==23413==    by 0x4009E2: main (in /home/maja/Projekte/LogicBoxSDK/find_all)
==23413==  Address 0x5a03bf0 is 48 bytes inside a block of size 112 free'd
==23413==    at 0x4C28B72: free (vg_replace_malloc.c:366)
==23413==    by 0x53BDA44: libusb_free_device_list (in 
/usr/lib64/libusb-1.0.so.0.0.0)
==23413==    by 0x4E31A98: ftdi_usb_find_all (ftdi.c:307)
==23413==    by 0x400913: main (in /home/maja/Projekte/LogicBoxSDK/find_all)
==23413== 
==23413== Invalid read of size 8
==23413==    at 0x53BD9E7: libusb_unref_device (in 
/usr/lib64/libusb-1.0.so.0.0.0)
==23413==    by 0x53BE313: libusb_close (in /usr/lib64/libusb-1.0.so.0.0.0)
==23413==    by 0x4E314C0: ftdi_usb_close_internal (ftdi.c:64)
==23413==    by 0x4E31C95: ftdi_usb_get_strings (ftdi.c:407)
==23413==    by 0x4009E2: main (in /home/maja/Projekte/LogicBoxSDK/find_all)
==23413==  Address 0x5a03c00 is 64 bytes inside a block of size 112 free'd
==23413==    at 0x4C28B72: free (vg_replace_malloc.c:366)
==23413==    by 0x53BDA44: libusb_free_device_list (in 
/usr/lib64/libusb-1.0.so.0.0.0)
==23413==    by 0x4E31A98: ftdi_usb_find_all (ftdi.c:307)
==23413==    by 0x400913: main (in /home/maja/Projekte/LogicBoxSDK/find_all)
==23413== 
==23413== Invalid free() / delete / delete[]
==23413==    at 0x4C28B72: free (vg_replace_malloc.c:366)
==23413==    by 0x53BE313: libusb_close (in /usr/lib64/libusb-1.0.so.0.0.0)
==23413==    by 0x4E314C0: ftdi_usb_close_internal (ftdi.c:64)
==23413==    by 0x4E31C95: ftdi_usb_get_strings (ftdi.c:407)
==23413==    by 0x4009E2: main (in /home/maja/Projekte/LogicBoxSDK/find_all)
==23413==  Address 0x5a03bc0 is 0 bytes inside a block of size 112 free'd
==23413==    at 0x4C28B72: free (vg_replace_malloc.c:366)
==23413==    by 0x53BDA44: libusb_free_device_list (in 
/usr/lib64/libusb-1.0.so.0.0.0)
==23413==    by 0x4E31A98: ftdi_usb_find_all (ftdi.c:307)
==23413==    by 0x400913: main (in /home/maja/Projekte/LogicBoxSDK/find_all)
==23413== 
Number of FTDI devices found: 1
Checking device: 0
Manufacturer: Physik.Inst.Uni HD, Description: DL701

==23413== 
==23413== HEAP SUMMARY:
==23413==     in use at exit: 0 bytes in 0 blocks
==23413==   total heap usage: 65 allocs, 67 frees, 84,440 bytes allocated
==23413== 
==23413== All heap blocks were freed -- no leaks are possible
==23413== 
==23413== For counts of detected and suppressed errors, rerun with: -v
==23413== ERROR SUMMARY: 74 errors from 52 contexts (suppressed: 4 from 4)




--
libftdi - see http://www.intra2net.com/en/developer/libftdi for details.
To unsubscribe send a mail to libftdi+unsubscribe@xxxxxxxxxxxxxxxxxxxxxxx   

Current Thread