From 09413f289a19411e9e40112d9ad3516af188e969 Mon Sep 17 00:00:00 2001 From: q66 Date: Mon, 6 May 2024 18:13:44 +0200 Subject: [PATCH] ci: try setting LSAN_OPTIONS --- .ci/build-cffi | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.ci/build-cffi b/.ci/build-cffi index 3139779..ae81ca0 100755 --- a/.ci/build-cffi +++ b/.ci/build-cffi @@ -136,7 +136,7 @@ if [ -n "$SANITIZE" ]; then extra_ldflags="${extra_ldflags} -fsanitize=address -fuse-ld=lld" # cfi-icall is buggy with the clang on CI, also the same functionality # is covered by -fsanitize=function (included in undefined) - export CXXFLAGS="-fsanitize=undefined -fsanitize-trap=undefined -fsanitize=address -fsanitize=cfi -fno-sanitize=cfi-icall,leak -fvisibility=hidden -flto=thin" + export CXXFLAGS="-fsanitize=undefined -fsanitize-trap=undefined -fsanitize=address -fsanitize=cfi -fno-sanitize=cfi-icall -fvisibility=hidden -flto=thin" export LDFLAGS="${CXXFLAGS} -fuse-ld=lld" # only test the most recent lua version LUA_VERSIONS=${LUA_VERSIONS%% *} @@ -200,6 +200,9 @@ done echo ">> Building and testing cffi..." +# lsan seems broken in the ci env? +export LSAN_OPTIONS=detect_leaks=0 + for luaver in ${LUA_VERSIONS}; do deps_dir="deps-${luaver}-${expected_triplet}" lua_path="$(pwd)/${deps_dir}/lua"