cURL / Mailing Lists / curl-library / Single Mail


Re: Share interface

From: Daniel Stenberg <>
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 -- --
       Dedicated custom curl help for hire:
Received on 2004-07-02