added more flags

Signed-off-by: Pratik Mankawde <3397372+pratikmankawde@users.noreply.github.com>
This commit is contained in:
Pratik Mankawde
2026-02-19 14:35:33 +00:00
parent ae4ab7d462
commit c2fd60dc46
2 changed files with 9 additions and 1 deletions

View File

@@ -8,8 +8,15 @@
# - stack-use-after-scope errors
# - stack-buffer-overflow errors in seemingly unrelated code (e.g., std::chrono::steady_clock::now())
# - stack-buffer-underflow errors in seemingly unrelated code (e.g., xxhasher::retrieveHash(), clock_gettime)
# - bad-free errors in boost::context::basic_fixedsize_stack::deallocate (ASan loses track of
# malloc allocations after fiber/context switches, reporting "free on address not malloc()-ed")
#
# These are now handled by using coroutine2 and ucontext backend.
# These are now handled by:
# 1. Using Boost.Coroutine2 with the ucontext backend (BOOST_USE_ASAN + BOOST_USE_UCONTEXT)
# 2. Runtime options in runtime-asan-options.txt:
# - alloc_dealloc_mismatch=0: Suppresses false "bad-free" errors from fiber stack deallocation
# - detect_stack_use_after_return=0: Prevents false positives from fake stack tracking
# - use_sigaltstack=0: Avoids conflicts with coroutine stack switching
interceptor_name:clock_gettime
interceptor_name:__bzero

View File

@@ -3,3 +3,4 @@ detect_stack_use_after_return=0
halt_on_error=0
print_summary=true
use_sigaltstack=0
alloc_dealloc_mismatch=0