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 17:31:24 +0530
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:11.0) Gecko/20120404 Thunderbird/11.0.1

On 21/04/12 16:19, Daniele Forsi wrote:
> 2012/4/21 Charles:
> 
>> > Program received signal SIGSEGV, Segmentation fault.
>> > 0x00007ffff69a0f71 in usb_get_string_simple () from
>> > /usr/lib64/libusb-0.1.so.4
>> > Were you hoping for more?
> yes, I was hoping to see line numbers
> the failing function usb_get_string_simple (from libusb) gets called
> in get_iface_string() from common/devices/dku2libusb.c once for every
> piece of information to get from the device (manufacturer name,
> product name, etc.) so there must be something unexpected
> can you show lsusb -vvv of that phone?
> 
>> >  Can I do anything to get something more
>> > useful than the "No symbol table info available" messages?
> try to run gnokii from the build directory instead of the installed one
> 
>> > The build uses "strip --strip-unneeded" on all the executables so I
>> > removed that and was hoping for an informative trace.
> removing it should have been enough, both the installed lib and the
> not installed lb should be "not stripped"
> file -L /usr/lib/libgnokii.so
> file -L common/.libs/libgnokii.so
> -- Daniele Forsi

Thanks for the prompt reply Daniele :-)

The lsusb -vvv output for the phone (run as root) is attached.

Permissions in the build directory prevented running gnokii as the
ordinary user so I ran as root and it worked:

address@hidden:/tmp/SBo/gnokii-master15apr12/gnokii# ./gnokii --config
~c/.config/gnokii/config --identify
GNOKII Version 0.6.32git
LOG: debug mask is 0x1
Config read from file /home/c/.config/gnokii/config.
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
Connecting
overrun: 1010 0
device: opening device USB
Ignoring extra header, type 171, length 5
Found FBUS interface
Can't set configuration: -16
Getting model...
Message sent: 0x1b / 0x0006
00 01 00 07 01 00                               |
Message received: 0x1b / 0x003e
01 39 00 08 00 01 58 38 00 31 56 20 30 37 2e 39 |  9    X8 1V 07.9
37 0a 31 33 2d 30 39 2d 31 30 0a 52 4d 2d 34 39 | 7 13-09-10 RM-49
35 0a 28 63 29 20 4e 6f 6b 69 61 20 20 20 20 20 | 5 (c) Nokia
20 20 20 20 20 20 20 0a 4d 4b 00 00 00 00       |         MK
Received message type 1b
model length: 6
Received model RM-495
Found model "RM-495"
Identifying...
Message sent: 0x1b / 0x0005
00 01 00 00 41                                  |     A
Message sent: 0x1b / 0x0006
00 01 00 07 01 00                               |
Message received: 0x1b / 0x001a
01 39 00 01 00 01 41 14 00 10 33 35 34 38 37 33 |  9    A   354873
30 34 35 32 30 30 39 33 30 00                   | 045200930
Received message type 1b
Received imei 354873045200930
Message received: 0x1b / 0x003e
01 39 00 08 00 01 58 38 00 31 56 20 30 37 2e 39 |  9    X8 1V 07.9
37 0a 31 33 2d 30 39 2d 31 30 0a 52 4d 2d 34 39 | 7 13-09-10 RM-49
35 0a 28 63 29 20 4e 6f 6b 69 61 20 20 20 20 20 | 5 (c) Nokia
20 20 20 20 20 20 20 0a 4d 4b 00 00 00 00       |         MK
Received message type 1b
Received revision V 07.97
model length: 6
Received model RM-495
IMEI         : 354873045200930
Manufacturer : Nokia
Found model "RM-495"
Model        : 5130 XpressMusic
Product name : RM-495
Revision     : V 07.97
device: closing device

I changed the ownership of the build directory files and reproduced the
problem as the ordinary user:

address@hidden:/tmp/SBo/gnokii-master15apr12/gnokii# chown -R c *
address@hidden:.../SBo/gnokii-master15apr12/gnokii$ ./gnokii --identify
GNOKII Version 0.6.32git
LOG: debug mask is 0x1
Config read from file /home/c/.config/gnokii/config.
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
Connecting
overrun: 1010 0
device: opening device USB
Ignoring extra header, type 171, length 5
Found FBUS interface
Segmentation fault

I tried to do the same under gdb but:

address@hidden:.../SBo/gnokii-master15apr12/gnokii$ gdb --args ./gnokii 
--identify
GNU gdb (GDB) 7.2
Copyright (C) 2010 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later
<http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-slackware-linux".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
"/tmp/SBo/gnokii-master15apr12/gnokii/gnokii": not in executable format:
File format not recognized
(gdb) run
Starting program:  --identify
No executable file specified.
Use the "file" or "exec-file" command.
(gdb) Quit

The libraries were not stripped in the build.  I should have written
"executables and shared object libraries".  They were not present with
the names you suggested so I searched for likely candidates and checked
them:

address@hidden:~# find / -type f -name '*libgnokii*'
/usr/lib64/libgnokii.la
/usr/lib64/libgnokii.so.7.0.0
address@hidden:~$ file -L /usr/lib64/libgnokii.la /usr/lib64/libgnokii.so.7.0.0
/usr/lib64/libgnokii.la:       libtool library file,
/usr/lib64/libgnokii.so.7.0.0: ELF 64-bit LSB shared object, x86-64,
version 1 (SYSV), dynamically linked, not stripped

Best

Charles

Attachment: lsusb.out
Description: Text document


reply via email to

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