Skip to content

Commit a766008

Browse files
committed
ci: install sanitizer symbolizer
1 parent 76ec03f commit a766008

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

.github/workflows/ci.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -310,7 +310,7 @@ jobs:
310310
uses: actions-rust-lang/setup-rust-toolchain@v1
311311
with:
312312
toolchain: ${{ env.SANITIZER_TOOLCHAIN }}
313-
components: rust-src
313+
components: rust-src, llvm-tools-preview
314314

315315
- name: Install protoc
316316
run: |
@@ -340,6 +340,11 @@ jobs:
340340
elif command -v llvm-symbolizer >/dev/null 2>&1; then
341341
export ASAN_SYMBOLIZER_PATH="$(command -v llvm-symbolizer)"
342342
fi
343+
if [[ -n "${ASAN_SYMBOLIZER_PATH:-}" ]]; then
344+
export LSAN_OPTIONS="${LSAN_OPTIONS}:external_symbolizer_path=${ASAN_SYMBOLIZER_PATH}:symbolize=1:malloc_context_size=50"
345+
echo "Using sanitizer symbolizer: $ASAN_SYMBOLIZER_PATH"
346+
"$ASAN_SYMBOLIZER_PATH" --version || true
347+
fi
343348
if [[ "${{ matrix.sanitizer }}" == "leak" || "${{ matrix.sanitizer }}" == "thread" ]]; then
344349
# RocksDB/libstdc++ trigger sanitizer reports and timing instability
345350
# in storage integration test binaries. The net crate's end-to-end

0 commit comments

Comments
 (0)