cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: libcurl memleak

From: Avery Fay <avery_fay_at_symantec.com>
Date: Wed, 30 Oct 2002 17:53:05 -0500

During curl_easy_perform. They all happened before I every called
curl_easy_cleanup.

Avery Fay

                                                                                                                                                
                      cml932atom_at_sulusea.org
                      Sent by: To: curl-library_at_lists.sourceforge.net
                      curl-library-admin_at_lists.sour cc:
                      ceforge.net Subject: Re: libcurl memleak
                                                                                                                                                
                                                                                                                                                
                      10/30/2002 12:18 PM
                      Please respond to
                      curl-library
                                                                                                                                                
                                                                                                                                                

On Tue, Oct 29, 2002 at 01:24:30PM -0500, Avery Fay wrote:
>
> curl_easy_setopt(curl, CURLOPT_DNS_CACHE_TIMEOUT, 0);
>
> I did this originally because I was having sporadic crashes in libcurl's
> DNS cache code. At one point, I tried setting
CURLOPT_DNS_USE_GLOBAL_CACHE
> to 0, but I ran into other problems doing that.

When where these sporadic crashes occuring? During
curl_easy_cleanup() or elsewhere, such as curl_easy_perform()?

Our program is experiencing sporadic crashes in curl_easy_cleanup()
and we traced the crash back to the following block in easy.c:

  if (!Curl_global_host_cache_use(data)) {
    Curl_hash_destroy(data->hostcache);
  }

Pure speculation here, but it appears that the DNS global cache may be
a common link in both reports of sporadic crashes.

We will try your approach of disabling the host cache (via cache
timeout) and see if that clears up our seg fault problem as well.

See thread: Segmentation fault in curl_easy_cleanup() [AIX]

-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf

-------------------------------------------------------
This sf.net email is sponsored by: Influence the future
of Java(TM) technology. Join the Java Community
Process(SM) (JCP(SM)) program now.
http://ads.sourceforge.net/cgi-bin/redirect.pl?sunm0004en
Received on 2002-10-30