Hi All, My SSL enabled client application creates threads as per some configuration. On creating as many as about 400+ threads simultaneously the application crashes. Each thread as its own openSSL context object 'ctx' and ssl object 'ssl' [ SSL_CTX *ctx; SSL *ssl;].
The stack trace from the crash core is : #0 0xffffe410 in __kernel_vsyscall () #1 0x0030a1f8 in raise () from /lib/libc.so.6 #2 0x0030b948 in abort () from /lib/libc.so.6 #3 0x0033f52a in __libc_message () from /lib/libc.so.6 #4 0x00345424 in _int_free () from /lib/libc.so.6 #5 0x0034595f in free () from /lib/libc.so.6 #6 0x40542192 in CRYPTO_free () from ../lib/libcrypto.so.0.9.8 #7 0x40542168 in CRYPTO_free () from ../lib/libcrypto.so.0.9.8 #8 0x405ac77a in ERR_clear_error () from ../lib/libcrypto.so.0.9.8 #9 0x40955248 in ?? () #10 0x002d6d30 in _dl_runtime_resolve () from /lib/ld-linux.so.2 #11 0x4039e1b2 in SSL_CTX_use_certificate_chain_file () from ../lib/libssl.so.0.9.8 #12 0x409701f0 in ?? () #13 0x007d0f00 in ?? () #14 0x41c0c3f8 in ?? () #15 0x403ff188 in SslTransactionHandler::loadCerts (this=0x2d6d20) at SslTransactionHandler.cpp:715 Previous frame inner to this frame (corrupt stack?) Any idea why while the function SSL_CTX_use_certificate_chain_file () is being called there is a crash. All threads would be calling the function. The crash is intermittent. Most of the times there are no issues. Thanks and Regards, Prabhu. S