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
- relates to
-
QTBUG-51927 [REG:5.6.0-alpha1->5.6.0] adding items to GridLayout with default property alias causes a crash during destruction
- Closed
-
QTBUG-97423 heap-use-after-free in SwipeView::test_orientation
- Closed
-
QTBUG-68964 heap-use-after-free in QQuickPathView
- Closed
-
QTBUG-70729 heap-use-after-free when running qmlbench with Menu as delegate
- Closed
-
QTBUG-98769 QML StackView heap-use-after-free on pop()
- Closed