cURL / Mailing Lists / curl-library / Single Mail

curl-library

Getting Segmentation Fault from curl_multi_perform() when I add data

From: <heath.schaefer_at_parker.com>
Date: Wed, 16 Dec 2015 14:04:59 -0600

Hello

I am getting a segmentation fault from curl_multi_perform() when I try to
add data.

My do {} while loop looks like the one on
http://curl.haxx.se/libcurl/c/multi-post.html. While my program is waiting
for data the curl_multi_perform() is running and returning normally, as
far as I can tell. When data becomes available I set it in the easy handle
using curl_easy_setopt() with the CURLOPT_POSTFIELDS and
CURLOPT_POSTFIELDSIZE enumerations. I then add that easy handle to my
multi handle with curl_multi_add_handle().

From what I can tell with my COUTs, it called the curl_multi_perform() two
more times and then seg faults on the third call. What could be happening?

-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2015-12-16