Crash in EventListTimerHandler during load test

Hi All,

I'm having problems with LibWWW during load tests. After about 10-20
hours (or 1 - 2,000,000 transactions) of continous load (doing simple
GETs) it crashes in the following (line marked w/ '>>>>' line in the
EventListTimerHandler() function (HTEvtLst.c @ 206):

 ...
    SockEvents * sockp = (SockEvents *) param;
    HTEvent * event = NULL;

    /* Check for read timeout */
      if (sockp->timeouts[HTEvent_INDEX(HTEvent_READ)] == timer) {
      event = sockp->events[HTEvent_INDEX(HTEvent_READ)];
      HTTRACE(THD_TRACE, "Event....... READ timed out on %d.\n" _
sockp->s);
>>>>  return (*event->cbf) (sockp->s, event->param, HTEvent_TIMEOUT);
    }
 ...

What happens is that the event structure's 'cbf' field had become
invalid (zero or some random value) and an illegal address is being used
for the callback. I think the reason is that the event object in
question is already freed by somebody, and the memory is re-used for
something else (that would explain why it takes so long for this problem
to arise - the memory might keep the original value even if its freed,
if nobody re-uses it).

So far I was unable to figure out why this is happening. If somebody
knows or has any idea why, please let me know, it will be greatly
appreciated!

By the way, I'm using the 5.3.2 package on Windows NT, using async mode.
I've tried several patches suggested on the mailing list (including the
HTTimer patch from Stefan Wiesner), but to no avail.

Thanks,
Attila

begin 644 TEXT.htm
M/"%$3T-465!%($A434P@4%5"3$E#("(M+R]7,T,O+T141"!(5$U,(#0N,"!4
M<F%N<VET:6]N86PO+T5.(CX-"CQ(5$U,/CQ(14%$/@T*/$U%5$$@:'1T<"UE
M<75I=CU#;VYT96YT+51Y<&4@8V]N=&5N=#TB=&5X="]H=&UL.R!C:&%R<V5T
M/6ES;RTX.#4Y+3$B/@T*/$U%5$$@8V]N=&5N=#TB35-(5$U,(#4N-3`N-#$S
M-"XV,#`B(&YA;64]1T5.15)!5$]2/CPO2$5!1#X-"CQ"3T19('-T>6QE/2)-
M05)'24XM5$]0.B`R<'@[($9/3E0Z(#AP="!-4R!386YS(%-E<FEF.R!-05)'
M24XM3$5&5#H@,G!X(CX-"CQ$258^/$9/3E0@<VEZ93TQ/DAI($%L;"P\+T9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