cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Segmentation Fault with pthreads and https

From: Steve H Truong <sh2kus_at_yahoo.com>
Date: Mon, 13 Feb 2012 14:27:49 -0800 (PST)

From: Jan Kammerath <jankammerath_at_googlemail.com> Sent: Monday, February 13, 2012 12:12 PM Subject: Segmentation Fault with pthreads and https > but I found the segmentation fault directly occurs within > "curl_easy_perform" Do you have a chance to put the process under debug (e.g., gdb) and see what the immediate cause of the seg fault is? From the thread function /* method does performs the query action  * within the threads created in the main */ void*processAlsoViewedPages(void*ptr){         processAlsoViewedPagesArgs *args =(processAlsoViewedPagesArgs*)ptr;         GoogleAnalyticsClient*ga =newGoogleAnalyticsClient(args->accountList);         ga->setCurlHandle(args->curlHandle);         // map<string, int> result = ga->getTopAlsoViewedPages(args->articleUrl);         cout <<"THREAD: "<<args->articleUrl <<endl; } I don't see the code that calls curl_easy_perform(). Also did you check how large articleCount is as this determines the number of threads you end up creating. Steve

-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2012-02-13