cURL / Mailing Lists / curl-library / Single Mail

curl-library

seg fault and ssl

From: Brian Akins <bakins_at_web.turner.com>
Date: Sun, 07 Aug 2005 13:30:04 -0400

We have an app that is threaded and uses keepalives alot. With no ssl
everything works great. However, when using ssl we get seg faults.
Some in various places. Any ideas? This is Linux (RHAS 2.1). And I
have tried redhat's opensssl as well as compiling myself.

Here's an example backtrace.

Thanks.

#0 0x403716cc in chunk_free (ar_ptr=0x404257a0, p=0x8d693b8) at
malloc.c:3229
#1 0x40371424 in __libc_free (mem=0x8d69740) at malloc.c:3155
#2 0x404a570f in Curl_free_ssl_config (sslc=0x8734f90) at sslgen.c:138
#3 0x404a5921 in kill_session (session=0x8734f7c) at sslgen.c:270
#4 0x404a5a0c in Curl_ssl_addsessionid (conn=0x8965570,
ssl_sessionid=0x8d405c8, idsize=0) at sslgen.c:314
#5 0x404992aa in Curl_ossl_connect (conn=0x8965570, sockindex=0) at
ssluse.c:1444
#6 0x404a57fe in Curl_ssl_connect (conn=0x8965570, sockindex=0) at
sslgen.c:203
#7 0x4048bdcf in Curl_http_connect (conn=0x8965570, done=0x4fffc837 "")
at http.c:1335
#8 0x404945ff in Curl_protocol_connect (conn=0x8965570,
protocol_done=0x4fffc837 "") at url.c:2094
#9 0x40496b0d in SetupConnection (conn=0x8965570, hostaddr=0x8869378,
protocol_done=0x4fffc837 "") at url.c:3533
#10 0x40496bd8 in Curl_connect (data=0x82291b0, in_connect=0x4fffc874,
asyncp=0x4fffc836 "",
     protocol_done=0x4fffc837 "") at url.c:3589
#11 0x4049fa0c in Curl_connect_host (data=0x82291b0, conn=0x4fffc874) at
transfer.c:2058
#12 0x4049fb40 in Curl_perform (data=0x82291b0) at transfer.c:2146
#13 0x404a021d in curl_easy_perform (curl=0x82291b0) at easy.c:474

-- 
Brian Akins
Lead Systems Engineer
CNN Internet Technologies
Received on 2005-08-07