Skip to content

Commit b5ee2ed

Browse files
committed
fix(ci): Add full debug info and slow unwinding for LSAN
- Add -Cdebuginfo=2 to ensure full debug symbols are generated - Add ASAN_OPTIONS=symbolize=1 for proper symbolization - Add fast_unwind_on_malloc=0 for more accurate stack traces - Add print_suppressions=1 to debug which suppressions match
1 parent 85870b8 commit b5ee2ed

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

.github/workflows/sanitizer.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,11 +26,13 @@ jobs:
2626
2727
- name: Run tests with ASAN
2828
env:
29-
RUSTFLAGS: "-Zsanitizer=address"
29+
RUSTFLAGS: "-Zsanitizer=address -Cdebuginfo=2"
3030
# Use llvm-symbolizer to get function names in stack traces
3131
ASAN_SYMBOLIZER_PATH: /usr/bin/llvm-symbolizer
32-
# Suppress known tokio runtime leaks (thread-local storage, internal state)
33-
LSAN_OPTIONS: "suppressions=${{ github.workspace }}/.github/lsan_suppressions.txt"
32+
# Symbolize and use slow unwinding for better stack traces
33+
ASAN_OPTIONS: "symbolize=1"
34+
# Suppress known tokio runtime leaks, use slow unwinding for accurate traces
35+
LSAN_OPTIONS: "suppressions=${{ github.workspace }}/.github/lsan_suppressions.txt:fast_unwind_on_malloc=0:print_suppressions=1"
3436
run: |
3537
# FFI crates (C interop)
3638
cargo +nightly test -Zbuild-std --target x86_64-unknown-linux-gnu \

0 commit comments

Comments
 (0)