llvm-project
dbbc096a - [asan] Complete the report when a stack frame has no valid header (#243684)

Commit
2 days ago
[asan] Complete the report when a stack frame has no valid header (#243684) If a stack frame's magic number is missing, a CHECK fails while the report is being prepared and the error itself is never printed: ``` CHECK failed: asan_thread.cpp "((ptr[0] == kCurrentStackFrameMagic)) != (0)" ``` Return "no frame found" instead, so the report completes and names the thread whose stack holds the address. `__asan_locate_address` and `__asan_describe_address` no longer die on such an address either. Users hit this CHECK in google/sanitizers#1010, google/sanitizers#1531 and google/sanitizers#1669 (not reproduced). Assisted-by: Claude. I have read every line of this PR.
Author
Parents
Loading