cURL
Haxx ad
libcurl

curl's project page on SourceForge.net

Sponsors:
Haxx

cURL > Mailing List > Monthly Index > Single Mail

curl-users Mailing List Archives

Re: segfault in curl_formfree() in persistence run on RHEL5 x86-64 as 64 bit app

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Wed, 16 Dec 2009 16:25:36 +0100 (CET)

On Wed, 16 Dec 2009, Pinakin Mevawala wrote:

For libcurl stuff, please use the curl-library list!

> I'm facing the segfault in curl_formfree() in persistence run on RHEL5
> x86-64 as 64 bit app. Using CURL 7.19.5.

...

> curl_formadd(&post, &last,
> CURLFORM_COPYNAME, POST_NAME,
> CURLFORM_FILECONTENT, file_name,
> CURLFORM_CONTENTTYPE, (char*)content_type,

Did you by any chance have any of the post or last pointers uninitialized?

When you send this to the correct mailinglist, can you show us the stack trace
or even better a valgrind output for this case? Or perhaps even a small
example that repeats the problem.

-- 
  / 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.html
Received on 2009-12-16

These mail archives are generated by hypermail.

donate! Page updated November 12, 2010.
web site info

File upload with ASP.NET