cURL / Mailing Lists / curl-library / Single Mail


libcurl crash at Curl_ossl_close function call

From: Sandeep Kale <>
Date: Mon, 16 Feb 2009 19:32:34 +0530


I am using libcurl with the below version details,

libcurl Version :
curl 7.18.2 (sparc-sun-solaris2.10) libcurl/7.18.2 OpenSSL/0.9.7d zlib/1.1.3
Protocols: tftp ftp telnet dict ldap http file https ftps
Features: IPv6 Largefile NTLM SSL libz

libcurl APIs are used in a http client module which simply connects to a
service via proxy , submits the request and tries to get back the response
from the server. However for some reason the code crashed due to "signal
SIGSEGV in realfree()" and the generated core shows below stats:

  [1] realfree(0xcdfd8, 0x74696f6f, 0x95890, 0xfe9d51d4, 0x0, 0x1), at
  [2] _free_unlocked(0xfea71b14, 0x0, 0x950bc, 0xfea71b94, 0xfea6a2b4,
0x10b920), at 0xfe9d5298
  [3] free(0x10b920, 0x0, 0x950fc, 0xfee2563c, 0xfea6a2b4, 0x28a938), at
  [4] CRYPTO_free(0x10b920, 0x0, 0x10db0c, 0xfee51670, 0x0, 0xfeec9a34), at
  [5] BUF_MEM_free(0x28a938, 0x0, 0x7, 0x0, 0xfeedcc44, 0x28a938), at
  [6] x509_name_ex_free(0x22c87c, 0x1c00, 0x783e0, 0xfee59ff4, 0xfeec9a34,
0x1cee90), at 0xfee51670
  [7] asn1_item_combine_free(0x0, 0x0, 0x7, 0x0, 0xfeedcc44, 0x1d1b68), at
  [8] asn1_item_combine_free(0x0, 0x0, 0x0, 0xfee51c8c, 0xfeedccb4,
0xfe17681c), at 0xfee59ff4
  [9] ASN1_item_free(0x1d1b68, 0xfeedccb4, 0x1c00, 0xfee767dc, 0x77be8,
0x1c70), at 0xfee595b0
  [10] cleanup(0xa88f0, 0xc2520, 0x10db0c, 0xfee768f8, 0x1, 0xa88f0), at
  [11] sk_pop_free(0xfee767c8, 0xfee767c8, 0x10db0c, 0xfef53294, 0x0,
0x252300), at 0xfee32840
  [12] X509_STORE_free(0x1c9ee0, 0xc2520, 0x0, 0x13b0, 0xfeec9a34, 0x1000),
at 0xfee768f8
  [13] SSL_CTX_free(0xe4c88, 0xfef47144, 0x21b94, 0xff35fb50, 0xfef74d94,
0xe4c88), at 0xfef53294
=>[14] Curl_ossl_close(conn = 0x227480, sockindex = 0), line 744 in
  [15] Curl_ssl_close(conn = 0x227480, sockindex = 0), line 442 in
  [16] Curl_disconnect(conn = 0x227480), line 2207 in "url.c"
  [17] Curl_done(connp = 0xfe176b78, status = CURLE_OK, premature = '\0'),
line 4487 in "url.c"
  [18] Curl_perform(data = 0x22ce30), line 2427 in "transfer.c"
  [19] curl_easy_perform(curl = 0x22ce30), line 520 in "easy.c"

The stack shows that there is some issue with Curl_ossl_close which is
called after subsequent calls from curl_easy_perform.

Do you have any clue regarding this issue?
Received on 2009-02-16