Uploaded image for project: 'Thrift'
  1. Thrift
  2. THRIFT-3608

lib/cpp/test/SecurityTest is flaky in jenkins Thrift-precommit build.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Critical
    • Resolution: Fixed
    • 0.9.3
    • 0.10.0
    • C++ - Library, Test Suite
    • None

    Description

      The Thrift-precommit job now runs in the build/docker/ubuntu container and the lib/cpp/test/SecurityTest fails most - but not all - of the time.

      Failures can be seen in the following jobs

      They look like so:

      argv[0] = "/thrift/lib/cpp/test/.libs/lt-SecurityTest"
      Running 1 test case...
      Entering test suite "SecurityTest"
      Entering test suite "SecurityTest"
      Entering test case "ssl_security_matrix"
      TEST: Server = SSLTLS, Client = SSLTLS
      TEST: Server = SSLTLS, Client = SSLv3
      SRV 2b9182317700 Exception: SSL_accept: wrong version number
      CLI 2b9181f0a700 Exception: SSL_connect: sslv3 alert handshake failure
      TEST: Server = SSLTLS, Client = TLSv1_0
      TEST: Server = SSLTLS, Client = TLSv1_1
      TEST: Server = SSLTLS, Client = TLSv1_2
      TEST: Server = SSLv3, Client = SSLTLS
      CLI 2b9181f0a700 Exception: SSL_connect: unsupported protocol
      SRV 2b9182317700 Exception: SSL_accept: error code: 0
      TEST: Server = SSLv3, Client = SSLv3
      TEST: Server = SSLv3, Client = TLSv1_0
      CLI 2b9181f0a700 Exception: SSL_connect: wrong version number
      SRV 2b9182317700 Exception: SSL_accept: sslv3 alert handshake failure
      TEST: Server = SSLv3, Client = TLSv1_1
      CLI 2b9182317700 Exception: SSL_connect: wrong version number
      SRV 2b9181f0a700 Exception: SSL_accept: sslv3 alert handshake failure
      TEST: Server = SSLv3, Client = TLSv1_2
      CLI 2b9181f0a700 Exception: SSL_connect: wrong version number
      SRV 2b9182317700 Exception: SSL_accept: sslv3 alert handshake failure
      TEST: Server = TLSv1_0, Client = SSLTLS
      TEST: Server = TLSv1_0, Client = SSLv3
      SRV 2b9182317700 Exception: SSL_accept: wrong version number
      CLI 2b9181f0a700 Exception: SSL_connect: sslv3 alert handshake failure
      TEST: Server = TLSv1_0, Client = TLSv1_0
      TEST: Server = TLSv1_0, Client = TLSv1_1
      CLI 2b9181f0a700 Exception: SSL_connect: wrong version number
      SRV 2b9182317700 Exception: SSL_accept: tlsv1 alert protocol version
      TEST: Server = TLSv1_0, Client = TLSv1_2
      CLI 2b9182317700 Exception: SSL_connect: wrong version number
      SRV 2b9181f0a700 Exception: SSL_accept: tlsv1 alert protocol version
      TEST: Server = TLSv1_1, Client = SSLTLS
      TEST: Server = TLSv1_1, Client = SSLv3
      SRV 2b9181f0a700 Exception: SSL_accept: wrong version number
      CLI 2b9182317700 Exception: SSL_connect: sslv3 alert handshake failure
      TEST: Server = TLSv1_1, Client = TLSv1_0
      SRV 2b9182317700 Exception: SSL_accept: wrong version number
      CLI 2b9181f0a700 Exception: SSL_connect: tlsv1 alert protocol version
      TEST: Server = TLSv1_1, Client = TLSv1_1
      TEST: Server = TLSv1_1, Client = TLSv1_2
      SRV 2b9182317700 Exception: SSL_accept: tlsv1 alert protocol version
      CLI 2b9181f0a700 Exception: SSL_connect: wrong version number
      TEST: Server = TLSv1_2, Client = SSLTLS
      [0;31mFAIL[m: SecurityTest
      
      argv[0] = "/thrift/lib/cpp/test/.libs/lt-SecurityTest"
      Running 1 test case...
      Entering test suite "SecurityTest"
      Entering test suite "SecurityTest"
      Entering test case "ssl_security_matrix"
      TEST: Server = SSLTLS, Client = SSLTLS
      TEST: Server = SSLTLS, Client = SSLv3
      SRV 2b6bd3245700 Exception: SSL_accept: wrong version number
      CLI 2b6bd2e38700 Exception: SSL_connect: sslv3 alert handshake failure
      TEST: Server = SSLTLS, Client = TLSv1_0
      TEST: Server = SSLTLS, Client = TLSv1_1
      TEST: Server = SSLTLS, Client = TLSv1_2
      TEST: Server = SSLv3, Client = SSLTLS
      CLI 2b6bd2e38700 Exception: SSL_connect: unsupported protocol
      SRV 2b6bd3245700 Exception: SSL_accept: error code: 0
      TEST: Server = SSLv3, Client = SSLv3
      TEST: Server = SSLv3, Client = TLSv1_0
      CLI 2b6bd2e38700 Exception: SSL_connect: wrong version number
      SRV 2b6bd3245700 Exception: SSL_accept: sslv3 alert handshake failure
      TEST: Server = SSLv3, Client = TLSv1_1
      CLI 2b6bd3245700 Exception: SSL_connect: wrong version number
      SRV 2b6bd2e38700 Exception: SSL_accept: sslv3 alert handshake failure
      TEST: Server = SSLv3, Client = TLSv1_2
      SRV 2b6bd3245700 Exception: SSL_accept: sslv3 alert handshake failure
      CLI 2b6bd2e38700 Exception: SSL_connect: wrong version number
      TEST: Server = TLSv1_0, Client = SSLTLS
      TEST: Server = TLSv1_0, Client = SSLv3
      SRV 2b6bd3245700 Exception: SSL_accept: wrong version number
      CLI 2b6bd2e38700 Exception: SSL_connect: sslv3 alert handshake failure
      TEST: Server = TLSv1_0, Client = TLSv1_0
      TEST: Server = TLSv1_0, Client = TLSv1_1
      CLI 2b6bd2e38700 Exception: SSL_connect: wrong version number
      SRV 2b6bd3245700 Exception: SSL_accept: tlsv1 alert protocol version
      TEST: Server = TLSv1_0, Client = TLSv1_2
      CLI 2b6bd3245700 Exception: SSL_connect: wrong version number
      SRV 2b6bd2e38700 Exception: SSL_accept: tlsv1 alert protocol version
      TEST: Server = TLSv1_1, Client = SSLTLS
      [0;31mFAIL[m: SecurityTest
      
      argv[0] = "/thrift/lib/cpp/test/.libs/lt-SecurityTest"
      Running 1 test case...
      Entering test suite "SecurityTest"
      Entering test suite "SecurityTest"
      Entering test case "ssl_security_matrix"
      TEST: Server = SSLTLS, Client = SSLTLS
      TEST: Server = SSLTLS, Client = SSLv3
      SRV 2b1c3156d700 Exception: SSL_accept: wrong version number
      CLI 2b1c31160700 Exception: SSL_connect: sslv3 alert handshake failure
      TEST: Server = SSLTLS, Client = TLSv1_0
      TEST: Server = SSLTLS, Client = TLSv1_1
      TEST: Server = SSLTLS, Client = TLSv1_2
      TEST: Server = SSLv3, Client = SSLTLS
      CLI 2b1c31160700 Exception: SSL_connect: unsupported protocol
      SRV 2b1c3156d700 Exception: SSL_accept: error code: 0
      TEST: Server = SSLv3, Client = SSLv3
      TEST: Server = SSLv3, Client = TLSv1_0
      SRV 2b1c3156d700 Exception: SSL_accept: sslv3 alert handshake failure
      CLI 2b1c31160700 Exception: SSL_connect: wrong version number
      TEST: Server = SSLv3, Client = TLSv1_1
      SRV 2b1c31160700 Exception: SSL_accept: sslv3 alert handshake failure
      CLI 2b1c3156d700 Exception: SSL_connect: wrong version number
      TEST: Server = SSLv3, Client = TLSv1_2
      SRV 2b1c3156d700 Exception: SSL_accept: sslv3 alert handshake failure
      CLI 2b1c31160700 Exception: SSL_connect: wrong version number
      TEST: Server = TLSv1_0, Client = SSLTLS
      TEST: Server = TLSv1_0, Client = SSLv3
      SRV 2b1c3156d700 Exception: SSL_accept: wrong version number
      CLI 2b1c31160700 Exception: SSL_connect: sslv3 alert handshake failure
      TEST: Server = TLSv1_0, Client = TLSv1_0
      [0;31mFAIL[m: SecurityTest
      
      argv[0] = "/thrift/lib/cpp/test/.libs/lt-SecurityTest"
      Running 1 test case...
      Entering test suite "SecurityTest"
      Entering test suite "SecurityTest"
      Entering test case "ssl_security_matrix"
      TEST: Server = SSLTLS, Client = SSLTLS
      TEST: Server = SSLTLS, Client = SSLv3
      CLI 2b00e0b95700 Exception: SSL_connect: sslv3 alert handshake failure
      SRV 2b00e0fa2700 Exception: SSL_accept: wrong version number
      TEST: Server = SSLTLS, Client = TLSv1_0
      [0;31mFAIL[m: SecurityTest
      

      For posterity, the logs were turned up via:

      make check TESTS_ENVIRONMENT=BOOST_TEST_LOG_LEVEL=test_suite
      

      Attachments

        Issue Links

          Activity

            People

              jsirois John Sirois
              jsirois John Sirois
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: