Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Xcode 11.2.1 Thread Sanitizer abort_with_payload

I'm trying to use the Thread Sanitizer in Xcode 11.2.1 but whenever the app launches (just a single view app from Xcode's template, nothing added) it hits __abort_with_payload:

libsystem_kernel.dylib`__abort_with_payload:
     0x7fff51b73be0 <+0>:  movl   $0x2000209, %eax          ; imm = 0x2000209 
     0x7fff51b73be5 <+5>:  movq   %rcx, %r10
     0x7fff51b73be8 <+8>:  syscall 
 ->  0x7fff51b73bea <+10>: jae    0x7fff51b73bf4            ; <+20>
     0x7fff51b73bec <+12>: movq   %rax, %rdi
     0x7fff51b73bef <+15>: jmp    0x7fff51b54a89            ; cerror_nocancel
     0x7fff51b73bf4 <+20>: retq   
     0x7fff51b73bf5 <+21>: nop    
     0x7fff51b73bf6 <+22>: nop    
     0x7fff51b73bf7 <+23>: nop

None of Apple's docs or other people's guides to using the Thread Sanitizer say you need to do anything more than tick the box in the scheme's settings but for me that doesn't work :(

Printing out $arg5 gives

pthread_t was corrupted

which doesn't sound great!

This is on Catalina 10.15.2 using the iPhone 11 Pro Max simulator

like image 654
CMash Avatar asked Dec 02 '19 15:12

CMash


1 Answers

This issue has been fixed as of Xcode 11.3.1, thanks to vandzi for pointing it out!

like image 130
CMash Avatar answered Sep 29 '22 06:09

CMash