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

Crash when trying to stop the debugger

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Not Evaluated
    • Qt Creator 4.0.0
    • Qt Creator 4.0.0
    • Debugger
    • None
    • aba988cb817e8d8edd75106006f9f6df91189b7f

    Description

      I remember that I've accidently hit F5 and then pressed the stop button in the debugger toolbar. It might be that a dialog popped up whether I really want to do this.

      I don't remember the details and I can't re-produce this.

      SOFT ASSERT: "state() == EngineRunRequested || state() == InferiorStopOk" in file /home/nik/dev/creator/creator-ut/src/plugins/debugger/gdb/attachgdbadapter.cpp, line 82
      EngineShutdownRequested
      ASAN:SIGSEGV
      =================================================================
      ==22115==ERROR: AddressSanitizer: SEGV on unknown address 0x000000000010 (pc 0x7f51e378a5d6 bp 0x7ffc827bd650 sp 0x7ffc827bd580 T0)
          #0 0x7f51e378a5d5 in Debugger::Internal::DebuggerEngine::runParameters() /home/nik/dev/creator/creator-ut/src/plugins/debugger/debuggerengine.cpp:665:12
          #1 0x7f51e3900ab4 in Debugger::Internal::DebuggerPluginPrivate::updateActiveLanguages() /home/nik/dev/creator/creator-ut/src/plugins/debugger/debuggerplugin.cpp:3311:41
          #2 0x7f51e38e0d86 in Debugger::Internal::DebuggerPluginPrivate::onModeChanged(Core::IMode*) /home/nik/dev/creator/creator-ut/src/plugins/debugger/debuggerplugin.cpp:3364:9
          #3 0x7f51e39d559c in QtPrivate::FunctorCall<QtPrivate::IndexesList<0>, QtPrivate::List<Core::IMode*>, void, void (Debugger::Internal::DebuggerPluginPrivate::*)(Core::IMode*)>::call(void (Debugger::Internal::DebuggerPluginPrivate::*)(Core::IMode*), Debugger::Internal::DebuggerPluginPrivate*, void**) /home/nik/usr/qt-5.6.0-install/5.6/gcc_64/include/QtCore/qobjectdefs_impl.h:501:14
          #4 0x7f51e39d5091 in void QtPrivate::FunctionPointer<void (Debugger::Internal::DebuggerPluginPrivate::*)(Core::IMode*)>::call<QtPrivate::List<Core::IMode*>, void>(void (Debugger::Internal::DebuggerPluginPrivate::*)(Core::IMode*), Debugger::Internal::DebuggerPluginPrivate*, void**) /home/nik/usr/qt-5.6.0-install/5.6/gcc_64/include/QtCore/qobjectdefs_impl.h:520:13
          #5 0x7f51e39d47bb in QtPrivate::QSlotObject<void (Debugger::Internal::DebuggerPluginPrivate::*)(Core::IMode*), QtPrivate::List<Core::IMode*>, void>::impl(int, QtPrivate::QSlotObjectBase*, QObject*, void**, bool*) /home/nik/usr/qt-5.6.0-install/5.6/gcc_64/include/QtCore/qobject_impl.h:143:17
          #6 0x7f520c58540d in QMetaObject::activate(QObject*, int, int, void**) (/home/nik/usr/qt-5.6.0-install/5.6/gcc_64/lib/libQt5Core.so.5+0x29540d)
          #7 0x7f51ee926a49 in Core::ModeManager::currentModeChanged(Core::IMode*, Core::IMode*) /home/nik/dev/creator/creator-ut_build_asan/src/plugins/coreplugin/.moc/debug-shared/moc_modemanager.cpp:160:5
          #8 0x7f51ee0941e0 in Core::ModeManager::currentTabChanged(int) /home/nik/dev/creator/creator-ut/src/plugins/coreplugin/modemanager.cpp:279:14
          #9 0x7f51ee0be9b6 in QtPrivate::FunctorCall<QtPrivate::IndexesList<0>, QtPrivate::List<int>, void, void (Core::ModeManager::*)(int)>::call(void (Core::ModeManager::*)(int), Core::ModeManager*, void**) /home/nik/usr/qt-5.6.0-install/5.6/gcc_64/include/QtCore/qobjectdefs_impl.h:501:14
          #10 0x7f51ee0be451 in void QtPrivate::FunctionPointer<void (Core::ModeManager::*)(int)>::call<QtPrivate::List<int>, void>(void (Core::ModeManager::*)(int), Core::ModeManager*, void**) /home/nik/usr/qt-5.6.0-install/5.6/gcc_64/include/QtCore/qobjectdefs_impl.h:520:13
          #11 0x7f51ee0bdb7b in QtPrivate::QSlotObject<void (Core::ModeManager::*)(int), QtPrivate::List<int>, void>::impl(int, QtPrivate::QSlotObjectBase*, QObject*, void**, bool*) /home/nik/usr/qt-5.6.0-install/5.6/gcc_64/include/QtCore/qobject_impl.h:143:17
          #12 0x7f520c58540d in QMetaObject::activate(QObject*, int, int, void**) (/home/nik/usr/qt-5.6.0-install/5.6/gcc_64/lib/libQt5Core.so.5+0x29540d)
          #13 0x7f51ee8c3d00 in Core::Internal::FancyTabWidget::currentChanged(int) /home/nik/dev/creator/creator-ut_build_asan/src/plugins/coreplugin/.moc/debug-shared/moc_fancytabwidget.cpp:403:5
          #14 0x7f51edaf73d3 in Core::Internal::FancyTabWidget::showWidget(int) /home/nik/dev/creator/creator-ut/src/plugins/coreplugin/fancytabwidget.cpp:569:10
          #15 0x7f51edb06d86 in QtPrivate::FunctorCall<QtPrivate::IndexesList<0>, QtPrivate::List<int>, void, void (Core::Internal::FancyTabWidget::*)(int)>::call(void (Core::Internal::FancyTabWidget::*)(int), Core::Internal::FancyTabWidget*, void**) /home/nik/usr/qt-5.6.0-install/5.6/gcc_64/include/QtCore/qobjectdefs_impl.h:501:14
          #16 0x7f51edb06821 in void QtPrivate::FunctionPointer<void (Core::Internal::FancyTabWidget::*)(int)>::call<QtPrivate::List<int>, void>(void (Core::Internal::FancyTabWidget::*)(int), Core::Internal::FancyTabWidget*, void**) /home/nik/usr/qt-5.6.0-install/5.6/gcc_64/include/QtCore/qobjectdefs_impl.h:520:13
          #17 0x7f51edb05f4b in QtPrivate::QSlotObject<void (Core::Internal::FancyTabWidget::*)(int), QtPrivate::List<int>, void>::impl(int, QtPrivate::QSlotObjectBase*, QObject*, void**, bool*) /home/nik/usr/qt-5.6.0-install/5.6/gcc_64/include/QtCore/qobject_impl.h:143:17
          #18 0x7f520c58540d in QMetaObject::activate(QObject*, int, int, void**) (/home/nik/usr/qt-5.6.0-install/5.6/gcc_64/lib/libQt5Core.so.5+0x29540d)
          #19 0x7f51ee8c16ed in Core::Internal::FancyTabBar::currentChanged(int) /home/nik/dev/creator/creator-ut_build_asan/src/plugins/coreplugin/.moc/debug-shared/moc_fancytabwidget.cpp:245:5
          #20 0x7f51edae5731 in Core::Internal::FancyTabBar::emitCurrentIndex() /home/nik/dev/creator/creator-ut/src/plugins/coreplugin/fancytabwidget.cpp:219:10
          #21 0x7f51edb0a16d in QtPrivate::FunctorCall<QtPrivate::IndexesList<>, QtPrivate::List<>, void, void (Core::Internal::FancyTabBar::*)()>::call(void (Core::Internal::FancyTabBar::*)(), Core::Internal::FancyTabBar*, void**) /home/nik/usr/qt-5.6.0-install/5.6/gcc_64/include/QtCore/qobjectdefs_impl.h:501:13
          #22 0x7f51edb09cf1 in void QtPrivate::FunctionPointer<void (Core::Internal::FancyTabBar::*)()>::call<QtPrivate::List<>, void>(void (Core::Internal::FancyTabBar::*)(), Core::Internal::FancyTabBar*, void**) /home/nik/usr/qt-5.6.0-install/5.6/gcc_64/include/QtCore/qobjectdefs_impl.h:520:13
          #23 0x7f51edb0941b in QtPrivate::QSlotObject<void (Core::Internal::FancyTabBar::*)(), QtPrivate::List<>, void>::impl(int, QtPrivate::QSlotObjectBase*, QObject*, void**, bool*) /home/nik/usr/qt-5.6.0-install/5.6/gcc_64/include/QtCore/qobject_impl.h:143:17
          #24 0x7f520c58540d in QMetaObject::activate(QObject*, int, int, void**) (/home/nik/usr/qt-5.6.0-install/5.6/gcc_64/lib/libQt5Core.so.5+0x29540d)
          #25 0x7f520c592067 in QTimer::timerEvent(QTimerEvent*) (/home/nik/usr/qt-5.6.0-install/5.6/gcc_64/lib/libQt5Core.so.5+0x2a2067)
          #26 0x7f520c58628a in QObject::event(QEvent*) (/home/nik/usr/qt-5.6.0-install/5.6/gcc_64/lib/libQt5Core.so.5+0x29628a)
          #27 0x7f520d8b404b in QApplicationPrivate::notify_helper(QObject*, QEvent*) (/home/nik/usr/qt-5.6.0-install/5.6/gcc_64/lib/libQt5Widgets.so.5+0x15604b)
          #28 0x7f520d8b8487 in QApplication::notify(QObject*, QEvent*) (/home/nik/usr/qt-5.6.0-install/5.6/gcc_64/lib/libQt5Widgets.so.5+0x15a487)
          #29 0x7f520c55be7f in QCoreApplication::notifyInternal2(QObject*, QEvent*) (/home/nik/usr/qt-5.6.0-install/5.6/gcc_64/lib/libQt5Core.so.5+0x26be7f)
          #30 0x7f520c5aa33d in QTimerInfoList::activateTimers() (/home/nik/usr/qt-5.6.0-install/5.6/gcc_64/lib/libQt5Core.so.5+0x2ba33d)
          #31 0x7f520c5aa840  (/home/nik/usr/qt-5.6.0-install/5.6/gcc_64/lib/libQt5Core.so.5+0x2ba840)
          #32 0x7f5209e51e03 in g_main_context_dispatch (/lib/x86_64-linux-gnu/libglib-2.0.so.0+0x48e03)
          #33 0x7f5209e52047  (/lib/x86_64-linux-gnu/libglib-2.0.so.0+0x49047)
          #34 0x7f5209e520eb in g_main_context_iteration (/lib/x86_64-linux-gnu/libglib-2.0.so.0+0x490eb)
          #35 0x7f520c5ab4e6 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) (/home/nik/usr/qt-5.6.0-install/5.6/gcc_64/lib/libQt5Core.so.5+0x2bb4e6)
          #36 0x7f520c559ef9 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) (/home/nik/usr/qt-5.6.0-install/5.6/gcc_64/lib/libQt5Core.so.5+0x269ef9)
          #37 0x7f520c561d9c in QCoreApplication::exec() (/home/nik/usr/qt-5.6.0-install/5.6/gcc_64/lib/libQt5Core.so.5+0x271d9c)
          #38 0x51aac0 in main /home/nik/dev/creator/creator-ut/src/app/main.cpp:527:12
          #39 0x7f520adb5ec4 in __libc_start_main /build/eglibc-3GlaMS/eglibc-2.19/csu/libc-start.c:287
          #40 0x442904 in _start (/home/nik/dev/creator/creator-ut_build_asan/bin/qtcreator+0x442904)
      
      AddressSanitizer can not provide additional info.
      SUMMARY: AddressSanitizer: SEGV /home/nik/dev/creator/creator-ut/src/plugins/debugger/debuggerengine.cpp:665 Debugger::Internal::DebuggerEngine::runParameters()
      ==22115==ABORTING
      

      Attachments

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

        Activity

          People

            hjk hjk
            kosjar Nikolai Kosjar
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes