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

QtCreator hangs when trying to debug using GDB and pretty printers

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Not Evaluated
    • Resolution: Done
    • Affects Version/s: Qt Creator 4.9.2
    • Component/s: Debugger
    • Labels:
    • Environment:
      Manjaro Linux (KDE desktop environment) (Arch Linux)
      CPU: Ryzen 5 1600
      Memory: 8GB
      All software installed via pacman, ArchLinux's package manager.
    • Platform/s:
      Linux/X11
    • Commits:
      3e2e0c6edc3bde3538106b27eb270dff776b826f

      Description

      When using QtCreator to debug any CMake project using GDB, and when the option "Load system GDB pretty printers" is turned on, GDB will rapidly increase its RAM usage.

      This results in the debugger hanging, indefinite loading of the local variables and eventually system shutdown because of lack of RAM.

      When the specific option is turned off, debugging works as expected.

      After testing, GDB version does not matter, nor does using a different debugger like LLDB change anything (in fact, the issue is worse with LLDB as the hang happens every time!).

       

      Steps to reproduce:

      1) Create a non-qt normal C++ project.

      2) Set a breakpoint anywhere in the program

      3) Enable the option "Load system GDB pretty printers"

      (Tools > Options > Debugger > GDB >)

      4) Switch to the Debug build configuration

      5) Start debugging

      6) Observe as GDB RAM usage goes up, and eventually crashes the system

       

      There are some screenshots of what happens during the wait for GDB to respond. First is the indefinite loading of locals when the debugging session has started. The second is a popup telling the user that GDB has not responded in 40 seconds.

        Attachments

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

          Activity

            People

            • Assignee:
              hjk hjk
              Reporter:
              limepixel Stefan Ivanovski
            • Votes:
              1 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Gerrit Reviews

                There are no open Gerrit changes