[libcxx] r273104 - Add UBSan blacklist for <__tree> and <__hash_table>
Eric Fiselier via cfe-commits
cfe-commits at lists.llvm.org
Sat Jun 18 19:25:22 PDT 2016
Author: ericwf
Date: Sat Jun 18 21:25:22 2016
New Revision: 273104
URL: http://llvm.org/viewvc/llvm-project?rev=273104&view=rev
Log:
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.
Added:
libcxx/trunk/test/ubsan_blacklist.txt
Modified:
libcxx/trunk/test/libcxx/test/config.py
Modified: libcxx/trunk/test/libcxx/test/config.py
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/libcxx/test/config.py?rev=273104&r1=273103&r2=273104&view=diff
==============================================================================
--- libcxx/trunk/test/libcxx/test/config.py (original)
+++ libcxx/trunk/test/libcxx/test/config.py Sat Jun 18 21:25:22 2016
@@ -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')
Added: libcxx/trunk/test/ubsan_blacklist.txt
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/ubsan_blacklist.txt?rev=273104&view=auto
==============================================================================
--- libcxx/trunk/test/ubsan_blacklist.txt (added)
+++ libcxx/trunk/test/ubsan_blacklist.txt Sat Jun 18 21:25:22 2016
@@ -0,0 +1,2 @@
+fun:*__tree*
+fun:*__hash_table*
More information about the cfe-commits
mailing list