Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Upgrading gcc causes segmentation fault

Upgrading gcc causes segmentation fault

Scheduled Pinned Locked Moved Unsolved General and Desktop
3 Posts 2 Posters 813 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • P Offline
    P Offline
    Pippin
    wrote on last edited by Pippin
    #1

    Hello,

    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?

    1 Reply Last reply
    0
    • B Offline
      B Offline
      bsomervi
      wrote on last edited by
      #2

      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.

      1 Reply Last reply
      1
      • P Offline
        P Offline
        Pippin
        wrote on last edited by
        #3

        @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.

        1 Reply Last reply
        0

        • Login

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Users
        • Groups
        • Search
        • Get Qt Extensions
        • Unsolved