cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Re: elusive cache bug

From: Daniel Stenberg <daniel-curl_at_haxx.se>
Date: Fri, 9 Jan 2004 00:06:23 +0100 (CET)

On Tue, 23 Dec 2003, Giuseppe Attardi wrote:

> > What do you say about the attached patch? Does it make your program behave
> > any different?
>
> Yes, it crashes. I restored my patch and it works again.

But your patch simply removes the cache pruning, that is not a good fix.

The way the current code works, the pruning should at least not interfere with
the use of the cache. And if the code always work when not pruning, then the
bug is in the prune-code itself...

Can you make up a debug-program that is similar to what your program does to
only add and prune entries in the cache to see if you can provoke the bug to
appear, I mean using direct calls to the internal cache functions?

(I've now added this bug to the list of bugs to fix for 7.11.0)

-- 
    Daniel Stenberg -- http://curl.haxx.se/ -- http://daniel.haxx.se/
   [[ Do not send mails to this email address. They won't reach me. ]]
-------------------------------------------------------
This SF.net email is sponsored by: Perforce Software.
Perforce is the Fast Software Configuration Management System offering
advanced branching capabilities and atomic changes on 50+ platforms.
Free Eval! http://www.perforce.com/perforce/loadprog.html
Received on 2004-01-09