From: Jan Kammerath <[email protected]>
 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

Reply via email to