This month's Index
Subject: Multithreaded SFTP application crash on CRYPTO_free in SUSE SLES12 environment
Multithreaded SFTP application crash on CRYPTO_free in SUSE SLES12 environment
From: Paolo Elefante <paolo.elefante_at_ericsson.com>
Date: Tue, 19 Apr 2016 09:13:28 +0000
As the application tries to open an SFTP connection, I get a systematic crash on "CRYPTO_free" when invoking 'libssh2_session_handshake'.
In detail, libssh2_session_handshake crashes while invoking HMAC_Init_ex, EVP_DigestInit_ex, CRYPTO_free:
I have initialized OpenSSL for a multithreaded environment using static locking callbacks. I have also verified that callbacks are triggered by the underlying openssl stratum.
I guess there's problem in the setup of my environment, but I can't figure it out.
The same code works on SUSE SLES11 where my application linked libcrypto.so.0.9.8 and libssl.so.0.9.8, on the contrary on SLES12 my application is linking libcrypto.so.1.0.0 and libssl.so.1.0.0.
Has anyone experienced this problem or have a suggestion?
Thank you so much for your support.