[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: gnokii 0.6.29 and 0.6.32 master segfaults
From: |
Daniele Forsi |
Subject: |
Re: gnokii 0.6.29 and 0.6.32 master segfaults |
Date: |
Sat, 21 Apr 2012 17:54:07 +0200 |
2012/4/21 Charles:
> Thanks for the prompt reply Daniele :-)
you know, it takes longer when you don't know what to write ;-)
> address@hidden:.../SBo/gnokii-master15apr12/gnokii$ gdb --args ./gnokii
> --identify
> "/tmp/SBo/gnokii-master15apr12/gnokii/gnokii": not in executable format:
indeed, if you build shared libraries that "gnokii" executable is a
libtool wrapper, so you need this:
libtool --mode=execute gdb --args ./gnokii --identify
the bug must be in common/devices/dku2libusb.c between lines 289 and 302:
get_iface_string(usb_handle, &DEVINSTANCE(state)->manufacturer,
current->device->descriptor.iManufacturer);
get_iface_string(usb_handle, &DEVINSTANCE(state)->product,
current->device->descriptor.iProduct);
get_iface_string(usb_handle, &DEVINSTANCE(state)->serial,
current->device->descriptor.iSerialNumber);
get_iface_string(usb_handle, &DEVINSTANCE(state)->configuration,
current->configuration_description);
get_iface_string(usb_handle, &DEVINSTANCE(state)->control_interface,
current->control_interface_description);
get_iface_string(usb_handle, &DEVINSTANCE(state)->data_interface_idle,
current->data_interface_idle_description);
get_iface_string(usb_handle, &DEVINSTANCE(state)->data_interface_active,
current->data_interface_active_description);
that's why it would be very useful to get debug symbols with line
numbers in gdb, else use the old way: add a dprintf() after each of
those lines to see where it fails
what version of libusb are you using?
pkg-config --modversion libusb
--
Daniele Forsi