Details
-
Bug
-
Resolution: Done
-
P2: Important
-
5.8.0
-
Windows 7
-
9832f0ab857904a88c9b5e71a9e447abbebca8fb (qtbase/5.9, 14.12.2017, 5.9.4)
Description
[Windows]: When a library using QCoreApplication is unloaded and then loaded again it can cause a crash.
This is down to the QCoreApplication::applicationFilePath() which has a static const char pointer to d->argv[0] which is not copied. When the library is loaded the second time then this can be pointing to invalid memory.
Attachments
Issue Links
- is duplicated by
-
QTBUG-65230 Intermittent crash due to stale argv reference
-
- Closed
-
- relates to
-
QTBUG-59047 ActiveQt QApplication instance crashes if parameters() is called
-
- Closed
-
For Gerrit Dashboard: QTBUG-58919 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
185686,8 | Copy argv[0] to prevent it pointing to invalid memory later | 5.9 | qt/qtbase | Status: MERGED | +2 | 0 |