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

Application crash due to null pointer dereference in QV4

    XMLWordPrintable

Details

    • Android

    Description

      We have an Android application where external devices connect using C++ layer and then it creates/remove qml Elements dynamically and assign its values to several properties in those dynamically created items.

       

      We observe our application crashing with following backtrace.

       

      backtrace:
            #00 pc 000000000027cbc4  /data/app/~~qdnlzWr_eZxGN6y_hfg4zA==/com.company.app-BEGNVPFpo2R6rKYhPUxbYg==/lib/arm64/libQt6Qml_arm64-v8a.so (BuildId: 25db94e48d558fb7e648a2b3892bfc2d9b363586)
            #01 pc 00000000002db0b4  /data/app/~~qdnlzWr_eZxGN6y_hfg4zA==/com.company.app-BEGNVPFpo2R6rKYhPUxbYg==/lib/arm64/libQt6Qml_arm64-v8a.so (QV4::Object::insertMember(QV4::StringOrSymbol*, QV4::Property const*, QV4::PropertyAttributes)+96) (BuildId: 25db94e48d558fb7e648a2b3892bfc2d9b363586)
            #02 pc 000000000028484c  /data/app/~~qdnlzWr_eZxGN6y_hfg4zA==/com.company.app-BEGNVPFpo2R6rKYhPUxbYg==/lib/arm64/libQt6Qml_arm64-v8a.so (BuildId: 25db94e48d558fb7e648a2b3892bfc2d9b363586)
            #03 pc 00000000002db968  /data/app/~~qdnlzWr_eZxGN6y_hfg4zA==/com.company.app-BEGNVPFpo2R6rKYhPUxbYg==/lib/arm64/libQt6Qml_arm64-v8a.so (QV4::Object::internalPut(QV4::PropertyKey, QV4::Value const&, QV4::Value*)+928) (BuildId: 25db94e48d558fb7e648a2b3892bfc2d9b363586)
            #04 pc 00000000002db7ac  /data/app/~~qdnlzWr_eZxGN6y_hfg4zA==/com.company.app-BEGNVPFpo2R6rKYhPUxbYg==/lib/arm64/libQt6Qml_arm64-v8a.so (QV4::Object::internalPut(QV4::PropertyKey, QV4::Value const&, QV4::Value*)+484) (BuildId: 25db94e48d558fb7e648a2b3892bfc2d9b363586)
            #05 pc 0000000000309188  /data/app/~~qdnlzWr_eZxGN6y_hfg4zA==/com.company.app-BEGNVPFpo2R6rKYhPUxbYg==/lib/arm64/libQt6Qml_arm64-v8a.so (BuildId: 25db94e48d558fb7e648a2b3892bfc2d9b363586)
            #06 pc 0000000000309040  /data/app/~~qdnlzWr_eZxGN6y_hfg4zA==/com.company.app-BEGNVPFpo2R6rKYhPUxbYg==/lib/arm64/libQt6Qml_arm64-v8a.so (QV4::Runtime::StoreElement::call(QV4::ExecutionEngine*, QV4::Value const&, QV4::Value const&, QV4::Value const&)+124) (BuildId: 25db94e48d558fb7e648a2b3892bfc2d9b363586)
            #07 pc 0000000000000ba0  <anonymous:7afce2f000> 

      This is difficult to reproduce but happen sometimes without any control. Since backtrace do not show any point in our app code we are questioning.

      1. Is it our app code creating the issue?
      2. Is QV4 internal bug?

       

      Is there any other related issue with QV4 internal actions that can be related?

      Attachments

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

        Activity

          People

            qtqmlteam Qt Qml Team User
            francisco.nadales Francisco Nadales
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes