From 57254f448f82195c76ad97ccca1fba4a618306df Mon Sep 17 00:00:00 2001 From: Eric Fiselier Date: Sun, 19 Jun 2016 02:25:22 +0000 Subject: [PATCH] Add UBSan blacklist for <__tree> and <__hash_table> We all know <__tree> and <__hash_table> have plenty of UB that UBSan faithfully finds. I am working on fixing this. However the noisy output from these failures prevent automatically detecting regressions elsewhere. This patch adds a blacklist file for these failures so I can later set up a UBSAN buildbot. git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@273104 91177308-0d34-0410-b5e6-96231b3b80d8 --- test/libcxx/test/config.py | 5 ++++- test/ubsan_blacklist.txt | 2 ++ 2 files changed, 6 insertions(+), 1 deletion(-) create mode 100644 test/ubsan_blacklist.txt diff --git a/test/libcxx/test/config.py b/test/libcxx/test/config.py index dd496b2d0..4d4eb066e 100644 --- a/test/libcxx/test/config.py +++ b/test/libcxx/test/config.py @@ -617,9 +617,12 @@ class Configuration(object): self.config.available_features.add('msan') self.config.available_features.add('sanitizer-new-delete') elif san == 'Undefined': + blacklist = os.path.join(self.libcxx_src_root, + 'test/ubsan_blacklist.txt') self.cxx.flags += ['-fsanitize=undefined', '-fno-sanitize=vptr,function', - '-fno-sanitize-recover'] + '-fno-sanitize-recover=all', + '-fsanitize-blacklist=' + blacklist] self.cxx.compile_flags += ['-O3'] self.env['UBSAN_OPTIONS'] = 'print_stacktrace=1' self.config.available_features.add('ubsan') diff --git a/test/ubsan_blacklist.txt b/test/ubsan_blacklist.txt new file mode 100644 index 000000000..6c686fb8d --- /dev/null +++ b/test/ubsan_blacklist.txt @@ -0,0 +1,2 @@ +fun:*__tree* +fun:*__hash_table*