cURL / Mailing Lists / curl-library / Single Mail


Re: libcurl memleak

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

During curl_easy_perform. They all happened before I every called

Avery Fay

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

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
> 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)) {

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 email is sponsored by:ThinkGeek
Welcome to geek heaven.

This email is sponsored by: Influence the future
of Java(TM) technology. Join the Java Community
Process(SM) (JCP(SM)) program now.
Received on 2002-10-30