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

AddressSanitizer: heap-use-after-free on gridview-example.qml test

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • P1: Critical
    • None
    • 6.7
    • None

    Description

      This error was seen on a qtdeclarative integration: https://testresults.qt.io/coin/integration/qt/qtdeclarative/tasks/1699530847
      It seems to be unrelated to the change under integration.

      agent:2023/09/07 06:07:16 build.go:405: 136: PASS : tst_examples::examples(examples/quick/views/gridview/gridview-example.qml)
      agent:2023/09/07 06:07:16 build.go:405: 136: =================================================================
      agent:2023/09/07 06:07:16 build.go:405: 136: ==4631==ERROR: AddressSanitizer: heap-use-after-free on address 0x61d00064c6c0 at pc 0x7f42d6efbf9b bp 0x7ffc06cd6570 sp 0x7ffc06cd6568
      agent:2023/09/07 06:07:16 build.go:405: 136: WRITE of size 4 at 0x61d00064c6c0 thread T0
      agent:2023/09/07 06:07:16 build.go:405: 136: #0 0x7f42d6efbf9a (/home/qt/work/install/lib/libQt6Gui.so.6+0x4a6f9a)
      agent:2023/09/07 06:07:16 build.go:405: 136: #1 0x7f42d6efada5 (/home/qt/work/install/lib/libQt6Gui.so.6+0x4a5da5)
      agent:2023/09/07 06:07:16 build.go:405: 136: #2 0x7f42d7e9d510 in QFreetypeFace::getFace(QFontEngine::FaceId const&, QByteArray const&) (/home/qt/work/install/lib/libQt6Gui.so.6+0x1448510)
      agent:2023/09/07 06:07:16 build.go:405: 136: #3 0x7f42d7ea5f63 in QFontEngineFT::init(QFontEngine::FaceId, bool, QFontEngine::GlyphFormat, QByteArray const&) (/home/qt/work/install/lib/libQt6Gui.so.6+0x1450f63)
      agent:2023/09/07 06:07:16 build.go:405: 136: #4 0x7f42d7edd591 in QFontconfigDatabase::fontEngine(QFontDef const&, void*) (/home/qt/work/install/lib/libQt6Gui.so.6+0x1488591)
      agent:2023/09/07 06:07:16 build.go:405: 136: #5 0x7f42d783643c in QFontDatabasePrivate::loadSingleEngine(int, QFontDef const&, QtFontFamily*, QtFontFoundry*, QtFontStyle*, QtFontSize*) (/home/qt/work/install/lib/libQt6Gui.so.6+0xde143c)
      agent:2023/09/07 06:07:16 build.go:405: 136: #6 0x7f42d78369ef in QFontDatabasePrivate::loadEngine(int, QFontDef const&, QtFontFamily*, QtFontFoundry*, QtFontStyle*, QtFontSize*) (/home/qt/work/install/lib/libQt6Gui.so.6+0xde19ef)
      agent:2023/09/07 06:07:16 build.go:405: 136: #7 0x7f42d7848504 in QFontDatabasePrivate::findFont(QFontDef const&, int, bool) (/home/qt/work/install/lib/libQt6Gui.so.6+0xdf3504)
      agent:2023/09/07 06:07:16 build.go:405: 136: #8 0x7f42d7849e1a in QFontDatabasePrivate::load(QFontPrivate const*, int) (/home/qt/work/install/lib/libQt6Gui.so.6+0xdf4e1a)
      agent:2023/09/07 06:07:16 build.go:405: 136: #9 0x7f42d77e6222 in QFontPrivate::engineForScript(int) const (/home/qt/work/install/lib/libQt6Gui.so.6+0xd91222)
      agent:2023/09/07 06:07:16 build.go:405: 136: #10 0x7f42d78a41cf in QFontMetricsF::height() const (/home/qt/work/install/lib/libQt6Gui.so.6+0xe4f1cf)
      agent:2023/09/07 06:07:16 build.go:405: 136: #11 0x7f42dbe2fd4c in QQuickTextPrivate::lineHeightOffset() const (/home/qt/work/install/lib/libQt6Quick.so.6+0x808d4c)
      agent:2023/09/07 06:07:16 build.go:405: 136: #12 0x7f42dbe36a92 in QQuickText::contentHeight() const (/home/qt/work/install/lib/libQt6Quick.so.6+0x80fa92)
      agent:2023/09/07 06:07:16 build.go:405: 136: #13 0x7f42dbe22d72 in QQuickTextPrivate::updateSize() (/home/qt/work/install/lib/libQt6Quick.so.6+0x7fbd72)
      agent:2023/09/07 06:07:16 build.go:405: 136: #14 0x7f42dbe21ef3 in QQuickTextPrivate::updateLayout() (/home/qt/work/install/lib/libQt6Quick.so.6+0x7faef3)
      agent:2023/09/07 06:07:16 build.go:405: 136: #15 0x7f42dbe376cb in QQuickText::componentComplete() (/home/qt/work/install/lib/libQt6Quick.so.6+0x8106cb)
      agent:2023/09/07 06:07:16 build.go:405: 136: #16 0x7f42da768c88 in QQmlObjectCreator::finalize(QQmlInstantiationInterrupt&) (/home/qt/work/install/lib/libQt6Qml.so.6+0xe86c88)
      agent:2023/09/07 06:07:16 build.go:405: 136: #17 0x7f42da4923c6 in QQmlComponentPrivate::complete(QQmlEnginePrivate*, QQmlComponentPrivate::ConstructionState*) (/home/qt/work/install/lib/libQt6Qml.so.6+0xbb03c6)
      agent:2023/09/07 06:07:16 build.go:405: 136: #18 0x7f42da49305d in QQmlComponentPrivate::completeCreate() (/home/qt/work/install/lib/libQt6Qml.so.6+0xbb105d)
      agent:2023/09/07 06:07:16 build.go:405: 136: #19 0x7f42da492bfd in QQmlComponent::completeCreate() (/home/qt/work/install/lib/libQt6Qml.so.6+0xbb0bfd)
      agent:2023/09/07 06:07:16 build.go:405: 136: #20 0x5561f661f310 in tst_examples::examples() /home/qt/work/qt/qtdeclarative/tests/auto/quick/examples/tst_examples.cpp:248
      agent:2023/09/07 06:07:16 build.go:405: 136: #21 0x5561f66237bd in tst_examples::qt_static_metacall(QObject*, QMetaObject::Call, int, void**) tests/auto/quick/examples/tst_quick_examples_autogen/include/tst_examples.moc:121
      agent:2023/09/07 06:07:16 build.go:405: 136: #22 0x7f42d5a194f9 in QMetaMethodInvoker::invokeImpl(QMetaMethod, void*, Qt::ConnectionType, long long, void const* const*, char const* const*, QtPrivate::QMetaTypeInterface const* const*) (/home/qt/work/install/lib/libQt6Core.so.6+0x4d74f9)
      agent:2023/09/07 06:07:16 build.go:405: 136: #23 0x7f42d5a1717e in QMetaMethod::invokeImpl(QMetaMethod, void*, Qt::ConnectionType, long long, void const* const*, char const* const*, QtPrivate::QMetaTypeInterface const* const*) (/home/qt/work/install/lib/libQt6Core.so.6+0x4d517e)
      agent:2023/09/07 06:07:16 build.go:405: 136: #24 0x7f42dd61f2d4 in std::enable_if<!std::disjunction<>::value, bool>::type QMetaMethod::invoke<void>(QObject*, Qt::ConnectionType, QTemplatedMetaMethodReturnArgument<void>) const (/home/qt/work/install/lib/libQt6Test.so.6+0xca2d4)
      agent:2023/09/07 06:07:16 build.go:405: 136: #25 0x7f42dd61a26d in std::enable_if<!std::disjunction<>::value, bool>::type QMetaMethod::invoke<>(QObject*, Qt::ConnectionType) const (/home/qt/work/install/lib/libQt6Test.so.6+0xc526d)
      agent:2023/09/07 06:07:16 build.go:405: 136: #26 0x7f42dd5f8873 (/home/qt/work/install/lib/libQt6Test.so.6+0xa3873)
      agent:2023/09/07 06:07:16 build.go:405: 136: #27 0x7f42dd5fa5d8 (/home/qt/work/install/lib/libQt6Test.so.6+0xa55d8)
      agent:2023/09/07 06:07:16 build.go:405: 136: #28 0x7f42dd5fd37a (/home/qt/work/install/lib/libQt6Test.so.6+0xa837a)
      agent:2023/09/07 06:07:16 build.go:405: 136: #29 0x7f42dd5ffe2d in QTest::qRun() (/home/qt/work/install/lib/libQt6Test.so.6+0xaae2d)
      agent:2023/09/07 06:07:16 build.go:405: 136: #30 0x7f42dd5feb67 in QTest::qExec(QObject*, int, char**) (/home/qt/work/install/lib/libQt6Test.so.6+0xa9b67)
      agent:2023/09/07 06:07:16 build.go:405: 136: #31 0x5561f6623626 in main /home/qt/work/qt/qtdeclarative/tests/auto/quick/examples/tst_examples.cpp:318
      agent:2023/09/07 06:07:16 build.go:405: 136: #32 0x7f42d4bce24c in __libc_start_main (/lib64/libc.so.6+0x3524c)
      agent:2023/09/07 06:07:16 build.go:405: 136: #33 0x5561f66158c9 in _start ../sysdeps/x86_64/start.S:120

      Full log: https://testresults.qt.io/logs/qt/qtdeclarative/9cadb04db4d652a0857440cc0b2646122571a153/LinuxopenSUSE_15_5x86_64LinuxopenSUSE_15_5x86_64GCCqtci-linux-openSUSE-15.5-x86_64-51-2cd3dcSccache_UseAddressSanitizer_UseConfigure_WarningsAreErrors/266f2e5f714d20d17441607ffebad8b64cd46dee/test_1699530957/log.txt.gz

      Attachments

        Issue Links

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

          Activity

            People

              santhoshkumar Santhosh Kumar Selvaraj
              jujokini Jukka Jokiniva
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes