[cfe-users] MSAN blacklist
Bernd Schubert via cfe-users
cfe-users at lists.llvm.org
Mon Jan 29 05:59:35 PST 2018
Hello,
I would like to blacklist some warnings, but everything I tried
so far is ignored.
# cat msan-blacklist.txt
fun:*interceptor_strlen*
fun:*foreach_dirinpath*
fun:foreach_dirinpath
fun:*interceptor_strrchr*
fun:*try_dlopen*
src:*/ltdl.c
src:ltdl.c
So I tried to blacklist all kind of combinations of the failing
functions and also of the related file - without success. It always
fails with the same issue.
Uninitialized bytes in __interceptor_strlen at offset 0 inside
[0x703000035370, 45)
==3968020==WARNING: MemorySanitizer: use-of-uninitialized-value
#0 0x7f0f587fa099 in foreach_dirinpath
/home/bschubert/src/cci/gerrit/src/libltdl/ltdl.c:699:18
[...]
Uninitialized value was created by a heap allocation
#0 0x453ebd in __interceptor_malloc (/tmp/ime-server-bernd.0+0x453ebd)
#1 0x7f0f568c0f7e in __argz_create_sep (/usr/lib64/libc.so.6+0x90f7e)
#2 0x7f0f585f7775 in _dl_fixup (/lib64/ld-linux-x86-64.so.2+0xe775)
SUMMARY: MemorySanitizer: use-of-uninitialized-value
/home/bschubert/src/cci/gerrit/src/libltdl/ltdl.c:699:18 in
foreach_dirinpath
Exiting
libcci and the main project I'm working on is compiled liked this
libtool: compile: /opt/llvm-5.0.1/bin/clang -DHAVE_CONFIG_H -I.
-DLTDLOPEN=libltdlc "-DLT_CONFIG_H=<config.h>" -DLTDL -I. -I. -Ilibltdl
-I./libltdl -I./libltdl -ggdb3 -O2 -fsanitize=memory
-fsanitize-memory-track-origins -fsanitize-memory-use-after-dtor
-fsanitize-blacklist=msan-blacklist.txt -MT libltdlc_la-lt_dlloader.lo
-MD -MP -MF .deps/libltdlc_la-lt_dlloader.Tpo -c lt_dlloader.c -fPIC
-DPIC -o .libs/libltdlc_la-lt_dlloader.o
Any ideas?
Thanks,
Bernd
More information about the cfe-users
mailing list