llvm / llvm/llvm-project

__asan_locate_address() does not return "stack-fake" as header suggests

Open
#181,375 1 comment 0 reactions 0 assignees View on GitHub
compiler-rt:asan
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

Open the contributing 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.