Thread Sanitizer support on CLion macOS

已回答

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

0

Hello!

macOS is not listed among the supported platforms for Thread Sanitizer: https://clang.llvm.org/docs/ThreadSanitizer.html#supported-platforms.

0

I think it's what they refer as:

  • Darwin arm64, x86_64

I checked on my mac in a terminal I run : 

$ set | grep "MACHTYPE"

MACHTYPE=x86_64-apple-darwin19

 

0

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?

0

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.

0

DrX could you please answer my previous question?

0

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)

 

0

请先登录再写评论。