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

crash in qmlcachegen

    XMLWordPrintable

Details

    • 0f2a7b193 (dev)

    Description

      Happened while building with https://codereview.qt-project.org/c/qt/qtlocation/+/446454

      So I tried with gdb:

      ~/dev/qt6-dbg/qtlocation/src/location   Qt 6.5.0 in /home/rutledge/dev/qt6-dbg/qtbase  
      [zen][13:39:03] gdb /home/rutledge/dev/qt6-dbg/qtbase/libexec/qmlcachegen
      GNU gdb (GDB) 12.1
      Copyright (C) 2022 Free Software Foundation, Inc.
      License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
      This is free software: you are free to change and redistribute it.
      There is NO WARRANTY, to the extent permitted by law.
      Type "show copying" and "show warranty" for details.
      This GDB was configured as "x86_64-pc-linux-gnu".
      Type "show configuration" for configuration details.
      For bug reporting instructions, please see:
      <https://www.gnu.org/software/gdb/bugs/>.
      Find the GDB manual and other documentation resources online at:
          <http://www.gnu.org/software/gdb/documentation/>.
      
      For help, type "help".
      Type "apropos word" to search for commands related to "word"...
      Reading symbols from /home/rutledge/dev/qt6-dbg/qtbase/libexec/qmlcachegen...
      (gdb) run --bare --resource-path /qt-project.org/imports/QtLocation/MapView.qml -I /home/rutledge/dev/qt6-dbg/qtbase/qml/ -I /home/rutledge/dev/qt6-dbg/qtbase/qml -i /home/rutledge/dev/qt6-dbg/qtbase/qml/QtLocation/qmldir --resource /home/rutledge/dev/qt6-dbg/qtlocation/src/location/.rcc/qmake_QtLocation.qrc --resource /home/rutledge/dev/qt6-dbg/qtlocation/src/location/.rcc/Location_raw_qml_0.qrc -o /home/rutledge/dev/qt6-dbg/qtlocation/src/location/.rcc/qmlcache/Location_maps/MapView_qml.cpp /home/rutledge/dev/qt6/qtlocation/src/location/maps/MapView.qml
      Starting program: /home/rutledge/dev/qt6-dbg/qtbase/libexec/qmlcachegen --bare --resource-path /qt-project.org/imports/QtLocation/MapView.qml -I /home/rutledge/dev/qt6-dbg/qtbase/qml/ -I /home/rutledge/dev/qt6-dbg/qtbase/qml -i /home/rutledge/dev/qt6-dbg/qtbase/qml/QtLocation/qmldir --resource /home/rutledge/dev/qt6-dbg/qtlocation/src/location/.rcc/qmake_QtLocation.qrc --resource /home/rutledge/dev/qt6-dbg/qtlocation/src/location/.rcc/Location_raw_qml_0.qrc -o /home/rutledge/dev/qt6-dbg/qtlocation/src/location/.rcc/qmlcache/Location_maps/MapView_qml.cpp /home/rutledge/dev/qt6/qtlocation/src/location/maps/MapView.qml
      warning: internal error: string "StringData<3, 12, 7, 7, 6, 6, 9, 5, 10, 4, 6, 5, 5, 8, 7, 8, 10, 9, 9, 12, 11, 12, 11, 8, 6, 5, 13, 12, 9, 11, 12, 13, 11, 9, 13, 14, 9, 13, 11, 13, 13, 13, 13, 13, 13, 13, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 11, 15, 16, 12, 11, 9, 13, 12, 8, 9, 11, 12, 11, 17, 11, 21, 21, 20, 10, 15, 16, 14, 19, 15, 15, 10, 14, 10, 13, 11, 14, 13, 13, 14, 21, 9, 12, 13, 14, 19, 12, 9, 15, 13, 15, 17, 13, 17, 14, 26, 17, 24, 21, 21, 19, 14, 10, 11, 12, 10, 11, 7, 7, 7, 6, 7, 6, 5, 8, 13, 8, 10, 14, 12, 16, 29, 15, 24, 27, 20, 16, 21, 25, 25, 24, 28, 22, 21, 26, 30, 25, 36, 20, 24, 22, 27, 26, 23, 27, 12, 12, 14, 16, 16, 17, 13, 13, 17, 21, 18, 20, 18, 18, 19, 20, 21, 28, 29, 19, 16, 12, 14, 17, 20, 18, 11, 17, 22, 19, 10, 22, 18, 17, 17, 18, 20, 22, 14, 11, 13, 29, 18, 11, 9, 17, 15, 19, 22, 18, 19, 29, 18, 17, 17, 17, 15, 22, 26, 24, 18, 23, 23, 21, 24, 19, 24, 27, 13, 15, 22, 9, 26, 15, 23, 15, 22, 21, 25, 20, 20, 22, 21, 12, 13, 20, 17, 16, 15, 24, 20, 32, 27, 14, 25, 29, 16, 29, 20, 29, 26, 29, 26, 29, 28, 28, 34, 31, 29, 34, 27, 25, 21, 27, 25, 21, 34, 35, 23, 20, 18, 35, 20, 18, 21, 24, 17, 34, 21, 24, 26, 12, 32, 42, 42, 21, 22, 20, 15, 21, 23, 14, 24, 25, 42, 24, 43, 31, 40, 26, 35, 24, 25, 18, 21, 20, 15, 10, 10, 9, 17, 21, 19, 19, 8, 12, 14, 14, 16, 16, 11, 13, 12, 18, 19, 7, 16, 11, 4, 10, 8, 11, 13, 15, 11, 12, 14, 15, 14, 15, 13, 9, 10, 10, 11, 10, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 10, 14, 9, 10, 12, 13, 7, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 16, 14, 17, 16, 15, 14, 14, 8, 15, 15, 17, 15, 9, 13, 13, 8, 14, 12, 14, 14, 16, 18, 12, 11, 15, 11, 11, 14, 16, 18, 10, 7, 14, 19, 12, 16, 14, 19, 15, 12, 18, 17, 11, 11, 16, 11, 15, 10, 7, 13, 11, 11, 16, 15, 11, 11, 16, 15, 8, 11, 11, 11, 16, 11, 15, 13, 13, 11, 11, 16, 15, 11, 10, 11, 13, 15, 11, 8, 12, 14, 11, 10, 11, 11, 10, 10, 11, 10, 9, 8, 9, 7, 10, 9, 11, 13, 10, 12, 9, 8, 13, 12, 15, 7, 7, 7, 7, 7, 7, 7, 7, 7, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 12, 12, 9, 12, 12, 9, 16, 16, 10, 14, 14, 20, 22, 22, 16, 10, 13, 11, 11, 13, 13, 22, 12, 12, 20, 12, 11, 14, 15, 15, 16, 11, 17, 15, 17, 16, 18, 18, 17, 20, 21, 19, 15, 15, 20, 15, 16, 15, 18, 19, 19, 21, 15, 17, 16, 14, 22, 26, 18, 14, 14, 16, 20, 28, 21, 19, 21, 25, 20, 20, 24, 23, 20, 18, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 21, 23, 15, 17, 27, 27, 28, 9, 12, 9, 12, 15, 15, 13, 14, 11, 13, 13, 15, 14, 14, 18, 14, 16, 15, 25, 13, 14, 11, 12, 12, 15, 16, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 20, 22, 23, 25, 27, 13, 11, 10, 16, 8, 9, 14, 9, 12, 16, 13, 21, 12, 14, 16, 16, 20, 21, 9, 7, 15, 13, 14, 10, 9, 8, 12, 8, 14, 10, 13, 9, 7, 11, 11, 11, 12, 11, 11, 12, 9, 15, 11, 10, 10, 13, 10, 11, 18, 15, 15, 9, 9, 10, 16, 12, 13, 13, 10, 11, 10, 9, 9, 11, 12, 9, 14, 11, 16, 13, 10, 12, 14, 9, 8, 17, 16, 20, 13, 20, 9, 14, 9, 12, 14, 12, 19, 12, 12, 19, 15, 16, 12, 8, 10, 11, 9, 14, 16, 10, 9, 13, 16, 18, 8, 9, 9, 9, 9, 14, 11, 8, 7, 11, 12, 12, 10, 9, 9, 9, 13, 13, 13, 13, 9, 11, 9, 21, 14, 21, 11, 16, 12, 17, 11, 14, 16, 12, 13, 15, 20, 21, 18, 9, 5, 6, 5, 4, 14, 10, 10, 8, 8, 10, 10, 11, 9, 6, 10, 9, 8, 12, 15, 15, 12, 8, 10, 9, 13, 13, 10, 10, 10, 13, 14, 11, 8, 13, 14, 14, 14, 14, 14, 14, 14, 11, 11, 13, 13, 13, 17, 22, 22, 23, 15, 9, 13, 13, 12, 12, 14, 12, 11, 12, 14, 14, 16, 16, 14, 12, 13, 13, 19, 16, 16, 11, 15, 17, 15, 15, 15, 11, 13, 13, 11, 10, 9, 9, 13, 16, 18, 16, 27, 15, 19, 20, 18, 21, 20, 19, 17, 16, 12, 16, 17, 15, 18, 17, 16, 14, 13, 11, 9, 8, 12, 14, 9, 10, 4, 14, 9, 10, 7, 8, 10, 9, 7, 9, 7, 16, 18, 19, 18, 16, 16, 14, 7, 14, 15, 17, 18, 5, 8, 9, 10, 11, 6, 15, 15, 17, 17, 25, 17, 21, 16, 15, 15, 20, 27, 9, 12, 12, 9, 12, 13, 14, 7, 12, 14, 18, 18, 20, 25, 27, 23, 17, 15, 19, 19, 21, 5, 6, 6, 6, 12, 17, 15, 19, 24, 17, 20, 19, 17, 14, 18, 14, 19, 19, 18, 19, 17, 10, 18, 7, 17, 18, 19, 20, 17, 8, 20, 19, 19, 18, 15, 18, 25, 11, 15, 13, 11, 19, 16, 8, 14, 17, 19, 17, 19, 19, 20, 8, 8, 15, 13, 14, 17, 14, 24, 17, 17, 26, 23, 21, 13, 22, 17, 13, 16, 15, 13, 11, 13, 15, 13, 17, 16, 19, 19, 25, 24, 22, 16, 12, 12, 20, 11, 11, 11, 11, 11, 17, 13, 12, 11, 10, 17, 8, 13, 12, 15, 9, 12, 14, 14, 9, 18, 15, 15, 15, 19, 26, 13, 21, 20, 23, 20, 22, 22, 9, 10, 9, 12, 17, 15, 18, 18, 20, 14, 19, 21, 19, 11, 10, 13, 14, 16, 14, 23, 14, 17, 14, 19, 10, 15, 15, 9, 12, 17, 20, 18, 22, 25, 23, 26, 13, 22, 23, 21, 9, 12, 14, 12, 15, 11, 17, 16, 23, 18, 16, 21, 19, 13, 10, 15, 15, 16, 16, 12, 11, 18, 11, 13, 13, 14, 16, 18, 19, 17, 17, 18, 23, 20, 19, 16, 17, 16, 10, 13, 12, 16, 12, 14, 12, 13, 10, 15, 17, 25, 30, 26, 35, 16, 15, 17, 29, 19, 13, 16, 15, 33, 6, 6, 5, 6, 17, 12, 17, 13, 8, 7>" failed to be canonicalized
      [Thread debugging using libthread_db enabled]
      Using host libthread_db library "/usr/lib/libthread_db.so.1".
      
      Program received signal SIGSEGV, Segmentation fault.
      0x00007ffff7d7d882 in QFlags<QQmlJSScope::Flag>::testFlags (this=0x288, flags=...) at /home/rutledge/dev/qt6-dbg/qtbase/include/QtCore/../../../../qt6/qtbase/src/corelib/global/qflags.h:127
      127         constexpr inline bool testFlags(QFlags flags) const noexcept { return flags.i ? ((i & flags.i) == flags.i) : i == Int(0); }
      (gdb) bt
      #0  0x00007ffff7d7d882 in QFlags<QQmlJSScope::Flag>::testFlags (this=0x288, flags=...) at /home/rutledge/dev/qt6-dbg/qtbase/include/QtCore/../../../../qt6/qtbase/src/corelib/global/qflags.h:127
      #1  0x00007ffff7d7790e in QFlags<QQmlJSScope::Flag>::testFlag (this=0x288, flag=QQmlJSScope::IsListProperty) at /home/rutledge/dev/qt6-dbg/qtbase/include/QtCore/../../../../qt6/qtbase/src/corelib/global/qflags.h:126
      #2  0x00007ffff7d74beb in QQmlJSScope::isListProperty (this=0x0) at /home/rutledge/dev/qt6/qtdeclarative/src/qmlcompiler/qqmljsscope_p.h:538
      #3  0x00007ffff7de5e20 in QQmlJSImportVisitor::processDefaultProperties (this=0x7fffffffcb50) at /home/rutledge/dev/qt6/qtdeclarative/src/qmlcompiler/qqmljsimportvisitor.cpp:564
      #4  0x00007ffff7de4ceb in QQmlJSImportVisitor::endVisit (this=0x7fffffffcb50) at /home/rutledge/dev/qt6/qtdeclarative/src/qmlcompiler/qqmljsimportvisitor.cpp:421
      #5  0x00007ffff7688afa in QQmlJS::AST::UiProgram::accept0 (this=0x5555555c3840, visitor=0x7fffffffcb50) at /home/rutledge/dev/qt6/qtdeclarative/src/qml/parser/qqmljsast.cpp:1203
      #6  0x00007ffff7ec0352 in QQmlJS::AST::Node::accept (this=0x5555555c3840, visitor=0x7fffffffcb50) at /home/rutledge/dev/qt6-dbg/qtbase/include/QtQml/6.5.0/QtQml/private/../../../../../../../qt6/qtdeclarative/src/qml/parser/qqmljsast_p.h:270
      #7  0x00007ffff7ec1a3f in QQmlJSTypeResolver::init (this=0x7fffffffdad8, visitor=0x7fffffffcb50, program=0x5555555c3840) at /home/rutledge/dev/qt6/qtdeclarative/src/qmlcompiler/qqmljstyperesolver.cpp:101
      #8  0x00007ffff7d91f0b in QQmlJSAotCompiler::setDocument (this=0x7fffffffdad0, codegen=0x7fffffffd020, irDocument=0x7fffffffd1d0) at /home/rutledge/dev/qt6/qtdeclarative/src/qmlcompiler/qqmljscompiler.cpp:658
      #9  0x00007ffff7d8f588 in qCompileQmlFile(QmlIR::Document&, QString const&, std::function<bool (QV4::CompiledData::SaveableUnitPointer const&, QMap<int, QQmlJSAotFunction> const&, QString*)>, QQmlJSAotCompiler*, QQmlJSCompileError*, bool, QV4::Compiler::CodegenWarningInterface*, QString const*) (irDocument=..., inputFileName=..., saveFunction=..., aotCompiler=0x7fffffffdad0, error=0x7fffffffd7f0, storeSourceLocation=true, interface=0x555555573318 <QV4::Compiler::defaultCodegenWarningInterface()::iface>, fileContents=0x0)
          at /home/rutledge/dev/qt6/qtdeclarative/src/qmlcompiler/qqmljscompiler.cpp:227
      #10 0x00007ffff7d8e26d in qCompileQmlFile(QString const&, std::function<bool (QV4::CompiledData::SaveableUnitPointer const&, QMap<int, QQmlJSAotFunction> const&, QString*)>, QQmlJSAotCompiler*, QQmlJSCompileError*, bool, QV4::Compiler::CodegenWarningInterface*, QString const*) (inputFileName=..., saveFunction=..., aotCompiler=0x7fffffffdad0, error=0x7fffffffd7f0, storeSourceLocation=true, interface=0x555555573318 <QV4::Compiler::defaultCodegenWarningInterface()::iface>, fileContents=0x0)
          at /home/rutledge/dev/qt6/qtdeclarative/src/qmlcompiler/qqmljscompiler.cpp:186
      #11 0x0000555555559ea4 in main (argc=17, argv=0x7fffffffe078) at /home/rutledge/dev/qt6/qtdeclarative/tools/qmlcachegen/qmlcachegen.cpp:262
      (gdb) 
      

      Attachments

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

        Activity

          People

            fabiankosmale Fabian Kosmale
            srutledg Shawn Rutledge
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes