In my current iOS project, if I run with Xcode’s thread sanitizer enabled, sometimes I’ll get this in the console output and the app will halt:
FATAL: ThreadSanitizer CHECK failed: /BuildRoot/Library/Caches/com.apple.xbs/Sources/clang_compiler_rt/clang-1103.0.32.29/compiler-rt/lib/sanitizer_common/sanitizer_allocator.cc:166 "((kBlockMagic)) == ((((u64*)addr)[0]))" (0x6a6cb03abcebc041, 0x0)
This doesn’t hit the Thread Sanitizer runtime breakpoint, the “All Runtime Issues” breakpoint, the “All Exceptions” breakpoint, or the “Swift Error” breakpoint. My only fix so far has been to recompile with the Thread Sanitizer disabled. Anyone else seeing this?