diff options
| author | Eric Fiselier <eric@efcs.ca> | 2016-06-19 02:25:22 +0000 |
|---|---|---|
| committer | Eric Fiselier <eric@efcs.ca> | 2016-06-19 02:25:22 +0000 |
| commit | 37ba54e5d7212a8e2bfd0c2d441e79fe2a1d72d1 (patch) | |
| tree | 5f74a64e249269bca9055910e28e7facbfe9c03e | |
| parent | 629645d83d197923e3c3f76cffe73e88ec7afb38 (diff) | |
| download | bcm5719-llvm-37ba54e5d7212a8e2bfd0c2d441e79fe2a1d72d1.tar.gz bcm5719-llvm-37ba54e5d7212a8e2bfd0c2d441e79fe2a1d72d1.zip | |
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.
llvm-svn: 273104
| -rw-r--r-- | libcxx/test/libcxx/test/config.py | 5 | ||||
| -rw-r--r-- | libcxx/test/ubsan_blacklist.txt | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/libcxx/test/libcxx/test/config.py b/libcxx/test/libcxx/test/config.py index dd496b2d090..4d4eb066e02 100644 --- a/libcxx/test/libcxx/test/config.py +++ b/libcxx/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/libcxx/test/ubsan_blacklist.txt b/libcxx/test/ubsan_blacklist.txt new file mode 100644 index 00000000000..6c686fb8da0 --- /dev/null +++ b/libcxx/test/ubsan_blacklist.txt @@ -0,0 +1,2 @@ +fun:*__tree* +fun:*__hash_table* |

