__asan_locate_address() does not return "stack-fake" as header suggests
- Dominant language
- LLVM
- Stars
- 40.5k
- Forks
- 18.7k
- PR merge metrics
- PR metrics pending
Description
In [asan_debugging.cpp](https://github.com/llvm/llvm-project/blob/05ea779fcf475b7edd7e27c11966366be1aa01f5/compiler-rt/lib/asan/asan_debugging.cpp#L80), `__asan_locate_address` does not return "stack-fake" as the header description in [asan_interface.h](https://github.com/llvm/llvm-project/blob/40c778ad1d8013db79a7adcfc2db1dcdbdde5111/compiler-rt/include/sanitizer/asan_interface.h#L188) suggests. In my experience, "stack" is returned when the "fake stack" is accessed.
Contributor guide
Research direction
Read compiler-rt/lib/asan/asan_debugging.cpp at __asan_locate_address and compare its behavior with the description in compiler-rt/include/sanitizer/asan_interface.h. Reproduce the fake-stack lookup behavior, then determine whether the implementation or header is inconsistent. Done means the returned category and documented "stack-fake" value agree.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cpp
- Domain
- compilers
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100