Branch: refs/heads/main
Revision: b338c60
Author: ronawho
Link: Add prototype support for using ASan with qthreads by ronawho · Pull Request #19929 · chapel-lang/chapel · GitHub
Log Message:
Merge pull request #19929 from ronawho/prototype-qthreads-asan-support
Add prototype support for using ASan with qthreads
[reviewed by @e-kayrakli]
Qthreads inline assembly for task switching throws off ASan, so
previously we only supported using fifo. This adds experimental support
for using qthreads with CHPL_QTHREAD_SANITIZER_SUPPORT
, which really
just disables asm context switching in favor of makecontext/swapcontext.
Asan can still get tripped up by these and some implementations will
warn with:
==18623==WARNING: ASan doesn't fully support makecontext/swapcontext functions and may produce false positives in some cases!
but this seems to work at least for hellos so I wanted to add prototype
support. This is to help debug a memory corruption issue we're seeing in
Cray/chapel-private#3417
Modified Files:
M make/compiler/Makefile.sanitizers
M third-party/qthread/Makefile
Compare: https://github.com/chapel-lang/chapel/compare/c2102ff967bd...b338c609f955