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

Crash with State Machine

    XMLWordPrintable

Details

    Description

      These seem to only happen in Qt 5.15 as Qt 6 complains about the signal not being found and quits.

      To reproduce, run in-source build of attached example and run it.

      There are two crashes, but probably both related to the same issue:

      Invalid read of size 4
        in getPage in /home/qt/work/qt/qtdeclarative/src/qml/jsruntime/qv4persistent.cpp:68
      Address 0x60 is not stack'd, malloc'd or (recently) free'd  1: /home/jopoikel/Qt/5.15.12/gcc_64/qml/QtQml/StateMachine/libqtqmlstatemachine.so
        2: /home/user/.cache/nonVisual/qmlcache/c71ae1bcfcf68de3be23f5d20dca11792c1a5dbd.qmlc
        3: 0x1ffefffd6f
        4: 0x1ffefffcdf
        5: getPage in /home/qt/work/qt/qtdeclarative/src/qml/jsruntime/qv4persistent.cpp:68
        6: QV4::PersistentValueStorage::free(QV4::Value*) in /home/qt/work/qt/qtdeclarative/src/qml/jsruntime/qv4persistent.cpp:227
      
      1  SignalTransition::connectTriggered   signaltransition.cpp  175  0x7fffd4807417 
      2  QQmlObjectCreator::finalize          qqmlobjectcreator.cpp 1424 0x7ffff44f0232 
      3  QQmlComponentPrivate::complete       qqmlcomponent.cpp     1000 0x7ffff4477d81 
      4  QQmlComponentPrivate::completeCreate qqmlcomponent.cpp     1092 0x7ffff447a607 
      5  QQmlComponent::create                qqmlcomponent.cpp     825  0x7ffff447786b 
      6  QQuickView::continueExecute          qquickview.cpp        493  0x7ffff50c5d37 
      7  QQuickViewPrivate::execute           qquickview.cpp        102  0x7ffff50c61d8 
      8  QQuickView::setSource                qquickview.cpp        236  0x7ffff50c622a 
      9  quick_test_main_with_setup           quicktest.cpp         590  0x7ffff7c0e6f5 
      10 main                                 main.cpp              3    0x555555558e04 
      

      Attachments

        1. minimumCrashing.qml
          0.5 kB
          Joni Poikelin
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            ulherman Ulf Hermann
            poikelin Joni Poikelin
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes