Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-76322

FAIL! : tst_QSslSocket::waitForMinusOne

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P1: Critical
    • Resolution: Done
    • Affects Version/s: 5.12.3
    • Fix Version/s: 5.12.4, 5.13.0
    • Component/s: Network: SSL
    • Labels:
      None
    • Environment:
      Linux with OpenSSL 1.1, GCC 9.1
    • Platform/s:
      Linux/X11
    • Commits:
      e79b1dcdf542be3a20d5c21ea163ff857ed875bf d53b8b77bc8de236e148ef2652806015a9a87e2b

      Description

      Test tst_QSslSocket::waitForMinusOne fails on my system (Linux with OpenSSL 1.1, GCC 9.1). It fails with all configurations (WithoutProxy etc), but here is the log from a run WithoutProxy:

      QDEBUG : tst_QSslSocket::initTestCase() Using SSL library OpenSSL 1.1.1b  26 Feb 2019 (269488175)
      PASS   : tst_QSslSocket::initTestCase()
      FAIL!  : tst_QSslSocket::waitForMinusOne(WithoutProxy) 'server.dataReadSemaphore.tryAcquire(1, 2000)' returned FALSE. ()
         Loc: [/home/qtjimis/dist/src/qt/qtbase/tests/auto/network/ssl/qsslsocket/tst_qsslsocket.cpp(2247)]
      FAIL!  : tst_QSslSocket::waitForMinusOne(WithoutProxy) 'ok' returned FALSE. ()
         Loc: [/home/qtjimis/dist/src/qt/qtbase/tests/auto/network/ssl/qsslsocket/tst_qsslsocket.cpp(2140)]
      PASS   : tst_QSslSocket::cleanupTestCase()
      Totals: 2 passed, 2 failed, 0 skipped, 0 blacklisted, 2230ms
      

      EDIT: The problem seems to be that waitForEncrypted() behaves differently with OpenSSL 1.1 and now fills the data buffer, causing the subsequent waitForReadyRead() to timeout waiting for data that never comes.

        Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

            Assignee:
            manordheim MÃ¥rten Nordheim
            Reporter:
            jimis Dimitrios Apostolou
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Gerrit Reviews

                There are no open Gerrit changes