From 9b66bd1ca9090cf1c8299d7dcd12df8bf21ed0cb Mon Sep 17 00:00:00 2001 From: xdustinface Date: Wed, 25 Feb 2026 11:04:59 +0700 Subject: [PATCH] chore: improve ASAN stack trace and symbolization Use `allow_addr2line=1` so ASAN falls back to the pre-installed `addr2line` for symbolization. This avoids LLVM version mismatch issues between the system `llvm-symbolizer` and nightly Rust's LLVM, and works regardless of which LLVM version nightly uses. Also enable `force-frame-pointers` for more complete stack traces. --- .github/workflows/sanitizer.yml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/.github/workflows/sanitizer.yml b/.github/workflows/sanitizer.yml index 5d9e34901..81f9eb896 100644 --- a/.github/workflows/sanitizer.yml +++ b/.github/workflows/sanitizer.yml @@ -37,9 +37,8 @@ jobs: - name: Run tests with ASAN env: RUST_BACKTRACE: 1 - RUSTFLAGS: "-Zsanitizer=address -Cdebuginfo=2" - ASAN_SYMBOLIZER_PATH: /usr/bin/llvm-symbolizer - ASAN_OPTIONS: "symbolize=1" + RUSTFLAGS: "-Zsanitizer=address -Cdebuginfo=2 -Cforce-frame-pointers=yes" + ASAN_OPTIONS: "symbolize=1:allow_addr2line=1" LSAN_OPTIONS: "fast_unwind_on_malloc=0" run: | # FFI crates (C interop)