Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-99629

Improve safety/debuggability of item change listeners

    XMLWordPrintable

    Details

    • Type: Task
    • Status: Open
    • Priority: P2: Important
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Labels:
      None

      Description

      It's very common to have ASAN report heap-use-after-frees for code that uses item change listeners. Debugging them (at least for me) typically involves a lot of effort, as it requires printing each and every listener added/updated/removed, and then finding which object or item that listener corresponds to.

      It would be helpful to have some macro we could define that enables some form of safety check, such that a warning would be printed when a listener is about to be destroyed without first removing all of its listen "targets".

        Attachments

          Issue Links

          For Gerrit Dashboard: QTBUG-99629
          # Subject Branch Project Status CR V

            Activity

              People

              Assignee:
              mitch_curtis Mitch Curtis
              Reporter:
              mitch_curtis Mitch Curtis
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:

                  Gerrit Reviews

                  There is 1 open Gerrit change