cURL / Mailing Lists / curl-library / Single Mail


Re: Corrupted heap after several hours

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

On Wed, 11 Jun 2008, 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 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):

Received on 2008-06-11