Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[ASAN] Turn off asan instrumentation in segv handler (JuliaLang#46377)
There's some issues around asan and segv handlers. The issues I'm aware of is: 1. If things run on the sigaltstack, we need to at some point unpoison the sigaltstack and it's not clear when to do that. 2. Sanitizers accidentally free stil-in-use stack frames: google/sanitizers#1561 3. If noreturn functions run on the sigaltstack, asan can get confused about what it needs to unpoison So for now, remove asan instrumentation from the segv_handler and the the jl_call_in_ctx functions (jl_sig_throw is already annotated). This helps the case I was seeing (where gc_srub would cause frequent segv_handler invocations for safe restore), but there's probably a few other landmines remaining here.
- Loading branch information