Thread Sanitizer support on CLion macOS
Answered
Hi,
From the documentation of CLion I can read "macOS (only AddressSanitizer and UndefinedBehaviorSanitizer)".
I am interested to know if there is a schedule for the support of Thread Sanitizer (TSan) under macOS anytime in the future?
I currently still need to switch back to Xcode to run them, would prefer to stick to one tool if possible: CLion.
Cheers,
DrX
Please sign in to leave a comment.
Hello!
macOS is not listed among the supported platforms for Thread Sanitizer: https://clang.llvm.org/docs/ThreadSanitizer.html#supported-platforms.
I think it's what they refer as:
I checked on my mac in a terminal I run :
$ set | grep "MACHTYPE"
MACHTYPE=x86_64-apple-darwin19
If you disable "Use visual representation for Sanitizer's output" in Preferences | Build, Execution, Deployment | Dynamic Analysis Tools | Sanitizers, does Thread Sanitizer work for you in CLion?
I think your documentation might be wrong because we can read "macOS (only AddressSanitizer and UndefinedBehaviorSanitizer)" but in practice, you can use ThreadSanitizer too on macOS.
DrX could you please answer my previous question?
Anna Falevskaya sorry, I already did. If your question is :
Does Thread Sanitizer work for you in CLion?
the answer is: Yes (but your documentation was misleading)
We've added the information to the web help - https://www.jetbrains.com/help/clion/google-sanitizers.html.
👍