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

qmlcompiler: Script bindings with empty blocks hit an assert/crash

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P0: Blocker
    • Resolution: Done
    • Affects Version/s: 6.4
    • Fix Version/s: 6.4.0 Beta1
    • Component/s: QML: Compiler
    • Labels:
      None
    • Platform/s:
      All
    • Commits:
      827193b3a1 (qt/qtdeclarative/dev) 827193b3a1 (qt/tqtc-qtdeclarative/dev)

      Description

      script bindings with an empty block like this:

      import QtQuick
      Item {
         x: {}
      }
      

      will hit an assert:

      ➜  dev.build ./qtbase/bin/qmllint Crash.qml
      ASSERT: "blockStatement->statements" in file /Users/max/qt-dev/dev/qtdeclarative/src/qmlcompiler/qqmljsimportvisitor.cpp, line 1689
      [1]    7858 abort      ./qtbase/bin/qmllint Crash.qml

      Crashes everything using qmlcompiler including cachegen/qmlsc.

       

      Does not affect 6.3.x or lower.

        Attachments

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

          Activity

            People

            Assignee:
            max.goldstein Maximilian Goldstein
            Reporter:
            max.goldstein Maximilian Goldstein
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Gerrit Reviews

                There are no open Gerrit changes