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

Improve safety/debuggability of item change listeners

    XMLWordPrintable

Details

    • Task
    • Resolution: Unresolved
    • P2: Important
    • None
    • None
    • 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

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

          Activity

            People

              mitch_curtis Mitch Curtis
              mitch_curtis Mitch Curtis
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:

                Gerrit Reviews

                  There are no open Gerrit changes