cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: curl-library Digest, Vol 124, Issue 24

From: <heath.schaefer_at_parker.com>
Date: Fri, 18 Dec 2015 09:25:17 -0600

> ----------------------------------------------------------------------
>
> Message: 1
> Date: Thu, 17 Dec 2015 14:24:07 -0600
> From: heath.schaefer_at_parker.com
> To: curl-library_at_cool.haxx.se
> Subject: Re: Getting Segmentation Fault from curl_multi_perform() when
> I add data
> Message-ID:
> <OF2351DEBF.608739E8-ON86257F1E.006FB511-86257F1E.00700C0C_at_parker.com>
> Content-Type: text/plain; charset="utf-8"
>
> I did a little digging. Looks like I was incorrect. I assumed libcurl
was
> version 5.3.0 because the libcurl.so file in /usr/lib is pointing to
> libcurl.so.5.3.0 so I assumed it was version 5.3. However, the curl
> command seems to say different.
>
> root_at_mtt:/usr/lib# curl -V
> curl 7.35.0 (arm-mlinux-linux-gnueabi) libcurl/7.35.0 GnuTLS/2.12.23
> zlib/1.2.8
> Protocols: dict file ftp ftps gopher http https imap imaps pop3 pop3s
rtsp
> smtp smtps telnet tftp
> Features: NTLM NTLM_WB SSL libz TLS-SRP
>
> Is anyone else getting segfaults using curl_multi_perform()?
>
I figured out why I was getting the segfaults. I was freeing the
curl_slist struct after I "put" it into the message. I assumed that it
copied the information that it needed and then I could discard the struct
but apparently not. I took away the free_slist() call and it's operating
fine now.

>
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: <http://cool.haxx.se/pipermail/curl-library/attachments/
> 20151217/17a94cc8/attachment-0001.html>
>
> ------------------------------

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