Upgrading gcc causes segmentation fault
Pippin last edited by Pippin
I have Ubuntu 15.04 and after running the occasional update, gcc has been upgraded from 4.8.x to 5.1.1. Now when I execute my project, I get a segfault at
QApplication app(argc, argv);
The backtrace is:
/lib/x86_64-linux-gnu/libpthread.so.0(+0x10d10)[0x7f014c9cad10] /usr/lib/x86_64-linux-gnu/libQt5Core.so.5(_ZN11QMetaObject8activateEP7QObjectiiPPv+0x3c)[0x7f014d1860fc] /usr/lib/x86_64-linux-gnu/libQt5Gui.so.5(_ZN15QGuiApplication11screenAddedEP7QScreen+0x42)[0x7f014d498c52] /usr/lib/x86_64-linux-gnu/qt5/plugins/platforms/libqxcb.so(+0x3144f)[0x7f01446fa44f] /usr/lib/x86_64-linux-gnu/qt5/plugins/platforms/libqxcb.so(+0x31ccb)[0x7f01446faccb] /usr/lib/x86_64-linux-gnu/qt5/plugins/platforms/libqxcb.so(+0x35654)[0x7f01446fe654] /usr/lib/x86_64-linux-gnu/qt5/plugins/platforms/libqxcb.so(+0x4a34b)[0x7f014471334b] /usr/lib/x86_64-linux-gnu/libQt5Gui.so.5(_ZN27QPlatformIntegrationFactory6createERK7QStringRK11QStringListRiPPcS2_+0xa2)[0x7f014d490362] /usr/lib/x86_64-linux-gnu/libQt5Gui.so.5(_ZN22QGuiApplicationPrivate25createPlatformIntegrationEv+0x691)[0x7f014d49c2e1]
What's wrong? Why does this happen at all?
bsomervi last edited by
gcc 5 has C++ breaking ABI changes.
Have you recompiled all your code?
If you have and you are still getting this SEGV you could try compiling your code with -D_GLIBCXX_USE_CXX11_ABI=0 but the errors do not look to be due to the ABI breaking changes.
See here: http://developerblog.redhat.com/2015/02/05/gcc5-and-the-c11-abi/ for some related info.
Pippin last edited by
@bsomervi I still have the same problem. Will this be fixed eventually, or is this an issue we'll all have to face with gcc 5.1?
I think I'm just going to downgrade gcc to 4.8.x again.