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

Application crashes on QAbstractButton::setChecked if button destroyed in toggled signal

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P1: Critical P1: Critical
    • 6.5.1, 6.6.0
    • 5.15, 6.5.0
    • None
    • Ubuntu 20.04, KDE, Qt 5.15
    • All
    • d953bc76b (dev), fbc3fd7d6 (6.5)

      https://github.com/qt/qtbase/blob/5.15/src/widgets/widgets/qabstractbutton.cpp : 689

      There is no check for quard before call to QAccessible::updateAccessibility(&event);

      If a button is destroyed in emitToggled() application craches in QAccessibleEvent::accessibleInterface(), because
      QAccessibleStateChangeEvent::m_object is invalid.

       

      In attached example application crashes in 4 seconds after button pressed

       

       

       

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

            axelspoerl Axel Spoerl
            seege Sergey Kudryashov
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes