Thu 22 Jan 2009 11:17:49 AM UTC, comment #4:
here there are. It take time to recompile a software to have the debugs symbols :
Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0x7fca8241e6e0 (LWP 29530)]
0x00007fca81826030 in strlen () from /lib/libc.so.6
(gdb) bt
#0 0x00007fca81826030 in strlen () from /lib/libc.so.6
#1 0x00007fca817f2cb1 in vfprintf () from /lib/libc.so.6
#2 0x00007fca817f3b60 in ?? () from /lib/libc.so.6
#3 0x00007fca817ef436 in vfprintf () from /lib/libc.so.6
#4 0x00007fca81faf26f in log_printf (mask=<value optimized out>, fmt=0x7fca81ffc5f6 "] = \"%s\"\n", ap=0x7fff8a444da0) at misc.c:361
#5 0x00007fca81faf579 in gn_log_debug (fmt=<value optimized out>) at misc.c:373
#6 0x00007fca81fd8b5b in ReplyReadPhonebook (messagetype=<value optimized out>, buffer=<value optimized out>,
length=<value optimized out>, data=0x1ba64a0, state=<value optimized out>) at atgen.c:1840
#7 0x00007fca81f9499e in sm_incoming_function (messagetype=13 '\r', message=0x1bbfc20, messagesize=<value optimized out>,
state=0x1ba60c0) at gsm-statemachine.c:131
#8 0x00007fca81fe2785 in atbus_loop (timeout=<value optimized out>, sm=0x1ba60c0) at atbus.c:238
#9 0x00007fca81f94adb in gn_sm_loop (timeout=1, state=0x1ba60c0) at gsm-statemachine.c:84
#10 0x00007fca81f94dd5 in __sm_block_timeout (waitfor=<value optimized out>, t=0, data=0x1ba64a0, state=0x1ba60c0)
at gsm-statemachine.c:275
#11 0x00007fca81fd9ebf in AT_ReadPhonebook (data=0x1ba64a0, state=0x1ba60c0) at atgen.c:987
#12 0x000000000040b473 in getphonebook (argc=1, argv=0x7fff8a446ad8, data=0x1ba64a0, state=0x1ba60c0) at gnokii-phonebook.c:163
#13 0x00000000004046ff in parse_options (argc=4, argv=0x7fff8a446ad8) at gnokii.c:835
#14 0x00000000004049c1 in main (argc=4, argv=0x7fff8a446ad8) at gnokii.c:1125
(gdb)
|
Thu 22 Jan 2009 10:41:27 AM UTC, original submission:
Hello,
when synchronizing contacts with my 5220 XpressMusic Nokia phone, the
gnokii and xgnokii crash with a segmentation fault, for exemple:
$ gnokii --getphonebook ME 2
gnokiid Version 0.6.26
LOG: debug mask is 0x1
Config read from file /home/moi/.gnokiirc.
Le verrou /var/lock/LCK..ttyACM0 est inactif. Ecrasons-le..
phone instance config:
model = AT
port = /dev/ttyACM0
connection = serial
initlength = default
serial_baudrate = 19200
serial_write_usleep = -1
handshake = software
require_dcd = 0
smsc_timeout = 10
rfcomm_channel = 1
sm_retry = 0
Initializing AT capable mobile phone ...
Serial device: opening device /dev/ttyACM0
Serial device: setting RTS to high and DTR to high
Message sent: 0x00 / 0x0004
41 54 5a 0d | ATZ
write: [ATZ<cr>]
read : [ATZ<cr><cr><lf>OK<cr><lf>]
Message received: 0x00 / 0x000a
02 41 54 5a 0d 0d 0a 4f 4b 0d | ATZ OK
Received message type 00
Message sent: 0x00 / 0x0005
41 54 45 31 0d | ATE1
write: [ATE1<cr>]
read : [ATE1<cr><cr><lf>OK<cr><lf>]
Message received: 0x00 / 0x000b
02 41 54 45 31 0d 0d 0a 4f 4b 0d | ATE1 OK
Received message type 00
Message sent: 0x00 / 0x000a
41 54 2b 43 4d 45 45 3d 31 0d | AT+CMEE=1
write: [AT+CMEE=1<cr>]
read : [AT+CMEE=1<cr><cr><lf>OK<cr><lf>]
Message received: 0x00 / 0x0010
02 41 54 2b 43 4d 45 45 3d 31 0d 0d 0a 4f 4b 0d | AT+CMEE=1 OK
Received message type 00
Message sent: 0x06 / 0x0007
41 54 2b 47 4d 4d 0d | AT+GMM
write: [AT+GMM<cr>]
read : [AT+GMM<cr><cr><lf>Nokia 5220 XpressMusic<cr><lf><cr><lf>OK<cr><lf>]
Message received: 0x06 / 0x0027
02 41 54 2b 47 4d 4d 0d 0d 0a 4e 6f 6b 69 61 20 | AT+GMM Nokia
35 32 32 30 20 58 70 72 65 73 73 4d 75 73 69 63 | 5220 XpressMusic
0d 0a 0d 0a 4f 4b 0d | OK
Received message type 06
Message sent: 0x06 / 0x0008
41 54 2b 43 47 4d 49 0d | AT+CGMI
write: [AT+CGMI<cr>]
read : [AT+CGMI<cr><cr><lf>Nokia<cr><lf><cr><lf>OK<cr><lf>]
Message received: 0x06 / 0x0017
02 41 54 2b 43 47 4d 49 0d 0d 0a 4e 6f 6b 69 61 | AT+CGMI Nokia
0d 0a 0d 0a 4f 4b 0d | OK
Received message type 06
Message sent: 0x61 / 0x0009
41 54 2b 43 53 43 53 3f 0d | AT+CSCS?
write: [AT+CSCS?<cr>]
read : [AT+CSCS?<cr><cr><lf>+CSCS: "PCCP437"<cr><lf><cr><lf>OK<cr><lf>]
Message received: 0x61 / 0x0023
02 41 54 2b 43 53 43 53 3f 0d 0d 0a 2b 43 53 43 | AT+CSCS? +CSC
53 3a 20 22 50 43 43 50 34 33 37 22 0d 0a 0d 0a | S: "PCCP437"
4f 4b 0d | OK
Received message type 61
Initialisation completed
Message sent: 0x00 / 0x000d
41 54 2b 43 50 42 53 3d 22 4d 45 22 0d | AT+CPBS="ME"
write: [AT+CPBS="ME"<cr>]
read : [AT+CPBS="ME"<cr><cr><lf>OK<cr><lf>]
Message received: 0x00 / 0x0013
02 41 54 2b 43 50 42 53 3d 22 4d 45 22 0d 0d 0a | AT+CPBS="ME"
4f 4b 0d | OK
Received message type 00
Message sent: 0x65 / 0x000a
41 54 2b 43 50 42 52 3d 3f 0d | AT+CPBR=?
write: [AT+CPBR=?<cr>]
read : [AT+CPBR=?<cr><cr><lf>+CPBR: (1-2000),50,50,,,,40,20<cr><lf><cr><lf>OK<cr><lf>]
Message received: 0x65 / 0x0032
02 41 54 2b 43 50 42 52 3d 3f 0d 0d 0a 2b 43 50 | AT+CPBR=? +CP
42 52 3a 20 28 31 2d 32 30 30 30 29 2c 35 30 2c | BR: (1-2000),50,
35 30 2c 2c 2c 2c 34 30 2c 32 30 0d 0a 0d 0a 4f | 50,,,,40,20 O
4b 0d | K
Received message type 65
Memory offset: 0
Memory size: 2000
Message sent: 0x61 / 0x000a
41 54 2b 43 53 43 53 3d 3f 0d | AT+CSCS=?
write: [AT+CSCS=?<cr>]
read : [AT+CSCS=?<cr><cr><lf>+CSCS: ("UCS2","GSM","PCCP437","PCDN","IRA","8859-1","HEX")<cr><lf><cr><lf>OK<cr><lf>]
Message received: 0x61 / 0x004f
02 41 54 2b 43 53 43 53 3d 3f 0d 0d 0a 2b 43 53 | AT+CSCS=? +CS
43 53 3a 20 28 22 55 43 53 32 22 2c 22 47 53 4d | CS: ("UCS2","GSM
22 2c 22 50 43 43 50 34 33 37 22 2c 22 50 43 44 | ","PCCP437","PCD
4e 22 2c 22 49 52 41 22 2c 22 38 38 35 39 2d 31 | N","IRA","8859-1
22 2c 22 48 45 58 22 29 0d 0a 0d 0a 4f 4b 0d | ","HEX") OK
Received message type 61
Message sent: 0x00 / 0x000f
41 54 2b 43 53 43 53 3d 22 55 43 53 32 22 0d | AT+CSCS="UCS2"
write: [AT+CSCS="UCS2"<cr>]
read : [AT+CSCS="UCS2"<cr><cr><lf>OK<cr><lf>]
Message received: 0x00 / 0x0015
02 41 54 2b 43 53 43 53 3d 22 55 43 53 32 22 0d | AT+CSCS="UCS2"
0d 0a 4f 4b 0d | OK
Received message type 00
Message sent: 0x0d / 0x000a
41 54 2b 43 50 42 52 3d 32 0d | AT+CPBR=2
write: [AT+CPBR=2<cr>]
read : [AT+CPBR=2<cr><cr><lf>+CPBR: 2,"888",129,"005F006D006500730073006100670065007200690065",,,,,,,<cr><lf><cr><lf>OK<cr><lf>]
Message received: 0x0d / 0x005c
02 41 54 2b 43 50 42 52 3d 32 0d 0d 0a 2b 43 50 | AT+CPBR=2 +CP
42 52 3a 20 32 2c 22 38 38 38 22 2c 31 32 39 2c | BR: 2,"888",129,
22 30 30 35 46 30 30 36 44 30 30 36 35 30 30 37 | "005F006D0065007
33 30 30 37 33 30 30 36 31 30 30 36 37 30 30 36 | 3007300610067006
35 30 30 37 32 30 30 36 39 30 30 36 35 22 2c 2c | 5007200690065",,
2c 2c 2c 2c 2c 0d 0a 0d 0a 4f 4b 0d | ,,,,, OK
Received message type 0d
part[0] = "2"
part[1] = ""888""
part[2] = "129"
part[3] = ""005F006D006500730073006100670065007200690065""
part[4] = ""
part[5] = ",,,,,"
part[6] = "AT+CPBR=2"
part[7] = "+CPBR: 2"
part[8] = "OK"
part[9] = ""
Erreur de segmentation
|