cURL / Mailing Lists / curl-library / Single Mail


Getting Segmentation Fault from curl_multi_perform() when I add data

From: <>
Date: Wed, 16 Dec 2015 14:04:59 -0600


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 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:
Received on 2015-12-16