]> www.infradead.org Git - users/dwmw2/qemu.git/commitdiff
docker: test-debug: disable LeakSanitizer
authorPaolo Bonzini <pbonzini@redhat.com>
Tue, 1 Oct 2019 13:36:28 +0000 (15:36 +0200)
committerPaolo Bonzini <pbonzini@redhat.com>
Fri, 4 Oct 2019 16:49:17 +0000 (18:49 +0200)
There are just too many leaks in device-introspect-test (especially for
the plethora of arm and aarch64 boards) to make LeakSanitizer useful;
disable it for now.

Whoever is interested in debugging leaks can also use valgrind like this:

   QTEST_QEMU_BINARY=aarch64-softmmu/qemu-system-aarch64 \
   QTEST_QEMU_IMG=qemu-img \
   valgrind --trace-children=yes --leak-check=full \
   tests/device-introspect-test -p /aarch64/device/introspect/concrete/defaults/none

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
tests/docker/test-debug

index 137f4f2ddc10c5bd43870d8eb700b2dc4bade746..c050fa0d9382c11f2e9d29fcfafadf650c84c1fb 100755 (executable)
@@ -21,6 +21,7 @@ cd "$BUILD_DIR"
 OPTS="--cxx=clang++ --cc=clang --host-cc=clang"
 OPTS="--enable-debug --enable-sanitizers $OPTS"
 
+export ASAN_OPTIONS=detect_leaks=0
 build_qemu $OPTS
 check_qemu check V=1
 install_qemu