Skip to content

Possible test deadlock #214

@voxik

Description

@voxik

Testing on Fedora Rawhide with stronger crypto settings

# update-crypto-policies --set NEXT

I observe the following deadlock in OpenSSL test suite:

[ 1337/17319] OpenSSL::TestPair#test_connect_accept_nonblock#<Thread:0x000055555c3ad548@/builddir/build/BUILD/ruby-2.5.1/test/openssl/test_pair.rb:452 run> terminated with exception (report_on_exception is true):
/builddir/build/BUILD/ruby-2.5.1/test/openssl/test_pair.rb:453:in `initialize': SSL_CTX_use_certificate: ee key too small (OpenSSL::SSL::SSLError)
	from /builddir/build/BUILD/ruby-2.5.1/test/openssl/test_pair.rb:453:in `new'
	from /builddir/build/BUILD/ruby-2.5.1/test/openssl/test_pair.rb:453:in `block in test_connect_accept_nonblock'

Apparently, the thread crashes, because the DH key is too small, therefore the s2.accept_nonblock [1] is waiting for connection indefinitely. There should be either timeout, the crash of the th thread should be fatal or the state of the th thread should be checked.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions