Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is required to make the Thread Sanitizer and Address Sanitizer options available in Xcode 8

I don't know what I need to do to make these options stop being disabled. Any help would be appreciated:

enter image description here

like image 590
kvn Avatar asked Aug 18 '16 14:08

kvn


People also ask

What is thread sanitizer in Xcode?

The Thread Sanitizer, also known as TSan, is an LLVM based tool to audit threading issues in your Swift and C language written code. It was first introduced in Xcode 8 and can be a great tool to find less visible bugs in your code, like data races.

How does TSan work?

Thread Sanitizer (TSan) is a fast data race detector for C/C++ and Rust programs. It uses a compile-time instrumentation to check all non-race-free memory access at runtime.


1 Answers

Thread Sanitizer can be used in following preparatory condition:

  1. close other option , for example 'Malloc stack'
  2. need 64 bit simulator
  3. after open Thread Sanitizer, need recompilation
like image 172
kingnight Avatar answered Oct 04 '22 15:10

kingnight