Hi all, I have written an application using libcurl and openssl under RH linux, and I believe I have done everything to make it correct and followed all documentation of CURL with examples. However, the application segfaults inside the openssl library. The stack trace:
#0 0x081ab737 in SSL_set_ssl_method () #1 0x081aa550 in ssl_clear_internal () #2 0x081aa438 in ssl_clear_internal () #3 0x081aae44 in SSL_connect () #4 0x081aae08 in SSL_connect () #5 0x0026f2a3 in Curl_ossl_connect_step2 (conn=0x92604f0, sockindex=135966216, timeout_ms=0x91f7d28) at ssluse.c:1391 #6 0x0026f82d in Curl_ossl_connect_common (conn=0x92604f0, sockindex=0, nonblocking=0 '\0', done=0x3080b97 "") at ssluse.c:1654 #7 0x0026f959 in Curl_ossl_connect (conn=0x81aae08, sockindex=135966216) at ssluse.c:1695 #8 0x0027f541 in Curl_ssl_connect (conn=0x0, sockindex=135966216) at sslgen.c:203 #9 0x0025fcd9 in Curl_http_connect (conn=0x92604f0, done=0x3080cbb "") at http.c:1404 #10 0x00269f86 in Curl_protocol_connect (conn=0x92604f0, protocol_done=0x3080cbb "") at url.c:2368 #11 0x0026c2e5 in SetupConnection (conn=0x92604f0, hostaddr=0x81aae08, protocol_done=0x3080cbb "") at url.c:3930 #12 0x0026c397 in Curl_connect (data=0x9267ab8, in_connect=0x3080cf8, asyncp=0x3080cba "", protocol_done=0x81aae08 "[\201Ãèga") at url.c:3986 #13 0x002768c2 in Curl_connect_host (data=0x9267ab8, conn=0x3080cf8) at transfer.c:2164 #14 0x00276a9b in Curl_perform (data=0x9267ab8) at transfer.c:2255 #15 0x002771a6 in curl_easy_perform (curl=0x9267ab8) at easy.c:479 >From the stack trace, it looks like it is seg faulting in SSL_set_ssl_method, which is eventually called from SSL_connect. I have checked from the CURL code that SSL_connect parameter of type SSL * is valid at the time it is called (#3). I tried to use the libcurl mailing list, but no help. If anyone here can give some hints/pointers on SSL_set_ssl_method function and why it is crashing, then it would be great. libcurl: curl 7.16.0 (i686-pc-linux-gnu) libcurl/7.16.0 OpenSSL/0.9.7a zlib/1.2.1.2 libidn/0.5.6 openssl: OpenSSL 0.9.7a Feb 19 2003 Best regards, Ambarish. DISCLAIMER ========== This e-mail may contain privileged and confidential information which is the property of Persistent Systems Pvt. Ltd. It is intended only for the use of the individual or entity to which it is addressed. If you are not the intended recipient, you are not authorized to read, retain, copy, print, distribute or use this message. If you have received this communication in error, please notify the sender and delete all copies of this message. Persistent Systems Pvt. Ltd. does not accept any liability for virus infected mails.
<<attachment: winmail.dat>>