cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: curl_easy_cleanup is crashing

From: Michael Schuster <michael.schuster_at_oracle.com>
Date: Thu, 08 Apr 2010 11:35:26 +0200

On 08.04.10 11:14, Vasavi Mahadev wrote:
> Hi,
>
> Code Snippet:

> curl_easy_getinfo(conn,CURLINFO_RESPONSE_CODE,&http_code);
> if(http_code == 200 && code != CURLE_ABORTED_BY_CALLBACK)
> {
> curl_easy_cleanup(conn);
> }
> }
>
> When curl_easy_cleanup() is crashing the thread.
> It happens very very rarely.

is more than one thread running this code? if so, you likely have a race
condition (ie more than one thread is calling curl_easy_cleanup() on the
same connection).

HTH
Michael

-- 
michael.schuster_at_oracle.com
Recursion, n.: see 'Recursion'
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette:  http://curl.haxx.se/mail/etiquette.html
Received on 2010-04-08