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

gdb crashes when drilling down a Qt library class

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P3: Somewhat important
    • Qt Creator 4.14.0
    • Qt Creator 4.11.0
    • Debugger
    • Windows

    Description

      In the recent MinGW Qt 5.14.0 the d-prefixed libraries of the Qt framework were removed. This seems to have a side-effect on debugging: whenever I drill-down a Qt library class instance in my own application, gdb crashes. 

      The minimal example project is attached. 

      Steps to reproduce: put a breakpoint on line 14 (return a.exec()), starting debugging, and when the breakpoint is hit, try to drill-down the 'a' variable in the Locals view. Gdb crashes. This does not happen with Qt 5.13 as kit. 

      This is what happens with Qt 5.14.0:

      This is what happens with Qt 5.13:

      I should also mention that debugging the Qt library classes (especially with d-pointers) was never easy with previous versions of Qt, because gdb may crash randomly, especially when drilling down a d-pointer. Nevertheless, this is the first time I can reproduce the problem consistently. 

       

      Attachments

        1. image-2020-01-14-10-41-50-369.png
          131 kB
          Dmitriy Purgin
        2. image-2020-01-14-10-43-08-140.png
          117 kB
          Dmitriy Purgin
        3. qt514_windeployqt_test.zip
          0.9 kB
          Dmitriy Purgin

        Activity

          People

            davschul David Schulz
            dpurgin Dmitriy Purgin
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: