cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Correct use of curl_easy_getinfo

From: Till Elsner <till_at_0xaa55.org>
Date: Tue, 6 Dec 2011 01:28:40 +0100

Daniel Stenberg (Mon, 05. 12. 2011, 19:03):
> On Mon, 5 Dec 2011, Till Elsner wrote:
>
> > By the time I call reset on the handle, I don't need the data inside the
> > handle any more. My only trouble is that a subsequent call of
> > curl_easy_perform on the same handle results in a segmetation fault.
>
> Then the problem is elsewhere.
>
> It would help if you would provide a complete example I can compile and run to
> see the problem, then I might be able to tell you more faster.

Ok, problem has been solved in the meantime. The actual problem
was lying elsewhere, since I've corrupted memory at an earlier
place by freeing the buffer containing the URL before calling
curl_easy_reset, causing a double free on the URL buffer's
address. Kind of tricky to point out ;)

Thanks for your support anyway, sorry to keep you busy for no
reason^^
I guess at least I learned something about some libcurl
internals :D

>
> --
>
> / daniel.haxx.se
> -------------------------------------------------------------------
> List admin: http://cool.haxx.se/list/listinfo/curl-library
> Etiquette: http://curl.haxx.se/mail/etiquette.html

-- 
Till Elsner                                                   []
till_at_0xAA55.org (Email & XMPP)                                  []
irc.0xaa55.org #praty                                       [][][]
############################## GPG ###############################
#                      KeyID=0xFCFF4656                          #
# fingerprint: 1A1E 3B61 6956 07E3 2CB8 D0F8 791F 52F8 FCFF 4656 #
##################################################################
 ()  ascii ribbon campaign  - against html e-mail
 /\   www.asciiribbon.org   - against proprietary attachments

-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html

  • application/pgp-signature attachment: stored
Received on 2011-12-06