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

Render thread can delete font engines still in use

    XMLWordPrintable

Details

    • 5761dd55c (dev), 97dc63861 (6.7), f307308fe (dev), 9339e6598 (6.7), ee4b23418 (dev), e939dc31a (6.7)

    Description

      See for example https://testresults.qt.io/logs/qt/qtdeclarative/71cf8a22b2a8d7f9efa03b5151c85498566692cc/LinuxopenSUSE_15_5x86_64LinuxopenSUSE_15_5x86_64GCCqtci-linux-openSUSE-15.5-x86_64-51-bc6c51Sccache_UseAddressSanitizer_UseConfigure_WarningsAreErrors/bf29a93e255e9e9ae7794e6e1cec5381a37366f5/test_1703953464/log.txt.gz - We get the following kind of ASAN report:

      ==6280==ERROR: AddressSanitizer: heap-use-after-free on address 0x61d00024dec0 at pc 0x7f67812d5dab bp 0x7ffd7647fd80 sp 0x7ffd7647fd78
      agent:2023/11/06 16:44:20 build.go:404: WRITE of size 4 at 0x61d00024dec0 thread T0
      agent:2023/11/06 16:44:20 build.go:404:     #0 0x7f67812d5daa  (/home/qt/work/install/lib/libQt6Gui.so.6+0x434daa)
      agent:2023/11/06 16:44:20 build.go:404:     #1 0x7f67812d4a75  (/home/qt/work/install/lib/libQt6Gui.so.6+0x433a75)
      agent:2023/11/06 16:44:20 build.go:404:     #2 0x7f6782298b08 in QFreetypeFace::getFace(QFontEngine::FaceId const&, QByteArray const&) (/home/qt/work/install/lib/libQt6Gui.so.6+0x13f7b08)
      agent:2023/11/06 16:44:20 build.go:404:     #3 0x7f67822a1805 in QFontEngineFT::init(QFontEngine::FaceId, bool, QFontEngine::GlyphFormat, QByteArray const&) (/home/qt/work/install/lib/libQt6Gui.so.6+0x1400805)
      agent:2023/11/06 16:44:20 build.go:404:     #4 0x7f67822db52f in QFontconfigDatabase::fontEngine(QFontDef const&, void*) (/home/qt/work/install/lib/libQt6Gui.so.6+0x143a52f)
      agent:2023/11/06 16:44:20 build.go:404:     #5 0x7f6781c28904 in QFontDatabasePrivate::loadSingleEngine(int, QFontDef const&, QtFontFamily*, QtFontFoundry*, QtFontStyle*, QtFontSize*) (/home/qt/work/install/lib/libQt6Gui.so.6+0xd87904)
      agent:2023/11/06 16:44:20 build.go:404:     #6 0x7f6781c28eb7 in QFontDatabasePrivate::loadEngine(int, QFontDef const&, QtFontFamily*, QtFontFoundry*, QtFontStyle*, QtFontSize*) (/home/qt/work/install/lib/libQt6Gui.so.6+0xd87eb7)
      agent:2023/11/06 16:44:20 build.go:404:     #7 0x7f6781c3a9cc in QFontDatabasePrivate::findFont(QFontDef const&, int, bool) (/home/qt/work/install/lib/libQt6Gui.so.6+0xd999cc)
      agent:2023/11/06 16:44:20 build.go:404:     #8 0x7f6781c3c2e2 in QFontDatabasePrivate::load(QFontPrivate const*, int) (/home/qt/work/install/lib/libQt6Gui.so.6+0xd9b2e2)
      agent:2023/11/06 16:44:20 build.go:404:     #9 0x7f6781bd4fe0 in QFontPrivate::engineForScript(int) const (/home/qt/work/install/lib/libQt6Gui.so.6+0xd33fe0)
      agent:2023/11/06 16:44:20 build.go:404:     #10 0x7f6781c96cfb in QFontMetricsF::height() const (/home/qt/work/install/lib/libQt6Gui.so.6+0xdf5cfb)
      agent:2023/11/06 16:44:20 build.go:404:     #11 0x7f6786156d0e in QQuickTextPrivate::lineHeightOffset() const (/home/qt/work/install/lib/libQt6Quick.so.6+0x7a1d0e)
      agent:2023/11/06 16:44:20 build.go:404:     #12 0x7f678615dc84 in QQuickText::contentHeight() const (/home/qt/work/install/lib/libQt6Quick.so.6+0x7a8c84)
      agent:2023/11/06 16:44:20 build.go:404:     #13 0x7f6786149d34 in QQuickTextPrivate::updateSize() (/home/qt/work/install/lib/libQt6Quick.so.6+0x794d34)
      agent:2023/11/06 16:44:20 build.go:404:     #14 0x7f6786148eb5 in QQuickTextPrivate::updateLayout() (/home/qt/work/install/lib/libQt6Quick.so.6+0x793eb5)
      agent:2023/11/06 16:44:20 build.go:404:     #15 0x7f678615e8bd in QQuickText::componentComplete() (/home/qt/work/install/lib/libQt6Quick.so.6+0x7a98bd)
      agent:2023/11/06 16:44:20 build.go:404:     #16 0x7f6784b06e53 in QQmlObjectCreator::finalize(QQmlInstantiationInterrupt&) (/home/qt/work/install/lib/libQt6Qml.so.6+0xe08e53)
      agent:2023/11/06 16:44:20 build.go:404:     #17 0x7f678482b360 in QQmlComponentPrivate::complete(QQmlEnginePrivate*, QQmlComponentPrivate::ConstructionState*) (/home/qt/work/install/lib/libQt6Qml.so.6+0xb2d360)
      agent:2023/11/06 16:44:20 build.go:404:     #18 0x7f678482bff7 in QQmlComponentPrivate::completeCreate() (/home/qt/work/install/lib/libQt6Qml.so.6+0xb2dff7)
      agent:2023/11/06 16:44:20 build.go:404:     #19 0x7f678482bb97 in QQmlComponent::completeCreate() (/home/qt/work/install/lib/libQt6Qml.so.6+0xb2db97)
      agent:2023/11/06 16:44:20 build.go:404:     #20 0x562f68d007bc in tst_examples::examples() /home/qt/work/qt/qtdeclarative/tests/auto/quick/examples/tst_examples.cpp:248
      agent:2023/11/06 16:44:20 build.go:404:     #21 0x562f68d04c69 in tst_examples::qt_static_metacall(QObject*, QMetaObject::Call, int, void**) /home/qt/work/qt/qtdeclarative_standalone_tests/tests/auto/quick/examples/tst_quick_examples_autogen/include/tst_examples.moc:121
      agent:2023/11/06 16:44:20 build.go:404:     #22 0x7f677fe29a57 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+0x485a57)
      agent:2023/11/06 16:44:20 build.go:404:     #23 0x7f677fe276dc 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+0x4836dc)
      agent:2023/11/06 16:44:20 build.go:404:     #24 0x7f67877525cc 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+0xba5cc)
      agent:2023/11/06 16:44:20 build.go:404:     #25 0x7f678774d599 in std::enable_if<!std::disjunction<>::value, bool>::type QMetaMethod::invoke<>(QObject*, Qt::ConnectionType) const (/home/qt/work/install/lib/libQt6Test.so.6+0xb5599)
      agent:2023/11/06 16:44:20 build.go:404:     #26 0x7f678772b9e1  (/home/qt/work/install/lib/libQt6Test.so.6+0x939e1)
      agent:2023/11/06 16:44:20 build.go:404:     #27 0x7f678772d746  (/home/qt/work/install/lib/libQt6Test.so.6+0x95746)
      agent:2023/11/06 16:44:20 build.go:404:     #28 0x7f67877304e8  (/home/qt/work/install/lib/libQt6Test.so.6+0x984e8)
      agent:2023/11/06 16:44:20 build.go:404:     #29 0x7f6787732f9b in QTest::qRun() (/home/qt/work/install/lib/libQt6Test.so.6+0x9af9b)
      agent:2023/11/06 16:44:20 build.go:404:     #30 0x7f6787731cd5 in QTest::qExec(QObject*, int, char**) (/home/qt/work/install/lib/libQt6Test.so.6+0x99cd5)
      agent:2023/11/06 16:44:20 build.go:404:     #31 0x562f68d04ad2 in main /home/qt/work/qt/qtdeclarative/tests/auto/quick/examples/tst_examples.cpp:318
      agent:2023/11/06 16:44:20 build.go:404:     #32 0x7f677f03024c in __libc_start_main (/lib64/libc.so.6+0x3524c)
      agent:2023/11/06 16:44:20 build.go:404:     #33 0x562f68cf6d79 in _start ../sysdeps/x86_64/start.S:120
      agent:2023/11/06 16:44:20 build.go:404: 0x61d00024dec0 is located 2112 bytes inside of 2184-byte region [0x61d00024d680,0x61d00024df08)
      agent:2023/11/06 16:44:20 build.go:404: freed by thread T54 (QSGRenderThread) here:
      agent:2023/11/06 16:44:20 build.go:404:     #0 0x7f6787962e45 in operator delete(void*, unsigned long) (/usr/lib64/libasan.so.5+0x10ce45)
      agent:2023/11/06 16:44:20 build.go:404:     #1 0x7f678229a4d8 in QFreetypeFace::release(QFontEngine::FaceId const&) (/home/qt/work/install/lib/libQt6Gui.so.6+0x13f94d8)
      agent:2023/11/06 16:44:20 build.go:404:     #2 0x7f67822a16d2 in QFontEngineFT::~QFontEngineFT() (/home/qt/work/install/lib/libQt6Gui.so.6+0x14006d2)
      agent:2023/11/06 16:44:20 build.go:404:     #3 0x7f67822a172f in QFontEngineFT::~QFontEngineFT() (/home/qt/work/install/lib/libQt6Gui.so.6+0x140072f)
      agent:2023/11/06 16:44:20 build.go:404:     #4 0x7f6781c700ab in QFontEngineMulti::~QFontEngineMulti() (/home/qt/work/install/lib/libQt6Gui.so.6+0xdcf0ab)
      agent:2023/11/06 16:44:20 build.go:404:     #5 0x7f67822e278d in QFontEngineMultiFontConfig::~QFontEngineMultiFontConfig() (/home/qt/work/install/lib/libQt6Gui.so.6+0x144178d)
      agent:2023/11/06 16:44:20 build.go:404:     #6 0x7f67822e27f5 in QFontEngineMultiFontConfig::~QFontEngineMultiFontConfig() (/home/qt/work/install/lib/libQt6Gui.so.6+0x14417f5)
      agent:2023/11/06 16:44:20 build.go:404:     #7 0x7f6781bd61fc  (/home/qt/work/install/lib/libQt6Gui.so.6+0xd351fc)
      agent:2023/11/06 16:44:20 build.go:404:     #8 0x7f6781bd4f19 in QFontPrivate::engineForScript(int) const (/home/qt/work/install/lib/libQt6Gui.so.6+0xd33f19)
      agent:2023/11/06 16:44:20 build.go:404:     #9 0x7f6781c96cfb in QFontMetricsF::height() const (/home/qt/work/install/lib/libQt6Gui.so.6+0xdf5cfb)
      agent:2023/11/06 16:44:20 build.go:404:     #10 0x7f6786156d0e in QQuickTextPrivate::lineHeightOffset() const (/home/qt/work/install/lib/libQt6Quick.so.6+0x7a1d0e)
      agent:2023/11/06 16:44:20 build.go:404:     #11 0x7f678615dc84 in QQuickText::contentHeight() const (/home/qt/work/install/lib/libQt6Quick.so.6+0x7a8c84)
      agent:2023/11/06 16:44:20 build.go:404:     #12 0x7f6786149d34 in QQuickTextPrivate::updateSize() (/home/qt/work/install/lib/libQt6Quick.so.6+0x794d34)
      agent:2023/11/06 16:44:20 build.go:404:     #13 0x7f6786148eb5 in QQuickTextPrivate::updateLayout() (/home/qt/work/install/lib/libQt6Quick.so.6+0x793eb5)
      agent:2023/11/06 16:44:20 build.go:404:     #14 0x7f6786161a61 in QQuickText::invalidate() (/home/qt/work/install/lib/libQt6Quick.so.6+0x7aca61)
      agent:2023/11/06 16:44:20 build.go:404:     #15 0x7f67862a1741 in QQuickWindowPrivate::invalidateFontData(QQuickItem*) (/home/qt/work/install/lib/libQt6Quick.so.6+0x8ec741)
      agent:2023/11/06 16:44:20 build.go:404:     #16 0x7f67862a18b5 in QQuickWindowPrivate::invalidateFontData(QQuickItem*) (/home/qt/work/install/lib/libQt6Quick.so.6+0x8ec8b5)
      agent:2023/11/06 16:44:20 build.go:404:     #17 0x7f67862a18b5 in QQuickWindowPrivate::invalidateFontData(QQuickItem*) (/home/qt/work/install/lib/libQt6Quick.so.6+0x8ec8b5)
      agent:2023/11/06 16:44:20 build.go:404:     #18 0x7f67862a18b5 in QQuickWindowPrivate::invalidateFontData(QQuickItem*) (/home/qt/work/install/lib/libQt6Quick.so.6+0x8ec8b5)
      agent:2023/11/06 16:44:20 build.go:404:     #19 0x7f67862a18b5 in QQuickWindowPrivate::invalidateFontData(QQuickItem*) (/home/qt/work/install/lib/libQt6Quick.so.6+0x8ec8b5)
      agent:2023/11/06 16:44:20 build.go:404:     #20 0x7f67862a18b5 in QQuickWindowPrivate::invalidateFontData(QQuickItem*) (/home/qt/work/install/lib/libQt6Quick.so.6+0x8ec8b5)
      agent:2023/11/06 16:44:20 build.go:404:     #21 0x7f67862a1ea1 in QQuickWindowPrivate::syncSceneGraph() (/home/qt/work/install/lib/libQt6Quick.so.6+0x8ecea1)
      agent:2023/11/06 16:44:20 build.go:404:     #22 0x7f6786ad0d75  (/home/qt/work/install/lib/libQt6Quick.so.6+0x111bd75)
      agent:2023/11/06 16:44:20 build.go:404:     #23 0x7f6786ad2f75  (/home/qt/work/install/lib/libQt6Quick.so.6+0x111df75)
      agent:2023/11/06 16:44:20 build.go:404:     #24 0x7f6786ad62ed  (/home/qt/work/install/lib/libQt6Quick.so.6+0x11212ed)
      agent:2023/11/06 16:44:20 build.go:404:     #25 0x7f67803b87ab  (/home/qt/work/install/lib/libQt6Core.so.6+0xa147ab)
      agent:2023/11/06 16:44:20 build.go:404:     #26 0x7f67803bb844  (/home/qt/work/install/lib/libQt6Core.so.6+0xa17844)
      agent:2023/11/06 16:44:20 build.go:404:     #27 0x7f67803b89be in QThreadPrivate::start(void*) (/home/qt/work/install/lib/libQt6Core.so.6+0xa149be)
      agent:2023/11/06 16:44:20 build.go:404:     #28 0x7f677f1fc6e9 in start_thread (/lib64/libpthread.so.0+0xa6e9)
      agent:2023/11/06 16:44:20 build.go:404: previously allocated by thread T0 here:
      agent:2023/11/06 16:44:20 build.go:404:     #0 0x7f67879619bf in operator new(unsigned long) (/usr/lib64/libasan.so.5+0x10b9bf)
      agent:2023/11/06 16:44:20 build.go:404:     #1 0x7f6782298b3f in QFreetypeFace::getFace(QFontEngine::FaceId const&, QByteArray const&) (/home/qt/work/install/lib/libQt6Gui.so.6+0x13f7b3f)
      agent:2023/11/06 16:44:20 build.go:404:     #2 0x7f67822a1805 in QFontEngineFT::init(QFontEngine::FaceId, bool, QFontEngine::GlyphFormat, QByteArray const&) (/home/qt/work/install/lib/libQt6Gui.so.6+0x1400805)
      agent:2023/11/06 16:44:20 build.go:404:     #3 0x7f67822db52f in QFontconfigDatabase::fontEngine(QFontDef const&, void*) (/home/qt/work/install/lib/libQt6Gui.so.6+0x143a52f)
      agent:2023/11/06 16:44:20 build.go:404:     #4 0x7f6781c28904 in QFontDatabasePrivate::loadSingleEngine(int, QFontDef const&, QtFontFamily*, QtFontFoundry*, QtFontStyle*, QtFontSize*) (/home/qt/work/install/lib/libQt6Gui.so.6+0xd87904)
      agent:2023/11/06 16:44:20 build.go:404:     #5 0x7f6781c28eb7 in QFontDatabasePrivate::loadEngine(int, QFontDef const&, QtFontFamily*, QtFontFoundry*, QtFontStyle*, QtFontSize*) (/home/qt/work/install/lib/libQt6Gui.so.6+0xd87eb7)
      agent:2023/11/06 16:44:20 build.go:404:     #6 0x7f6781c3a9cc in QFontDatabasePrivate::findFont(QFontDef const&, int, bool) (/home/qt/work/install/lib/libQt6Gui.so.6+0xd999cc)
      agent:2023/11/06 16:44:20 build.go:404:     #7 0x7f6781c3c2e2 in QFontDatabasePrivate::load(QFontPrivate const*, int) (/home/qt/work/install/lib/libQt6Gui.so.6+0xd9b2e2)
      agent:2023/11/06 16:44:20 build.go:404:     #8 0x7f6781bd4fe0 in QFontPrivate::engineForScript(int) const (/home/qt/work/install/lib/libQt6Gui.so.6+0xd33fe0)
      agent:2023/11/06 16:44:20 build.go:404:     #9 0x7f6781be499a in QFontInfo::weight() const (/home/qt/work/install/lib/libQt6Gui.so.6+0xd4399a)
      agent:2023/11/06 16:44:20 build.go:404:     #10 0x7f6786153e5a in QQuickTextPrivate::setupTextLayout(double*) (/home/qt/work/install/lib/libQt6Quick.so.6+0x79ee5a)
      agent:2023/11/06 16:44:20 build.go:404:     #11 0x7f678614a4ec in QQuickTextPrivate::updateSize() (/home/qt/work/install/lib/libQt6Quick.so.6+0x7954ec)
      agent:2023/11/06 16:44:20 build.go:404:     #12 0x7f6786148eb5 in QQuickTextPrivate::updateLayout() (/home/qt/work/install/lib/libQt6Quick.so.6+0x793eb5)
      agent:2023/11/06 16:44:20 build.go:404:     #13 0x7f678615e8bd in QQuickText::componentComplete() (/home/qt/work/install/lib/libQt6Quick.so.6+0x7a98bd)
      agent:2023/11/06 16:44:20 build.go:404:     #14 0x7f6784b06e53 in QQmlObjectCreator::finalize(QQmlInstantiationInterrupt&) (/home/qt/work/install/lib/libQt6Qml.so.6+0xe08e53)
      agent:2023/11/06 16:44:20 build.go:404:     #15 0x7f678482b360 in QQmlComponentPrivate::complete(QQmlEnginePrivate*, QQmlComponentPrivate::ConstructionState*) (/home/qt/work/install/lib/libQt6Qml.so.6+0xb2d360)
      agent:2023/11/06 16:44:20 build.go:404:     #16 0x7f678482bff7 in QQmlComponentPrivate::completeCreate() (/home/qt/work/install/lib/libQt6Qml.so.6+0xb2dff7)
      agent:2023/11/06 16:44:20 build.go:404:     #17 0x7f678482bb97 in QQmlComponent::completeCreate() (/home/qt/work/install/lib/libQt6Qml.so.6+0xb2db97)
      agent:2023/11/06 16:44:20 build.go:404:     #18 0x562f68d007bc in tst_examples::examples() /home/qt/work/qt/qtdeclarative/tests/auto/quick/examples/tst_examples.cpp:248
      agent:2023/11/06 16:44:20 build.go:404:     #19 0x562f68d04c69 in tst_examples::qt_static_metacall(QObject*, QMetaObject::Call, int, void**) /home/qt/work/qt/qtdeclarative_standalone_tests/tests/auto/quick/examples/tst_quick_examples_autogen/include/tst_examples.moc:121
      agent:2023/11/06 16:44:20 build.go:404:     #20 0x7f677fe29a57 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+0x485a57)
      agent:2023/11/06 16:44:20 build.go:404:     #21 0x7f677fe276dc 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+0x4836dc)
      agent:2023/11/06 16:44:20 build.go:404:     #22 0x7f67877525cc 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+0xba5cc)
      agent:2023/11/06 16:44:20 build.go:404:     #23 0x7f678774d599 in std::enable_if<!std::disjunction<>::value, bool>::type QMetaMethod::invoke<>(QObject*, Qt::ConnectionType) const (/home/qt/work/install/lib/libQt6Test.so.6+0xb5599)
      agent:2023/11/06 16:44:20 build.go:404:     #24 0x7f678772b9e1  (/home/qt/work/install/lib/libQt6Test.so.6+0x939e1)
      agent:2023/11/06 16:44:20 build.go:404:     #25 0x7f678772d746  (/home/qt/work/install/lib/libQt6Test.so.6+0x95746)
      agent:2023/11/06 16:44:20 build.go:404:     #26 0x7f67877304e8  (/home/qt/work/install/lib/libQt6Test.so.6+0x984e8)
      agent:2023/11/06 16:44:20 build.go:404:     #27 0x7f6787732f9b in QTest::qRun() (/home/qt/work/install/lib/libQt6Test.so.6+0x9af9b)
      agent:2023/11/06 16:44:20 build.go:404:     #28 0x7f6787731cd5 in QTest::qExec(QObject*, int, char**) (/home/qt/work/install/lib/libQt6Test.so.6+0x99cd5)
      agent:2023/11/06 16:44:20 build.go:404:     #29 0x562f68d04ad2 in main /home/qt/work/qt/qtdeclarative/tests/auto/quick/examples/tst_examples.cpp:318
      agent:2023/11/06 16:44:20 build.go:404:     #30 0x7f677f03024c in __libc_start_main (/lib64/libc.so.6+0x3524c)
      agent:2023/11/06 16:44:20 build.go:404: Thread T54 (QSGRenderThread) created by T0 here:
      agent:2023/11/06 16:44:20 build.go:404:     #0 0x7f67878921d2 in pthread_create (/usr/lib64/libasan.so.5+0x3c1d2)
      agent:2023/11/06 16:44:20 build.go:404:     #1 0x7f67803ba805 in QThread::start(QThread::Priority) (/home/qt/work/install/lib/libQt6Core.so.6+0xa16805)
      agent:2023/11/06 16:44:20 build.go:404:     #2 0x7f6786adb50a  (/home/qt/work/install/lib/libQt6Quick.so.6+0x112650a)
      agent:2023/11/06 16:44:20 build.go:404:     #3 0x7f6786ad9cf4  (/home/qt/work/install/lib/libQt6Quick.so.6+0x1124cf4)
      agent:2023/11/06 16:44:20 build.go:404:     #4 0x7f678629f920 in QQuickWindow::exposeEvent(QExposeEvent*) (/home/qt/work/install/lib/libQt6Quick.so.6+0x8ea920)
      agent:2023/11/06 16:44:20 build.go:404:     #5 0x7f67816494bd in QWindow::event(QEvent*) (/home/qt/work/install/lib/libQt6Gui.so.6+0x7a84bd)
      agent:2023/11/06 16:44:20 build.go:404:     #6 0x7f67862ab530 in QQuickWindow::event(QEvent*) (/home/qt/work/install/lib/libQt6Quick.so.6+0x8f6530)
      agent:2023/11/06 16:44:20 build.go:404:     #7 0x7f677fddbf59 in QCoreApplicationPrivate::notify_helper(QObject*, QEvent*) (/home/qt/work/install/lib/libQt6Core.so.6+0x437f59)
      agent:2023/11/06 16:44:20 build.go:404:     #8 0x7f677fddb70a  (/home/qt/work/install/lib/libQt6Core.so.6+0x43770a)
      agent:2023/11/06 16:44:20 build.go:404:     #9 0x7f677fddb5d1 in QCoreApplication::notify(QObject*, QEvent*) (/home/qt/work/install/lib/libQt6Core.so.6+0x4375d1)
      agent:2023/11/06 16:44:20 build.go:404:     #10 0x7f67814b571c in QGuiApplication::notify(QObject*, QEvent*) (/home/qt/work/install/lib/libQt6Gui.so.6+0x61471c)
      agent:2023/11/06 16:44:20 build.go:404:     #11 0x7f677fddb3e3 in QCoreApplication::notifyInternal2(QObject*, QEvent*) (/home/qt/work/install/lib/libQt6Core.so.6+0x4373e3)
      agent:2023/11/06 16:44:20 build.go:404:     #12 0x7f677fddcc62 in QCoreApplication::sendSpontaneousEvent(QObject*, QEvent*) (/home/qt/work/install/lib/libQt6Core.so.6+0x438c62)
      agent:2023/11/06 16:44:20 build.go:404:     #13 0x7f67814c2f4a in QGuiApplicationPrivate::processExposeEvent(QWindowSystemInterfacePrivate::ExposeEvent*) (/home/qt/work/install/lib/libQt6Gui.so.6+0x621f4a)
      agent:2023/11/06 16:44:20 build.go:404:     #14 0x7f67814b659f in QGuiApplicationPrivate::processWindowSystemEvent(QWindowSystemInterfacePrivate::WindowSystemEvent*) (/home/qt/work/install/lib/libQt6Gui.so.6+0x61559f)
      agent:2023/11/06 16:44:20 build.go:404:     #15 0x7f67816649f7 in QWindowSystemInterface::sendWindowSystemEvents(QFlags<QEventLoop::ProcessEventsFlag>) (/home/qt/work/install/lib/libQt6Gui.so.6+0x7c39f7)
      agent:2023/11/06 16:44:20 build.go:404:     #16 0x7f677828ae63  (/home/qt/work/install/plugins/platforms/../../lib/libQt6XcbQpa.so.6+0x15ae63)
      agent:2023/11/06 16:44:20 build.go:404:     #17 0x7f677e60282a in g_main_context_dispatch (/usr/lib64/libglib-2.0.so.0+0x5582a)
      agent:2023/11/06 16:44:20 build.go:404: SUMMARY: AddressSanitizer: heap-use-after-free (/home/qt/work/install/lib/libQt6Gui.so.6+0x434daa) 
      

      Clearly, the render thread should not delete font engines it doesn't own.

      Attachments

        Issue Links

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

          Activity

            People

              esabraha Eskil Abrahamsen Blomfeldt
              ulherman Ulf Hermann
              Votes:
              1 Vote for this issue
              Watchers:
              8 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: