SCTP Discussions

Text archives Help


Re: [SCTP-Discussion] Crash in sctplib


Chronological Thread 
  • From: Michael Tuexen <Michael.Tuexen AT micmac.franken.de>
  • To: "Oleg Levy" <buskila AT gmail.com>
  • Cc: discussion AT sctp.de
  • Subject: Re: [SCTP-Discussion] Crash in sctplib
  • Date: Mon Mar 13 13:32:16 2006
  • List-id: SCTP Discussions <discussion.sctp.de>

Hi,

see my comments in-line.

Best regards
Michael

On Mar 13, 2006, at 1:09 PM, Oleg Levy wrote:

Hello

I'm receiving a crash in the "se_deliver_unreliably" function in streamengine.c:


while((tmp != NULL) && (((delivery_data*)(tmp->data))->tsn <= up_to_tsn))
{

d_chunk = (delivery_data*)(tmp->data);

g_list_remove (se->List, d_chunk);

sctp_free(d_chunk);

tmp = g_list_first(se->List); <<THE CRASH IS HERE

}

There are two questions:

1) Shouldn't the "g_list_remove (se->List, d_chunk);" line be changed to "se->List = g_list_remove (se->List, d_chunk);"?
sounds good.
2) How well the PRSCTP code is debugged?
Not very well... It has been tested at the interop, but I do not know if anyone is using it...
I'm using kernel implementations and an sctplib based simulation now...

Thanks

oleg





Archive powered by MHonArc 2.6.19+.

Top of page