FS#38031 - [qt5-base] QApplication segfaults

Attached to Project: Arch Linux
Opened by Gaetan Bisson (vesath) - Thursday, 05 December 2013, 19:19 GMT
Last edited by Andrea Scarpino (BaSh) - Thursday, 05 December 2013, 19:24 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To Andrea Scarpino (BaSh)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

The following used to work (up to a couple months ago, at most), but not anymore.

#include <QtWidgets/QApplication>
int main (int argc, char *argv[]) {
QApplication x (argc, argv);
return 0;
}

This piece of code compiles fine with `c++ -I/usr/include/qt -lQt5Widgets -lQt5Core -fPIE` but segfaults at runtime. Here is the backtrace:

Program received signal SIGSEGV, Segmentation fault.
0x00007ffff06b58f0 in ?? () from /usr/lib/qt/plugins/platforms/libqxcb.so
(gdb) bt
#0 0x00007ffff06b58f0 in ?? () from /usr/lib/qt/plugins/platforms/libqxcb.so
#1 0x00007ffff06b5da8 in ?? () from /usr/lib/qt/plugins/platforms/libqxcb.so
#2 0x00007ffff06b33cc in ?? () from /usr/lib/qt/plugins/platforms/libqxcb.so
#3 0x00007ffff06b4bc5 in ?? () from /usr/lib/qt/plugins/platforms/libqxcb.so
#4 0x00007ffff06c46dc in ?? () from /usr/lib/qt/plugins/platforms/libqxcb.so
#5 0x00007ffff5ea25dc in QPlatformIntegrationFactory::create(QString const&, QStringList const&, QString const&) () from /usr/lib/libQt5Gui.so.5
#6 0x00007ffff5eaa58a in QGuiApplicationPrivate::createPlatformIntegration() () from /usr/lib/libQt5Gui.so.5
#7 0x00007ffff5eaaf55 in QGuiApplicationPrivate::createEventDispatcher() () from /usr/lib/libQt5Gui.so.5
#8 0x00007ffff71c7e31 in QCoreApplication::init() () from /usr/lib/libQt5Core.so.5
#9 0x00007ffff71c7ea6 in QCoreApplication::QCoreApplication(QCoreApplicationPrivate&) () from /usr/lib/libQt5Core.so.5
#10 0x00007ffff5eabaf9 in QGuiApplication::QGuiApplication(QGuiApplicationPrivate&) () from /usr/lib/libQt5Gui.so.5
#11 0x00007ffff770b0cd in QApplication::QApplication(int&, char**, int) () from /usr/lib/libQt5Widgets.so.5
#12 0x0000000000400839 in main ()

I'm posting this here for reference in case the problem is obvious to someone before I find more time to investigate.
This task depends upon

Closed by  Andrea Scarpino (BaSh)
Thursday, 05 December 2013, 19:24 GMT
Reason for closing:  Duplicate
Additional comments about closing:   FS#37728 

Loading...