[Interest] Will TSAN_OPTIONS=detect_deadlocks=1 work when Qt is compiled with -sanitize thread?

Dennis Luehring dl.soluz at gmx.net
Fri Jul 19 11:17:17 CEST 2024


Am 19.07.2024 um 11:02 schrieb Nuno Santos:
> 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 -

maybe its a MacOS develop environment magic but on linux/clang its not
automaticly done
because i maybe just want to check the Qt-Libs "OR" my app seperated for
TSAN findings

i think you're doing it someway wrong




> Does anyone have alternatives?

is GDB an option on iOS?


then follow these instructions

https://ethanhao.github.io/c++11,/gdb,/multithread,/2017/03/03/Deadlock-detecting-using-GDB-Copy.html





More information about the Interest mailing list