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

Displayed address of QObject in a QList or std::vector by +0x10

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Not Evaluated
    • Qt Creator 10.0.0
    • Qt Creator 8.0.1
    • Debugger
    • None
    • Windows
    • 1a575cd2d (10.0)

    Description

      Hi there

       

      I found a strange bug in the debugerview.
      It frustrated my much because I thougth the pointer will be corrupted by adding it to any list but the program does nothing wrong. (I proofed that) It is the debuger which does something wrong.

      As soon as an Pointer Object which inherits from QObject gets added to a list, the displayed pointer to that object will be offseted by 0x10. All member objects of that object will than also be displayed wrong. See Picture 1.

      Picture 2 will show you the correct content of the added object.
      Picture 3 will show you the same object but inside the std::vector. (Visual corrupted but in real its all fine)

      Picture 4 will show you, that the same is happening on an QList.

      Picture 5 will show you that this only happens when the added object is derived from QObject.
                     If the object is not of type QObject, no false data will be displayed.

      Attachments

        1. Bug_1.PNG
          Bug_1.PNG
          128 kB
        2. Bug_2Correct.PNG
          Bug_2Correct.PNG
          129 kB
        3. Bug_2Wrong.PNG
          Bug_2Wrong.PNG
          146 kB
        4. Bug_3Qlist.PNG
          Bug_3Qlist.PNG
          75 kB
        5. Bug_4NonQObject.PNG
          Bug_4NonQObject.PNG
          219 kB
        6. Bug_minimal.PNG
          Bug_minimal.PNG
          313 kB
        7. Bug_UML.png
          Bug_UML.png
          23 kB
        8. DebuggerLeft.txt
          6 kB
        9. DebuggerRight.txt
          46 kB
        10. screenshot-1.png
          screenshot-1.png
          38 kB
        For Gerrit Dashboard: QTCREATORBUG-28337
        # Subject Branch Project Status CR V

        Activity

          People

            davschul David Schulz
            alexkrieg Alex Krieg
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes