summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorEvgeny Vereshchagin <evvers@ya.ru>2022-10-10 22:22:06 +0000
committerEvgeny Vereshchagin <evvers@ya.ru>2022-10-13 03:20:31 +0000
commit738d8dbe6f235b975549a063e694827b703c5887 (patch)
tree431026cc15078158d02f230b0be8df631f7eebc0 /tools
parent9803fb09fcb465bbcb0d5508441e8287f6966b20 (diff)
downloaddbus-738d8dbe6f235b975549a063e694827b703c5887.tar.gz
ci: get UBSan to fail and print full backtraces
Unlike ASan, by default UBSan prints one-line warnings and keeps going and it makes it impossible for the CI to catch issues automatically when it runs the unit tests. With this patch applied the CI should be able to prevent issues like https://gitlab.freedesktop.org/smcv/dbus-issue413/-/merge_requests/1#note_1549306 from making it into the repository going forward. Signed-off-by: Evgeny Vereshchagin <evvers@ya.ru>
Diffstat (limited to 'tools')
-rwxr-xr-xtools/ci-build.sh2
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/ci-build.sh b/tools/ci-build.sh
index 6420cdcb..287b170e 100755
--- a/tools/ci-build.sh
+++ b/tools/ci-build.sh
@@ -269,6 +269,8 @@ esac
export MAKE=${make}
make="${make} -j${ci_parallel} V=1 VERBOSE=1"
+export UBSAN_OPTIONS=print_stacktrace=1:print_summary=1:halt_on_error=1
+
case "$ci_buildsys" in
(autotools)
case "$ci_variant" in