Fw: lbwww crashing after the deletion of an idle timed out HThost

Hi all,
after having  submitted  many GET (using HTLoad_toChunk) requests to the same HTTP1.1 host, our program crashed and we got some purify memory errors in libwww code (we were running a .purify exe) .
After a core and a log analysis  we are quite sure that the crash is due to a libwww problem after the deletion of an idle timed out host.
We noticed that in the HTHost.c module, while searching the HTHost cache within the function HTHost_new(),
a check is performed in order to delete old (older than  12 h ) and idle (empty pipeline) HTHost objects. The host was canceled and removed from the HostTable but apparently there was already an event connected with this host (a CLOSE event?)   in the "EventOrder" list waiting to be scheduled by EventOrder_executeAndDelete() (cfr. HTEvtLst.c).
The fields of the HTevent pointed by "pres->event" were previously freed and a crash resulted.
Has anybody observed similar problems ?
(We attempted a fix if u are interested)

Thanks,
            Azzurra


Azzurra Pantella
Mobile Applications Area
NETikos S.p.A.
Via Matteucci 34/B
56124 PISA
Tel.: + 39 050 968526
Fax: + 39 050 968525
e-mail:  azzurra.pantella@netikos.com
Internet: www.netikos.com

Received on Tuesday, 18 December 2001 10:27:46 UTC