Details
-
Bug
-
Resolution: Out of scope
-
P1: Critical
-
None
-
6.0.0
-
None
Description
- Have a Qt 6.0.0 with GCC 8.1.0 on Windows (should also work on Linux). This is a 6.0.0 regression, with Qt 5.15 it works fine.
- Compile the following program:
#include <QCoreApplication> #include <QTimer> #include <QVariant> void setCursor() { QVariant(1); } int main(int argc, char *argv[]) { QCoreApplication a(argc, argv); setCursor(); QTimer::singleShot(0, &a, &QCoreApplication::quit); return a.exec(); }
QT += core SOURCES += main.cpp QMAKE_CXXFLAGS += -fstack-protector win32: LIBS += -lssp
- In setCursor() the program crashes. If you remove stack protection by removing the last two lines in the .pro file, the error goes away.
Attachments
Issue Links
- relates to
-
QTBUG-89675 Functions using QSettings crash with -fstack-protector on
- Closed
-
QTBUG-89676 QTableWidgetItem::setText() crashes with -fstack-protector on
- Closed