Details
-
Bug
-
Resolution: Fixed
-
P2: Important
-
6.4, 6.5.1, 6.6.0 Beta2
-
None
-
2
-
ecab68989 (dev), e46c3c3e5 (6.6), 6511fb9b2 (6.5)
-
Foundation Sprint 86
Description
tst_QCborValue throws asan leak errors (log below) in the three mapFromArray~~~ functions. QCborValue::container's created in basic_data() are leaked. Bisecting mapFromArray_template by inserting return;'s, I found that the culprit is the line
// NO LEAK IF RETURNING HERE QTest::ignoreMessage(QtWarningMsg, "Using CBOR array as map forced conversion"); QVERIFY(v2[key].isUndefined()); // LEAK IF RETURNING HERE
The qWarning() is suppressed in more places in tst_QCborValue, but the leak happens only here, and, according to the log, only for complex data types like DateTime, RegEx and Url.
The qWarning() is printed in file-static convertArrayToMap() in qcborvalue.cpp, so I expect the error to be there or near there. The last loop looks, indeed, like it may be faulty. The previous two loops have just moved the existing elements around, which doesn't require a ref-count updata, and detach() should have properly adjusted the ref-counts in both the copy and the in-place cases.
Log:
================================================================= ==600467==ERROR: LeakSanitizer: detected memory leaks Direct leak of 192 byte(s) in 3 object(s) allocated from: #0 0x7f26389a0f37 in operator new(unsigned long) ../../../../gcc/libsanitizer/asan/asan_new_delete.cpp:99 #1 0x7f263274f4c2 in QCborValue::QCborValue(QCborTag, QCborValue const&) /home/marc/Qt/qtbase-submit/src/corelib/serialization/qcborvalue.cpp:1801 #2 0x7f26327535ec in QCborValue::QCborValue(QCborKnownTags, QCborValue const&) /home/marc/Qt/qtbase-submit-build/include/QtCore/../../../qtbase-submit/src/corelib/serialization/qcborvalue.h:125 #3 0x7f26327535ec in QCborValue::QCborValue(QDateTime const&) /home/marc/Qt/qtbase-submit/src/corelib/serialization/qcborvalue.cpp:1833 #4 0x5570fb9aef0d in tst_QCborValue::basics_data() /home/marc/Qt/qtbase-submit/tests/auto/corelib/serialization/qcborvalue/tst_qcborvalue.cpp:268 #5 0x5570fb9b5377 in tst_QCborValue::mapComplexKeys_data() /home/marc/Qt/qtbase-submit/tests/auto/corelib/serialization/qcborvalue/tst_qcborvalue.cpp:77 #6 0x5570fb9b5377 in tst_QCborValue::qt_static_metacall(QObject*, QMetaObject::Call, int, void**) /home/marc/Qt/qtbase-submit-build/tests/auto/corelib/serialization/qcborvalue/tst_qcborvalue_autogen/include/tst_qcborvalue.moc:597 #7 0x7f26326850b4 in QMetaMethodInvoker::invokeImpl(QMetaMethod, void*, Qt::ConnectionType, long long, void const* const*, char const* const*, QtPrivate::QMetaTypeInterface const* const*) /home/marc/Qt/qtbase-submit/src/corelib/kernel/qmetaobject.cpp:2713 #8 0x7f26326948ca in QMetaMethod::invokeImpl(QMetaMethod, void*, Qt::ConnectionType, long long, void const* const*, char const* const*, QtPrivate::QMetaTypeInterface const* const*) /home/marc/Qt/qtbase-submit/src/corelib/kernel/qmetaobject.cpp:2552 #9 0x7f26381e4db3 in std::enable_if<!std::disjunction<>::value, bool>::type QMetaMethod::invoke<>(QObject*, Qt::ConnectionType, QMetaMethodReturnArgument) const /home/marc/Qt/qtbase-submit-build/include/QtCore/../../../qtbase-submit/src/corelib/kernel/qmetaobject.h:148 #10 0x7f26381e4db3 in std::enable_if<!std::disjunction<>::value, bool>::type QMetaMethod::invoke<>(QObject*, Qt::ConnectionType) const /home/marc/Qt/qtbase-submit-build/include/QtCore/../../../qtbase-submit/src/corelib/kernel/qmetaobject.h:160 #11 0x7f26381e4db3 in invokeMethod /home/marc/Qt/qtbase-submit/src/testlib/qtestcase.cpp:546 #12 0x7f263832d5f9 in QTest::TestMethods::invokeTest(int, QLatin1String, QTest::WatchDog*) const /home/marc/Qt/qtbase-submit/src/testlib/qtestcase.cpp:1399 #13 0x7f26383319fb in QTest::TestMethods::invokeTests(QObject*) const /home/marc/Qt/qtbase-submit/src/testlib/qtestcase.cpp:1752 #14 0x7f263837d02c in QTest::qRun() /home/marc/Qt/qtbase-submit/src/testlib/qtestcase.cpp:2365 #15 0x7f2638380553 in QTest::qExec(QObject*, int, char**) /home/marc/Qt/qtbase-submit/src/testlib/qtestcase.cpp:2251 #16 0x5570fb80e6a4 in main /home/marc/Qt/qtbase-submit/tests/auto/corelib/serialization/qcborvalue/tst_qcborvalue.cpp:3082 #17 0x7f262ba16082 in __libc_start_main ../csu/libc-start.c:308 Direct leak of 192 byte(s) in 3 object(s) allocated from: #0 0x7f26389a0f37 in operator new(unsigned long) ../../../../gcc/libsanitizer/asan/asan_new_delete.cpp:99 #1 0x7f263274f4c2 in QCborValue::QCborValue(QCborTag, QCborValue const&) /home/marc/Qt/qtbase-submit/src/corelib/serialization/qcborvalue.cpp:1801 #2 0x7f2632754233 in QCborValue::QCborValue(QCborKnownTags, QCborValue const&) /home/marc/Qt/qtbase-submit-build/include/QtCore/../../../qtbase-submit/src/corelib/serialization/qcborvalue.h:125 #3 0x7f2632754233 in QCborValue::QCborValue(QRegularExpression const&) /home/marc/Qt/qtbase-submit/src/corelib/serialization/qcborvalue.cpp:1872 #4 0x5570fb9af839 in tst_QCborValue::basics_data() /home/marc/Qt/qtbase-submit/tests/auto/corelib/serialization/qcborvalue/tst_qcborvalue.cpp:270 #5 0x5570fb9b5377 in tst_QCborValue::mapComplexKeys_data() /home/marc/Qt/qtbase-submit/tests/auto/corelib/serialization/qcborvalue/tst_qcborvalue.cpp:77 #6 0x5570fb9b5377 in tst_QCborValue::qt_static_metacall(QObject*, QMetaObject::Call, int, void**) /home/marc/Qt/qtbase-submit-build/tests/auto/corelib/serialization/qcborvalue/tst_qcborvalue_autogen/include/tst_qcborvalue.moc:597 #7 0x7f26326850b4 in QMetaMethodInvoker::invokeImpl(QMetaMethod, void*, Qt::ConnectionType, long long, void const* const*, char const* const*, QtPrivate::QMetaTypeInterface const* const*) /home/marc/Qt/qtbase-submit/src/corelib/kernel/qmetaobject.cpp:2713 #8 0x7f26326948ca in QMetaMethod::invokeImpl(QMetaMethod, void*, Qt::ConnectionType, long long, void const* const*, char const* const*, QtPrivate::QMetaTypeInterface const* const*) /home/marc/Qt/qtbase-submit/src/corelib/kernel/qmetaobject.cpp:2552 #9 0x7f26381e4db3 in std::enable_if<!std::disjunction<>::value, bool>::type QMetaMethod::invoke<>(QObject*, Qt::ConnectionType, QMetaMethodReturnArgument) const /home/marc/Qt/qtbase-submit-build/include/QtCore/../../../qtbase-submit/src/corelib/kernel/qmetaobject.h:148 #10 0x7f26381e4db3 in std::enable_if<!std::disjunction<>::value, bool>::type QMetaMethod::invoke<>(QObject*, Qt::ConnectionType) const /home/marc/Qt/qtbase-submit-build/include/QtCore/../../../qtbase-submit/src/corelib/kernel/qmetaobject.h:160 #11 0x7f26381e4db3 in invokeMethod /home/marc/Qt/qtbase-submit/src/testlib/qtestcase.cpp:546 #12 0x7f263832d5f9 in QTest::TestMethods::invokeTest(int, QLatin1String, QTest::WatchDog*) const /home/marc/Qt/qtbase-submit/src/testlib/qtestcase.cpp:1399 #13 0x7f26383319fb in QTest::TestMethods::invokeTests(QObject*) const /home/marc/Qt/qtbase-submit/src/testlib/qtestcase.cpp:1752 #14 0x7f263837d02c in QTest::qRun() /home/marc/Qt/qtbase-submit/src/testlib/qtestcase.cpp:2365 #15 0x7f2638380553 in QTest::qExec(QObject*, int, char**) /home/marc/Qt/qtbase-submit/src/testlib/qtestcase.cpp:2251 #16 0x5570fb80e6a4 in main /home/marc/Qt/qtbase-submit/tests/auto/corelib/serialization/qcborvalue/tst_qcborvalue.cpp:3082 #17 0x7f262ba16082 in __libc_start_main ../csu/libc-start.c:308 Direct leak of 192 byte(s) in 3 object(s) allocated from: #0 0x7f26389a0f37 in operator new(unsigned long) ../../../../gcc/libsanitizer/asan/asan_new_delete.cpp:99 #1 0x7f263274f4c2 in QCborValue::QCborValue(QCborTag, QCborValue const&) /home/marc/Qt/qtbase-submit/src/corelib/serialization/qcborvalue.cpp:1801 #2 0x7f2632754d8f in QCborValue::QCborValue(QCborKnownTags, QCborValue const&) /home/marc/Qt/qtbase-submit-build/include/QtCore/../../../qtbase-submit/src/corelib/serialization/qcborvalue.h:125 #3 0x7f2632754d8f in QCborValue::QCborValue(QUrl const&) /home/marc/Qt/qtbase-submit/src/corelib/serialization/qcborvalue.cpp:1851 #4 0x5570fb9af24a in tst_QCborValue::basics_data() /home/marc/Qt/qtbase-submit/tests/auto/corelib/serialization/qcborvalue/tst_qcborvalue.cpp:269 #5 0x5570fb9b5377 in tst_QCborValue::mapComplexKeys_data() /home/marc/Qt/qtbase-submit/tests/auto/corelib/serialization/qcborvalue/tst_qcborvalue.cpp:77 #6 0x5570fb9b5377 in tst_QCborValue::qt_static_metacall(QObject*, QMetaObject::Call, int, void**) /home/marc/Qt/qtbase-submit-build/tests/auto/corelib/serialization/qcborvalue/tst_qcborvalue_autogen/include/tst_qcborvalue.moc:597 #7 0x7f26326850b4 in QMetaMethodInvoker::invokeImpl(QMetaMethod, void*, Qt::ConnectionType, long long, void const* const*, char const* const*, QtPrivate::QMetaTypeInterface const* const*) /home/marc/Qt/qtbase-submit/src/corelib/kernel/qmetaobject.cpp:2713 #8 0x7f26326948ca in QMetaMethod::invokeImpl(QMetaMethod, void*, Qt::ConnectionType, long long, void const* const*, char const* const*, QtPrivate::QMetaTypeInterface const* const*) /home/marc/Qt/qtbase-submit/src/corelib/kernel/qmetaobject.cpp:2552 #9 0x7f26381e4db3 in std::enable_if<!std::disjunction<>::value, bool>::type QMetaMethod::invoke<>(QObject*, Qt::ConnectionType, QMetaMethodReturnArgument) const /home/marc/Qt/qtbase-submit-build/include/QtCore/../../../qtbase-submit/src/corelib/kernel/qmetaobject.h:148 #10 0x7f26381e4db3 in std::enable_if<!std::disjunction<>::value, bool>::type QMetaMethod::invoke<>(QObject*, Qt::ConnectionType) const /home/marc/Qt/qtbase-submit-build/include/QtCore/../../../qtbase-submit/src/corelib/kernel/qmetaobject.h:160 #11 0x7f26381e4db3 in invokeMethod /home/marc/Qt/qtbase-submit/src/testlib/qtestcase.cpp:546 #12 0x7f263832d5f9 in QTest::TestMethods::invokeTest(int, QLatin1String, QTest::WatchDog*) const /home/marc/Qt/qtbase-submit/src/testlib/qtestcase.cpp:1399 #13 0x7f26383319fb in QTest::TestMethods::invokeTests(QObject*) const /home/marc/Qt/qtbase-submit/src/testlib/qtestcase.cpp:1752 #14 0x7f263837d02c in QTest::qRun() /home/marc/Qt/qtbase-submit/src/testlib/qtestcase.cpp:2365 #15 0x7f2638380553 in QTest::qExec(QObject*, int, char**) /home/marc/Qt/qtbase-submit/src/testlib/qtestcase.cpp:2251 #16 0x5570fb80e6a4 in main /home/marc/Qt/qtbase-submit/tests/auto/corelib/serialization/qcborvalue/tst_qcborvalue.cpp:3082 #17 0x7f262ba16082 in __libc_start_main ../csu/libc-start.c:308 Direct leak of 192 byte(s) in 3 object(s) allocated from: #0 0x7f26389a0f37 in operator new(unsigned long) ../../../../gcc/libsanitizer/asan/asan_new_delete.cpp:99 #1 0x7f263274f4c2 in QCborValue::QCborValue(QCborTag, QCborValue const&) /home/marc/Qt/qtbase-submit/src/corelib/serialization/qcborvalue.cpp:1801 #2 0x7f2632754773 in QCborValue::QCborValue(QCborKnownTags, QCborValue const&) /home/marc/Qt/qtbase-submit-build/include/QtCore/../../../qtbase-submit/src/corelib/serialization/qcborvalue.h:125 #3 0x7f2632754773 in QCborValue::QCborValue(QUuid const&) /home/marc/Qt/qtbase-submit/src/corelib/serialization/qcborvalue.cpp:1890 #4 0x5570fb9afb6a in tst_QCborValue::basics_data() /home/marc/Qt/qtbase-submit/tests/auto/corelib/serialization/qcborvalue/tst_qcborvalue.cpp:271 #5 0x5570fb9b5377 in tst_QCborValue::mapComplexKeys_data() /home/marc/Qt/qtbase-submit/tests/auto/corelib/serialization/qcborvalue/tst_qcborvalue.cpp:77 #6 0x5570fb9b5377 in tst_QCborValue::qt_static_metacall(QObject*, QMetaObject::Call, int, void**) /home/marc/Qt/qtbase-submit-build/tests/auto/corelib/serialization/qcborvalue/tst_qcborvalue_autogen/include/tst_qcborvalue.moc:597 #7 0x7f26326850b4 in QMetaMethodInvoker::invokeImpl(QMetaMethod, void*, Qt::ConnectionType, long long, void const* const*, char const* const*, QtPrivate::QMetaTypeInterface const* const*) /home/marc/Qt/qtbase-submit/src/corelib/kernel/qmetaobject.cpp:2713 #8 0x7f26326948ca in QMetaMethod::invokeImpl(QMetaMethod, void*, Qt::ConnectionType, long long, void const* const*, char const* const*, QtPrivate::QMetaTypeInterface const* const*) /home/marc/Qt/qtbase-submit/src/corelib/kernel/qmetaobject.cpp:2552 #9 0x7f26381e4db3 in std::enable_if<!std::disjunction<>::value, bool>::type QMetaMethod::invoke<>(QObject*, Qt::ConnectionType, QMetaMethodReturnArgument) const /home/marc/Qt/qtbase-submit-build/include/QtCore/../../../qtbase-submit/src/corelib/kernel/qmetaobject.h:148 #10 0x7f26381e4db3 in std::enable_if<!std::disjunction<>::value, bool>::type QMetaMethod::invoke<>(QObject*, Qt::ConnectionType) const /home/marc/Qt/qtbase-submit-build/include/QtCore/../../../qtbase-submit/src/corelib/kernel/qmetaobject.h:160 #11 0x7f26381e4db3 in invokeMethod /home/marc/Qt/qtbase-submit/src/testlib/qtestcase.cpp:546 #12 0x7f263832d5f9 in QTest::TestMethods::invokeTest(int, QLatin1String, QTest::WatchDog*) const /home/marc/Qt/qtbase-submit/src/testlib/qtestcase.cpp:1399 #13 0x7f26383319fb in QTest::TestMethods::invokeTests(QObject*) const /home/marc/Qt/qtbase-submit/src/testlib/qtestcase.cpp:1752 #14 0x7f263837d02c in QTest::qRun() /home/marc/Qt/qtbase-submit/src/testlib/qtestcase.cpp:2365 #15 0x7f2638380553 in QTest::qExec(QObject*, int, char**) /home/marc/Qt/qtbase-submit/src/testlib/qtestcase.cpp:2251 #16 0x5570fb80e6a4 in main /home/marc/Qt/qtbase-submit/tests/auto/corelib/serialization/qcborvalue/tst_qcborvalue.cpp:3082 #17 0x7f262ba16082 in __libc_start_main ../csu/libc-start.c:308 Indirect leak of 198 byte(s) in 3 object(s) allocated from: #0 0x7f263899f7cf in __interceptor_malloc ../../../../gcc/libsanitizer/asan/asan_malloc_linux.cpp:145 #1 0x7f26308d3427 in allocateData /home/marc/Qt/qtbase-submit/src/corelib/tools/qarraydata.cpp:142 #2 0x7f26308d3427 in QArrayData::allocate(QArrayData**, long long, long long, long long, QArrayData::AllocationOption) /home/marc/Qt/qtbase-submit/src/corelib/tools/qarraydata.cpp:191 #3 0x7f2632137ec2 in QTypedArrayData<char>::allocate(long long, QArrayData::AllocationOption) /home/marc/Qt/qtbase-submit-build/include/QtCore/../../../qtbase-submit/src/corelib/tools/qarraydata.h:105 #4 0x7f2632137ec2 in QByteArray::reallocData(long long, QArrayData::AllocationOption) /home/marc/Qt/qtbase-submit/src/corelib/text/qbytearray.cpp:1927 #5 0x7f263213aae7 in QByteArray::resize(long long) /home/marc/Qt/qtbase-submit/src/corelib/text/qbytearray.cpp:1866 #6 0x7f26327421ca in QCborContainerPrivate::addByteData(char const*, long long) /home/marc/Qt/qtbase-submit/src/corelib/serialization/qcborvalue_p.h:126 #7 0x7f26327421ca in operator() /home/marc/Qt/qtbase-submit/src/corelib/serialization/qcborvalue.cpp:773 #8 0x7f26327421ca in convertToExtendedType /home/marc/Qt/qtbase-submit/src/corelib/serialization/qcborvalue.cpp:850 #9 0x7f2632750314 in QCborValue::QCborValue(QCborTag, QCborValue const&) /home/marc/Qt/qtbase-submit/src/corelib/serialization/qcborvalue.cpp:1806 #10 0x7f2632754773 in QCborValue::QCborValue(QCborKnownTags, QCborValue const&) /home/marc/Qt/qtbase-submit-build/include/QtCore/../../../qtbase-submit/src/corelib/serialization/qcborvalue.h:125 #11 0x7f2632754773 in QCborValue::QCborValue(QUuid const&) /home/marc/Qt/qtbase-submit/src/corelib/serialization/qcborvalue.cpp:1890 #12 0x5570fb9afb6a in tst_QCborValue::basics_data() /home/marc/Qt/qtbase-submit/tests/auto/corelib/serialization/qcborvalue/tst_qcborvalue.cpp:271 #13 0x5570fb9b5377 in tst_QCborValue::mapComplexKeys_data() /home/marc/Qt/qtbase-submit/tests/auto/corelib/serialization/qcborvalue/tst_qcborvalue.cpp:77 #14 0x5570fb9b5377 in tst_QCborValue::qt_static_metacall(QObject*, QMetaObject::Call, int, void**) /home/marc/Qt/qtbase-submit-build/tests/auto/corelib/serialization/qcborvalue/tst_qcborvalue_autogen/include/tst_qcborvalue.moc:597 #15 0x7f26326850b4 in QMetaMethodInvoker::invokeImpl(QMetaMethod, void*, Qt::ConnectionType, long long, void const* const*, char const* const*, QtPrivate::QMetaTypeInterface const* const*) /home/marc/Qt/qtbase-submit/src/corelib/kernel/qmetaobject.cpp:2713 #16 0x7f26326948ca in QMetaMethod::invokeImpl(QMetaMethod, void*, Qt::ConnectionType, long long, void const* const*, char const* const*, QtPrivate::QMetaTypeInterface const* const*) /home/marc/Qt/qtbase-submit/src/corelib/kernel/qmetaobject.cpp:2552 #17 0x7f26381e4db3 in std::enable_if<!std::disjunction<>::value, bool>::type QMetaMethod::invoke<>(QObject*, Qt::ConnectionType, QMetaMethodReturnArgument) const /home/marc/Qt/qtbase-submit-build/include/QtCore/../../../qtbase-submit/src/corelib/kernel/qmetaobject.h:148 #18 0x7f26381e4db3 in std::enable_if<!std::disjunction<>::value, bool>::type QMetaMethod::invoke<>(QObject*, Qt::ConnectionType) const /home/marc/Qt/qtbase-submit-build/include/QtCore/../../../qtbase-submit/src/corelib/kernel/qmetaobject.h:160 #19 0x7f26381e4db3 in invokeMethod /home/marc/Qt/qtbase-submit/src/testlib/qtestcase.cpp:546 #20 0x7f263832d5f9 in QTest::TestMethods::invokeTest(int, QLatin1String, QTest::WatchDog*) const /home/marc/Qt/qtbase-submit/src/testlib/qtestcase.cpp:1399 #21 0x7f26383319fb in QTest::TestMethods::invokeTests(QObject*) const /home/marc/Qt/qtbase-submit/src/testlib/qtestcase.cpp:1752 #22 0x7f263837d02c in QTest::qRun() /home/marc/Qt/qtbase-submit/src/testlib/qtestcase.cpp:2365 #23 0x7f2638380553 in QTest::qExec(QObject*, int, char**) /home/marc/Qt/qtbase-submit/src/testlib/qtestcase.cpp:2251 #24 0x5570fb80e6a4 in main /home/marc/Qt/qtbase-submit/tests/auto/corelib/serialization/qcborvalue/tst_qcborvalue.cpp:3082 #25 0x7f262ba16082 in __libc_start_main ../csu/libc-start.c:308 Indirect leak of 198 byte(s) in 3 object(s) allocated from: #0 0x7f263899f7cf in __interceptor_malloc ../../../../gcc/libsanitizer/asan/asan_malloc_linux.cpp:145 #1 0x7f26308d3427 in allocateData /home/marc/Qt/qtbase-submit/src/corelib/tools/qarraydata.cpp:142 #2 0x7f26308d3427 in QArrayData::allocate(QArrayData**, long long, long long, long long, QArrayData::AllocationOption) /home/marc/Qt/qtbase-submit/src/corelib/tools/qarraydata.cpp:191 #3 0x7f2632137ec2 in QTypedArrayData<char>::allocate(long long, QArrayData::AllocationOption) /home/marc/Qt/qtbase-submit-build/include/QtCore/../../../qtbase-submit/src/corelib/tools/qarraydata.h:105 #4 0x7f2632137ec2 in QByteArray::reallocData(long long, QArrayData::AllocationOption) /home/marc/Qt/qtbase-submit/src/corelib/text/qbytearray.cpp:1927 #5 0x7f263213aae7 in QByteArray::resize(long long) /home/marc/Qt/qtbase-submit/src/corelib/text/qbytearray.cpp:1866 #6 0x7f2632448b6b in QCborContainerPrivate::addByteData(char const*, long long) /home/marc/Qt/qtbase-submit/src/corelib/serialization/qcborvalue_p.h:126 #7 0x7f2632448b6b in QCborContainerPrivate::replaceAt_complex(QtCbor::Element&, QCborValue const&, QCborContainerPrivate::ContainerDisposition) /home/marc/Qt/qtbase-submit/src/corelib/serialization/qcborvalue.cpp:1019 #8 0x7f2632d112d2 in QCborContainerPrivate::replaceAt_internal(QtCbor::Element&, QCborValue const&, QCborContainerPrivate::ContainerDisposition) /home/marc/Qt/qtbase-submit/src/corelib/serialization/qcborvalue_p.h:167 #9 0x7f2632d112d2 in QCborContainerPrivate::insertAt(long long, QCborValue const&, QCborContainerPrivate::ContainerDisposition) /home/marc/Qt/qtbase-submit/src/corelib/serialization/qcborvalue_p.h:187 #10 0x7f26327502e0 in QCborContainerPrivate::append(QCborValue const&) /home/marc/Qt/qtbase-submit/src/corelib/serialization/qcborvalue_p.h:243 #11 0x7f26327502e0 in QCborValue::QCborValue(QCborTag, QCborValue const&) /home/marc/Qt/qtbase-submit/src/corelib/serialization/qcborvalue.cpp:1805 #12 0x7f26327535ec in QCborValue::QCborValue(QCborKnownTags, QCborValue const&) /home/marc/Qt/qtbase-submit-build/include/QtCore/../../../qtbase-submit/src/corelib/serialization/qcborvalue.h:125 #13 0x7f26327535ec in QCborValue::QCborValue(QDateTime const&) /home/marc/Qt/qtbase-submit/src/corelib/serialization/qcborvalue.cpp:1833 #14 0x5570fb9aef0d in tst_QCborValue::basics_data() /home/marc/Qt/qtbase-submit/tests/auto/corelib/serialization/qcborvalue/tst_qcborvalue.cpp:268 #15 0x5570fb9b5377 in tst_QCborValue::mapComplexKeys_data() /home/marc/Qt/qtbase-submit/tests/auto/corelib/serialization/qcborvalue/tst_qcborvalue.cpp:77 #16 0x5570fb9b5377 in tst_QCborValue::qt_static_metacall(QObject*, QMetaObject::Call, int, void**) /home/marc/Qt/qtbase-submit-build/tests/auto/corelib/serialization/qcborvalue/tst_qcborvalue_autogen/include/tst_qcborvalue.moc:597 #17 0x7f26326850b4 in QMetaMethodInvoker::invokeImpl(QMetaMethod, void*, Qt::ConnectionType, long long, void const* const*, char const* const*, QtPrivate::QMetaTypeInterface const* const*) /home/marc/Qt/qtbase-submit/src/corelib/kernel/qmetaobject.cpp:2713 #18 0x7f26326948ca in QMetaMethod::invokeImpl(QMetaMethod, void*, Qt::ConnectionType, long long, void const* const*, char const* const*, QtPrivate::QMetaTypeInterface const* const*) /home/marc/Qt/qtbase-submit/src/corelib/kernel/qmetaobject.cpp:2552 #19 0x7f26381e4db3 in std::enable_if<!std::disjunction<>::value, bool>::type QMetaMethod::invoke<>(QObject*, Qt::ConnectionType, QMetaMethodReturnArgument) const /home/marc/Qt/qtbase-submit-build/include/QtCore/../../../qtbase-submit/src/corelib/kernel/qmetaobject.h:148 #20 0x7f26381e4db3 in std::enable_if<!std::disjunction<>::value, bool>::type QMetaMethod::invoke<>(QObject*, Qt::ConnectionType) const /home/marc/Qt/qtbase-submit-build/include/QtCore/../../../qtbase-submit/src/corelib/kernel/qmetaobject.h:160 #21 0x7f26381e4db3 in invokeMethod /home/marc/Qt/qtbase-submit/src/testlib/qtestcase.cpp:546 #22 0x7f263832d5f9 in QTest::TestMethods::invokeTest(int, QLatin1String, QTest::WatchDog*) const /home/marc/Qt/qtbase-submit/src/testlib/qtestcase.cpp:1399 #23 0x7f26383319fb in QTest::TestMethods::invokeTests(QObject*) const /home/marc/Qt/qtbase-submit/src/testlib/qtestcase.cpp:1752 #24 0x7f263837d02c in QTest::qRun() /home/marc/Qt/qtbase-submit/src/testlib/qtestcase.cpp:2365 #25 0x7f2638380553 in QTest::qExec(QObject*, int, char**) /home/marc/Qt/qtbase-submit/src/testlib/qtestcase.cpp:2251 #26 0x5570fb80e6a4 in main /home/marc/Qt/qtbase-submit/tests/auto/corelib/serialization/qcborvalue/tst_qcborvalue.cpp:3082 #27 0x7f262ba16082 in __libc_start_main ../csu/libc-start.c:308 Indirect leak of 198 byte(s) in 3 object(s) allocated from: #0 0x7f263899f7cf in __interceptor_malloc ../../../../gcc/libsanitizer/asan/asan_malloc_linux.cpp:145 #1 0x7f26308d3427 in allocateData /home/marc/Qt/qtbase-submit/src/corelib/tools/qarraydata.cpp:142 #2 0x7f26308d3427 in QArrayData::allocate(QArrayData**, long long, long long, long long, QArrayData::AllocationOption) /home/marc/Qt/qtbase-submit/src/corelib/tools/qarraydata.cpp:191 #3 0x7f2632cf6f02 in QTypedArrayData<QtCbor::Element>::allocate(long long, QArrayData::AllocationOption) /home/marc/Qt/qtbase-submit-build/include/QtCore/../../../qtbase-submit/src/corelib/tools/qarraydata.h:105 #4 0x7f2632cf6f02 in QArrayDataPointer<QtCbor::Element>::allocateGrow(QArrayDataPointer<QtCbor::Element> const&, long long, QArrayData::GrowthPosition) /home/marc/Qt/qtbase-submit-build/include/QtCore/../../../qtbase-submit/src/corelib/tools/qarraydatapointer.h:455 #5 0x7f2632cf6f02 in QArrayDataPointer<QtCbor::Element>::reallocateAndGrow(QArrayData::GrowthPosition, long long, QArrayDataPointer<QtCbor::Element>*) /home/marc/Qt/qtbase-submit-build/include/QtCore/../../../qtbase-submit/src/corelib/tools/qarraydatapointer.h:222 #6 0x7f263274fcde in QArrayDataPointer<QtCbor::Element>::detachAndGrow(QArrayData::GrowthPosition, long long, QtCbor::Element const**, QArrayDataPointer<QtCbor::Element>*) /home/marc/Qt/qtbase-submit-build/include/QtCore/../../../qtbase-submit/src/corelib/tools/qarraydatapointer.h:203 #7 0x7f263274fcde in void QtPrivate::QPodArrayOps<QtCbor::Element>::emplace<QtCbor::Element>(long long, QtCbor::Element&&) /home/marc/Qt/qtbase-submit-build/include/QtCore/../../../qtbase-submit/src/corelib/tools/qarraydataops.h:176 #8 0x7f263274fcde in QtCbor::Element& QList<QtCbor::Element>::emplaceBack<QtCbor::Element>(QtCbor::Element&&) /home/marc/Qt/qtbase-submit-build/include/QtCore/../../../qtbase-submit/src/corelib/tools/qlist.h:877 #9 0x7f263274fcde in QList<QtCbor::Element>::append(QtCbor::Element&&) /home/marc/Qt/qtbase-submit-build/include/QtCore/../../../qtbase-submit/src/corelib/tools/qlist.h:448 #10 0x7f263274fcde in QCborContainerPrivate::append(QCborTag) /home/marc/Qt/qtbase-submit/src/corelib/serialization/qcborvalue_p.h:200 #11 0x7f263274fcde in QCborValue::QCborValue(QCborTag, QCborValue const&) /home/marc/Qt/qtbase-submit/src/corelib/serialization/qcborvalue.cpp:1804 #12 0x7f26327535ec in QCborValue::QCborValue(QCborKnownTags, QCborValue const&) /home/marc/Qt/qtbase-submit-build/include/QtCore/../../../qtbase-submit/src/corelib/serialization/qcborvalue.h:125 #13 0x7f26327535ec in QCborValue::QCborValue(QDateTime const&) /home/marc/Qt/qtbase-submit/src/corelib/serialization/qcborvalue.cpp:1833 #14 0x5570fb9aef0d in tst_QCborValue::basics_data() /home/marc/Qt/qtbase-submit/tests/auto/corelib/serialization/qcborvalue/tst_qcborvalue.cpp:268 #15 0x5570fb9b5377 in tst_QCborValue::mapComplexKeys_data() /home/marc/Qt/qtbase-submit/tests/auto/corelib/serialization/qcborvalue/tst_qcborvalue.cpp:77 #16 0x5570fb9b5377 in tst_QCborValue::qt_static_metacall(QObject*, QMetaObject::Call, int, void**) /home/marc/Qt/qtbase-submit-build/tests/auto/corelib/serialization/qcborvalue/tst_qcborvalue_autogen/include/tst_qcborvalue.moc:597 #17 0x7f26326850b4 in QMetaMethodInvoker::invokeImpl(QMetaMethod, void*, Qt::ConnectionType, long long, void const* const*, char const* const*, QtPrivate::QMetaTypeInterface const* const*) /home/marc/Qt/qtbase-submit/src/corelib/kernel/qmetaobject.cpp:2713 #18 0x7f26326948ca in QMetaMethod::invokeImpl(QMetaMethod, void*, Qt::ConnectionType, long long, void const* const*, char const* const*, QtPrivate::QMetaTypeInterface const* const*) /home/marc/Qt/qtbase-submit/src/corelib/kernel/qmetaobject.cpp:2552 #19 0x7f26381e4db3 in std::enable_if<!std::disjunction<>::value, bool>::type QMetaMethod::invoke<>(QObject*, Qt::ConnectionType, QMetaMethodReturnArgument) const /home/marc/Qt/qtbase-submit-build/include/QtCore/../../../qtbase-submit/src/corelib/kernel/qmetaobject.h:148 #20 0x7f26381e4db3 in std::enable_if<!std::disjunction<>::value, bool>::type QMetaMethod::invoke<>(QObject*, Qt::ConnectionType) const /home/marc/Qt/qtbase-submit-build/include/QtCore/../../../qtbase-submit/src/corelib/kernel/qmetaobject.h:160 #21 0x7f26381e4db3 in invokeMethod /home/marc/Qt/qtbase-submit/src/testlib/qtestcase.cpp:546 #22 0x7f263832d5f9 in QTest::TestMethods::invokeTest(int, QLatin1String, QTest::WatchDog*) const /home/marc/Qt/qtbase-submit/src/testlib/qtestcase.cpp:1399 #23 0x7f26383319fb in QTest::TestMethods::invokeTests(QObject*) const /home/marc/Qt/qtbase-submit/src/testlib/qtestcase.cpp:1752 #24 0x7f263837d02c in QTest::qRun() /home/marc/Qt/qtbase-submit/src/testlib/qtestcase.cpp:2365 #25 0x7f2638380553 in QTest::qExec(QObject*, int, char**) /home/marc/Qt/qtbase-submit/src/testlib/qtestcase.cpp:2251 #26 0x5570fb80e6a4 in main /home/marc/Qt/qtbase-submit/tests/auto/corelib/serialization/qcborvalue/tst_qcborvalue.cpp:3082 #27 0x7f262ba16082 in __libc_start_main ../csu/libc-start.c:308 Indirect leak of 198 byte(s) in 3 object(s) allocated from: #0 0x7f263899f7cf in __interceptor_malloc ../../../../gcc/libsanitizer/asan/asan_malloc_linux.cpp:145 #1 0x7f26308d3427 in allocateData /home/marc/Qt/qtbase-submit/src/corelib/tools/qarraydata.cpp:142 #2 0x7f26308d3427 in QArrayData::allocate(QArrayData**, long long, long long, long long, QArrayData::AllocationOption) /home/marc/Qt/qtbase-submit/src/corelib/tools/qarraydata.cpp:191 #3 0x7f2632cf6f02 in QTypedArrayData<QtCbor::Element>::allocate(long long, QArrayData::AllocationOption) /home/marc/Qt/qtbase-submit-build/include/QtCore/../../../qtbase-submit/src/corelib/tools/qarraydata.h:105 #4 0x7f2632cf6f02 in QArrayDataPointer<QtCbor::Element>::allocateGrow(QArrayDataPointer<QtCbor::Element> const&, long long, QArrayData::GrowthPosition) /home/marc/Qt/qtbase-submit-build/include/QtCore/../../../qtbase-submit/src/corelib/tools/qarraydatapointer.h:455 #5 0x7f2632cf6f02 in QArrayDataPointer<QtCbor::Element>::reallocateAndGrow(QArrayData::GrowthPosition, long long, QArrayDataPointer<QtCbor::Element>*) /home/marc/Qt/qtbase-submit-build/include/QtCore/../../../qtbase-submit/src/corelib/tools/qarraydatapointer.h:222 #6 0x7f263274fcde in QArrayDataPointer<QtCbor::Element>::detachAndGrow(QArrayData::GrowthPosition, long long, QtCbor::Element const**, QArrayDataPointer<QtCbor::Element>*) /home/marc/Qt/qtbase-submit-build/include/QtCore/../../../qtbase-submit/src/corelib/tools/qarraydatapointer.h:203 #7 0x7f263274fcde in void QtPrivate::QPodArrayOps<QtCbor::Element>::emplace<QtCbor::Element>(long long, QtCbor::Element&&) /home/marc/Qt/qtbase-submit-build/include/QtCore/../../../qtbase-submit/src/corelib/tools/qarraydataops.h:176 #8 0x7f263274fcde in QtCbor::Element& QList<QtCbor::Element>::emplaceBack<QtCbor::Element>(QtCbor::Element&&) /home/marc/Qt/qtbase-submit-build/include/QtCore/../../../qtbase-submit/src/corelib/tools/qlist.h:877 #9 0x7f263274fcde in QList<QtCbor::Element>::append(QtCbor::Element&&) /home/marc/Qt/qtbase-submit-build/include/QtCore/../../../qtbase-submit/src/corelib/tools/qlist.h:448 #10 0x7f263274fcde in QCborContainerPrivate::append(QCborTag) /home/marc/Qt/qtbase-submit/src/corelib/serialization/qcborvalue_p.h:200 #11 0x7f263274fcde in QCborValue::QCborValue(QCborTag, QCborValue const&) /home/marc/Qt/qtbase-submit/src/corelib/serialization/qcborvalue.cpp:1804 #12 0x7f2632754233 in QCborValue::QCborValue(QCborKnownTags, QCborValue const&) /home/marc/Qt/qtbase-submit-build/include/QtCore/../../../qtbase-submit/src/corelib/serialization/qcborvalue.h:125 #13 0x7f2632754233 in QCborValue::QCborValue(QRegularExpression const&) /home/marc/Qt/qtbase-submit/src/corelib/serialization/qcborvalue.cpp:1872 #14 0x5570fb9af839 in tst_QCborValue::basics_data() /home/marc/Qt/qtbase-submit/tests/auto/corelib/serialization/qcborvalue/tst_qcborvalue.cpp:270 #15 0x5570fb9b5377 in tst_QCborValue::mapComplexKeys_data() /home/marc/Qt/qtbase-submit/tests/auto/corelib/serialization/qcborvalue/tst_qcborvalue.cpp:77 #16 0x5570fb9b5377 in tst_QCborValue::qt_static_metacall(QObject*, QMetaObject::Call, int, void**) /home/marc/Qt/qtbase-submit-build/tests/auto/corelib/serialization/qcborvalue/tst_qcborvalue_autogen/include/tst_qcborvalue.moc:597 #17 0x7f26326850b4 in QMetaMethodInvoker::invokeImpl(QMetaMethod, void*, Qt::ConnectionType, long long, void const* const*, char const* const*, QtPrivate::QMetaTypeInterface const* const*) /home/marc/Qt/qtbase-submit/src/corelib/kernel/qmetaobject.cpp:2713 #18 0x7f26326948ca in QMetaMethod::invokeImpl(QMetaMethod, void*, Qt::ConnectionType, long long, void const* const*, char const* const*, QtPrivate::QMetaTypeInterface const* const*) /home/marc/Qt/qtbase-submit/src/corelib/kernel/qmetaobject.cpp:2552 #19 0x7f26381e4db3 in std::enable_if<!std::disjunction<>::value, bool>::type QMetaMethod::invoke<>(QObject*, Qt::ConnectionType, QMetaMethodReturnArgument) const /home/marc/Qt/qtbase-submit-build/include/QtCore/../../../qtbase-submit/src/corelib/kernel/qmetaobject.h:148 #20 0x7f26381e4db3 in std::enable_if<!std::disjunction<>::value, bool>::type QMetaMethod::invoke<>(QObject*, Qt::ConnectionType) const /home/marc/Qt/qtbase-submit-build/include/QtCore/../../../qtbase-submit/src/corelib/kernel/qmetaobject.h:160 #21 0x7f26381e4db3 in invokeMethod /home/marc/Qt/qtbase-submit/src/testlib/qtestcase.cpp:546 #22 0x7f263832d5f9 in QTest::TestMethods::invokeTest(int, QLatin1String, QTest::WatchDog*) const /home/marc/Qt/qtbase-submit/src/testlib/qtestcase.cpp:1399 #23 0x7f26383319fb in QTest::TestMethods::invokeTests(QObject*) const /home/marc/Qt/qtbase-submit/src/testlib/qtestcase.cpp:1752 #24 0x7f263837d02c in QTest::qRun() /home/marc/Qt/qtbase-submit/src/testlib/qtestcase.cpp:2365 #25 0x7f2638380553 in QTest::qExec(QObject*, int, char**) /home/marc/Qt/qtbase-submit/src/testlib/qtestcase.cpp:2251 #26 0x5570fb80e6a4 in main /home/marc/Qt/qtbase-submit/tests/auto/corelib/serialization/qcborvalue/tst_qcborvalue.cpp:3082 #27 0x7f262ba16082 in __libc_start_main ../csu/libc-start.c:308 Indirect leak of 198 byte(s) in 3 object(s) allocated from: #0 0x7f263899f7cf in __interceptor_malloc ../../../../gcc/libsanitizer/asan/asan_malloc_linux.cpp:145 #1 0x7f26308d3427 in allocateData /home/marc/Qt/qtbase-submit/src/corelib/tools/qarraydata.cpp:142 #2 0x7f26308d3427 in QArrayData::allocate(QArrayData**, long long, long long, long long, QArrayData::AllocationOption) /home/marc/Qt/qtbase-submit/src/corelib/tools/qarraydata.cpp:191 #3 0x7f2632137ec2 in QTypedArrayData<char>::allocate(long long, QArrayData::AllocationOption) /home/marc/Qt/qtbase-submit-build/include/QtCore/../../../qtbase-submit/src/corelib/tools/qarraydata.h:105 #4 0x7f2632137ec2 in QByteArray::reallocData(long long, QArrayData::AllocationOption) /home/marc/Qt/qtbase-submit/src/corelib/text/qbytearray.cpp:1927 #5 0x7f263213aae7 in QByteArray::resize(long long) /home/marc/Qt/qtbase-submit/src/corelib/text/qbytearray.cpp:1866 #6 0x7f2632448b6b in QCborContainerPrivate::addByteData(char const*, long long) /home/marc/Qt/qtbase-submit/src/corelib/serialization/qcborvalue_p.h:126 #7 0x7f2632448b6b in QCborContainerPrivate::replaceAt_complex(QtCbor::Element&, QCborValue const&, QCborContainerPrivate::ContainerDisposition) /home/marc/Qt/qtbase-submit/src/corelib/serialization/qcborvalue.cpp:1019 #8 0x7f2632d112d2 in QCborContainerPrivate::replaceAt_internal(QtCbor::Element&, QCborValue const&, QCborContainerPrivate::ContainerDisposition) /home/marc/Qt/qtbase-submit/src/corelib/serialization/qcborvalue_p.h:167 #9 0x7f2632d112d2 in QCborContainerPrivate::insertAt(long long, QCborValue const&, QCborContainerPrivate::ContainerDisposition) /home/marc/Qt/qtbase-submit/src/corelib/serialization/qcborvalue_p.h:187 #10 0x7f26327502e0 in QCborContainerPrivate::append(QCborValue const&) /home/marc/Qt/qtbase-submit/src/corelib/serialization/qcborvalue_p.h:243 #11 0x7f26327502e0 in QCborValue::QCborValue(QCborTag, QCborValue const&) /home/marc/Qt/qtbase-submit/src/corelib/serialization/qcborvalue.cpp:1805 #12 0x7f2632754d8f in QCborValue::QCborValue(QCborKnownTags, QCborValue const&) /home/marc/Qt/qtbase-submit-build/include/QtCore/../../../qtbase-submit/src/corelib/serialization/qcborvalue.h:125 #13 0x7f2632754d8f in QCborValue::QCborValue(QUrl const&) /home/marc/Qt/qtbase-submit/src/corelib/serialization/qcborvalue.cpp:1851 #14 0x5570fb9af24a in tst_QCborValue::basics_data() /home/marc/Qt/qtbase-submit/tests/auto/corelib/serialization/qcborvalue/tst_qcborvalue.cpp:269 #15 0x5570fb9b5377 in tst_QCborValue::mapComplexKeys_data() /home/marc/Qt/qtbase-submit/tests/auto/corelib/serialization/qcborvalue/tst_qcborvalue.cpp:77 #16 0x5570fb9b5377 in tst_QCborValue::qt_static_metacall(QObject*, QMetaObject::Call, int, void**) /home/marc/Qt/qtbase-submit-build/tests/auto/corelib/serialization/qcborvalue/tst_qcborvalue_autogen/include/tst_qcborvalue.moc:597 #17 0x7f26326850b4 in QMetaMethodInvoker::invokeImpl(QMetaMethod, void*, Qt::ConnectionType, long long, void const* const*, char const* const*, QtPrivate::QMetaTypeInterface const* const*) /home/marc/Qt/qtbase-submit/src/corelib/kernel/qmetaobject.cpp:2713 #18 0x7f26326948ca in QMetaMethod::invokeImpl(QMetaMethod, void*, Qt::ConnectionType, long long, void const* const*, char const* const*, QtPrivate::QMetaTypeInterface const* const*) /home/marc/Qt/qtbase-submit/src/corelib/kernel/qmetaobject.cpp:2552 #19 0x7f26381e4db3 in std::enable_if<!std::disjunction<>::value, bool>::type QMetaMethod::invoke<>(QObject*, Qt::ConnectionType, QMetaMethodReturnArgument) const /home/marc/Qt/qtbase-submit-build/include/QtCore/../../../qtbase-submit/src/corelib/kernel/qmetaobject.h:148 #20 0x7f26381e4db3 in std::enable_if<!std::disjunction<>::value, bool>::type QMetaMethod::invoke<>(QObject*, Qt::ConnectionType) const /home/marc/Qt/qtbase-submit-build/include/QtCore/../../../qtbase-submit/src/corelib/kernel/qmetaobject.h:160 #21 0x7f26381e4db3 in invokeMethod /home/marc/Qt/qtbase-submit/src/testlib/qtestcase.cpp:546 #22 0x7f263832d5f9 in QTest::TestMethods::invokeTest(int, QLatin1String, QTest::WatchDog*) const /home/marc/Qt/qtbase-submit/src/testlib/qtestcase.cpp:1399 #23 0x7f26383319fb in QTest::TestMethods::invokeTests(QObject*) const /home/marc/Qt/qtbase-submit/src/testlib/qtestcase.cpp:1752 #24 0x7f263837d02c in QTest::qRun() /home/marc/Qt/qtbase-submit/src/testlib/qtestcase.cpp:2365 #25 0x7f2638380553 in QTest::qExec(QObject*, int, char**) /home/marc/Qt/qtbase-submit/src/testlib/qtestcase.cpp:2251 #26 0x5570fb80e6a4 in main /home/marc/Qt/qtbase-submit/tests/auto/corelib/serialization/qcborvalue/tst_qcborvalue.cpp:3082 #27 0x7f262ba16082 in __libc_start_main ../csu/libc-start.c:308 Indirect leak of 198 byte(s) in 3 object(s) allocated from: #0 0x7f263899f7cf in __interceptor_malloc ../../../../gcc/libsanitizer/asan/asan_malloc_linux.cpp:145 #1 0x7f26308d3427 in allocateData /home/marc/Qt/qtbase-submit/src/corelib/tools/qarraydata.cpp:142 #2 0x7f26308d3427 in QArrayData::allocate(QArrayData**, long long, long long, long long, QArrayData::AllocationOption) /home/marc/Qt/qtbase-submit/src/corelib/tools/qarraydata.cpp:191 #3 0x7f2632cf6f02 in QTypedArrayData<QtCbor::Element>::allocate(long long, QArrayData::AllocationOption) /home/marc/Qt/qtbase-submit-build/include/QtCore/../../../qtbase-submit/src/corelib/tools/qarraydata.h:105 #4 0x7f2632cf6f02 in QArrayDataPointer<QtCbor::Element>::allocateGrow(QArrayDataPointer<QtCbor::Element> const&, long long, QArrayData::GrowthPosition) /home/marc/Qt/qtbase-submit-build/include/QtCore/../../../qtbase-submit/src/corelib/tools/qarraydatapointer.h:455 #5 0x7f2632cf6f02 in QArrayDataPointer<QtCbor::Element>::reallocateAndGrow(QArrayData::GrowthPosition, long long, QArrayDataPointer<QtCbor::Element>*) /home/marc/Qt/qtbase-submit-build/include/QtCore/../../../qtbase-submit/src/corelib/tools/qarraydatapointer.h:222 #6 0x7f263274fcde in QArrayDataPointer<QtCbor::Element>::detachAndGrow(QArrayData::GrowthPosition, long long, QtCbor::Element const**, QArrayDataPointer<QtCbor::Element>*) /home/marc/Qt/qtbase-submit-build/include/QtCore/../../../qtbase-submit/src/corelib/tools/qarraydatapointer.h:203 #7 0x7f263274fcde in void QtPrivate::QPodArrayOps<QtCbor::Element>::emplace<QtCbor::Element>(long long, QtCbor::Element&&) /home/marc/Qt/qtbase-submit-build/include/QtCore/../../../qtbase-submit/src/corelib/tools/qarraydataops.h:176 #8 0x7f263274fcde in QtCbor::Element& QList<QtCbor::Element>::emplaceBack<QtCbor::Element>(QtCbor::Element&&) /home/marc/Qt/qtbase-submit-build/include/QtCore/../../../qtbase-submit/src/corelib/tools/qlist.h:877 #9 0x7f263274fcde in QList<QtCbor::Element>::append(QtCbor::Element&&) /home/marc/Qt/qtbase-submit-build/include/QtCore/../../../qtbase-submit/src/corelib/tools/qlist.h:448 #10 0x7f263274fcde in QCborContainerPrivate::append(QCborTag) /home/marc/Qt/qtbase-submit/src/corelib/serialization/qcborvalue_p.h:200 #11 0x7f263274fcde in QCborValue::QCborValue(QCborTag, QCborValue const&) /home/marc/Qt/qtbase-submit/src/corelib/serialization/qcborvalue.cpp:1804 #12 0x7f2632754773 in QCborValue::QCborValue(QCborKnownTags, QCborValue const&) /home/marc/Qt/qtbase-submit-build/include/QtCore/../../../qtbase-submit/src/corelib/serialization/qcborvalue.h:125 #13 0x7f2632754773 in QCborValue::QCborValue(QUuid const&) /home/marc/Qt/qtbase-submit/src/corelib/serialization/qcborvalue.cpp:1890 #14 0x5570fb9afb6a in tst_QCborValue::basics_data() /home/marc/Qt/qtbase-submit/tests/auto/corelib/serialization/qcborvalue/tst_qcborvalue.cpp:271 #15 0x5570fb9b5377 in tst_QCborValue::mapComplexKeys_data() /home/marc/Qt/qtbase-submit/tests/auto/corelib/serialization/qcborvalue/tst_qcborvalue.cpp:77 #16 0x5570fb9b5377 in tst_QCborValue::qt_static_metacall(QObject*, QMetaObject::Call, int, void**) /home/marc/Qt/qtbase-submit-build/tests/auto/corelib/serialization/qcborvalue/tst_qcborvalue_autogen/include/tst_qcborvalue.moc:597 #17 0x7f26326850b4 in QMetaMethodInvoker::invokeImpl(QMetaMethod, void*, Qt::ConnectionType, long long, void const* const*, char const* const*, QtPrivate::QMetaTypeInterface const* const*) /home/marc/Qt/qtbase-submit/src/corelib/kernel/qmetaobject.cpp:2713 #18 0x7f26326948ca in QMetaMethod::invokeImpl(QMetaMethod, void*, Qt::ConnectionType, long long, void const* const*, char const* const*, QtPrivate::QMetaTypeInterface const* const*) /home/marc/Qt/qtbase-submit/src/corelib/kernel/qmetaobject.cpp:2552 #19 0x7f26381e4db3 in std::enable_if<!std::disjunction<>::value, bool>::type QMetaMethod::invoke<>(QObject*, Qt::ConnectionType, QMetaMethodReturnArgument) const /home/marc/Qt/qtbase-submit-build/include/QtCore/../../../qtbase-submit/src/corelib/kernel/qmetaobject.h:148 #20 0x7f26381e4db3 in std::enable_if<!std::disjunction<>::value, bool>::type QMetaMethod::invoke<>(QObject*, Qt::ConnectionType) const /home/marc/Qt/qtbase-submit-build/include/QtCore/../../../qtbase-submit/src/corelib/kernel/qmetaobject.h:160 #21 0x7f26381e4db3 in invokeMethod /home/marc/Qt/qtbase-submit/src/testlib/qtestcase.cpp:546 #22 0x7f263832d5f9 in QTest::TestMethods::invokeTest(int, QLatin1String, QTest::WatchDog*) const /home/marc/Qt/qtbase-submit/src/testlib/qtestcase.cpp:1399 #23 0x7f26383319fb in QTest::TestMethods::invokeTests(QObject*) const /home/marc/Qt/qtbase-submit/src/testlib/qtestcase.cpp:1752 #24 0x7f263837d02c in QTest::qRun() /home/marc/Qt/qtbase-submit/src/testlib/qtestcase.cpp:2365 #25 0x7f2638380553 in QTest::qExec(QObject*, int, char**) /home/marc/Qt/qtbase-submit/src/testlib/qtestcase.cpp:2251 #26 0x5570fb80e6a4 in main /home/marc/Qt/qtbase-submit/tests/auto/corelib/serialization/qcborvalue/tst_qcborvalue.cpp:3082 #27 0x7f262ba16082 in __libc_start_main ../csu/libc-start.c:308 Indirect leak of 198 byte(s) in 3 object(s) allocated from: #0 0x7f263899f7cf in __interceptor_malloc ../../../../gcc/libsanitizer/asan/asan_malloc_linux.cpp:145 #1 0x7f26308d3427 in allocateData /home/marc/Qt/qtbase-submit/src/corelib/tools/qarraydata.cpp:142 #2 0x7f26308d3427 in QArrayData::allocate(QArrayData**, long long, long long, long long, QArrayData::AllocationOption) /home/marc/Qt/qtbase-submit/src/corelib/tools/qarraydata.cpp:191 #3 0x7f2632cf6f02 in QTypedArrayData<QtCbor::Element>::allocate(long long, QArrayData::AllocationOption) /home/marc/Qt/qtbase-submit-build/include/QtCore/../../../qtbase-submit/src/corelib/tools/qarraydata.h:105 #4 0x7f2632cf6f02 in QArrayDataPointer<QtCbor::Element>::allocateGrow(QArrayDataPointer<QtCbor::Element> const&, long long, QArrayData::GrowthPosition) /home/marc/Qt/qtbase-submit-build/include/QtCore/../../../qtbase-submit/src/corelib/tools/qarraydatapointer.h:455 #5 0x7f2632cf6f02 in QArrayDataPointer<QtCbor::Element>::reallocateAndGrow(QArrayData::GrowthPosition, long long, QArrayDataPointer<QtCbor::Element>*) /home/marc/Qt/qtbase-submit-build/include/QtCore/../../../qtbase-submit/src/corelib/tools/qarraydatapointer.h:222 #6 0x7f263274fcde in QArrayDataPointer<QtCbor::Element>::detachAndGrow(QArrayData::GrowthPosition, long long, QtCbor::Element const**, QArrayDataPointer<QtCbor::Element>*) /home/marc/Qt/qtbase-submit-build/include/QtCore/../../../qtbase-submit/src/corelib/tools/qarraydatapointer.h:203 #7 0x7f263274fcde in void QtPrivate::QPodArrayOps<QtCbor::Element>::emplace<QtCbor::Element>(long long, QtCbor::Element&&) /home/marc/Qt/qtbase-submit-build/include/QtCore/../../../qtbase-submit/src/corelib/tools/qarraydataops.h:176 #8 0x7f263274fcde in QtCbor::Element& QList<QtCbor::Element>::emplaceBack<QtCbor::Element>(QtCbor::Element&&) /home/marc/Qt/qtbase-submit-build/include/QtCore/../../../qtbase-submit/src/corelib/tools/qlist.h:877 #9 0x7f263274fcde in QList<QtCbor::Element>::append(QtCbor::Element&&) /home/marc/Qt/qtbase-submit-build/include/QtCore/../../../qtbase-submit/src/corelib/tools/qlist.h:448 #10 0x7f263274fcde in QCborContainerPrivate::append(QCborTag) /home/marc/Qt/qtbase-submit/src/corelib/serialization/qcborvalue_p.h:200 #11 0x7f263274fcde in QCborValue::QCborValue(QCborTag, QCborValue const&) /home/marc/Qt/qtbase-submit/src/corelib/serialization/qcborvalue.cpp:1804 #12 0x7f2632754d8f in QCborValue::QCborValue(QCborKnownTags, QCborValue const&) /home/marc/Qt/qtbase-submit-build/include/QtCore/../../../qtbase-submit/src/corelib/serialization/qcborvalue.h:125 #13 0x7f2632754d8f in QCborValue::QCborValue(QUrl const&) /home/marc/Qt/qtbase-submit/src/corelib/serialization/qcborvalue.cpp:1851 #14 0x5570fb9af24a in tst_QCborValue::basics_data() /home/marc/Qt/qtbase-submit/tests/auto/corelib/serialization/qcborvalue/tst_qcborvalue.cpp:269 #15 0x5570fb9b5377 in tst_QCborValue::mapComplexKeys_data() /home/marc/Qt/qtbase-submit/tests/auto/corelib/serialization/qcborvalue/tst_qcborvalue.cpp:77 #16 0x5570fb9b5377 in tst_QCborValue::qt_static_metacall(QObject*, QMetaObject::Call, int, void**) /home/marc/Qt/qtbase-submit-build/tests/auto/corelib/serialization/qcborvalue/tst_qcborvalue_autogen/include/tst_qcborvalue.moc:597 #17 0x7f26326850b4 in QMetaMethodInvoker::invokeImpl(QMetaMethod, void*, Qt::ConnectionType, long long, void const* const*, char const* const*, QtPrivate::QMetaTypeInterface const* const*) /home/marc/Qt/qtbase-submit/src/corelib/kernel/qmetaobject.cpp:2713 #18 0x7f26326948ca in QMetaMethod::invokeImpl(QMetaMethod, void*, Qt::ConnectionType, long long, void const* const*, char const* const*, QtPrivate::QMetaTypeInterface const* const*) /home/marc/Qt/qtbase-submit/src/corelib/kernel/qmetaobject.cpp:2552 #19 0x7f26381e4db3 in std::enable_if<!std::disjunction<>::value, bool>::type QMetaMethod::invoke<>(QObject*, Qt::ConnectionType, QMetaMethodReturnArgument) const /home/marc/Qt/qtbase-submit-build/include/QtCore/../../../qtbase-submit/src/corelib/kernel/qmetaobject.h:148 #20 0x7f26381e4db3 in std::enable_if<!std::disjunction<>::value, bool>::type QMetaMethod::invoke<>(QObject*, Qt::ConnectionType) const /home/marc/Qt/qtbase-submit-build/include/QtCore/../../../qtbase-submit/src/corelib/kernel/qmetaobject.h:160 #21 0x7f26381e4db3 in invokeMethod /home/marc/Qt/qtbase-submit/src/testlib/qtestcase.cpp:546 #22 0x7f263832d5f9 in QTest::TestMethods::invokeTest(int, QLatin1String, QTest::WatchDog*) const /home/marc/Qt/qtbase-submit/src/testlib/qtestcase.cpp:1399 #23 0x7f26383319fb in QTest::TestMethods::invokeTests(QObject*) const /home/marc/Qt/qtbase-submit/src/testlib/qtestcase.cpp:1752 #24 0x7f263837d02c in QTest::qRun() /home/marc/Qt/qtbase-submit/src/testlib/qtestcase.cpp:2365 #25 0x7f2638380553 in QTest::qExec(QObject*, int, char**) /home/marc/Qt/qtbase-submit/src/testlib/qtestcase.cpp:2251 #26 0x5570fb80e6a4 in main /home/marc/Qt/qtbase-submit/tests/auto/corelib/serialization/qcborvalue/tst_qcborvalue.cpp:3082 #27 0x7f262ba16082 in __libc_start_main ../csu/libc-start.c:308 Indirect leak of 102 byte(s) in 3 object(s) allocated from: #0 0x7f263899f7cf in __interceptor_malloc ../../../../gcc/libsanitizer/asan/asan_malloc_linux.cpp:145 #1 0x7f26308d3427 in allocateData /home/marc/Qt/qtbase-submit/src/corelib/tools/qarraydata.cpp:142 #2 0x7f26308d3427 in QArrayData::allocate(QArrayData**, long long, long long, long long, QArrayData::AllocationOption) /home/marc/Qt/qtbase-submit/src/corelib/tools/qarraydata.cpp:191 #3 0x7f2632137ec2 in QTypedArrayData<char>::allocate(long long, QArrayData::AllocationOption) /home/marc/Qt/qtbase-submit-build/include/QtCore/../../../qtbase-submit/src/corelib/tools/qarraydata.h:105 #4 0x7f2632137ec2 in QByteArray::reallocData(long long, QArrayData::AllocationOption) /home/marc/Qt/qtbase-submit/src/corelib/text/qbytearray.cpp:1927 #5 0x7f263213aae7 in QByteArray::resize(long long) /home/marc/Qt/qtbase-submit/src/corelib/text/qbytearray.cpp:1866 #6 0x7f2632448b6b in QCborContainerPrivate::addByteData(char const*, long long) /home/marc/Qt/qtbase-submit/src/corelib/serialization/qcborvalue_p.h:126 #7 0x7f2632448b6b in QCborContainerPrivate::replaceAt_complex(QtCbor::Element&, QCborValue const&, QCborContainerPrivate::ContainerDisposition) /home/marc/Qt/qtbase-submit/src/corelib/serialization/qcborvalue.cpp:1019 #8 0x7f2632d112d2 in QCborContainerPrivate::replaceAt_internal(QtCbor::Element&, QCborValue const&, QCborContainerPrivate::ContainerDisposition) /home/marc/Qt/qtbase-submit/src/corelib/serialization/qcborvalue_p.h:167 #9 0x7f2632d112d2 in QCborContainerPrivate::insertAt(long long, QCborValue const&, QCborContainerPrivate::ContainerDisposition) /home/marc/Qt/qtbase-submit/src/corelib/serialization/qcborvalue_p.h:187 #10 0x7f26327502e0 in QCborContainerPrivate::append(QCborValue const&) /home/marc/Qt/qtbase-submit/src/corelib/serialization/qcborvalue_p.h:243 #11 0x7f26327502e0 in QCborValue::QCborValue(QCborTag, QCborValue const&) /home/marc/Qt/qtbase-submit/src/corelib/serialization/qcborvalue.cpp:1805 #12 0x7f2632754233 in QCborValue::QCborValue(QCborKnownTags, QCborValue const&) /home/marc/Qt/qtbase-submit-build/include/QtCore/../../../qtbase-submit/src/corelib/serialization/qcborvalue.h:125 #13 0x7f2632754233 in QCborValue::QCborValue(QRegularExpression const&) /home/marc/Qt/qtbase-submit/src/corelib/serialization/qcborvalue.cpp:1872 #14 0x5570fb9af839 in tst_QCborValue::basics_data() /home/marc/Qt/qtbase-submit/tests/auto/corelib/serialization/qcborvalue/tst_qcborvalue.cpp:270 #15 0x5570fb9b5377 in tst_QCborValue::mapComplexKeys_data() /home/marc/Qt/qtbase-submit/tests/auto/corelib/serialization/qcborvalue/tst_qcborvalue.cpp:77 #16 0x5570fb9b5377 in tst_QCborValue::qt_static_metacall(QObject*, QMetaObject::Call, int, void**) /home/marc/Qt/qtbase-submit-build/tests/auto/corelib/serialization/qcborvalue/tst_qcborvalue_autogen/include/tst_qcborvalue.moc:597 #17 0x7f26326850b4 in QMetaMethodInvoker::invokeImpl(QMetaMethod, void*, Qt::ConnectionType, long long, void const* const*, char const* const*, QtPrivate::QMetaTypeInterface const* const*) /home/marc/Qt/qtbase-submit/src/corelib/kernel/qmetaobject.cpp:2713 #18 0x7f26326948ca in QMetaMethod::invokeImpl(QMetaMethod, void*, Qt::ConnectionType, long long, void const* const*, char const* const*, QtPrivate::QMetaTypeInterface const* const*) /home/marc/Qt/qtbase-submit/src/corelib/kernel/qmetaobject.cpp:2552 #19 0x7f26381e4db3 in std::enable_if<!std::disjunction<>::value, bool>::type QMetaMethod::invoke<>(QObject*, Qt::ConnectionType, QMetaMethodReturnArgument) const /home/marc/Qt/qtbase-submit-build/include/QtCore/../../../qtbase-submit/src/corelib/kernel/qmetaobject.h:148 #20 0x7f26381e4db3 in std::enable_if<!std::disjunction<>::value, bool>::type QMetaMethod::invoke<>(QObject*, Qt::ConnectionType) const /home/marc/Qt/qtbase-submit-build/include/QtCore/../../../qtbase-submit/src/corelib/kernel/qmetaobject.h:160 #21 0x7f26381e4db3 in invokeMethod /home/marc/Qt/qtbase-submit/src/testlib/qtestcase.cpp:546 #22 0x7f263832d5f9 in QTest::TestMethods::invokeTest(int, QLatin1String, QTest::WatchDog*) const /home/marc/Qt/qtbase-submit/src/testlib/qtestcase.cpp:1399 #23 0x7f26383319fb in QTest::TestMethods::invokeTests(QObject*) const /home/marc/Qt/qtbase-submit/src/testlib/qtestcase.cpp:1752 #24 0x7f263837d02c in QTest::qRun() /home/marc/Qt/qtbase-submit/src/testlib/qtestcase.cpp:2365 #25 0x7f2638380553 in QTest::qExec(QObject*, int, char**) /home/marc/Qt/qtbase-submit/src/testlib/qtestcase.cpp:2251 #26 0x5570fb80e6a4 in main /home/marc/Qt/qtbase-submit/tests/auto/corelib/serialization/qcborvalue/tst_qcborvalue.cpp:3082 #27 0x7f262ba16082 in __libc_start_main ../csu/libc-start.c:308 SUMMARY: AddressSanitizer: 2256 byte(s) leaked in 36 allocation(s).