Skip to content

Commit 85af7f2

Browse files
committed
ci: enable UBSan stacktraces
1 parent 7eb2151 commit 85af7f2

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

.github/workflows/main.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,7 @@ jobs:
123123
SKIP_SSH_TESTS: true
124124
SKIP_NEGOTIATE_TESTS: true
125125
ASAN_SYMBOLIZER_PATH: /usr/bin/llvm-symbolizer-10
126+
UBSAN_OPTIONS: print_stacktrace=1
126127
os: ubuntu-latest
127128
- # Focal, Clang 10, OpenSSL, UndefinedBehaviorSanitizer
128129
container:
@@ -135,6 +136,7 @@ jobs:
135136
SKIP_SSH_TESTS: true
136137
SKIP_NEGOTIATE_TESTS: true
137138
ASAN_SYMBOLIZER_PATH: /usr/bin/llvm-symbolizer-10
139+
UBSAN_OPTIONS: print_stacktrace=1
138140
os: ubuntu-latest
139141
- # Focal, Clang 10, OpenSSL, ThreadSanitizer
140142
container:
@@ -147,6 +149,7 @@ jobs:
147149
SKIP_SSH_TESTS: true
148150
SKIP_NEGOTIATE_TESTS: true
149151
ASAN_SYMBOLIZER_PATH: /usr/bin/llvm-symbolizer-10
152+
UBSAN_OPTIONS: print_stacktrace=1
150153
TSAN_OPTIONS: suppressions=/home/libgit2/source/script/thread-sanitizer.supp second_deadlock_stack=1
151154
os: ubuntu-latest
152155
- # macOS
@@ -242,6 +245,7 @@ jobs:
242245
-e SKIP_NEGOTIATE_TESTS \
243246
-e SKIP_SSH_TESTS \
244247
-e TSAN_OPTIONS \
248+
-e UBSAN_OPTIONS \
245249
${{ env.docker-registry-container-sha }} \
246250
/bin/bash -c "mkdir build && cd build && ../ci/build.sh && ../ci/test.sh"
247251
else

0 commit comments

Comments
 (0)