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

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

    XMLWordPrintable

Details

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

    Description

      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

       

       

       

      Attachments

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

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes