0

[TSAN] Suppress system fontconfig data races

The system fontconfig is not instrumented, so we cannot accurately
detect data races in it.  This CL adds a suppression for
libfontconfig.so.1.  Our in-tree fontconfig will not be affected by this
suppression since in component builds the library is named
libfontconfig.so, and in non-component builds there is no shared
library.

Change-Id: I8a94e65b9de8718a19ab11c19e0b57caf63215b8
Bug: 1281356
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3360226
Reviewed-by: Jonathan Metzman <metzman@chromium.org>
Commit-Queue: Thomas Anderson <thomasanderson@chromium.org>
Auto-Submit: Thomas Anderson <thomasanderson@chromium.org>
Cr-Commit-Position: refs/heads/main@{#954458}
This commit is contained in:
Tom Anderson
2021-12-29 16:00:29 +00:00
committed by Chromium LUCI CQ
parent 54465a976f
commit 065f5576f7

@ -16,7 +16,7 @@
// for the instructions on writing suppressions.
char kTSanDefaultSuppressions[] =
// False positives in libdbus.so, libdconfsettings.so, libflashplayer.so,
// libgio.so, libglib.so and libgobject.so.
// libgio.so, libglib.so, libgobject.so, and libfontconfig.so.1.
// Since we don't instrument them, we cannot reason about the
// synchronization in them.
"race:libdbus*.so\n"
@ -25,6 +25,7 @@ char kTSanDefaultSuppressions[] =
"race:libgio*.so\n"
"race:libglib*.so\n"
"race:libgobject*.so\n"
"race:libfontconfig.so.1\n"
// Intentional race in ToolsSanityTest.DataRace in base_unittests.
"race:base/tools_sanity_unittest.cc\n"