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

tst_QProcess::processesInMultipleThreads() flakily hangs under QEMU

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Reported
    • Priority: P2: Important
    • Resolution: Unresolved
    • Affects Version/s: 5.11.0 Beta 4
    • Fix Version/s: None
    • Component/s: Core: I/O
    • Environment:
      Linux QEMU (gcc-arm64) on Linux Ubuntu_16_04 (gcc-x86_64) in CI

      Description

      tst_QProcess::processesInMultipleThreads() flakily hangs under QEMU in CI.

      I was able to reproduce it in a debug VM, but couldn't get any useful information. I was connected to the process with a debugger, but when it hanged the qemu-aarch64 process stopped responding to debugger commands also, so no extra information was given.

      Although that hints that the hanging might be in QEMU code rather than Qt code.

      Example run until hang with some extra debug output:

      ********* Start testing of tst_QProcess *********
      Config: Using QtTest library 5.11.0, Qt 5.11.0 (arm64-little_endian-lp64 shared (dynamic) release build; by GCC 6.3.0)
      PASS   : tst_QProcess::initTestCase()
      QINFO  : tst_QProcess::processesInMultipleThreads() Loop run 0
      QINFO  : tst_QProcess::processesInMultipleThreads() Thread count: 0
      QINFO  : tst_QProcess::processesInMultipleThreads() Loop run 1
      QINFO  : tst_QProcess::processesInMultipleThreads() Thread count: 1
      QINFO  : tst_QProcess::processesInMultipleThreads() Started thread 0 TestThread(0x4603b0)
      QINFO  : tst_QProcess::processesInMultipleThreads() Waiting for thread 0 TestThread(0x4603b0)
      QINFO  : tst_QProcess::processesInMultipleThreads() Started process from thread TestThread(0x4603b0)
      QINFO  : tst_QProcess::processesInMultipleThreads() Exiting in thread TestThread(0x4603b0)
      QINFO  : tst_QProcess::processesInMultipleThreads() Loop run 2
      QINFO  : tst_QProcess::processesInMultipleThreads() Thread count: 2
      QINFO  : tst_QProcess::processesInMultipleThreads() Started thread 0 TestThread(0x4603b0)
      QINFO  : tst_QProcess::processesInMultipleThreads() Started thread 1 TestThread(0x4609e0)
      QINFO  : tst_QProcess::processesInMultipleThreads() Waiting for thread 0 TestThread(0x4603b0)
      QINFO  : tst_QProcess::processesInMultipleThreads() Started process from thread TestThread(0x4603b0)
      QINFO  : tst_QProcess::processesInMultipleThreads() Started process from thread TestThread(0x4609e0)
      QINFO  : tst_QProcess::processesInMultipleThreads() Exiting in thread TestThread(0x4603b0)
      QINFO  : tst_QProcess::processesInMultipleThreads() Waiting for thread 1 TestThread(0x4609e0)
      QINFO  : tst_QProcess::processesInMultipleThreads() Exiting in thread TestThread(0x4609e0)
      QINFO  : tst_QProcess::processesInMultipleThreads() Loop run 3
      QINFO  : tst_QProcess::processesInMultipleThreads() Thread count: 3
      QINFO  : tst_QProcess::processesInMultipleThreads() Started thread 0 TestThread(0x4609e0)
      QINFO  : tst_QProcess::processesInMultipleThreads() Started process from thread TestThread(0x4609e0)
      QINFO  : tst_QProcess::processesInMultipleThreads() Started thread 1 TestThread(0x4603b0)
      QINFO  : tst_QProcess::processesInMultipleThreads() Started thread 2 TestThread(0x460a40)
      QINFO  : tst_QProcess::processesInMultipleThreads() Waiting for thread 0 TestThread(0x4609e0)
      

      Grafana statistics: https://testresults.qt.io/grafana/d/000000009/coin-single-test-details?orgId=1&var-project=qt%2Fqtbase&var-testcase=tests%2Fauto%2Fcorelib%2Fio%2Fqprocess%2Ftest&var-testfunction=Timeout%20-%20the%20test%20took%20too%20long.&var-testfunction=processesInMultipleThreads&var-branch=5.11&var-branch=dev&var-inter=24h

        Attachments

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

          Activity

            People

            • Assignee:
              thiago Thiago Macieira
              Reporter:
              kari.oikarinen Kari Oikarinen
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:

                Gerrit Reviews

                There are no open Gerrit changes