[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: Charles
Subject: Re: gnokii 0.6.29 and 0.6.32 master segfaults
Date: Thu, 26 Apr 2012 15:08:36 +0530
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:11.0) Gecko/20120404 Thunderbird/11.0.1

On 25/04/12 20:10, Daniele Forsi wrote:
> change the library search path at runtime to look first in the
> directory containing the new or what gnokii searches
> (use ldd gnokii to see needed libraries)
> looking at your output it could be something like:
> LD_LIBRARY_PATH=/tmp/package-libusb/usr/lib64/ gnokii --identify

address@hidden:~$ ldd /usr/bin/gnokii =>  (0x00007fff990c6000) => /usr/lib64/ (0x00007f02a4274000) => /usr/lib64/ (0x00007f02a4063000) => /usr/lib64/ (0x00007f02a3d22000) => /usr/lib64/ (0x00007f02a3b06000) => /usr/lib64/ (0x00007f02a3903000) => /usr/lib64/ (0x00007f02a36fd000) => /lib64/ (0x00007f02a34de000) => /usr/lib64/ (0x00007f02a32c3000) => /usr/lib64/ (0x00007f02a30bd000) => /usr/lib64/ (0x00007f02a2eb0000) => /usr/lib64/ (0x00007f02a2c53000) => /lib64/ (0x00007f02a2a34000) => /usr/lib64/ (0x00007f02a271d000) => /lib64/ (0x00007f02a2514000) => /usr/lib64/ (0x00007f02a22d5000) => /usr/lib64/ (0x00007f02a2084000) => /lib64/ (0x00007f02a1cde000)
        /lib64/ (0x00007f02a451b000)

Running ...
LD_LIBRARY_PATH=/tmp/libusb-1.0.8/libusb gnokii --identify
... did not produce the expected debug prints.

So I built packages of gnokii with debug prints and usblib with debug
prints and installed both of them and tested again, setting LIBUSB_DEBUG:

address@hidden:~$ export LIBUSB_DEBUG=3
address@hidden:~$ gnokii --identify
GNOKII Version 0.6.32git
LOG: debug mask is 0x1
Config read from file /home/c/.config/gnokii/config.
Lockfile /var/lock/LCK..1 is stale. Overriding it...
phone instance config:
model = series40
port = 1
connection = dku2libusb
initlength = default
serial_baudrate = 19200
serial_write_usleep = -1
handshake = software
require_dcd = 0
smsc_timeout = 10
rfcomm_channel = 0
sm_retry = 0
overrun: 1010 0
device: opening device USB
Ignoring extra header, type 171, length 5
Found FBUS interface
libusb:error [op_open] libusb couldn't open USB device
/dev/bus/usb/003/003: Permission denied.
libusb requires write access to USB device nodes.

Before get_iface_string calls   \
devinstance: 0x7fd55b3fe518      } From gnokii
current: 0x65e5e0               /
usb_get_string_simple: running  \
dev: (nil), desc_index: 1       /  From compat lib
Segmentation fault

address@hidden:~$ ls -l /dev/bus/usb/003/003
crw-rw-r-- 1 root root 189, 258 Apr 26 13:59 /dev/bus/usb/003/003

How should I go from here?

Investigate the /dev file's permissions?

In gnokii's usbfbus_find_interfaces, should I print usb_handle?  If so
what is its type, what does usb_open return (and incidentally, how can I
find the header file that declares it?)?

In gnokii's get_iface_string, should I print all the values which are
passed to usb_get_string_simple?  And if so what are their types?

In libusb's libusb_get_string_descriptor_ascii, should I add debug
prints to  identify where it segfaults, starting before the first use of
dev in the call to libusb_get_string_descriptor?

reply via email to

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