[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v2 09/35] gitlab: add lsan suppression file to workaround tcmallo
From: |
Alex Bennée |
Subject: |
[PATCH v2 09/35] gitlab: add lsan suppression file to workaround tcmalloc issues |
Date: |
Tue, 24 Jan 2023 18:01:01 +0000 |
The up-coming upgrade to Fedora 37 will bring in libtcmalloc as a
dependency of libglusterfs which confuses our fuzz run. Rather than
disable the build lets use LSAN's suppression mechanism to prevent the
job from failing.
Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
Cc: Daniel P. Berrangé <berrange@redhat.com>
---
.gitlab-ci.d/buildtest.yml | 1 +
scripts/oss-fuzz/lsan_suppressions.txt | 2 ++
2 files changed, 3 insertions(+)
create mode 100644 scripts/oss-fuzz/lsan_suppressions.txt
diff --git a/.gitlab-ci.d/buildtest.yml b/.gitlab-ci.d/buildtest.yml
index f09a898c3e..9a6ba1fe3b 100644
--- a/.gitlab-ci.d/buildtest.yml
+++ b/.gitlab-ci.d/buildtest.yml
@@ -511,6 +511,7 @@ build-oss-fuzz:
IMAGE: fedora
script:
- mkdir build-oss-fuzz
+ - export LSAN_OPTIONS=suppressions=scripts/oss-fuzz/lsan_suppressions.txt
- CC="clang" CXX="clang++" CFLAGS="-fsanitize=address"
./scripts/oss-fuzz/build.sh
- export ASAN_OPTIONS="fast_unwind_on_malloc=0"
diff --git a/scripts/oss-fuzz/lsan_suppressions.txt
b/scripts/oss-fuzz/lsan_suppressions.txt
new file mode 100644
index 0000000000..02ec0a6ed5
--- /dev/null
+++ b/scripts/oss-fuzz/lsan_suppressions.txt
@@ -0,0 +1,2 @@
+# The tcmalloc on Fedora37 confuses things
+leak:/lib64/libtcmalloc_minimal.so.4
--
2.34.1
- [PATCH v2 00/35] maintainer tree pre-PR (testing/docs/semihosting/plugins), Alex Bennée, 2023/01/24
- [PATCH v2 03/35] gitlab: just use plain --cc=clang for custom runner build, Alex Bennée, 2023/01/24
- [PATCH v2 02/35] gitlab: add FF_SCRIPT_SECTIONS for timings, Alex Bennée, 2023/01/24
- [PATCH v2 06/35] .gitlab-ci.d/windows: do not disable opengl, Alex Bennée, 2023/01/24
- [PATCH v2 04/35] tests/unit: drop hacky race avoidance in test-io-channel-command, Alex Bennée, 2023/01/24
- [PATCH v2 07/35] meson: replace Perl usage with Python, Alex Bennée, 2023/01/24
- [PATCH v2 05/35] build-sys: fix crlf-ending C code, Alex Bennée, 2023/01/24
- [PATCH v2 08/35] docs: drop texinfo options, Alex Bennée, 2023/01/24
- [PATCH v2 09/35] gitlab: add lsan suppression file to workaround tcmalloc issues,
Alex Bennée <=
- [PATCH v2 01/35] scripts/ci: update gitlab-runner playbook to use latest runner, Alex Bennée, 2023/01/24
- [PATCH v2 14/35] tests/docker: drop debian-tricore-cross's partial status, Alex Bennée, 2023/01/24
- [PATCH v2 11/35] lcitool: drop perl from QEMU project/dependencies, Alex Bennée, 2023/01/24
- [PATCH v2 22/35] docs: add an introduction to the system docs, Alex Bennée, 2023/01/24
- [PATCH v2 12/35] lcitool: drop texinfo from QEMU project/dependencies, Alex Bennée, 2023/01/24
- [PATCH v2 26/35] cpu: free cpu->tb_jmp_cache with RCU, Alex Bennée, 2023/01/24
- [PATCH v2 10/35] Update lcitool and fedora to 37, Alex Bennée, 2023/01/24