Skip to content

Commit 0c544dc

Browse files
committed
WIP: disable leak sanitizer to see what other problems we have
1 parent f5e79cc commit 0c544dc

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

.github/workflows/clang-sanitizer.yaml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,11 @@ jobs:
1616
CC: "ccache /usr/bin/clang"
1717
CXX: "ccache /usr/bin/clang++"
1818
# AddressSanitizer configuration for optimal CI performance
19-
ASAN_OPTIONS: "abort_on_error=1:fast_unwind_on_malloc=0:detect_odr_violation=0:detect_leaks=1"
19+
ASAN_OPTIONS: "abort_on_error=1:fast_unwind_on_malloc=0:detect_odr_violation=0:detect_leaks=0"
2020
# - `abort_on_error=1`: Terminate immediately on error
2121
# - `fast_unwind_on_malloc=0`: Use slower but more accurate stack unwinding
2222
# - `detect_odr_violation=0`: Disable One Definition Rule violation detection to reduce noise
23-
# - `detect_leaks=1`: Enable leak detection
23+
# - `detect_leaks=0`: Disable leak detection
2424
UBSAN_OPTIONS: "print_stacktrace=1:halt_on_error=1"
2525
# - `print_stacktrace=1`: Show stack traces for undefined behavior
2626
# - `halt_on_error=1`: Terminate on undefined behavior
@@ -58,15 +58,14 @@ jobs:
5858
echo "CCACHE_DIR=$PWD/.ccache" >> $GITHUB_ENV
5959
- name: Zero ccache stats and limit in size
6060
run: ccache -z --max-size=500M
61-
- name: Build with AddressSanitizer and LeakSanitizer
61+
- name: Build with AddressSanitizer
6262
run: |
6363
# Build with sanitizers enabled - using -O1 for reasonable performance
6464
# -fsanitize=address: detects buffer overflows, use-after-free, etc.
65-
# -fsanitize=leak: detects memory leaks
6665
# -fsanitize=undefined: detects undefined behavior
6766
# -fno-sanitize-recover=all: abort on first error for faster feedback
6867
# -g: include debug symbols for better error reporting
69-
export SANITIZER_FLAGS="-fsanitize=address -fsanitize=leak -fsanitize=undefined -fno-sanitize-recover=all -g -O1"
68+
export SANITIZER_FLAGS="-fsanitize=address -fsanitize=undefined -fno-sanitize-recover=all -g -O1"
7069
make -C src -j${{env.linux-vcpus}} \
7170
CXXFLAGS="$SANITIZER_FLAGS" \
7271
LINKFLAGS="$SANITIZER_FLAGS" \

0 commit comments

Comments
 (0)