Skip to content

Commit

Permalink
Bug 1824768 - Add TSan suppressions for external libs. r=decoder
Browse files Browse the repository at this point in the history
  • Loading branch information
tysmith committed Jul 7, 2023
1 parent de05bf0 commit 8591aaf
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
7 changes: 6 additions & 1 deletion mfbt/TsanOptions.h
Original file line number Diff line number Diff line change
Expand Up @@ -40,11 +40,14 @@ extern "C" const char* __tsan_default_options() {
// every application would want to include if it potentially loads external
// libraries like GTK/X and hence their dependencies.
# define MOZ_TSAN_DEFAULT_EXTLIB_SUPPRESSIONS \
"called_from_lib:libappmenu-gtk3-parser\n" \
"called_from_lib:libatk-1\n" \
"called_from_lib:libcairo.so\n" \
"called_from_lib:libcairo-gobject\n" \
"called_from_lib:libfontconfig1\n" \
"called_from_lib:libdconfsettings\n" \
"called_from_lib:libEGL_nvidia\n" \
"called_from_lib:libfontconfig.so\n" \
"called_from_lib:libfontconfig1\n" \
"called_from_lib:libgdk-3\n" \
"called_from_lib:libgdk_pixbuf\n" \
"called_from_lib:libgdk-x11\n" \
Expand All @@ -57,6 +60,8 @@ extern "C" const char* __tsan_default_options() {
"called_from_lib:libgvfscommon\n" \
"called_from_lib:libgvfsdbus\n" \
"called_from_lib:libibus-1\n" \
"called_from_lib:libnvidia-eglcore\n" \
"called_from_lib:libnvidia-glsi\n" \
"called_from_lib:libogg.so\n" \
"called_from_lib:libpango-1\n" \
"called_from_lib:libpangocairo\n" \
Expand Down
7 changes: 7 additions & 0 deletions mozglue/build/TsanOptions.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,9 @@ extern "C" const char* __tsan_default_suppressions() {
// Bug 1825171
"mutex:libffi.so\n"
"mutex:wl_registry_destroy\n"
// Bug 1824768
"mutex:libdbus-1\n"
"mutex:swrast_dri.so\n"
// Bug 1651446 - permanent (ffmpeg)
"race:libavcodec.so*\n"
"race:libavutil.so*\n"
Expand All @@ -80,6 +83,10 @@ extern "C" const char* __tsan_default_suppressions() {
// calling into uninstrumented external graphics driver code.
// For example: iris_dri.so and swrast_dri.so.
"race:fire_glxtest_process\n"
"race:iris_dri\n"
// Bug 1824768
"race:libLLVM-12\n"
"race:radeonsi_dri\n"
// Bug 1722721 - WebRender using uninstrumented Mesa drivers
"race:swrast_dri.so\n"
// Bug 1825171
Expand Down

0 comments on commit 8591aaf

Please sign in to comment.