cURL / Mailing Lists / curl-library / Single Mail

curl-library

Curl_SSL_Close

From: Andreas Olsson <andreas.olsson_at_ctakt.com>
Date: Mon, 3 Jun 2002 12:21:13 +0200

Hi,

I have a problem when using libcurl with openSSL. My program crashes
immediately after the last CURLOPT_WRITEFUNCTION callback when libcurl is
closing the connection. It crashes at the following line in "ssl_lib.c":

X509_STORE_free(a->cert_store);

I failed to debug deeper than this.

I know that this is in openSSL and that this mail perhaps should have been
posted to another mailing list.

The callstack looks like this just before X509_STORE_free is called.

SSL_CTX_free(ssl_ctx_st * 0x009baad0) line 1256
Curl_SSL_Close(connectdata * 0x00ab4b98) line 445 + 15 bytes
Curl_disconnect(connectdata * 0x00ab4b98) line 1034 + 9 bytes
Curl_done(connectdata * 0x00ab4b98) line 2413 + 9 bytes
Curl_perform(SessionHandle * 0x00aa0068) line 1166 + 9 bytes
curl_easy_perform(void * 0x00aa0068) line 245 + 9 bytes

After the call fails the callstack looks like:

_free_dbg_lk(void * 0x009b9abd, int 1) line 1011 + 48 bytes
_free_dbg(void * 0x009b9abd, int 1) line 970 + 13 bytes
free(void * 0x009b9abd) line 926 + 11 bytes
COMMTEST! CRYPTO_free + 29 bytes
COMMTEST! ASN1_OBJECT_free + 78 bytes
COMMTEST! X509_NAME_ENTRY_free + 17 bytes
COMMTEST! sk_pop_free + 36 bytes
COMMTEST! X509_NAME_free + 31 bytes
COMMTEST! X509_CINF_free + 44 bytes
COMMTEST! X509_free + 68 bytes
COMMTEST! X509_STORE_free + 197 bytes
COMMTEST! sk_pop_free + 36 bytes
COMMTEST! X509_STORE_free + 134 bytes
SSL_CTX_free(ssl_ctx_st * 0xdddddddd) line 1256 + 12 bytes

//Andreas

_______________________________________________________________

Don't miss the 2002 Sprint PCS Application Developer's Conference
August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm
Received on 2002-06-03