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

Improve safety/debuggability of item change listeners

XMLWordPrintable

    • Icon: Task Task
    • Resolution: Unresolved
    • Icon: P2: Important P2: Important
    • None
    • None
    • None

      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".

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

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

              Created:
              Updated:

                There are no open Gerrit changes