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

heap-use-after-free in tst_QQuickFileDialogImpl

XMLWordPrintable

    • 1df5b5d53aaa02b7de26f221b4a0ab8bf5360992

      This was seen once in a health check run, expecting to be flaky:

      agent:2025/09/05 00:52:19 build.go:413: PASS   : tst_QQuickFileDialogImpl::Material::bindTitle()
      agent:2025/09/05 00:52:19 build.go:413: =================================================================
      agent:2025/09/05 00:52:19 build.go:413: ==21180==ERROR: AddressSanitizer: heap-use-after-free on address 0x6060015a4480 at pc 0x7f90112394b5 bp 0x7ffc5c696e00 sp 0x7ffc5c696df8
      agent:2025/09/05 00:52:19 build.go:413: WRITE of size 8 at 0x6060015a4480 thread T0
      agent:2025/09/05 00:52:19 build.go:413:     #0 0x7f90112394b4 in void __gnu_cxx::new_allocator<QObject*>::construct<QObject*, QObject* const&>(QObject**, QObject* const&) /usr/include/c++/9/ext/new_allocator.h:147
      agent:2025/09/05 00:52:19 build.go:413:     #1 0x7f90112368e8 in void std::allocator_traits<std::allocator<QObject*> >::construct<QObject*, QObject* const&>(std::allocator<QObject*>&, QObject**, QObject* const&) /usr/include/c++/9/bits/alloc_traits.h:484
      agent:2025/09/05 00:52:19 build.go:413:     #2 0x7f9011234551 in std::vector<QObject*, std::allocator<QObject*> >::push_back(QObject* const&) /usr/include/c++/9/bits/stl_vector.h:1189
      agent:2025/09/05 00:52:19 build.go:413:     #3 0x7f901122fee2 in QtPrivate::BindingStatusOrList::addObjectUnlessAlreadyStatus(QObject*) /home/qt/work/qt/qtbase/src/corelib/thread/qthread.cpp:691
      agent:2025/09/05 00:52:19 build.go:413:     #4 0x7f901123035a in QThreadPrivate::addObjectWithPendingBindingStatusChange(QObject*) /home/qt/work/qt/qtbase/src/corelib/thread/qthread.cpp:713
      agent:2025/09/05 00:52:19 build.go:413:     #5 0x7f9010f295ed in QObject::moveToThread(QThread*, Qt::Disambiguated_t) /home/qt/work/qt/qtbase/src/corelib/kernel/qobject.cpp:1768
      agent:2025/09/05 00:52:19 build.go:413:     #6 0x7f9016fb442f in QQmlThread::startup() /home/qt/work/qt/qtdeclarative/src/qml/qml/ftw/qqmlthread_impl.cpp:178
      agent:2025/09/05 00:52:19 build.go:413:     #7 0x7f9016c7584e in QQmlTypeLoaderLockedData::createThread(QQmlTypeLoader*) /home/qt/work/qt/qtdeclarative/src/qml/qml/qqmltypeloaderdata_p.h:159
      agent:2025/09/05 00:52:19 build.go:413:     #8 0x7f9016c61387 in QQmlTypeLoader::startThread() /home/qt/work/qt/qtdeclarative/src/qml/qml/qqmltypeloader.cpp:682
      agent:2025/09/05 00:52:19 build.go:413:     #9 0x7f9016c7602b in QQmlTypeLoader::ensureThread() (/home/qt/work/install/lib/libQt6Qml.so.6+0x127602b)
      agent:2025/09/05 00:52:19 build.go:413:     #10 0x7f9016c76321 in CachedLoader::load(QQmlTypeLoader*, QQmlRefPointer<QQmlDataBlob> const&) const /home/qt/work/qt/qtdeclarative/src/qml/qml/qqmltypeloader.cpp:193
      agent:2025/09/05 00:52:19 build.go:413:     #11 0x7f9016c7876c in void QQmlTypeLoader::doLoad<CachedLoader>(CachedLoader const&, QQmlRefPointer<QQmlDataBlob> const&, QQmlTypeLoader::Mode) /home/qt/work/qt/qtdeclarative/src/qml/qml/qqmltypeloader.cpp:222
      agent:2025/09/05 00:52:19 build.go:413:     #12 0x7f9016c5bc4e in QQmlTypeLoader::loadWithCachedUnit(QQmlRefPointer<QQmlDataBlob> const&, QQmlPrivate::CachedQmlUnit const*, QQmlTypeLoader::Mode) /home/qt/work/qt/qtdeclarative/src/qml/qml/qqmltypeloader.cpp:267
      agent:2025/09/05 00:52:19 build.go:413:     #13 0x7f9016c7ba51 in QQmlRefPointer<QQmlTypeData> QQmlTypeLoader::finalizeBlob<QQmlTypeData>(QQmlRefPointer<QQmlTypeData>&&, QQmlTypeLoader::Mode) /home/qt/work/qt/qtdeclarative/src/qml/qml/qqmltypeloader_p.h:385
      agent:2025/09/05 00:52:19 build.go:413:     #14 0x7f9016c6b939 in QQmlTypeLoader::getType(QUrl const&, QQmlTypeLoader::Mode) /home/qt/work/qt/qtdeclarative/src/qml/qml/qqmltypeloader.cpp:1366
      agent:2025/09/05 00:52:19 build.go:413:     #15 0x7f90167a253d in QQmlComponentPrivate::loadUrl(QUrl const&, QQmlComponent::CompilationMode) /home/qt/work/qt/qtdeclarative/src/qml/qml/qqmlcomponent.cpp:835
      agent:2025/09/05 00:52:19 build.go:413:     #16 0x7f90167a053f in QQmlComponent::QQmlComponent(QQmlEngine*, QUrl const&, QQmlComponent::CompilationMode, QObject*) /home/qt/work/qt/qtdeclarative/src/qml/qml/qqmlcomponent.cpp:635
      agent:2025/09/05 00:52:19 build.go:413:     #17 0x7f90167a04df in QQmlComponent::QQmlComponent(QQmlEngine*, QUrl const&, QObject*) /home/qt/work/qt/qtdeclarative/src/qml/qml/qqmlcomponent.cpp:617
      agent:2025/09/05 00:52:19 build.go:413:     #18 0x7f901bc718ed in QQuickPlatformFileDialog::QQuickPlatformFileDialog(QObject*) /home/qt/work/qt/qtdeclarative/src/quickdialogs/quickdialogsquickimpl/qquickplatformfiledialog.cpp:47
      agent:2025/09/05 00:52:19 build.go:413:     #19 0x7f901b844b5c in QQuickDialogImplFactory::createPlatformDialogHelper(QQuickDialogType, QObject*) /home/qt/work/qt/qtdeclarative/src/quickdialogs/quickdialogsquickimpl/qquickdialogimplfactory.cpp:39
      agent:2025/09/05 00:52:19 build.go:413:     #20 0x7f901c593b7d in QQuickAbstractDialog::create(QQuickAbstractDialog::CreateOptions) /home/qt/work/qt/qtdeclarative/src/quickdialogs/quickdialogs/qquickabstractdialog.cpp:484
      agent:2025/09/05 00:52:19 build.go:413:     #21 0x7f901c592112 in QQuickAbstractDialog::open() /home/qt/work/qt/qtdeclarative/src/quickdialogs/quickdialogs/qquickabstractdialog.cpp:339
      agent:2025/09/05 00:52:19 build.go:413:     #22 0x557eef88a4d8 in QQuickDialogTestUtils::DialogTestHelper<QQuickFileDialog, QQuickFileDialogImpl>::openDialog() (/home/qt/work/qt/qtdeclarative_standalone_tests/tests/auto/quickdialogs/qquickfiledialogimpl/tst_qquickfiledialogimpl+0x1c34d8)
      agent:2025/09/05 00:52:19 build.go:413:     #23 0x557eef714498 in FileDialogTestHelper::openDialog() /home/qt/work/qt/qtdeclarative/tests/auto/quickdialogs/qquickfiledialogimpl/tst_qquickfiledialogimpl.cpp:313
      agent:2025/09/05 00:52:19 build.go:413:     #24 0x557eef809390 in tst_QQuickFileDialogImpl::itemsDisabledWhenNecessary() /home/qt/work/qt/qtdeclarative/tests/auto/quickdialogs/qquickfiledialogimpl/tst_qquickfiledialogimpl.cpp:1256
      

      integration: https://testresults.qt.io/coin/integration/qt/qt5/tasks/nightly1757073119
      full log: https://testresults.qt.io/coin/api/log/qt/qtdeclarative/4129d772fa47a493ea23b5c266d0080225be7d6b/LinuxopenSUSE_15_6x86_64LinuxopenSUSE_15_6x86_64GCCqtci-linux-openSUSE-15.6-x86_64-51-0ca157Sccache_UseAddressSanitizer_UseConfigure_WarningsAreErrors/b775fb8484ebcf42656aa263852c9b661e4fa8b7/forceRun/test_1757073904/log.txt.gz

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

            qtqmlteam Qt Qml Team User
            jujokini Jukka Jokiniva
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes