Details
-
Bug
-
Resolution: Fixed
-
P1: Critical
-
6.8.0
-
None
-
65093a84c (dev), dce6ef8fa (6.8), 1da7558bf (dev), 6dc19b55f (6.9), 5acbda4b0 (6.8)
Description
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
Attachments
Issue Links
- relates to
-
QTBUG-84234 Start new QCoreApplication after shutdown
- Open
For Gerrit Dashboard: QTBUG-130895 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
602375,14 | QThread/Unix: do clean up the QAdoptedThread for the main thread | dev | qt/qtbase | Status: MERGED | +2 | 0 |
604058,3 | QThread/Unix: do clean up the QAdoptedThread for the main thread | 6.8 | qt/qtbase | Status: MERGED | +2 | +1 |
613130,13 | QThread/Unix: revert to pthread destruction instead of thread_local | dev | qt/qtbase | Status: MERGED | +2 | +1 |
615204,2 | QThread/Unix: revert to pthread destruction instead of thread_local | 6.9 | qt/qtbase | Status: MERGED | +2 | 0 |
615300,3 | QThread/Unix: revert to pthread destruction instead of thread_local | 6.8 | qt/qtbase | Status: MERGED | +2 | +1 |