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

Crash in QML byte code interpreter

    XMLWordPrintable

Details

    Description

      Crash is reproducible with Device Creation emulator running an empty QML example generated with QtCreator (Qt Quick Application - Empty).

      Crash also does not occur if running example through debugger from QtCreator. Running gdb directly in the VM image, gives backtrace:

      #0  QV4::Moth::VME::exec (fo=0x80d57b8, thisObject=0xb2a9ee38, argv=0xb25c13f8, argc=0) at /usr/src/debug/qtdeclarative/5.11.0+gitAUTOINC+ba05397ad7-r0/git/src/qml/jsruntime/qv4vme_moth.cpp:1192
      #1  0xb77d0a76 in QV4::Moth::VME::exec (context=<optimized out>, argc=<optimized out>, argv=0xb25c13f8, thisObject=0xb25c13e8, v4Function=0x81b1818)
          at /usr/src/debug/qtdeclarative/5.11.0+gitAUTOINC+ba05397ad7-r0/git/src/qml/jsruntime/qv4vme_moth_p.h:72
      #2  QV4::Function::call (context=<optimized out>, argc=<optimized out>, argv=0xb25c13f8, thisObject=0xb25c13e8, this=0x81b1818)
          at /usr/src/debug/qtdeclarative/5.11.0+gitAUTOINC+ba05397ad7-r0/git/src/qml/jsruntime/qv4function_p.h:72
      #3  QQmlJavaScriptExpression::evaluate (this=0x81df850, callData=0xb25c13d0, isUndefined=0xbffff11f)
          at /usr/src/debug/qtdeclarative/5.11.0+gitAUTOINC+ba05397ad7-r0/git/src/qml/qml/qqmljavascriptexpression.cpp:229
      #4  0xb77d0ff7 in QQmlJavaScriptExpression::evaluate (this=0x81df850, isUndefined=0xbffff11f)
          at /usr/src/debug/qtdeclarative/5.11.0+gitAUTOINC+ba05397ad7-r0/git/src/qml/qml/qqmljavascriptexpression.cpp:190
      #5  0xb77d9cf7 in QQmlNonbindingBinding::doUpdate (this=0x81df850, watcher=..., flags=..., scope=...)
          at /usr/src/debug/qtdeclarative/5.11.0+gitAUTOINC+ba05397ad7-r0/git/src/qml/qml/qqmlbinding.cpp:206
      #6  0xb77d6edd in QQmlBinding::update (this=0x81df850, flags=...) at /usr/src/debug/qtdeclarative/5.11.0+gitAUTOINC+ba05397ad7-r0/git/src/qml/qml/qqmlbinding.cpp:168
      #7  0xb77d725c in QQmlBinding::setEnabled (this=0x81df850, e=true, flags=...) at /usr/src/debug/qtdeclarative/5.11.0+gitAUTOINC+ba05397ad7-r0/git/src/qml/qml/qqmlbinding.cpp:503
      #8  0xb7743f50 in QQmlData::flushPendingBindingImpl (this=0x81dfc08, index=...) at /usr/src/debug/qtdeclarative/5.11.0+gitAUTOINC+ba05397ad7-r0/git/src/qml/qml/qqmlengine.cpp:934
      #9  0xb77058de in QQmlData::flushPendingBinding (propertyIndex=..., o=0x81dfbf0) at /usr/src/debug/qtdeclarative/5.11.0+gitAUTOINC+ba05397ad7-r0/git/src/qml/qml/qqmldata_p.h:371
      #10 QV4::QObjectWrapper::getProperty (engine=0x80d57b8, object=0x81dfbf0, property=0xb2a966c0, captureRequired=true)
          at /usr/src/debug/qtdeclarative/5.11.0+gitAUTOINC+ba05397ad7-r0/git/src/qml/jsruntime/qv4qobjectwrapper.cpp:230
      #11 0xb7706b49 in QV4::QObjectWrapper::getQmlProperty (this=0xb25c13c0, qmlContext=0x81eac70, name=0xb25c13b8, revisionMode=QV4::QObjectWrapper::IgnoreRevision, hasProperty=0x0, 
          includeImports=true) at /usr/src/debug/qtdeclarative/5.11.0+gitAUTOINC+ba05397ad7-r0/git/src/qml/jsruntime/qv4qobjectwrapper.cpp:327
      #12 0xb7706cc8 in QV4::QObjectWrapper::get (m=0xb25c13c0, name=0xb25c13b8, hasProperty=0x0)
          at /usr/src/debug/qtdeclarative/5.11.0+gitAUTOINC+ba05397ad7-r0/git/src/qml/jsruntime/qv4qobjectwrapper.cpp:686
      #13 0xb7724b26 in QV4::Object::get (hasProperty=0x0, name=<optimized out>, this=<optimized out>)
          at /usr/src/debug/qtdeclarative/5.11.0+gitAUTOINC+ba05397ad7-r0/git/src/qml/jsruntime/qv4object_p.h:364
      #14 QV4::Runtime::method_loadProperty (engine=0x80d57b8, object=..., nameIndex=13) at /usr/src/debug/qtdeclarative/5.11.0+gitAUTOINC+ba05397ad7-r0/git/src/qml/jsruntime/qv4runtime.cpp:728
      #15 0xb16f8d71 in ?? ()
      #16 0xb7719cc1 in QV4::Moth::VME::exec (fo=0xbffff4e8, thisObject=0x80d57b8, argv=0xb25c1350, argc=0)
          at /usr/src/debug/qtdeclarative/5.11.0+gitAUTOINC+ba05397ad7-r0/git/src/qml/jsruntime/qv4vme_moth.cpp:574
      #17 0xb77d0a76 in QV4::Moth::VME::exec (context=<optimized out>, argc=<optimized out>, argv=0xb25c1350, thisObject=0xb25c1340, v4Function=0x81c6bb0)
          at /usr/src/debug/qtdeclarative/5.11.0+gitAUTOINC+ba05397ad7-r0/git/src/qml/jsruntime/qv4vme_moth_p.h:72
      #18 QV4::Function::call (context=<optimized out>, argc=<optimized out>, argv=0xb25c1350, thisObject=0xb25c1340, this=0x81c6bb0)
          at /usr/src/debug/qtdeclarative/5.11.0+gitAUTOINC+ba05397ad7-r0/git/src/qml/jsruntime/qv4function_p.h:72
      #19 QQmlJavaScriptExpression::evaluate (this=0x81eb1a0, callData=0xb25c1328, isUndefined=0xbffff627)
          at /usr/src/debug/qtdeclarative/5.11.0+gitAUTOINC+ba05397ad7-r0/git/src/qml/qml/qqmljavascriptexpression.cpp:229
      #20 0xb77d0ff7 in QQmlJavaScriptExpression::evaluate (this=0x81eb1a0, isUndefined=0xbffff627)
          at /usr/src/debug/qtdeclarative/5.11.0+gitAUTOINC+ba05397ad7-r0/git/src/qml/qml/qqmljavascriptexpression.cpp:190
      #21 0xb77d9cf7 in QQmlNonbindingBinding::doUpdate (this=0x81eb1a0, watcher=..., flags=..., scope=...)
          at /usr/src/debug/qtdeclarative/5.11.0+gitAUTOINC+ba05397ad7-r0/git/src/qml/qml/qqmlbinding.cpp:206
      #22 0xb77d6edd in QQmlBinding::update (this=0x81eb1a0, flags=...) at /usr/src/debug/qtdeclarative/5.11.0+gitAUTOINC+ba05397ad7-r0/git/src/qml/qml/qqmlbinding.cpp:168
      #23 0xb77d725c in QQmlBinding::setEnabled (this=0x81eb1a0, e=true, flags=...) at /usr/src/debug/qtdeclarative/5.11.0+gitAUTOINC+ba05397ad7-r0/git/src/qml/qml/qqmlbinding.cpp:503
      #24 0xb77e328c in QQmlObjectCreator::finalize (this=0x81b42a0, interrupt=...) at /usr/src/debug/qtdeclarative/5.11.0+gitAUTOINC+ba05397ad7-r0/git/src/qml/qml/qqmlobjectcreator.cpp:1303
      #25 0xb775d10f in QQmlIncubatorPrivate::incubate (this=0x81b4230, i=...) at /usr/src/debug/qtdeclarative/5.11.0+gitAUTOINC+ba05397ad7-r0/git/src/qml/qml/qqmlincubator.cpp:344
      #26 0xb775d9bd in QQmlEnginePrivate::incubate (this=0x80cd960, i=..., forContext=0x81b2110) at /usr/src/debug/qtdeclarative/5.11.0+gitAUTOINC+ba05397ad7-r0/git/src/qml/qml/qqmlincubator.cpp:89
      #27 0xb7758b2d in QQmlComponent::create (this=0x81b0e58, incubator=..., context=<optimized out>, forContext=0x0)
          at /usr/src/debug/qtdeclarative/5.11.0+gitAUTOINC+ba05397ad7-r0/git/src/qml/qml/qqmlcomponent.cpp:1061
      #28 0xb3ed2086 in QQuickLoaderPrivate::_q_sourceLoaded (this=0x812ce28) at /usr/src/debug/qtdeclarative/5.11.0+gitAUTOINC+ba05397ad7-r0/git/src/quick/items/qquickloader.cpp:744
      #29 0xb3ed21e9 in QQuickLoaderPrivate::load (this=0x812ce28) at /usr/src/debug/qtdeclarative/5.11.0+gitAUTOINC+ba05397ad7-r0/git/src/quick/items/qquickloader.cpp:619
      #30 0xb77e34d2 in QQmlObjectCreator::finalize (this=0x8105328, interrupt=...) at /usr/src/debug/qtdeclarative/5.11.0+gitAUTOINC+ba05397ad7-r0/git/src/qml/qml/qqmlobjectcreator.cpp:1316
      #31 0xb77583ef in QQmlComponentPrivate::complete (enginePriv=0x80cd960, state=0x81050e4) at /usr/src/debug/qtdeclarative/5.11.0+gitAUTOINC+ba05397ad7-r0/git/src/qml/qml/qqmlcomponent.cpp:921
      #32 0xb7758502 in QQmlComponentPrivate::completeCreate (this=0x8105088) at /usr/src/debug/qtdeclarative/5.11.0+gitAUTOINC+ba05397ad7-r0/git/src/qml/qml/qqmlcomponent.cpp:957
      #33 0xb775854c in QQmlComponent::completeCreate (this=0x8105128) at /usr/src/debug/qtdeclarative/5.11.0+gitAUTOINC+ba05397ad7-r0/git/src/qml/qml/qqmlcomponent.cpp:950
      #34 0xb77582c5 in QQmlComponent::create (this=0x8105128, context=0x8104af0) at /usr/src/debug/qtdeclarative/5.11.0+gitAUTOINC+ba05397ad7-r0/git/src/qml/qml/qqmlcomponent.cpp:776
      #35 0xb77db903 in QQmlApplicationEnginePrivate::finishLoad (this=0x80cd960, c=0x8105128)
          at /usr/src/debug/qtdeclarative/5.11.0+gitAUTOINC+ba05397ad7-r0/git/src/qml/qml/qqmlapplicationengine.cpp:134
      #36 0xb77dbb65 in QQmlApplicationEnginePrivate::startLoad (this=0x80cd960, url=..., data=..., dataFlag=false)
          at /usr/src/debug/qtdeclarative/5.11.0+gitAUTOINC+ba05397ad7-r0/git/src/qml/qml/qqmlapplicationengine.cpp:118
      #37 0xb77dbba2 in QQmlApplicationEngine::load (this=0xbffffbd0, url=...) at /usr/src/debug/qtdeclarative/5.11.0+gitAUTOINC+ba05397ad7-r0/git/src/qml/qml/qqmlapplicationengine.cpp:259
      #38 0x08048dee in main (argc=1, argv=0xbffffcc4) at ../untitled-vkb/main.cpp:18
      

      Attachments

        Issue Links

          For Gerrit Dashboard: QTBUG-66773
          # Subject Branch Project Status CR V

          Activity

            People

              shausman Simon Hausmann
              sapiippo Samuli Piippo
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes