blob: 5092ddd45ca41395c24f88cf946fbc00aac71de6 [file] [log] [blame]
Ben Murdoch097c5b22016-05-18 11:27:45 +01001// Copyright 2014 The Chromium Authors. All rights reserved.
2// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4
5// This file contains the default suppressions for ThreadSanitizer.
6// You can also pass additional suppressions via TSAN_OPTIONS:
7// TSAN_OPTIONS=suppressions=/path/to/suppressions. Please refer to
8// http://dev.chromium.org/developers/testing/threadsanitizer-tsan-v2
9// for more info.
10
11#if defined(THREAD_SANITIZER)
12
13// Please make sure the code below declares a single string variable
14// kTSanDefaultSuppressions contains TSan suppressions delimited by newlines.
15// See http://dev.chromium.org/developers/testing/threadsanitizer-tsan-v2
16// for the instructions on writing suppressions.
17char kTSanDefaultSuppressions[] =
18// False positives in libflashplayer.so and libglib.so. Since we don't
19// instrument them, we cannot reason about the synchronization in them.
20"race:libflashplayer.so\n"
21"race:libglib*.so\n"
22
23// Intentional race in ToolsSanityTest.DataRace in base_unittests.
24"race:base/tools_sanity_unittest.cc\n"
25
26// Data race on WatchdogCounter [test-only].
27"race:base/threading/watchdog_unittest.cc\n"
28
29// Races in libevent, http://crbug.com/23244.
30"race:libevent/event.c\n"
31
32// http://crbug.com/46840.
33"race:base::HistogramSamples::IncreaseSum\n"
34"race:base::Histogram::Add\n"
35"race:base::HistogramSamples::Add\n"
36
37// http://crbug.com/84094.
38"race:sqlite3StatusSet\n"
39"race:pcache1EnforceMaxPage\n"
40"race:pcache1AllocPage\n"
41
42// http://crbug.com/102327.
43// Test-only race, won't fix.
44"race:tracked_objects::ThreadData::ShutdownSingleThreadedCleanup\n"
45
46// http://crbug.com/120808
47"race:base/threading/watchdog.cc\n"
48
49// http://crbug.com/157586
50"race:third_party/libvpx/source/libvpx/vp8/decoder/threading.c\n"
51
52// http://crbug.com/158718
53"race:third_party/ffmpeg/libavcodec/pthread.c\n"
54"race:third_party/ffmpeg/libavcodec/pthread_frame.c\n"
55"race:third_party/ffmpeg/libavcodec/vp8.c\n"
56"race:third_party/ffmpeg/libavutil/mem.c\n"
57"race:*HashFrameForTesting\n"
58"race:third_party/ffmpeg/libavcodec/h264pred.c\n"
59"race:media::ReleaseData\n"
60
61// http://crbug.com/158922
62"race:third_party/libvpx/source/libvpx/vp8/encoder/*\n"
63"race:third_party/libvpx/source/libvpx/vp9/encoder/*\n"
64
65// http://crbug.com/189177
66"race:thread_manager\n"
67"race:v8::Locker::Initialize\n"
68
69// http://crbug.com/239359
70"race:media::TestInputCallback::OnData\n"
71
72// http://crbug.com/244368
73"race:skia::BeginPlatformPaint\n"
74
75// http://crbug.com/244385
76"race:unixTempFileDir\n"
77
78// http://crbug.com/244755
79"race:v8::internal::Zone::NewExpand\n"
80"race:TooLateToEnableNow\n"
81"race:adjust_segment_bytes_allocated\n"
82
83// http://crbug.com/244774
84"race:webrtc::RTPReceiver::ProcessBitrate\n"
85"race:webrtc::RTPSender::ProcessBitrate\n"
86"race:webrtc::VideoCodingModuleImpl::Decode\n"
87"race:webrtc::RTPSender::SendOutgoingData\n"
88"race:webrtc::VP8EncoderImpl::GetEncodedPartitions\n"
89"race:webrtc::VP8EncoderImpl::Encode\n"
90"race:webrtc::ViEEncoder::DeliverFrame\n"
91"race:webrtc::vcm::VideoReceiver::Decode\n"
92"race:webrtc::VCMReceiver::FrameForDecoding\n"
93"race:*trace_event_unique_catstatic*\n"
94
95// http://crbug.com/244856
96"race:AutoPulseLock\n"
97
98// http://crbug.com/246968
99"race:webrtc::VideoCodingModuleImpl::RegisterPacketRequestCallback\n"
100
101// http://crbug.com/246974
102"race:content::GpuWatchdogThread::CheckArmed\n"
103
104// http://crbug.com/257396
105"race:base::trace_event::"
106 "TraceEventTestFixture_TraceSamplingScope_Test::TestBody\n"
107
108// http://crbug.com/258479
109"race:SamplingStateScope\n"
110"race:g_trace_state\n"
111
112// http://crbug.com/258499
113"race:third_party/skia/include/core/SkRefCnt.h\n"
114
115// http://crbug.com/268924
116"race:base::g_power_monitor\n"
117"race:base::PowerMonitor::PowerMonitor\n"
118"race:base::PowerMonitor::AddObserver\n"
119"race:base::PowerMonitor::RemoveObserver\n"
120"race:base::PowerMonitor::IsOnBatteryPower\n"
121
122// http://crbug.com/258935
123"race:base::Thread::StopSoon\n"
124
125// http://crbug.com/272095
126"race:base::g_top_manager\n"
127
128// http://crbug.com/280466
129"race:content::WebRtcAudioCapturer::SetCapturerSource\n"
130
131// http://crbug.com/285242
132"race:media::PulseAudioOutputStream::SetVolume\n"
133
134// http://crbug.com/308590
135"race:CustomThreadWatcher::~CustomThreadWatcher\n"
136
137// http://crbug.com/310851
138"race:net::ProxyResolverV8Tracing::Job::~Job\n"
139
140// http://crbug.com/327330
141"race:PrepareTextureMailbox\n"
142"race:cc::LayerTreeHost::PaintLayerContents\n"
143
144// http://crbug.com/476529
145"deadlock:cc::VideoLayerImpl::WillDraw\n"
146
147// http://crbug.com/328826
148"race:gLCDOrder\n"
149"race:gLCDOrientation\n"
150
151// http://crbug.com/328868
152"race:PR_Lock\n"
153
154// http://crbug.com/329225
155"race:blink::currentTimeFunction\n"
156
157// http://crbug.com/333244
158"race:content::"
159 "VideoCaptureImplTest::MockVideoCaptureImpl::~MockVideoCaptureImpl\n"
160
161// http://crbug.com/333871
162"race:v8::internal::Interface::NewValue()::value_interface\n"
163"race:v8::internal::IsMinusZero(double)::minus_zero\n"
164"race:v8::internal::FastCloneShallowObjectStub::InitializeInterfaceDescriptor\n"
165"race:v8::internal::KeyedLoadStubCompiler::registers\n"
166"race:v8::internal::KeyedStoreStubCompiler::registers()::registers\n"
167"race:v8::internal::KeyedLoadFastElementStub::InitializeInterfaceDescriptor\n"
168"race:v8::internal::KeyedStoreFastElementStub::InitializeInterfaceDescriptor\n"
169"race:v8::internal::LoadStubCompiler::registers\n"
170"race:v8::internal::StoreStubCompiler::registers\n"
171"race:v8::internal::HValue::LoopWeight\n"
172
173// http://crbug.com/334140
174"race:CommandLine::HasSwitch\n"
175"race:CommandLine::current_process_commandline_\n"
176"race:CommandLine::GetSwitchValueASCII\n"
177
178// http://crbug.com/338675
179"race:blink::s_platform\n"
180"race:content::"
181 "RendererWebKitPlatformSupportImpl::~RendererWebKitPlatformSupportImpl\n"
182
183// http://crbug.com/345240
184"race:WTF::s_shutdown\n"
185
186// http://crbug.com/345618
187"race:WebCore::AudioDestinationNode::render\n"
188
189// http://crbug.com/345624
190"race:media::DataSource::set_host\n"
191
192// http://crbug.com/347534
193"race:v8::internal::V8::TearDown\n"
194
195// http://crbug.com/347538
196"race:sctp_timer_start\n"
197
198// http://crbug.com/347548
199"race:cricket::WebRtcVideoMediaChannel::MaybeResetVieSendCodec\n"
200"race:cricket::WebRtcVideoMediaChannel::SetSendCodec\n"
201
202// http://crbug.com/347553
203"race:blink::WebString::reset\n"
204
205// http://crbug.com/348511
206"race:webrtc::acm1::AudioCodingModuleImpl::PlayoutData10Ms\n"
207
208// http://crbug.com/348982
209"race:cricket::P2PTransportChannel::OnConnectionDestroyed\n"
210"race:cricket::P2PTransportChannel::AddConnection\n"
211
212// http://crbug.com/348984
213"race:sctp_express_handle_sack\n"
214"race:system_base_info\n"
215
216// http://crbug.com/363999
217"race:v8::internal::EnterDebugger::*EnterDebugger\n"
218
219// https://code.google.com/p/v8/issues/detail?id=3143
220"race:v8::internal::FLAG_track_double_fields\n"
221
222// https://crbug.com/369257
223// TODO(mtklein): annotate properly and remove suppressions.
224"race:SandboxIPCHandler::HandleFontMatchRequest\n"
225"race:SkFontConfigInterfaceDirect::matchFamilyName\n"
226"race:SkFontConfigInterface::GetSingletonDirectInterface\n"
227"race:FcStrStaticName\n"
228
229// http://crbug.com/374135
230"race:media::AlsaWrapper::PcmWritei\n"
231
232// False positive in libc's tzset_internal, http://crbug.com/379738.
233"race:tzset_internal\n"
234
235// http://crbug.com/380554
236"deadlock:g_type_add_interface_static\n"
237
238// http:://crbug.com/386385
239"race:content::AppCacheStorageImpl::DatabaseTask::CallRunCompleted\n"
240
241// http://crbug.com/388730
242"race:g_next_user_script_id\n"
243
244// http://crbug.com/397022
245"deadlock:"
246"base::trace_event::TraceEventTestFixture_ThreadOnceBlocking_Test::TestBody\n"
247
248// http://crbug.com/415472
249"deadlock:base::trace_event::TraceLog::GetCategoryGroupEnabled\n"
250
251// http://crbug.com/490856
252"deadlock:content::TracingControllerImpl::SetEnabledOnFileThread\n"
253
254// http://crbug.com/417193
255// Suppressing both AudioContext.{cpp,h}.
256"race:modules/webaudio/AudioContext\n"
257
258// https://code.google.com/p/skia/issues/detail?id=3294
259"race:SkBaseMutex::acquire\n"
260
261// https://crbug.com/430533
262"race:TileTaskGraphRunner::Run\n"
263
264// https://crbug.com/448203
265"race:blink::RemoteFrame::detach\n"
266
267// Lock inversion in third party code, won't fix.
268// https://crbug.com/455638
269"deadlock:dbus::Bus::ShutdownAndBlock\n"
270
271// https://crbug.com/459429
272"race:randomnessPid\n"
273
274// https://crbug.com/454655
275"race:content::BrowserTestBase::PostTaskToInProcessRendererAndWait\n"
276
277// https://crbug.com/569682
278"race:blink::ThreadState::visitStackRoots\n"
279
280// http://crbug.com/582274
281"race:usrsctp_close\n"
282
283// End of suppressions.
284; // Please keep this semicolon.
285
286#endif // THREAD_SANITIZER