-
Bug
-
Resolution: Duplicate
-
P1: Critical
-
None
-
6.0.0
-
None
- 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 <QApplication>
#include <QTableWidgetItem>
#include <QTimer>
void setText() {
QTableWidgetItem *__qtablewidgetitem = new QTableWidgetItem();
__qtablewidgetitem->setText("Text");
}
int main(int argc, char *argv[])
{
QApplication a(argc, argv);
setText();
QTimer::singleShot(0, &a, &QCoreApplication::quit);
return a.exec();
}
QT += core gui widgets CONFIG += c++11 SOURCES += main.cpp QMAKE_CXXFLAGS += -fstack-protector win32: LIBS += -lssp
- In setText() the program crashes. If you remove stack protection by removing the last two lines in the .pro file, the error goes away.
- relates to
-
QTBUG-89678 Function crashes as soon as a QVariant is create with -fstack-protector on
-
- Closed
-
-
QTBUG-89675 Functions using QSettings crash with -fstack-protector on
-
- Closed
-