Source code
Revision control
Copy as Markdown
Other Tools
// Copyright 2014 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// This file contains the default suppressions for ThreadSanitizer.
// You can also pass additional suppressions via TSAN_OPTIONS:
// TSAN_OPTIONS=suppressions=/path/to/suppressions. Please refer to
// for more info.
#if defined(THREAD_SANITIZER)
// Please make sure the code below declares a single string variable
// kTSanDefaultSuppressions contains TSan suppressions delimited by newlines.
// for the instructions on writing suppressions.
char kTSanDefaultSuppressions[] =
// False positives in libdbus.so, libdconfsettings.so, libflashplayer.so,
// libgio.so, libglib.so and libgobject.so.
// Since we don't instrument them, we cannot reason about the
// synchronization in them.
"race:libdbus*.so\n"
"race:libdconfsettings*.so\n"
"race:libflashplayer.so\n"
"race:libgio*.so\n"
"race:libglib*.so\n"
"race:libgobject*.so\n"
// Intentional race in ToolsSanityTest.DataRace in base_unittests.
"race:base/tools_sanity_unittest.cc\n"
// Data race on WatchdogCounter [test-only].
"race:base/threading/watchdog_unittest.cc\n"
// Data race caused by swapping out the network change notifier with a mock
"race:content/browser/net_info_browsertest.cc\n"
"race:base/threading/watchdog.cc\n"
"race:third_party/libvpx/source/libvpx/vp8/decoder/threading.c\n"
"race:libpulsecommon*.so\n"
"race:g_trace_state\n"
"race:base::g_power_monitor\n"
"race:base::PowerMonitor::PowerMonitor\n"
"race:base::PowerMonitor::AddObserver\n"
"race:base::PowerMonitor::RemoveObserver\n"
"race:base::PowerMonitor::IsOnBatteryPower\n"
"race:base::g_top_manager\n"
"race:CustomThreadWatcher::~CustomThreadWatcher\n"
"deadlock:cc::VideoLayerImpl::WillDraw\n"
"race:skia::(anonymous namespace)::g_pixel_geometry\n"
"race:PR_Lock\n"
"race:sctp_express_handle_sack\n"
"race:system_base_info\n"
"race:tzset_internal\n"
"deadlock:g_type_add_interface_static\n"
// http:://crbug.com/386385
"race:content::AppCacheStorageImpl::DatabaseTask::CallRunCompleted\n"
"deadlock:"
"base::trace_event::TraceEventTestFixture_ThreadOnceBlocking_Test::"
"TestBody\n"
"deadlock:base::trace_event::TraceLog::GetCategoryGroupEnabled\n"
// Lock inversion in third party code, won't fix.
"deadlock:dbus::Bus::ShutdownAndBlock\n"
"race:randomnessPid\n"
"race:usrsctp_close\n"
"race:third_party/libjpeg_turbo/simd/jsimd_x86_64.c\n"
"deadlock:libGLX.so*\n"
"deadlock:libnvidia-glsi.so*\n"
"race:base::i18n::IsRTL\n"
"race:base::i18n::SetICUDefaultLocale\n"
"race:base::debug::SetCrashKeyString\n"
"race:crash_reporter::internal::CrashKeyStringImpl::Set\n"
"race:net::(anonymous namespace)::g_network_change_notifier\n"
"race:vp3_update_thread_context\n"
// Benign data race in libjpeg-turbo, won't fix
"race:third_party/libjpeg_turbo/simd/x86_64/jsimd.c\n"
"race:absl::synchronization_internal::Waiter::Post\n"
// End of suppressions.
; // Please keep this semicolon.
#endif // THREAD_SANITIZER