cURL
Haxx ad
libcurl

curl's project page on SourceForge.net

Sponsors:
Haxx

cURL > Mailing List > Monthly Index > Single Mail

curl-library Mailing List Archives

Re: Corrupted heap after several hours

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Wed, 11 Jun 2008 15:57:18 +0200 (CEST)

On Wed, 11 Jun 2008, chrisenpingouin_at_free.fr wrote:

> I'm using a fedora core 6 linux PC in which I replaced the openssl library
> with version 0.9.8g and the curl library with 7.18.1, compiled with c-ares
> 1.5.2 support.

...

> I first suspected my program to write in some unallocated memory location
> and, therefore, ran it into valgrind and I noticed that a function called
> "socket_write()" from libcurl.so.4 attempted to write to an unitialized
> variable.

...

> I probably made a mistake while trying to use libcurl but what did I do wrong
> please?

OpenSSL is known for their valgrind errors (especially since the Debian
debacle). You should rebuild OpenSSL with PURIFY defined before you run any
valgrind checks on it (and the OpenSSL problems tend to "spread" to libcurl
parts as reported by valgrind):

         http://www.openssl.org/support/faq.html#PROG14

-- 
  / daniel.haxx.se
Received on 2008-06-11

These mail archives are generated by hypermail.

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

File upload with ASP.NET