[Cryptography-dev] deadlock while using hazmat

Alexander Yukhanov a.yukhanov at gmail.com
Thu May 12 16:09:27 EDT 2016


Hello,
I have a service which uses hazmat, requests and tornado. Now and when i am
encountering deadlock in openssl. One thread is trying to perform
handshake, acquires CRYPTO_LOCK_RSA lock and is trying to call to
Cryptography_rand_bytes which required GIL. Another thread is keeping GIL
and trying to execute PySSL_dealloc, which required locking of
CRYPTO_LOCK_RSA. So, it seems to be a classical deadlock.
Can i use hazmat without osrandom engine registration?

Thank you,
Alex
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/cryptography-dev/attachments/20160512/a01ec92b/attachment.html>


More information about the Cryptography-dev mailing list