Hello,

I'm investigating a leak in a server application, which I've managed to reduce to a test case which involves OpenSSL and threads. I've put the code up at http://www.zankasoftware.com/ssltest/server.c if anyone would be willing to take a look and see what I'm doing wrong.

Every time I connect to this test with openssl s_client, it leaks some 516 KB virtual memory, which is never reclaimed. If pthread_join () is inserted after pthread_create(), no leaks occur. It does not matter if I move all the SSL calls to the reply thread, or leave the SSL_accept() call in the main thread where it is now.

I'm testing this on Mac OS X with its default OpenSSL 0.9.7b. I also downloaded and built the recent 0.9.8 release and was able to reproduce the problem with that.

Thanks in advance,

-- Axel


______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    openssl-users@openssl.org
Automated List Manager                           [EMAIL PROTECTED]

Reply via email to