cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: curl library bug

From: Dan Fandrich <dan_at_coneharvesters.com>
Date: Wed, 23 Jun 2010 10:55:32 -0700

On Wed, Jun 23, 2010 at 02:08:39AM -0800, Viktor Molnar wrote:
> I have been trying this example:
> http://curl.haxx.se/libcurl/c/multithread.html
> and it's working fine.
>
> But, when I made a few changes (num of threads and URL), it's
> generated an 'segmentation fault'.

What address causes the fault? There are a number of places in the
code you sent where error codes are not being checked, and where
an error could easily cause a segfault. The two big ones are
curl_easy_init() and curl_global_init().

>>> Dan
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2010-06-23