Uploaded image for project: 'Qt Creator'
  1. Qt Creator

QtCreator hangs when trying to debug using GDB and pretty printers



    • 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:
    • Commits:


      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.


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



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


              • Created:

                Gerrit Reviews

                There are no open Gerrit changes