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

mac debugger hangs with "class/union/struct element type DIE <hex> that is a forward declaration"

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P1: Critical
    • Qt Creator 4.14.0
    • Debugger
    • None
    • macOS 10.14, Xcode 9.4, Qt Creator 4.14.0 w/ Qt 5.15.2 (Clang 11.0 (Apple), 64 bit), building against kit 5.15.2
    • macOS
    • 33cafa0dcf5a931482f1da47b4b740ce0350ea2f (qt-creator/qt-creator/4.14)

    Description

      with 100% reliability, on my large project, the debugger will hang, with the "Locals" view showing a "wagonwheel" animated overlay. 

      this shows in debugger log:

      ERROR: Lldb stderr: error: <whatever_file>.o DWARF DW_TAG_array_type DIE at <some hex> has a class/union/struct element type DIE <more hex> that is a forward declaration, not a complete definition.
      Try compiling the source file with -fstandalone-debug or disable -gmodules

      things i tried:

      • turn off "load .gdbinit"
      • turn off "load system GDB pretty printers"
      • turn off "use dynamic object type for display"
      • turn off "use debugging helper"
      • turn off "Show QObject names if available"
      • setting kit LLDB to the one inside xcode, instead of the one in /usr/bin/lldb
      • setting kit compiler to "Apple Clang x86_64"
      • QMAKE_CXXFLAGS_DEBUG += -fstandalone-debug
      • QMAKE_CXXFLAGS_DEBUG += -fno-limit-debug-info 
      • adding/removing "Qt Creator" to/from system prefs->security & privacy->privacy->accessibility
      • adding/removing "source code + debug symbols" using MaintenanceTool

      see this forum post for further details.

      i do not know how to "disable -gmodules"

      building Qt from source, to get "debug libraries" is NOT a solution, this should work out of the box.

      Attachments

        Issue Links

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

          Activity

            People

              hjk hjk
              davecotter David M. Cotter
              Votes:
              1 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes