gnokii-users
[Top][All Lists]
Advanced

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

Re: --getsms with N6310i core dumps


From: Vitezslav Samel
Subject: Re: --getsms with N6310i core dumps
Date: Fri, 7 Feb 2003 17:24:29 +0100
User-agent: Mutt/1.4i

On Fri, Feb 07, 2003 at 04:40:27PM +0100, Pawel Kot wrote:
> >>> address@hidden 7 February 2003 16:21:18 >>>
> >   I'm trying to get SMS from my phone using gnokii (current CVS), but
> it
> > (sometimes) segfaults in NK6510_GetSMSFolderStatus() see below the
> debug
> > output and gdb session on the core dump. What should I do to get SMS
> from
> > my phone?
> [cut]
> > pc11:/tmp/gnokii-CVS/gnokii> ./gnokii --getsms IN 0
> 
> Use the correct location, eg gnokii --getsms IN 1
> I'll fix gnokii not to accept the incorrect input values in the mean
> time.

  This time I tried "gnokii --getsms IN 1" and it coredumps too. At the end of
of the debug session there is a gdb output: I think that indexing an array with
a value 134572309 is a little bit suspicious (see the last two lines of gdb
session).

        Cheers,
                Vita


pc11:/tmp/gnokii-CVS/gnokii> ./gnokii.debug --getsms IN 1
GNOKII Version 0.5.0pre6
Opened configuration file /home/samel/.gnokiirc
Added new section global
Adding key/value port//dev/ttyS1
Adding key/value model/6310i
Adding key/value initlength/default
Adding key/value connection/dlr3p
Adding key/value bindir//usr/local/sbin/
Adding key/value serial_baudrate/19200
Added new section sms
Adding key/value timeout/10
phone instance config:
model: 6310i
port_device: /dev/ttyS1
connection_type: 2
init_length: 0
serial_baudrate: 19200
serial_write_usleep: -1
hardware_handshake: 0
require_dcd: 0
smsc_timeout: 100
connect_script: 
disconnect_script: 
Connecting
Serial device: opening device /dev/ttyS1
Serial device: setting RTS to low and DTR to low
Serial device: setting RTS to high and DTR to high
Serial device: setting speed to 19200
Serial device: setting speed to 115200
Getting model...
Message sent: 0x1b / 0x0006
00 01 00 07 01 00                               |                 
[Received Ack of type 1b, seq: 80]
[Sending Ack of type 1b, seq: 4]
Message received: 0x1b / 0x0032
01 2f 00 08 00 01 58 2d 00 26 56 20 35 2e 32 32 |  /    X- &V 5.22
20 20 20 20 20 0a 31 35 2d 31 31 2d 30 32 0a 4e |       15-11-02 N
50 4c 2d 31 0a 28 63 29 20 4e 4d 50 2e 0a 4c 00 | PL-1 (c) NMP. L 
00 00                                           |                 
Received message type 1b
model length: 5
Received model NPL-1
Getting SMS...
Getting SMS Folders...
Message sent: 0x14 / 0x0006
00 01 00 12 00 00                               |                 
[Received Ack of type 14, seq:  1]
[Sending Ack of type 14, seq: 5]
SM_Block Retry - 0
Message sent: 0x14 / 0x0006
00 01 00 12 00 00                               |                 
[Sending Ack of type 14, seq: 6]
Message received: 0x14 / 0x00a6
01 44 00 13 00 04 01 28 02 07 00 50 01 59 00 69 |  D     (   P Y i
00 6a 00 61 00 74 00 e9 00 00 00 00 00 00 00 00 |  j a t é        
00 00 00 00 00 00 00 00 00 00 00 00 00 00 01 28 |                (
03 09 00 4f 00 64 00 65 00 73 00 ed 00 6c 00 61 |    O d e s í l a
00 6e 00 e9 00 00 00 00 00 00 00 00 00 00 00 00 |  n é            
00 00 00 00 00 00 01 28 04 06 00 41 00 72 00 63 |        (   A r c
00 68 00 ed 00 76 00 00 00 00 00 00 00 00 00 00 |  h í v          
00 00 00 00 00 00 00 00 00 00 00 00 00 00 01 28 |                (
05 07 01 60 00 61 00 62 00 6c 00 6f 00 6e 00 79 |    ` a b l o n y
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |                 
00 00 31 41 af fe                               |   1AŻţ          
Received message type 14
Message: 4 SMS Folders received:
Folder(2) name: Přijaté
Folder(3) name: Odesílané
Folder(4) name: Archív
Folder(5) name: Šablony
Getting SMS Folder (2) status (2)...
Special case IN/OUTBOX in GetSMSFolderStatus!
Message sent: 0x14 / 0x000a
00 01 00 0c 02 02 0f 55 55 55                   |        UUU      
[Received Ack of type 14, seq:  2]
[Sending Ack of type 14, seq: 7]
[Received Ack of type 14, seq:  3]
[Sending Ack of type 14, seq: 0]
Message received: 0x14 / 0x00a6
01 44 00 13 00 04 01 28 02 07 00 50 01 59 00 69 |  D     (   P Y i
00 6a 00 61 00 74 00 e9 00 00 ff ff ff ff ff ff |  j a t é  ˙˙˙˙˙˙
ff ff ff ff ff ff ff ff ff ff ff ff ff ff 01 28 | ˙˙˙˙˙˙˙˙˙˙˙˙˙˙ (
03 09 00 4f 00 64 00 65 00 73 00 ed 00 6c 00 61 |    O d e s í l a
00 6e 00 e9 00 00 d1 ce de ad 00 00 00 1a 2b 6e |  n é  ŃÎŢ­    +n
00 00 00 08 9b 10 01 28 04 06 00 41 00 72 00 63 |        (   A r c
00 68 00 ed 00 76 00 00 af fe d1 ce de ad 00 00 |  h í v  ŻţŃÎŢ­  
00 11 35 ce de ad 00 08 88 40 00 01 00 00 01 28 |   5ÎŢ­   @     (
05 07 01 60 00 61 00 62 00 6c 00 6f 00 6e 00 79 |    ` a b l o n y
00 00 00 00 00 10 00 00 00 01 00 00 00 00 00 00 |                 
00 00 31 41 59 27                               |   1AY'          
Received message type 14
Message: 4 SMS Folders received:
Folder(2) name: Přijaté
Folder(3) name: Odesílané
Folder(4) name: Archív
Folder(5) name: Šablony
Message sent: 0x14 / 0x000a
00 01 00 0c 01 02 0f 55 55 55                   |        UUU      
[Sending Ack of type 14, seq: 1]
[Received Ack of type 14, seq:  4]
[Sending Ack of type 14, seq: 2]
SM_Block Retry - 0
Message sent: 0x14 / 0x000a
00 01 00 0c 01 02 0f 55 55 55                   |        UUU      
[Sending Ack of type 14, seq: 3]
[Received Ack of type 14, seq:  5]
[Sending Ack of type 14, seq: 4]
SM_Block Retry - 1
Message sent: 0x14 / 0x000a
00 01 00 0c 01 02 0f 55 55 55                   |        UUU      
[Sending Ack of type 14, seq: 5]
[Received Ack of type 14, seq:  6]
[Sending Ack of type 14, seq: 6]
[Sending Ack of type 14, seq: 7]
Message received: 0x14 / 0x0334
01 44 00 0d 00 00 00 00 00 00 00 00 00 00 00 00 |  D              
00 09 0d 00 01 00 04 01 15 00 00 00 00 00 00 01 |                 
12 7f ff e0 00 00 00 00 00 00 00 00 00 00 00 00 |   ˙ŕ            
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |                 
00 00 00 00 00 00 00 00 00 00 00 00 07 47 31 41 |              G1A
af fe d1 ce de ad 00 00 00 d4 2b 00 00 00 00 08 | ŻţŃÎŢ­   Ô+     
cb 6c 1e 0c 00 14 03 34 01 44 00 0d 00 00 00 03 | Ël     4 D      
00 01 31 41 af fe d1 ce de ad 00 00 00 cb 1d 00 |   1AŻţŃÎŢ­   Ë  
00 00 00 08 ca 4c 01 01 00 00 01 00 06 01 01 01 |     ĘL          
01 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |                 
00 00 00 00 00 09 0d 00 01 00 04 01 27 00 00 00 |             '   
00 00 00 01 12 bf ff e0 00 00 00 00 00 00 00 00 |      ż˙ŕ        
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |                 
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |                 
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |                 
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |                 
00 00 00 00 00 00 00 00 00 44 69 32 f0 20 06 b6 |          Di2đ  ś
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |                 
00 00 00 00 00 20 00 00 02 00 00 00 00 00 00 00 |                 
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |                 
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |                 
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |                 
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |                 
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |                 
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |                 
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |                 
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |                 
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |                 
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |                 
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |                 
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |                 
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |                 
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |                 
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |                 
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |                 
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |                 
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |                 
00 01 01 01 00 00 00 00 00 00 00 00 00 00 00 00 |                 
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |                 
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |                 
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |                 
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |                 
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |                 
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |                 
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |                 
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |                 
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |                 
00 00 00 00 00 00 00 00 00 00 00 00 00 24 00 25 |              $ %
00 26 00 27 00 28 00 31 00 3d 00 3e 00 3f 00 40 |  & ' ( 1 = > ? @
00 41 00 42 00 43 00 44 00 45 00 46 00 51 00 5d |  A B C D E F Q ]
00 60 ff ff ff ff ff ff ff ff ff ff ff ff ff ff |  `˙˙˙˙˙˙˙˙˙˙˙˙˙˙
ff ff ff ff                                     | ˙˙˙˙            
Received message type 14
Message: SMS Folder status received
Message: Number of Entries: 0
Message: IDs of Entries : 
Neoprávněný přístup do paměti (SIGSEGV) (core dumped)


pc11:/tmp/gnokii-CVS/gnokii> gdb gnokii.debug core.14112
GNU gdb 5.2.1
Copyright 2002 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "i686-pc-linux-gnu"...
Core was generated by `./gnokii.debug --getsms IN 1'.
Program terminated with signal 11, Segmentation fault.
Reading symbols from /lib/libc.so.6...done.
Loaded symbols for /lib/libc.so.6
Reading symbols from /lib/ld-linux.so.2...done.
Loaded symbols for /lib/ld-linux.so.2
Reading symbols from /usr/lib/gconv/ISO8859-2.so...done.
Loaded symbols for /usr/lib/gconv/ISO8859-2.so
#0  0x08075667 in NK6510_GetSMSFolderStatus (data=0x80ba0e0, state=0x80b9e00)
    at nk6510.c:944
944                             
data->sms_folder->locations[data->sms_folder->number] = phone.locations[i] + 
1024;
(gdb) print i
$1 = 191
(gdb) print data->sms_folder->number
$2 = 134572309
(gdb) q




reply via email to

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