cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Share interface

From: Daniel Stenberg <daniel-curl_at_haxx.se>
Date: Fri, 2 Jul 2004 10:30:05 +0200 (CEST)

On Thu, 1 Jul 2004, Andrés García wrote:

> Could you please tell why the following program causes a segmentation fault
> when 'curl_share_cleanup' is called?

Because of a libcurl bug. The share code tries to lock/unlock when the
function pointers are NULL... (see lib/share.c line 161)

I committed a fix for this just now and with this done, your example code runs
fine here.

I guess this proves that the share stuff isn't used very extensively! :-)

-- 
      Daniel Stenberg -- http://curl.haxx.se -- http://daniel.haxx.se
       Dedicated custom curl help for hire: http://haxx.se/curl.html
Received on 2004-07-02