[Interest] TSAN findings in a simple QApplication/QMetaObject::invokeMethod example

Alexandru Croitor alexandru.croitor at qt.io
Sat Nov 5 11:32:46 CET 2022


Make sure that the configure summary shown at the end mentions that tsan is enabled. Search for sanitizer.

I think the right configure line is

../qt6/configure -developer-build -opensource -nomake examples -nomake
tests -sanitize thread

From: Interest <interest-bounces at qt-project.org> on behalf of Dennis Luehring <dl.soluz at gmx.net>
Sent: Saturday, November 5, 2022 7:35 AM
To: interest at qt-project.org
Subject: Re: [Interest] TSAN findings in a simple QApplication/QMetaObject::invokeMethod example

Am 03.11.2022 um 23:09 schrieb Thiago Macieira:
> On Thursday, 3 November 2022 11:09:48 PDT Dennis Luehring wrote:
> > do you know a good howto for building Qt 6.4 on Fedora 36 or Ubnuntu
> > 22.04 with TSAN?
> Pass -DFEATURE_sanitize_thread=ON to cmake or -sanitize thread if you're using
> the configure script.

> The vast majority of those findings appear to come from Glib. Most likely, TSan
> is unable to make heads or tails of what's going on. Fortunately, for that
> one, you can simply do an
>       export QT_NO_GLIB=1
> and have Qt use its own event loop, which should improve the results.

doesn't help - same amount of warnings

i've double checked that my example is using my source built of Qt 6.4

my example executable shows a libtsan realtion with ldd

but not in libQt6Core.so and other qt libs in my build qtbase/libs directory - is that correct?

Interest mailing list
Interest at qt-project.org

More information about the Interest mailing list