Re: Backtrace of crash

Aarno Syvänen <[email protected]>
Newsgroups gmane.comp.mobile.kannel.devel
Message-ID <[email protected]>
NULL pointer should be tested before anything else
and handled separately (by just ignoring it)
But:
where does this truncated datagram come from ?
can you dump it ?

  Aarno

On 15.3.2004, at 13:40, Mindaugas Riauba wrote:

>
>
>> So wapbox log at debug level (level 0), with configured Kannel
>> --with-defaults=debug would be useful.
>
>   Well. Maybe I found something.
>
>   Before crash I'm getting the message "WARNING: WTP: got
> a truncated datagram, ignoring".
>   Lines 130-131 contains the following code:
> event = unpack_wdp_datagram_real(subdgram);
> wap_event_assert(event);
>
>   And unpack_wdp_datagram_read returns NULL if it detects
> truncated datagram. Without assertions the wapbox crashes
> by trying to access event->type in wap/wap_events.c line 222.
>
>   How to fix that?
>
>   Mindaugas
>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.