-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
deadlock while using hazmat #2911
Comments
Ugh. This sucks. Requires much thought. |
I've been hitting this bug in warcprox. Now I'll be working around it with
Here are the python traces for the same threads:
|
Ok, these should both be fixed by our 1.6 release. |
Workaround for random SSL-related hangs. pyca/cryptography#2911
I don't think it is fixed, neither 1.6 nor latest 2.6.1 version. I'm still seeing hang when running the test script provided in bug report. |
And, suggested work around seems to be magically helping: import cryptography.hazmat.backends.openssl.backend |
Deadlock is reproducible while using tornado https and requests. 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.
Here is a repro:
Callstacks:
The text was updated successfully, but these errors were encountered: