curl-library
elusive cache bug
Date: Sat, 13 Dec 2003 00:30:01 +0100
I have been chasing for weeks an elusive bug that
manifests itself in corrupted lists containing cached dns entries.
I reduced my application so that cURL is used within a single thread and
now I have got some output from valgrind that seems to show that
entries are freed prematurely:
==1716== Invalid read of size 4
==1716== at 0x812DB13: Curl_resolv_unlock (hostip.c:379)
==1716== by 0x81332B8: Curl_done (url.c:3231)
==1716== by 0x812D55E: curl_multi_perform (multi.c:511)
==1716== by 0x806F355: Retrieve(void) (crawlNT.cpp:889)
==1716== Address 0x41E86F74 is 8 bytes inside a block of size 12 free'd
==1716== at 0x40027B6F: free (vg_replace_malloc.c:220)
==1716== by 0x812CC51: hash_element_dtor (hash.c:62)
==1716== by 0x8139F8C: Curl_llist_remove (llist.c:136)
==1716== by 0x812CF39: Curl_hash_clean_with_criterium (hash.c:260)
-- Beppe
-------------------------------------------------------
This SF.net email is sponsored by: IBM Linux Tutorials.
Become an expert in LINUX or just sharpen your skills. Sign up for IBM's
Free Linux Tutorials. Learn everything from the bash shell to sys admin.
Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click
Received on 2003-12-13