gnokii-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: gnokii 0.6.29 and 0.6.32 master segfaults


From: Charles
Subject: Re: gnokii 0.6.29 and 0.6.32 master segfaults
Date: Sat, 21 Apr 2012 22:25:31 +0530
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:11.0) Gecko/20120404 Thunderbird/11.0.1

On 21/04/12 21:24, Daniele Forsi wrote:
> 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

dprintf() looked complex (!) so I used printf and found the segfault is
happening on the first call to get_iface_string (the printf before it
did, the one after did not).

> what version of libusb are you using?
> pkg-config --modversion libusb

0.1.12



reply via email to

[Prev in Thread] Current Thread [Next in Thread]