Skip to content

Commit f437fbd

Browse files
authored
Merge pull request #1818 from verilog-to-routing/add_tbb_suppression
Add tbb suppression
2 parents 5eb14aa + 706bce7 commit f437fbd

File tree

4 files changed

+12
-1
lines changed

4 files changed

+12
-1
lines changed

vpr/asan.supp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
#AddressSanitizer suppression file for VPR
2+
3+
#Suppress known errors from the TBB library
4+
#These are some errors from the library that we can't fix and suspect are spurious
5+
interceptor_via_lib:libtbb.so

vpr/lsan.supp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
1-
#LeakSanitizer supporession file for VPR
1+
#LeakSanitizer suppression file for VPR
22

33
#Leak from graphics (ezgl/cairo) related to
44
# text processing
55
leak:libfontconfig.so
6+
#Leaks from TBB library, which
7+
#allows VPR to run with parallelism
8+
leak:libtbb.so

vtr_flow/scripts/python_libs/vtr/paths.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,3 +49,4 @@
4949
restore_multiclock_latch_script_path = scripts_path / "restore_multiclock_latch.pl"
5050
valgrind_supp = vpr_path / "valgrind.supp"
5151
lsan_supp = vpr_path / "lsan.supp"
52+
asan_supp = vpr_path / "asan.supp"

vtr_flow/scripts/python_libs/vtr/vpr/vpr.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -215,6 +215,8 @@ def run(
215215
str(paths.lsan_supp)
216216
)
217217

218+
# Extra options to fine-tune AddressSanitizer (ASAN) behaviour.
219+
environ["ASAN_OPTIONS"] = "suppressions={} exitcode=23".format(str(paths.asan_supp))
218220
command_runner.run_system_command(
219221
cmd, temp_dir=temp_dir, log_filename=log_filename, indent_depth=1
220222
)

0 commit comments

Comments
 (0)