Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

Building Qt Creator succeeds, but segfaults at launch (Ubuntu 18.04)



  • Hi,
    I succeeded in building Creator from git, following the instructions here: https://wiki.qt.io/Building_Qt_Creator_from_Git.
    Running gdb with a backtrace reveals:

    Thread 1 "qtcreator" received signal SIGSEGV, Segmentation fault.
    0x00007fffc915ca37 in CppTools::Internal::CppToolsPlugin::codeModelSettings() const
        ()
       from /home/ben/Documents/repos/qt-creator/build/lib/qtcreator/plugins/libCppTools.so
    (gdb) bt
    #0  0x00007fffc915ca37 in CppTools::Internal::CppToolsPlugin::codeModelSettings() const ()
        at /home/ben/Documents/repos/qt-creator/build/lib/qtcreator/plugins/libCppTools.so
    #1  0x00007fffc9161278 in CppTools::codeModelSettings() ()
        at /home/ben/Documents/repos/qt-creator/build/lib/qtcreator/plugins/libCppTools.so
    #2  0x00007fffc9162998 in CppTools::diagnosticConfigsModel() ()
        at /home/ben/Documents/repos/qt-creator/build/lib/qtcreator/plugins/libCppTools.so
    #3  0x00007fffc90d2f94 in CppTools::CppCodeModelSettings::clangDiagnosticConfigId() const ()
        at /home/ben/Documents/repos/qt-creator/build/lib/qtcreator/plugins/libCppTools.so
    #4  0x00007fffc90d32a5 in CppTools::CppCodeModelSettings::toSettings(QSettings*) ()
        at /home/ben/Documents/repos/qt-creator/build/lib/qtcreator/plugins/libCppTools.so
    #5  0x00007fffc90d3b76 in CppTools::CppCodeModelSettings::fromSettings(QSettings*) ()
        at /home/ben/Documents/repos/qt-creator/build/lib/qtcreator/plugins/libCppTools.so
    #6  0x00007fffc915cd74 in CppTools::Internal::CppToolsPlugin::initialize(QStringList const&, QString*) ()
        at /home/ben/Documents/repos/qt-creator/build/lib/qtcreator/plugins/libCppTools.so
    #7  0x00007ffff7bb91be in ExtensionSystem::Internal::PluginSpecPrivate::initializePlugin() ()
        at /home/ben/Documents/repos/qt-creator/build/bin/../lib/qtcreator/libExtensionSystem.so.4
    #8  0x00007ffff7bb205d in ExtensionSystem::Internal::PluginManagerPrivate::loadPlugin(ExtensionSystem::PluginSpec*, ExtensionSystem::PluginSpec::State) ()
        at /home/ben/Documents/repos/qt-creator/build/bin/../lib/qtcreator/libExtensionSystem.so.4
    #9  0x00007ffff7bb2828 in ExtensionSystem::Internal::PluginManagerPrivate::loadPlugins() ()
        at /home/ben/Documents/repos/qt-creator/build/bin/../lib/qtcreator/libExtensionSystem.so.4
    #10 0x000055555555dbb5 in main ()
    

    What can I do to fix this segmentation fault?


  • Lifetime Qt Champion

    Hi
    Did you also build the
    "LLVM/Clang 6.0.0 or newer for the Clang Code Model related plugins."
    it seems it crashes loading that. Its now default ON in newer creators.

    You could try to start it with -noload all
    so none of the plugins are loaded then go to About plugins and disable the codemodel and see
    if that makes crash go away.
    alt text


Log in to reply