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

Crash when attempting to "run all tests"

    XMLWordPrintable

Details

    • Linux/X11
    • c25a40f6ed77b2af70a63b6740ef293947483de5 (qt-creator/qt-creator/4.13)

    Description

      When attempting to run all gtest-based tests in a CMake-based project, QtCreator crashes with the following backtrace:

       

      #0 ProjectExplorer::BuildTargetInfo::BuildTargetInfo(ProjectExplorer::BuildTargetInfo const&) (this=0x7fffffffd8f0)
      at ../../../../src/src/plugins/projectexplorer/buildtargetinfo.h:38
      #1 0x00007fffbc0adf4a in Autotest::TestConfiguration::completeTestInformation(Autotest::TestRunMode) (this=0x555558af3970, runMode=runMode@entry=Autotest::TestRunMode::Run)
      at /usr/include/qt/QtCore/qlist.h:570
      project = <optimized out>
      target = 0x555557867d20
      buildSystemTargets = {q_hash = d = 0x555558a5e990, e = 0x555558a5e990}
      buildTargets =
      {<QListSpecialMethods<ProjectExplorer::BuildTargetInfo>> =

      {<No data fields>}, {p = {static shared_null = {ref = {atomic = {_q_value = {<std::__atomic_base<int>> = {static _S_alignment = 4, _M_i = -1}, <No data fields>}}}, alloc = 0, begin = 0, end = 0, array = {0x0}}, d = 0x7ffff6c3a450 <QListData::shared_null>}, d = 0x7ffff6c3a450 <QListData::shared_null>}}
      targetInfo =
      {buildKey = {d = 0x7fff41440d90}, displayName = {d = 0x7fff41440d90}, displayNameUniquifier = {d = 0x7ffff6c39940 <QArrayData::shared_null>}, targetFilePath = {m_data = {d = 0x7fff4197a880}, m_url = {d = 0x0}}, projectFilePath = {m_data = {d = 0x5555588e1220}, m_url = {d = 0x0}}, workingDirectory = {m_data = {d = 0x7fff41903e00}, m_url = {d = 0x0}}, isQtcRunnable = true, usesTerminal = true, runEnvModifierHash = 0, runEnvModifier = {<std::_Maybe_unary_or_binary_function<void, Utils::Environment&, bool>> = {<std::binary_function<Utils::Environment&, bool, void>> = {<No data fields>}

      , <No data fields>}, <std::_Function_base> = {static _M_max_size = 16, static _M_max_align = 8, _M_functor = {_M_unused = {_M_object = 0x5555593a1fe0, _M_const_object = 0x5555593a1fe0, _M_function_pointer = 0x5555593a1fe0, _M_member_pointer = (void (std::_Undefined_class::*)(std::_Undefined_class * const)) 0x5555593a1fe0, this adjustment 140736887767319}, _M_pod_data = "\340\037:YUU\000\000\027\301\063\334\377\177\000"}, _M_manager = 0x7fff9ed6b9e0 <std::_Function_handler<void(Utils::Environment&, bool), CMakeProjectManager::Internal::CMakeBuildSystem::appTargets() const::<lambda(Utils::Environment&, bool)> >::_M_manager(std::_Any_data &, const std::_Any_data &, std::_Manager_operation)>}, _M_invoker = 0x7fff9ed6ebb0 <std::_Function_handler<void(Utils::Environment&, bool), CMakeProjectManager::Internal::CMakeBuildSystem::appTargets() const::<lambda(Utils::Environment&, bool)> >::_M_invoke(const std::_Any_data &, Utils::Environment &, bool &&)>}}
      localExecutable = {m_data =

      {d = 0x7fff4197a880}, m_url = {d = 0x0}}
      buildBase = {d = 0x555557889640}
      deployData = <optimized out>
      deploy =
      {m_localFilePath = {m_data = {d = 0x7ffff6c39940 <QArrayData::shared_null>}, m_url = {d = 0x0}}, m_remoteDir = {d = 0x7ffff6c39940 <QArrayData::shared_null>}, m_type = ProjectExplorer::DeployableFile::TypeNormal}
      deployedExecutable = {m_data = {d = 0x7fff4197a880}

      , m_url = {d = 0x0}}
      #2 0x00007fffbc0cca38 in Autotest::Internal::TestRunner::runTests() (this=0x5555561a6248) at ../../../../src/src/plugins/autotest/testrunner.cpp:469
      config = 0x555558af3970
      __for_range =
      @0x5555561a6280: {<QList<Autotest::TestConfiguration*>> = {<QListSpecialMethods<Autotest::TestConfiguration*>> =

      {<No data fields>}, {p = {static shared_null = {ref = {atomic = {_q_value = {<std::__atomic_base<int>> = {static _S_alignment = 4, _M_i = -1}, <No data fields>}}}, alloc = 0, begin = 0, end = 0, array = {0x0}}, d = 0x55555926a2d0}, d = 0x55555926a2d0}}, <No data fields>}
      toBeRemoved = {<QListSpecialMethods<Autotest::TestConfiguration*>> = {<No data fields>}

      , {p = {static shared_null = {ref = {atomic = {_q_value = {<std::__atomic_base<int>> =

      {static _S_alignment = 4, _M_i = -1}, <No data fields>}}}, alloc = 0, begin = 0, end = 0, array = {0x0}}, d = 0x7ffff6c3a450 <QListData::shared_null>}, d = 0x7ffff6c3a450 <QListData::shared_null>}}
      projectChanged = false
      testCaseCount = <optimized out>
      future = {d = {<QFutureInterfaceBase> = {<No data fields>}, <No data fields>}}
      #3 0x00007ffff6b86a26 in () at /usr/lib/libQt5Core.so.5
      #4 0x00007fffdc34fb63 in ProjectExplorer::BuildManager::buildQueueFinished(bool) (this=<optimized out>, _t1=<optimized out>) at .moc/release-shared/moc_buildmanager.cpp:182
      _a = {0x0, 0x7fffffffdb3c}
      #5 0x00007ffff6b86a26 in () at /usr/lib/libQt5Core.so.5
      #6 0x00007fffdc353a83 in ProjectExplorer::BuildStep::finished(bool) (this=<optimized out>, _t1=<optimized out>) at .moc/release-shared/moc_buildstep.cpp:270
      _a = {0x0, 0x7fffffffdc5c}
      #7 0x00007ffff6b86a26 in () at /usr/lib/libQt5Core.so.5
      #8 0x00007ffff6abb449 in QProcess::finished(int, QProcess::ExitStatus) () at /usr/lib/libQt5Core.so.5
      #9 0x00007ffff6ac0d96 in () at /usr/lib/libQt5Core.so.5
      #10 0x00007ffff6ac0ece in () at /usr/lib/libQt5Core.so.5
      #11 0x00007ffff6b86a60 in () at /usr/lib/libQt5Core.so.5
      #12 0x00007ffff6b89f90 in QSocketNotifier::activated(QSocketDescriptor, QSocketNotifier::Type, QSocketNotifier::QPrivateSignal) () at /usr/lib/libQt5Core.so.5
      #13 0x00007ffff6b8a79d in QSocketNotifier::event(QEvent*) () at /usr/lib/libQt5Core.so.5
      #14 0x00007ffff77a8702 in QApplicationPrivate::notify_helper(QObject*, QEvent*) () at /usr/lib/libQt5Widgets.so.5
      #15 0x00007ffff6b4f7ba in QCoreApplication::notifyInternal2(QObject*, QEvent*) () at /usr/lib/libQt5Core.so.5
      #16 0x00007ffff6ba8f46 in () at /usr/lib/libQt5Core.so.5
      #17 0x00007ffff516b43c in g_main_context_dispatch () at /usr/lib/libglib-2.0.so.0
      #18 0x00007ffff51b91d9 in () at /usr/lib/libglib-2.0.so.0
      #19 0x00007ffff516a221 in g_main_context_iteration () at /usr/lib/libglib-2.0.so.0
      #20 0x00007ffff6ba8331 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib/libQt5Core.so.5
      #21 0x00007ffff6b4e13c in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib/libQt5Core.so.5
      #22 0x00007ffff6b565c4 in QCoreApplication::exec() () at /usr/lib/libQt5Core.so.5
      #23 0x000055555555e433 in main(int, char**) (argc=<optimized out>, argv=<optimized out>) at ../../../src/src/app/main.cpp:740
      restarter = {m_executable = {d = 0x55555558c7d0}, m_args = {<QList<QString>> = {<QListSpecialMethods<QString>> = {<No data fields>}, {p = {static shared_null = {ref = {atomic = {_q_value = {<std::__atomic_base<int>> = {static _S_alignment = 4, _M_i = -1}

      , <No data fields>}}}, alloc = 0, begin = 0, end = 0, array = {0x0}}, d = 0x555555a24440}, d = 0x555555a24440}}, <No data fields>}, m_workingPath = {d = 0x55555558c870}}
      options = {settingsPath =

      {d = 0x7ffff6c39940 <QArrayData::shared_null>}

      , installSettingsPath = {d = 0x7ffff6c39940 <QArrayData::shared_null>}, customPluginPaths = {<QList<QString>> = {<QListSpecialMethods<QString>> =

      {<No data fields>}, {p = {static shared_null = {ref = {atomic = {_q_value = {<std::__atomic_base<int>> = {static _S_alignment = 4, _M_i = -1}, <No data fields>}}}, alloc = 0, begin = 0, end = 0, array = {0x0}}, d = 0x7ffff6c3a450 <QListData::shared_null>}, d = 0x7ffff6c3a450 <QListData::shared_null>}}, <No data fields>}, preAppArguments = {<QList<QString>> = {<QListSpecialMethods<QString>> = {<No data fields>}

      , {p = {static shared_null = {ref = {atomic = {_q_value = {<std::__atomic_base<int>> =

      {static _S_alignment = 4, _M_i = -1}, <No data fields>}}}, alloc = 0, begin = 0, end = 0, array = {0x0}}, d = 0x7ffff6c3a450 <QListData::shared_null>}, d = 0x7ffff6c3a450 <QListData::shared_null>}}, <No data fields>}, appArguments = std::vector of length 1, capacity 1 = {0x7fffffffe9a1 "/usr/bin/qtcreator"}, userLibraryPath = {<std::experimental::optional_base<QString>> = {init_ = false, storage_ = {dummy_ = 0 '\000', value_ = {d = 0x0}}}, <No data fields>}, hasTestOption = false, wantsCleanSettings = false}
      temporaryCleanSettingsDir = <optimized out>
      numberofArguments = 1
      app = {<QApplication> = {<No data fields>}, static staticMetaObject = {d = {superdata = {direct = 0x7ffff7cb1e80 <QApplication::staticMetaObject>}, stringdata = 0x555555565ba0 <qt_meta_stringdata_SharedTools_QtSingleApplication>, data = 0x555555565b00 <qt_meta_data_SharedTools_QtSingleApplication>, static_metacall = 0x555555564700 <SharedTools::QtSingleApplication::qt_static_metacall(QObject*, QMetaObject::Call, int, void**)>, relatedMetaObjects = 0x0, extradata = 0x0}}, firstPeer = -1, instances = 0x555555930480, pidPeer = 0x55555592f2a0, actWin = 0x0, appId = {d = 0x5555555921c0}, block = false}
      pluginArguments = {<QList<QString>> = {<QListSpecialMethods<QString>> = {<No data fields>}, {p = {static shared_null = {ref = {atomic = {_q_value = {<std::__atomic_base<int>> = {static _S_alignment = 4, _M_i = -1}

      , <No data fields>}}}, alloc = 0, begin = 0, end = 0, array = {0x0}}, d = 0x5555559315c0}, d = 0x5555559315c0}}, <No data fields>}
      settings = <optimized out>
      globalSettings = <optimized out>
      threadCount = <optimized out>
      libexecPath = {d = 0x55555593e850}
      setupCrashHandler = {<No data fields>}
      pluginManager = {<QObject> =

      {<No data fields>}, static staticMetaObject = {d = {superdata = {direct = 0x7ffff6ddd1a0 <QObject::staticMetaObject>}, stringdata = 0x7ffff7fbbc00 <qt_meta_stringdata_ExtensionSystem_PluginManager>, data = 0x7ffff7fbbb20 <qt_meta_data_ExtensionSystem_PluginManager>, static_metacall = 0x7ffff7fb9010 <ExtensionSystem::PluginManager::qt_static_metacall(QObject*, QMetaObject::Call, int, void**)>, relatedMetaObjects = 0x0, extradata = 0x0}}}
      translator = <incomplete type>
      qtTranslator = <incomplete type>
      uiLanguages = {<QList<QString>> = {<QListSpecialMethods<QString>> = {<No data fields>}

      , {p = {static shared_null = {ref = {atomic = {_q_value = {<std::__atomic_base<int>> =

      {static _S_alignment = 4, _M_i = -1}, <No data fields>}}}, alloc = 0, begin = 0, end = 0, array = {0x0}}, d = 0x55555593f120}, d = 0x55555593f120}}, <No data fields>}
      overrideLanguage = {d = 0x7ffff6c39940 <QArrayData::shared_null>}
      creatorTrPath = @0x7fffffffe390: {d = 0x55555593ecf0}
      pluginPaths = {<QList<QString>> = {<QListSpecialMethods<QString>> = {<No data fields>}, {p = {static shared_null = {ref = {atomic = {_q_value = {<std::__atomic_base<int>> = {static _S_alignment = 4, _M_i = -1}

      , <No data fields>}}}, alloc = 0, begin = 0, end = 0, array = {0x0}}, d = 0x555555979050}, d = 0x555555979050}}, <No data fields>}
      foundAppOptions = {d = 0x7ffff6c3a480 <QMapDataBase::shared_null>}
      plugins = {d = 0x555555987210}
      coreplugin = 0x5555559a3ec0
      pid = <optimized out>
      isBlock = <optimized out>
      trimmer = {<QObject> =

      {<No data fields>}

      , m_trimTimer = <incomplete type>}

      Attachments

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

        Activity

          People

            cstenger Christian Stenger
            shentey2 Bernhard Beschow
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes