Uploaded image for project: 'Qt Creator'
  1. Qt Creator
  2. QTCREATORBUG-23841

Clicking "Build for Run Configuration XYZ" in a Qbs project causes crash

    XMLWordPrintable

Details

    • All
    • fb56c82abf8e1af7d1b03b93b1eafda02c548f1b (qt-creator/qt-creator/4.12)

    Description

      This issue can be reproduced in any Qbs project when clicking on Build -> Build for Run Configuration XYZ.

      Crash report:

      Thread 1 "qtcreator" received signal SIGSEGV, Segmentation fault.
      ProjectExplorer::ProjectExplorerPlugin::<lambda()>::operator() (__closure=<optimized out>) at /home/qt/work/build/qt-creator/src/plugins/projectexplorer/projectexplorer.cpp:1571
      

       

      projectexplorer.cpp:1570+:

              ProjectNode * const productNode = runConfig->productNode();
              QTC_ASSERT(productNode->isProduct(), return);
      

      Looks like runConfig->productNode() returns a null pointer and Qt Creator crashes before evaluating the assert.

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            kandeler Christian Kandeler
            rweickelt Richard Weickelt
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes