cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: multithreading problem with libcurl

From: Bo Lorentsen <bl_at_netgroup.dk>
Date: 02 Jun 2003 08:38:02 +0200

On Sun, 2003-06-01 at 11:41, Konstantin Schauwecker wrote:

> I have an application which uses 10 threads (I had the problem with lower
> counts of threads too). Each thread calls a curl_easy_init to get a curl
> handle. All threads are doing constantly HTTP requests.
I have a simular setup (only 5 threads), but not the problems you
descripe here, not that it will help you :-)

> Now my Problems:
>
> On Linux:
> The program runs fine for a few minutes, but then it crashes with a
> segmentation fault. Valgrind told me, that the reason for crashing is inside
> of libcurl. Here the output of valgrind:
One silly question, do you handle timeouts ?, and have you then disabled
the signal handler (CURLOPT_NOSIGNAL) ?

Would it be possible for you to post both some sample code, and a small
Makefile that generated the crash ?

/BL

-------------------------------------------------------
This SF.net email is sponsored by: eBay
Get office equipment for less on eBay!
http://adfarm.mediaplex.com/ad/ck/711-11697-6916-5
Received on 2003-06-02