[Top][All Lists]

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

Re: xgnokii, segfault while reading sms, some hints ,no solution

From: Pawel Kot
Subject: Re: xgnokii, segfault while reading sms, some hints ,no solution
Date: Mon, 30 Dec 2002 00:56:54 +0100 (CET)

On Mon, 30 Dec 2002, Ulrich Hopp wrote:

> As far as I can track down the segfault appears becauce data.sms.uhd.number
> and data.sms.udh.length are not initialized ( error : value out of bounds ).

Are you able to read this with gnokii? What kind of message is this?

> I'm wondering why a struct sms.udh.udh exists ?
> Perhaps some wizards could help ? ;-)

Yeah. SMS according to GSM Spec can contain a User Data Header (udh). It
can contain zero or more udhs. gn_sms_udh struct is to represent them.

> Program stack trace :
> GUI_Connect (a=0x0) at xgnokii_lowlevel.c:1260
> RefreshSMS(number=23) at xgnokii_lowlevel.c:370
> gn_sms_get_no_validate(data=0xbf7f693c, state=0x80c0fc0) at gsm-sms.c:771
> gn_sms_parse(date=...) at gsm-sms.c:693
> sms_decode_pdu(rawsms=.., sms=... ) at gsm-sms.c:671
> sms_decode_data(message=..., <Address ... out of bounds>, output=....,
> size=4158840124, udhlen=136127176,..... )

This looks as a complete rubbish (size and udhlen). If you could debug
this message with gnokii it would be usefull. If it does work with gnokii,
the error is in xgnokii.

mailto:address@hidden :: mailto:address@hidden :: Kernel Traffic po polsku

reply via email to

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