-
Bug
-
Resolution: Unresolved
-
P2: Important
-
None
-
6.11
-
None
This was seen once in a nightly health check run:
agent:2025/09/05 22:22:10 build.go:413: PASS : tst_QPermission::functorWithoutContext() agent:2025/09/05 22:22:10 build.go:413: ================================================================= agent:2025/09/05 22:22:10 build.go:413: ==4395==ERROR: AddressSanitizer: heap-use-after-free on address 0x606000002008 at pc 0x7fbfc50394b5 bp 0x7ffd13a00b80 sp 0x7ffd13a00b78 agent:2025/09/05 22:22:10 build.go:413: WRITE of size 8 at 0x606000002008 thread T0 agent:2025/09/05 22:22:10 build.go:413: #0 0x7fbfc50394b4 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 22:22:10 build.go:413: #1 0x7fbfc50368e8 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 22:22:10 build.go:413: #2 0x7fbfc5034551 in std::vector<QObject*, std::allocator<QObject*> >::push_back(QObject* const&) /usr/include/c++/9/bits/stl_vector.h:1189 agent:2025/09/05 22:22:10 build.go:413: #3 0x7fbfc502fee2 in QtPrivate::BindingStatusOrList::addObjectUnlessAlreadyStatus(QObject*) /home/qt/work/qt/qtbase/src/corelib/thread/qthread.cpp:691 agent:2025/09/05 22:22:10 build.go:413: #4 0x7fbfc503035a in QThreadPrivate::addObjectWithPendingBindingStatusChange(QObject*) /home/qt/work/qt/qtbase/src/corelib/thread/qthread.cpp:713 agent:2025/09/05 22:22:10 build.go:413: #5 0x7fbfc4d295ed in QObject::moveToThread(QThread*, Qt::Disambiguated_t) /home/qt/work/qt/qtbase/src/corelib/kernel/qobject.cpp:1768 agent:2025/09/05 22:22:10 build.go:413: #6 0x7fbfc4bd7be2 in PermissionReceiver /home/qt/work/qt/qtbase/src/corelib/kernel/qcoreapplication.cpp:2899 agent:2025/09/05 22:22:10 build.go:413: #7 0x7fbfc4bd842e in QCoreApplication::requestPermissionImpl(QPermission const&, QtPrivate::QSlotObjectBase*, QObject const*) /home/qt/work/qt/qtbase/src/corelib/kernel/qcoreapplication.cpp:2918 agent:2025/09/05 22:22:10 build.go:413: #8 0x55c019a967a2 in requestPermission<tst_QPermission::functorWithContextInThread()::<lambda(const QPermission&)> > /home/qt/work/install/include/QtCore/qcoreapplication.h:141 agent:2025/09/05 22:22:10 build.go:413: #9 0x55c019a93f88 in tst_QPermission::functorWithContextInThread() /home/qt/work/qt/qtbase/tests/auto/corelib/kernel/qpermission/tst_qpermission.cpp:211
Full log: https://testresults.qt.io/coin/api/log/qt/qtbase/877b0a49366a1766d96917635338503f9811d224/LinuxopenSUSE_15_6x86_64LinuxopenSUSE_15_6x86_64GCCqtci-linux-openSUSE-15.6-x86_64-51-e51d7fSccache_UseAddressSanitizer_UseConfigure_WarningsAreErrors/392349cd2ee2c34202d5bf25be00c568a58905ba/forceRun/test_1757151814/log.txt.gz
Integration: https://testresults.qt.io/coin/integration/qt/qt5/tasks/nightly1757151405