New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Crash on module unload #239
Comments
Adding a |
It looks like |
We use CRYPTO_set_id_callback() to set a callback, but we don't ever remove it again on unload. So OpenSSL crashes the next time it needs a thread-id. CRYPTO_set_id_callback() has been deprecated since OpenSSL 1.0.0, the oldest we support. And redundant too, since OpenSSL has fallbacks which include the address of errno. Which is going to work on any platform with pthreads... and we were only calling CRYPTO_set_id_callback() on platforms with pthreads. So just rip it out.
We use CRYPTO_set_id_callback() to set a callback, but we don't ever remove it again on unload. So OpenSSL crashes the next time it needs a thread-id. CRYPTO_set_id_callback() has been deprecated since OpenSSL 1.0.0, the oldest we support. And redundant too, since OpenSSL has fallbacks which include the address of errno. Which is going to work on any platform with pthreads... and we were only calling CRYPTO_set_id_callback() on platforms with pthreads. So just rip it out.
Issue #239: Crash on module unload with OpenSSL
Thanks, the patch has been merged. |
I tried using the SoftHSMv2 module with 'openssl rsautl'...
It works, but then dies on exit:
Environment is Fedora 24 (OpenSSL 1.0.2), with updated libp11/engine_pkcs11 and SoftHSMv2 from latest git. Not that the latter seem to make any difference.
The text was updated successfully, but these errors were encountered: