Menu

#10 Segfault/Memory corruption if USB device inaccessible

0.10
closed-duplicate
nobody
UrJTAG (101)
5
2007-11-22
2007-11-22
No

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)

Discussion

  • Kolja Waschk

    Kolja Waschk - 2007-11-22
    • status: open --> closed-duplicate
     
  • Kolja Waschk

    Kolja Waschk - 2007-11-22

    Logged In: YES
    user_id=478715
    Originator: YES

    Duplicate Bug caused by reload of web form...

     
  • Kolja Waschk

    Kolja Waschk - 2017-02-12
    • Group: 0.x --> 0.10
     

Log in to post a comment.