[Interest] Will TSAN_OPTIONS=detect_deadlocks=1 work when Qt is compiled with -sanitize thread?
Nuno Santos
nuno.santos at imaginando.pt
Fri Jul 19 11:02:33 CEST 2024
Dennis,
I don’t know but this is what happens. Look in the second line the bolded part:
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++ -c -pipe -stdlib=libc++ -O2 -std=gnu++1z -arch arm64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.2.sdk -mmacosx-version-min=11.0 -fsanitize=thread -fno-omit-frame-pointer -
My problem is that on desktop this deadlock is not reproducible. It happens mostly on iOS and apparently the sanitiser is not available for iOS:
clang: error: unsupported option '-fsanitize=thread' for target 'arm64-apple-darwin23.4.0’
Does anyone have alternatives?
Thank you in advance!
Best,
Nuno
> On 19 Jul 2024, at 09:50, Dennis Luehring <dl.soluz at gmx.net> wrote:
>
> Am 19.07.2024 um 10:46 schrieb Nuno Santos:
>> Apparently, compiling Qt with -sanitize thread automatically applies to the applications as well.
>>
>> I have checked the compile output and it was being applied already.
>
> how should that happen? only if your application is part of Qt build itself
> and you're application isn't instrumented of not directly build TSAN
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20240719/435a5061/attachment.htm>
More information about the Interest
mailing list