Thank you so much for the info! I will write a minimal reproducer and file
the ticket.

On Thu, May 12, 2016 at 4:14 PM, Alex Gaynor <alex.gay...@gmail.com> wrote:

> Ugh, that's nasty, awesome job debugging it!
>
> You can disable the osrandom engine with
> https://cryptography.io/en/latest/hazmat/backends/openssl/#activate_builtin_random
> however it'd be great to actually get this fixed. Can you file a ticket
> with all this info (and if you have a minimal reproducer, that as well)?
>
> Thanks!
> Alex
>
> On Thu, May 12, 2016 at 4:09 PM, Alexander Yukhanov <a.yukha...@gmail.com>
> wrote:
>
>> 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
>>
>> _______________________________________________
>> Cryptography-dev mailing list
>> Cryptography-dev@python.org
>> https://mail.python.org/mailman/listinfo/cryptography-dev
>>
>>
>
>
> --
> "I disapprove of what you say, but I will defend to the death your right
> to say it." -- Evelyn Beatrice Hall (summarizing Voltaire)
> "The people's good is the highest law." -- Cicero
> GPG Key fingerprint: D1B3 ADC0 E023 8CA6
>
>
> _______________________________________________
> Cryptography-dev mailing list
> Cryptography-dev@python.org
> https://mail.python.org/mailman/listinfo/cryptography-dev
>
>
_______________________________________________
Cryptography-dev mailing list
Cryptography-dev@python.org
https://mail.python.org/mailman/listinfo/cryptography-dev

Reply via email to