W3C home > Mailing lists > Public > www-lib@w3.org > October to December 2001

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

From: Azzurra Pantella <azzurra.pantella@netikos.com>
Date: Tue, 18 Dec 2001 16:27:12 +0100
Message-ID: <021301c187d8$77273b30$b00516ac@netikos.com>
To: <www-lib@w3.org>

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)


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

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:33:54 UTC