[Development] CI failing due to ASan tst_selftest
Ahmad Samir
a.samirh78 at gmail.com
Tue Sep 5 13:43:52 CEST 2023
On 27/8/23 05:36, Thiago Macieira wrote:
> See https://testresults.qt.io/coin/integration/qt/qtbase/tasks/1698516419
>
[...]
Looking at this log:
==19313==ERROR: LeakSanitizer: detected memory leaks
agent:2023/08/26 21:36:18 build.go:405: 3:
agent:2023/08/26 21:36:18 build.go:405: 3: Direct leak of 258 byte(s) in 1
object(s) allocated from:
agent:2023/08/26 21:36:18 build.go:405: 3: #0 0x7ffa505c8e48 in
__interceptor_malloc (/usr/lib64/libasan.so.5+0x109e48)
agent:2023/08/26 21:36:18 build.go:405: 3: #1 0x7ffa4f2d7ff9
(/home/qt/work/install/lib/libQt6Core.so.6+0x896ff9)
agent:2023/08/26 21:36:18 build.go:405: 3: #2 0x7ffa4f2d834d in
QArrayData::allocate(QArrayData**, long long, long long, long long,
QArrayData::AllocationOption) (/home/qt/work/install/lib/libQt6Core.so.6+0x89734d)
agent:2023/08/26 21:36:18 build.go:405: 3: #3 0x7ffa4f23b700
(/home/qt/work/install/lib/libQt6Core.so.6+0x7fa700)
agent:2023/08/26 21:36:18 build.go:405: 3: #4 0x7ffa4f1f6cc8 in
QString::reallocData(long long, QArrayData::AllocationOption)
(/home/qt/work/install/lib/libQt6Core.so.6+0x7b5cc8)
agent:2023/08/26 21:36:18 build.go:405: 3: #5 0x7ffa4f1f68a7 in
QString::resize(long long) (/home/qt/work/install/lib/libQt6Core.so.6+0x7b58a7)
agent:2023/08/26 21:36:18 build.go:405: 3: #6 0x7ffa4f2092ff
(/home/qt/work/install/lib/libQt6Core.so.6+0x7c82ff)
agent:2023/08/26 21:36:18 build.go:405: 3: #7 0x7ffa4f209e09 in
QString::vasprintf(char const*, __va_list_tag*)
(/home/qt/work/install/lib/libQt6Core.so.6+0x7c8e09)
agent:2023/08/26 21:36:18 build.go:405: 3: #8 0x7ffa4ed0d83d
(/home/qt/work/install/lib/libQt6Core.so.6+0x2cc83d)
agent:2023/08/26 21:36:18 build.go:405: 3: #9 0x7ffa4ed114a9 in
QMessageLogger::fatal(char const*, ...) const
(/home/qt/work/install/lib/libQt6Core.so.6+0x2d04a9)
agent:2023/08/26 21:36:18 build.go:405: 3: #10 0x5641d2604c40 in
tst_Silent::messages()
/home/qt/work/qt/qtbase/tests/auto/testlib/selftests/silent/tst_silent.cpp:77
I see the same issue locally, so I used `git bisect`, which showed it's because in
`checkErrorOutput(const QString &test, const QByteArray &errorOutput)` in
tst_selftests.cpp, the code should return early for "silent" test, because the
latter calls qFatal, that doesn't seem to happen on Linux any more.
Regards,
Ahmad Samir
-------------- next part --------------
A non-text attachment was scrubbed...
Name: OpenPGP_signature
Type: application/pgp-signature
Size: 236 bytes
Desc: OpenPGP digital signature
URL: <http://lists.qt-project.org/pipermail/development/attachments/20230905/76d76d9d/attachment.sig>
More information about the Development
mailing list