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

GDB exits while debugging

    XMLWordPrintable

Details

    • Bug
    • Resolution: Cannot Reproduce
    • Not Evaluated
    • None
    • Qt Creator 4.7.2
    • Debugger
    • None
    • Ubuntu 18.04 LTS on a VirtualBox VM running under MS Windows 10.
    • Linux/X11

    Description

      This started after the update to Qt Creator 4.7.2.

       

      GDB exits while debugging a C++ application. There are no error messages. The only message in the Application Output is:

       

      Debugging has finished

       

      The first two or three debug sessions work without problems. Then in the next sessions GDB exists randomly, either while stepping or while stopping in a breakpoint or when simply continuing.

      Restart Qt Creator and it works again for the first two or three sessions.

      The issue doesn't happen when starting GDB stand alone.

      This was not happening with Qt Creator 4.7.1

      The memory size for the qtcreator process (reported by System Monitor) increases between every debug session: starts with 756 Mib in the first session, then 759 Mib, 773 Mib, 784 Mib, and so on.

       

      Update:

      Run Qt Creator from terminal and got the following output (4 debug sessions, the last 2 ended abruptly)

       

      TOKEN: 33 CMD: "-break-delete 1"
      SOFT ASSERT: "good" in file /work/build/qt-creator/src/plugins/debugger/gdb/gdbengine.cpp, line 2061
      Invalid run control state transition from "RunControlState::Stopped" to "RunControlState::Starting"
      SOFT ASSERT: "m_currentIndex < m_stackFrames.size()" in file /work/build/qt-creator/src/plugins/debugger/stackhandler.cpp, line 190
      SOFT ASSERT: "m_currentIndex < m_stackFrames.size()" in file /work/build/qt-creator/src/plugins/debugger/stackhandler.cpp, line 190
      Invalid run control state transition from "RunControlState::Stopped" to "RunControlState::Starting"
      SOFT ASSERT: "m_currentIndex < m_stackFrames.size()" in file /work/build/qt-creator/src/plugins/debugger/stackhandler.cpp, line 190
      SOFT ASSERT: "m_currentIndex < m_stackFrames.size()" in file /work/build/qt-creator/src/plugins/debugger/stackhandler.cpp, line 190
      Invalid run control state transition from "RunControlState::Stopped" to "RunControlState::Starting"
      SOFT ASSERT: "m_currentIndex < m_stackFrames.size()" in file /work/build/qt-creator/src/plugins/debugger/stackhandler.cpp, line 190
      SOFT ASSERT: "m_currentIndex < m_stackFrames.size()" in file /work/build/qt-creator/src/plugins/debugger/stackhandler.cpp, line 190
      Invalid run control state transition from "RunControlState::Stopped" to "RunControlState::Starting"
      SOFT ASSERT: "m_currentIndex < m_stackFrames.size()" in file /work/build/qt-creator/src/plugins/debugger/stackhandler.cpp, line 190
      SOFT ASSERT: "m_currentIndex < m_stackFrames.size()" in file /work/build/qt-creator/src/plugins/debugger/stackhandler.cpp, line 190

       

       

       

      Attachments

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

        Activity

          People

            hjk hjk
            josuegomes Josue Andrade Gomes
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes