Using libftdi.
For example if I try to use the ftdi-mpsse driver and a device exists, but permissions are insufficient, I get the following dump:
jtag> cable ftdi-mpsse 0d06:0382 ARM-USB-OCD
Initializing Olimex ARM-USB-OCD (FT2232) Cable on FTDI device 0d06:0382
Can't open ftdi device: inappropriate permissions on device!
Error: Cable initialization failed!
*** glibc detected *** jtag: double free or corruption (fasttop): 0x00000000006725c0 ***
======= Backtrace: =========
/lib/libc.so.6[0x2b77fffdeb0a]
/lib/libc.so.6(cfree+0x8c)[0x2b77fffe26fc]
/lib/libusb-0.1.so.4(usb_close+0x21)[0x2b77ffd668f1]
/usr/lib/libftdi.so.0(ftdi_usb_close+0x2c)[0x2b77ffb625cc]
jtag[0x40956d]
jtag[0x406049]
jtag[0x40ddbd]
jtag[0x40a966]
jtag[0x402b28]
jtag[0x402d8d]
/lib/libc.so.6(__libc_start_main+0xf4)[0x2b77fff8ab44]
jtag[0x402959]
A quick check whether it happens with the ftdi driver - yes:
jtag> cable ftdi 09fb:6001 UsbBlaster
Initializing Altera USB-Blaster Cable on FTDI device 09fb:6001
Segmentation fault (core dumped)
Logged In: YES
user_id=478715
Originator: YES
Duplicate Bug caused by reload of web form...