cURL / Mailing Lists / curl-library / Single Mail


Re: abort trap: double-free bug in lib/ssluse.c:Curl_ossl_close() ???

From: Edward B. DREGER <>
Date: Tue, 14 Aug 2007 13:16:18 +0000 (GMT)

Greetings all,

Once upon a time...

EBD> Date: Mon, 16 Apr 2007 15:24:07 +0000 (GMT)
EBD> From: "Edward B. DREGER" <>
EBD> To:
EBD> Message-ID: <>

EBD> When PHP invokes cURL on an HTTPS URL, the result is
EBD> php in free(): error: chunk is already free
EBD> Abort trap: 6

Daniel stepped me through a few email messages, and indicated that the
problem seemed non-libcurl, a conclusion with which I was coming to to

The problem was with libmysql. When MySQL switched from OpenSSL to
yaSSL, OpenSSL and yaSSL initially had symbol collisions. By linking
PHP statically with MySQL/yaSSL and cURL/OpenSSL, the two SSL libraries
were at odds with each other... but the problems showed at runtime, not
during linking.

problem: solved
libcurl: not at fault
guilty: namespace collisions between divergent SSL libraries
posted: for archive posterity, and in hopes someone finds this useful


Everquick Internet -
A division of Brotsman & Dreger, Inc. -
Bandwidth, consulting, e-commerce, hosting, and network building
Phone: +1 785 865 5885 Lawrence and [inter]national
Phone: +1 316 794 8922 Wichita
DO NOT send mail to the following addresses: -*- -*-
Sending mail to spambait addresses is a great way to get blocked.
Ditto for broken OOO autoresponders and foolish AV software backscatter.
Received on 2007-08-14