aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar Mike Aizatsky <mike.aizatsky@gmail.com>2016-12-13 15:31:59 -0800
committerGravatar GitHub <noreply@github.com>2016-12-13 15:31:59 -0800
commit74eb46553255780d6f96f59b57321237d2e8d06a (patch)
treea666ca1d16f0133d91d474c50fa9c5fdd7585add
parent01373acf7deb80523f9b13f1ae7a43b19b88f5b7 (diff)
[icu] disabling leak detection while building
There seem to be leaks in icu tools: LD_LIBRARY_PATH=../lib:../stubdata:../tools/ctestfw:$LD_LIBRARY_PATH ../bin/genrb --usePoolBundle -k -i ./out/build/icudt58l -s /src/icu/source/data/locales -d ./out/build/icudt58l ar.txt ================================================================= ==7719==ERROR: LeakSanitizer: detected memory leaks  Direct leak of 64 byte(s) in 1 object(s) allocated from:  #0 0x4d3368 in malloc /src/llvm/projects/compiler-rt/lib/asan/asan_malloc_linux.cc:64 #1 0x5154fb in ucbuf_open /src/icu/source/tools/toolutil/ucbuf.cpp:469:36 #2 0x50d4b3 in main /src/icu/source/tools/gendict/gendict.cpp:316:19 #3 0x7ff77f72582f in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x2082f)
-rwxr-xr-xprojects/icu/build.sh3
1 files changed, 3 insertions, 0 deletions
diff --git a/projects/icu/build.sh b/projects/icu/build.sh
index 18aeedc8..1b59d204 100755
--- a/projects/icu/build.sh
+++ b/projects/icu/build.sh
@@ -28,6 +28,9 @@ CFLAGS=$CFLAGS CXXFLAGS=$CXXFLAGS CC=$CC CXX=$CXX \
/bin/bash $SRC/icu/source/runConfigureICU Linux \
--with-library-bits=64 --with-data-packaging=static --enable-static --disable-shared
+export ASAN_OPTIONS="detect_leaks=0"
+export UBSAN_OPTIONS="detect_leaks=0"
+
make -j$(nproc)
FUZZERS="break_iterator_fuzzer \