Hi, (Sorry for short English.)
I am working with OpenSSL 0.9.7 on Linux. My purpose is to make a simple TCP server which works in SSL tunnel. (by OpenSSL) When the transfering data is completed, I did follow function to close SSL session. (in my server code which is C) x4.c:287 SSL_shutdown(ssl); x4.c:288 SSL_free(ssl); It works but it does not works sometimes. I tried to debug by gdb and got follow backtrace. The line which Program received signal SIGSEGV, Segmentation fault. 0x4d2718c0 in main_arena () from /lib/libc.so.6 (gdb) bt #0 0x4d2718c0 in main_arena () from /lib/libc.so.6 #1 0x4d57a724 in BIO_free () from /lib/libcrypto.so.5 #2 0x4d57b114 in BIO_free_all () from /lib/libcrypto.so.5 #3 0x4d63ff76 in SSL_free () from /lib/libssl.so.5 #4 0x08049c6a in user_func4 () at x4.c:288 #5 0x0804a419 in user_func3 () at x3.c:216 #6 0x08049aa4 in user_func2 () at x2.c:234 #7 0x08049499 in user_func1 () at x1.c:61 #8 0x08049289 in main () at x0.c:49 1) What is the valid way to successfully close SSL session? 2) What documents should I read for this problem? 3) Any ideas? Thank you for your help. -- Seongsu Lee - http://www.senux.com/ [Follow is a random fortune] Where it is a duty to worship the sun it is pretty sure to be a crime to examine the laws of heat. -- Christopher Morley ______________________________________________________________________ OpenSSL Project http://www.openssl.org User Support Mailing List openssl-users@openssl.org Automated List Manager [EMAIL PROTECTED]