Nominate our 2022 Qt Champions!

Upgrading gcc causes segmentation fault

  • 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:


    What's wrong? Why does this happen at all?

  • 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: for some related info.

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

Log in to reply