Skip to content

Commit f8fd447

Browse files
committed
Remove explicit LeakSanitizer usage from CI
Running with LeakSanitizer enabled is a mess: we are seeing spurious failures in CI on completely unrelated changes to the symbolize_process_symbolic_paths test. Attempting to reproduce them locally is denied with line noise such as: > LeakSanitizer: CHECK failed: lsan_interceptors.cpp:82 "((!lsan_init_is_running)) != (0)" (0x0, 0x0) (tid=29001) This seems to be rust-lang/rust#111073. In any event, AddressSanitizer comes with leak detection support and so let's just use that instead -- it hasn't caused any problems and we haven't seen any issues using it locally either. Signed-off-by: Daniel Müller <[email protected]>
1 parent 85c3538 commit f8fd447

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

.github/workflows/test.yml

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -263,7 +263,7 @@ jobs:
263263
strategy:
264264
fail-fast: false
265265
matrix:
266-
sanitizer: [address, leak]
266+
sanitizer: [address]
267267
runs-on: ubuntu-latest
268268
env:
269269
LLVM_GSYMUTIL: /usr/bin/llvm-gsymutil-14
@@ -277,10 +277,6 @@ jobs:
277277
run: |
278278
# to get the symbolizer for debug symbol resolution
279279
sudo apt-get install -y llvm-14
280-
# to fix buggy leak analyzer:
281-
# https://github.com/japaric/rust-san#unrealiable-leaksanitizer
282-
sed -i '/\[features\]/i [profile.dev]' Cargo.toml
283-
sed -i '/profile.dev/a opt-level = 1' Cargo.toml
284280
cat Cargo.toml
285281
- name: cargo test -Zsanitizer=${{ matrix.sanitizer }}
286282
env:
@@ -290,8 +286,7 @@ jobs:
290286
#CFLAGS: "-fsanitize=${{ matrix.sanitizer }}"
291287
#CXXFLAGS: "-fsanitize=${{ matrix.sanitizer }}"
292288
RUSTFLAGS: "-Zsanitizer=${{ matrix.sanitizer }}"
293-
ASAN_OPTIONS: "detect_odr_violation=0:detect_leaks=0"
294-
LSAN_OPTIONS: ""
289+
ASAN_OPTIONS: "detect_odr_violation=0:detect_leaks=1"
295290
run: cargo test --workspace --lib --tests --target x86_64-unknown-linux-gnu
296291
test-release:
297292
name: Test with release build

0 commit comments

Comments
 (0)