Details
-
Bug
-
Resolution: Done
-
P2: Important
-
5.15.5
-
None
-
-
2d302a8ac0a947a10ff427c60ad6d526a20fe9e0 (qt/tqtc-qtbase/5.15)
Description
In QEventLoop::exit(int returnCode) there is code with a comment related to QTBUG-70185 which calls:
emscripten_force_exit(returnCode);
It seems this is called wrongly when a QThread with QEventLoop terminates. If this happens this is delegated to the main thread and in our case causes a deadlock in cleanup code.
IMHO a background thread should never call emscripten_force_exit.
Attachments
For Gerrit Dashboard: QTBUG-96593 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
373505,4 | wasm: fix deadlock when thread calls exit | tqtc/lts-5.15 | qt/tqtc-qtbase | Status: MERGED | +2 | 0 |