Update the thread sanitizer from llvm 17.0.3
Fixes #15241
Now, since you shouldn't trust me, someone from the team should probably redo the steps I took:
- I removed all the source files from
lib/tsanlib/tsan/interceptionlib/tsan/sanitizer_commonlib/tsan/ubsan - I downloaded the source code of the llvm 17.0.3 release from their github page.
- I copied all source files from
llvm-project/compiler-rt/lib/tsan/rtltolib/tsan - I copied the files
ubsan_flags.h,ubsan_flags.inc,ubsan_init.handubsan_platform.hfromllvm-project/compiler-rt/lib/ubsantolib/tsan/ubsan - I copied all source files from
llvm-project/compiler-rt/lib/sanitizer_commontolib/tsan/sanitizer_common - I copied all source files from
llvm-project/compiler-rt/lib/interceptiontolib/tsan/interception - I modified
src/libtsan.zigto accomodate for all the file changes.
I tested it on a project of mine, were it runs fine and it even pointed out a bunch of data races.
Nice work, thank you!
Any status update with this?
Any status update with this?
At least from my side it's all done and it appears to be all working. I'm also just waiting.
Thanks for pointing out this issue.
Did a compiler bootstrap with llvm with this PR rebased onto master and confirmed it worked. Without this pr couldn't get -fsanitize-thread to work as it was erroring on missing crypt.h. Is there anything blocking this from being merged?
Closing in favor of #18505.
Thanks, it was useful to reference your work.