gnokii-users
[Top][All Lists]
Advanced

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

Re: smsd core dump


From: Paulius Bulotas
Subject: Re: smsd core dump
Date: Thu, 5 Sep 2002 15:01:07 +0200

Hello,

On 02 09 04, Pawel Kot wrote:
> Could you please try CVS version? The initialization for nk6100 driver
> changed. If the error remains, please let me know.

it seems, something is wrong with compiling gnokii in FreeBSD 4.6.2 or I'm 
missing
something, but the gdb session with latest cvs build follows ;)

It seems, compiler optimizes? line 98 in gsm-statemachine.c and emptydata 
variable
is not initialized. Compiling without -O2 does not help.

address@hidden:~# gcc -v
Using builtin specs.
gcc version 2.95.3 20010315 (release) [FreeBSD]

The same applies to gnokii (I debuged smsd, but when run, both crashes in the 
same place ;)

(gdb) break SM_IncomingFunction
Breakpoint 2 at 0x280abb0c: file gsm-statemachine.c, line 95.
(gdb) cont
Continuing.
Initializing connection...
Lockfile /var/spool/lock/LCK..ttyd0 is stale. Overriding it..
Serial device: opening device /dev/ttyd0
Serial device: setting speed to 115200
Serial device: setting RTS to low and DTR to high
Message sent: 0x40 / 0x0004
00 01 64 01                                     |   d
[Received Ack of type 40, seq: 80]
SM_Block Retry - 0
Message sent: 0x40 / 0x0004
00 01 64 01                                     |   d
[Received Ack of type 40, seq:  1]
[Sending Ack of type 40, seq: 4]

Breakpoint 2, SM_IncomingFunction (state=0x8059da0, messagetype=0 '\000', 
message=0x806d2b0, messagesize=0)
    at gsm-statemachine.c:95
95      {
(gdb) n
97              int temp = 1;
(gdb) n
99              GSM_Data *data = &emptydata;
(gdb) print emptydata
Error accessing memory address 0xbfaec70c: Bad address.
(gdb) n
100             GSM_Error res = GE_INTERNALERROR;
(gdb) n
101             int waitingfor = -1;
(gdb) n
104             dump("Message received: ");
(gdb) n
Message received: 105           SM_DumpMessage(messagetype, message, 
messagesize);
(gdb) n
0x40 / 0x000c
01 01 64 03 01 2f 08 01 01 01 1b 58             |   d  /     X
107             GSM_DataClear(&emptydata);
(gdb) cont
Continuing.

Program received signal SIGSEGV, Segmentation fault.
0x280aab83 in GSM_DataClear (data=0xbfaec70c) at gsm-common.c:82
82              memset(data, 0, sizeof(GSM_Data));

Paulius




reply via email to

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