From 4ec65c28d74f5a23ede4d8350acece89c92ac680 Mon Sep 17 00:00:00 2001 From: zoff99 Date: Sat, 4 Apr 2020 19:49:03 +0200 Subject: Show function names in asan/tsan stack traces on CircleCI. --- .circleci/cmake-asan | 2 ++ .circleci/cmake-tsan | 2 ++ .circleci/config.yml | 1 + 3 files changed, 5 insertions(+) diff --git a/.circleci/cmake-asan b/.circleci/cmake-asan index c4bce4fc..0d796aba 100755 --- a/.circleci/cmake-asan +++ b/.circleci/cmake-asan @@ -7,6 +7,7 @@ CACHEDIR="$HOME/cache" . ".travis/flags-$CC.sh" add_flag -Werror add_flag -fdiagnostics-color=always +add_flag -fno-omit-frame-pointer add_flag -fsanitize=address,undefined cmake -B_build -H. -GNinja \ -DCMAKE_C_FLAGS="$C_FLAGS" \ @@ -29,5 +30,6 @@ export ASAN_OPTIONS="detect_invalid_pointer_pairs=1" export ASAN_OPTIONS="$ASAN_OPTIONS,detect_stack_use_after_return=1" export ASAN_OPTIONS="$ASAN_OPTIONS,strict_init_order=1" export ASAN_OPTIONS="$ASAN_OPTIONS,strict_string_checks=1" +export ASAN_OPTIONS="$ASAN_OPTIONS,symbolize=1" ctest -j50 --output-on-failure || ctest -j50 --output-on-failure --rerun-failed diff --git a/.circleci/cmake-tsan b/.circleci/cmake-tsan index bb850e7c..b351e534 100755 --- a/.circleci/cmake-tsan +++ b/.circleci/cmake-tsan @@ -7,6 +7,7 @@ CACHEDIR="$HOME/cache" . ".travis/flags-$CC.sh" add_flag -Werror add_flag -fdiagnostics-color=always +add_flag -fno-omit-frame-pointer add_flag -fsanitize=thread cmake -H. -B_build -GNinja \ -DCMAKE_C_FLAGS="$C_FLAGS" \ @@ -27,5 +28,6 @@ ninja install -j$(nproc) export TSAN_OPTIONS="halt_on_error=1" export TSAN_OPTIONS="$TSAN_OPTIONS,second_deadlock_stack=1" +export TSAN_OPTIONS="$TSAN_OPTIONS,symbolize=1" ctest -j50 --output-on-failure || ctest -j50 --output-on-failure --rerun-failed diff --git a/.circleci/config.yml b/.circleci/config.yml index 2182fefb..41533dd2 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -26,6 +26,7 @@ jobs: libopus-dev libsodium-dev libvpx-dev + llvm-dev ninja-build pkg-config - run: CC=clang .circleci/cmake-asan -- cgit v1.2.3