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

Living QThread after termination

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P1: Critical P1: Critical
    • 6.8.2, 6.9.0 FF
    • 6.8.0
    • Core: Threads
    • None
    • 65093a84c (dev), dce6ef8fa (6.8), 1da7558bf (dev), 6dc19b55f (6.9), 5acbda4b0 (6.8)

      We tried to update from Qt 6.7.2 to 6.8.0 and an integration test fails on macOS. We have an SDK that spawns a separate thread for QCoreApplication. After the application triggers a shutdown of the SDK the whole QCoreApplication and the corresponding QThread will be terminated.
      This works with Qt 6.7.x without problems. Also this works without Qt 6.8.0 on Linux without problem. But the same integration test will fail with Qt 6.8.0 and macOS.

      I stripped out the integration test into a reproducer project in the attachment.
      On macOS it will print out this lines that indicates that there are still living QObjects. Looks like the QThread will be removed later now.

       = QThread(0x600001d88020): Qt MainThread
      There are zombies behind you: 1
       < QObject(0x600001d88020): Qt MainThread
      

        1. zombies.tar.gz
          3 kB
          André Klitzing
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            thiago Thiago Macieira
            misery André Klitzing
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: