From: Colin Walters Date: Fri, 17 Feb 2017 21:59:21 +0000 (-0500) Subject: ci: Hard error on all -fsanitize=undefined warnings X-Git-Tag: archive/raspbian/2022.1-3+rpi1~1^2~4^2~40^2~25 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=515f83206785bd9fb50b77df17b48bbed2827cff;p=ostree.git ci: Hard error on all -fsanitize=undefined warnings I saw in a recent test log a ton of spam ``` libglnx/glnx-dirfd.c:253:3: runtime error: null pointer passed as argument 1, which is declared to never be null ``` which actually turned out to be libglnx getting reverted. But let's be sure now we actually bomb out quickly on UBSAN warnings in general. Closes: #693 Approved by: jlebon --- diff --git a/.redhat-ci.yml b/.redhat-ci.yml index 11e5a9d6..74778f8a 100644 --- a/.redhat-ci.yml +++ b/.redhat-ci.yml @@ -12,7 +12,7 @@ packages: - libasan env: - CFLAGS: '-fsanitize=undefined -fsanitize=address' + CFLAGS: '-fsanitize=undefined -fsanitize-undefined-trap-on-error -fsanitize=address' ASAN_OPTIONS: 'detect_leaks=0' # Right now we're not fully clean, but this gets us use-after-free etc # TODO when we're doing leak checks: G_SLICE: "always-malloc"