Skip to content

Commit

Permalink
[icu] disabling leak detection while building
Browse files Browse the repository at this point in the history
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

=================================================================
�[1m�[31m==7719==ERROR: LeakSanitizer: detected memory leaks
�[1m�[0m
�[1m�[34mDirect leak of 64 byte(s) in 1 object(s) allocated from:
�[1m�[0m    #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)
  • Loading branch information
mikea committed Dec 13, 2016
1 parent 01373ac commit 74eb465
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions projects/icu/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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 \
Expand Down

0 comments on commit 74eb465

Please sign in to comment.