I have seen this on SunOS, RedHat linux and Win32. Perhaps someone
can explain to me what I am doing wrong. First there is a SIGPIPE
signal received:
Program received signal SIGPIPE, Broken pipe.
0xef771360 in write ()
(gdb)
(gdb) bt
#0 0xef771360 in write ()
#1 0x19bb0c in sock_write ()
#2 0x199dc4 in BIO_write ()
#3 0x17c0ec in ssl3_write_pending ()
#4 0x17c038 in do_ssl3_write ()
#5 0x17cbf4 in ssl3_dispatch_alert ()
#6 0x17cbc4 in ssl3_send_alert ()
#7 0x17a394 in ssl3_shutdown ()
#8 0x17f9b4 in SSL_shutdown ()
#9 0xa554 in ttclos ()
#10 0xd628 in myfillbuf ()
#11 0xd2f8 in mygetbuf ()
#12 0xffa4 in ttinc ()
#13 0x10dc9c in ckcgetc ()
#14 0x10ff98 in conect ()
#15 0x9a724 in doconect ()
#16 0xe5b34 in setlin ()
#17 0x109670 in docmd ()
#18 0xb75b8 in parser ()
#19 0x3f68 in doicp ()
#20 0x132a30 in cc_execute ()
#21 0x5ae8 in main ()
and then I get the segmentation fault when I call SSL_free():
Program received signal SIGBUS, Bus error.
0x19755c in BN_clear_free ()
(gdb) bt
#0 0x19755c in BN_clear_free ()
#1 0x1997cc in DH_free ()
#2 0x181e60 in ssl_sess_cert_free ()
#3 0x182e00 in SSL_SESSION_free ()
#4 0x17ef2c in SSL_free ()
#5 0xa55c in ttclos ()
#6 0xd628 in myfillbuf ()
#7 0xd2f8 in mygetbuf ()
#8 0xffa4 in ttinc ()
#9 0x10dc9c in ckcgetc ()
#10 0x10ff98 in conect ()
#11 0x9a724 in doconect ()
#12 0xe5b34 in setlin ()
#13 0x109670 in docmd ()
#14 0xb75b8 in parser ()
#15 0x3f68 in doicp ()
#16 0x132a30 in cc_execute ()
#17 0x5ae8 in main ()
The code in question is:
if (tls_active_flag) {
SSL_shutdown(tls_con);
SSL_free(tls_con);
tls_con = NULL;
tls_active_flag = 0;
}
The cipher being negotiated is
[TLS - cipher=EDH-DSS-DES-CBC3-SHA (192 bits)]
Any clues?
Jeffrey Altman * Sr.Software Designer * Kermit-95 for Win32 and OS/2
The Kermit Project * Columbia University
612 West 115th St #716 * New York, NY * 10025
http://www.kermit-project.org/k95.html * [EMAIL PROTECTED]
______________________________________________________________________
OpenSSL Project http://www.openssl.org
User Support Mailing List [EMAIL PROTECTED]
Automated List Manager [EMAIL PROTECTED]