Details
-
Bug
-
Resolution: Fixed
-
P3: Somewhat important
-
4.5.0, 4.5.1, 4.5.2, 4.5.3, 4.6.0, 4.6.1, 4.6.2, 4.6.3, 4.7.0, 6.2.0 Beta1
-
None
-
GNU/Linux
-
21
-
62b33b6730ab995022149e65618a4a92b4992a49 (qt/tqtc-qtbase/dev)
-
Qt6_Foundation_Sprint 37, Qt6_Foundation_Sprint 38
Description
There seems to be a bug in QTextStrem/IO device class when used with threads. The attached example reproduces the bug. The effect is more visible on slower machines or if more than one instance of the application running (the segfault is random).
Note:
The way the example is written is a bit unusual, as it just continue to write to the same stream (the QTextStream is a member of the class), also seek is never called to go back to the start of the stream. But it still should not segfault as it does.
Attachments
For Gerrit Dashboard: QTBUG-12055 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
359429,8 | QTextStream: Always use direct connection inside QDeviceClosedNotifier | dev | qt/qtbase | Status: MERGED | +2 | 0 |