curl-users
Re: curl_slist_append segfault
Date: Tue, 30 Aug 2011 13:36:39 +0200 (CEST)
On Tue, 30 Aug 2011, Tim Johnson wrote:
Please be aware that you would reach the bunch of libcurl hackers properly on
the curl-library list. This list is for users of the curl command line tool.
I strongly suggest that you take follow-ups on this issue to that list
instead.
>> Maybe add
>>
>> headerlist = NULL;
>>
>> after the above line to make curl_slist_append() start fresh in the
>> loop on each iteration?
>
> Thanks Lars, I just gave that a try. Still no luck.
>
> Any other ideas out there?
You need to show us more exact details for us to tell. Like a complete program
that repeats the problem
> Maybe try another version of libcurl?
I don't think so. I'm convinced the problem you're having is due to a mistake
in your code and not in libcurl...
> Or is there a way to extract out some information about the curl_slist to
> try and detect what is going wrong?
The curl_slist is just a linked list. You can easily browser and traverse that
yourself using your code or a debugger etc.
-- / daniel.haxx.se ------------------------------------------------------------------- List admin: http://cool.haxx.se/list/listinfo/curl-users FAQ: http://curl.haxx.se/docs/faq.html Etiquette: http://curl.haxx.se/mail/etiquette.htmlReceived on 2011-08-30