• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 // 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.
17 char kTSanDefaultSuppressions[] =
18     // False positives in libflashplayer.so, libgio.so and libglib.so.
19     // Since we don't instrument them, we cannot reason about the
20     // synchronization in them.
21     "race:libflashplayer.so\n"
22     "race:libgio*.so\n"
23     "race:libglib*.so\n"
24 
25     // Intentional race in ToolsSanityTest.DataRace in base_unittests.
26     "race:base/tools_sanity_unittest.cc\n"
27 
28     // Data race on WatchdogCounter [test-only].
29     "race:base/threading/watchdog_unittest.cc\n"
30 
31     // Races in libevent, http://crbug.com/23244.
32     "race:libevent/event.c\n"
33 
34     // http://crbug.com/84094.
35     "race:sqlite3StatusSet\n"
36     "race:pcache1EnforceMaxPage\n"
37     "race:pcache1AllocPage\n"
38 
39     // http://crbug.com/120808
40     "race:base/threading/watchdog.cc\n"
41 
42     // http://crbug.com/157586
43     "race:third_party/libvpx/source/libvpx/vp8/decoder/threading.c\n"
44 
45     // http://crbug.com/158718
46     "race:third_party/ffmpeg/libavcodec/pthread.c\n"
47     "race:third_party/ffmpeg/libavcodec/pthread_frame.c\n"
48     "race:third_party/ffmpeg/libavcodec/vp8.c\n"
49     "race:third_party/ffmpeg/libavutil/mem.c\n"
50     "race:*HashFrameForTesting\n"
51     "race:third_party/ffmpeg/libavcodec/h264pred.c\n"
52     "race:media::ReleaseData\n"
53 
54     // http://crbug.com/158922
55     "race:third_party/libvpx/source/libvpx/vp8/encoder/*\n"
56     "race:third_party/libvpx/source/libvpx/vp9/encoder/*\n"
57 
58     // http://crbug.com/239359
59     "race:media::TestInputCallback::OnData\n"
60 
61     // http://crbug.com/244368
62     "race:skia::BeginPlatformPaint\n"
63 
64     // http://crbug.com/244385
65     "race:unixTempFileDir\n"
66 
67     // http://crbug.com/244755
68     "race:v8::internal::Zone::NewExpand\n"
69     "race:TooLateToEnableNow\n"
70     "race:adjust_segment_bytes_allocated\n"
71 
72     // http://crbug.com/244774
73     "race:webrtc::RTPReceiver::ProcessBitrate\n"
74     "race:webrtc::RTPSender::ProcessBitrate\n"
75     "race:webrtc::VideoCodingModuleImpl::Decode\n"
76     "race:webrtc::RTPSender::SendOutgoingData\n"
77     "race:webrtc::LibvpxVp8Encoder::GetEncodedPartitions\n"
78     "race:webrtc::LibvpxVp8Encoder::Encode\n"
79     "race:webrtc::ViEEncoder::DeliverFrame\n"
80     "race:webrtc::vcm::VideoReceiver::Decode\n"
81     "race:webrtc::VCMReceiver::FrameForDecoding\n"
82     "race:*trace_event_unique_catstatic*\n"
83 
84     // http://crbug.com/244856
85     "race:libpulsecommon*.so\n"
86 
87     // http://crbug.com/246968
88     "race:webrtc::VideoCodingModuleImpl::RegisterPacketRequestCallback\n"
89 
90     // http://crbug.com/257396
91     "race:base::trace_event::"
92     "TraceEventTestFixture_TraceSamplingScope_Test::TestBody\n"
93 
94     // http://crbug.com/258479
95     "race:SamplingStateScope\n"
96     "race:g_trace_state\n"
97 
98     // http://crbug.com/258499
99     "race:third_party/skia/include/core/SkRefCnt.h\n"
100 
101     // http://crbug.com/268924
102     "race:base::g_power_monitor\n"
103     "race:base::PowerMonitor::PowerMonitor\n"
104     "race:base::PowerMonitor::AddObserver\n"
105     "race:base::PowerMonitor::RemoveObserver\n"
106     "race:base::PowerMonitor::IsOnBatteryPower\n"
107 
108     // http://crbug.com/258935
109     "race:base::Thread::StopSoon\n"
110 
111     // http://crbug.com/272095
112     "race:base::g_top_manager\n"
113 
114     // http://crbug.com/308590
115     "race:CustomThreadWatcher::~CustomThreadWatcher\n"
116 
117     // http://crbug.com/310851
118     "race:net::ProxyResolverV8Tracing::Job::~Job\n"
119 
120     // http://crbug.com/476529
121     "deadlock:cc::VideoLayerImpl::WillDraw\n"
122 
123     // http://crbug.com/328826
124     "race:gLCDOrder\n"
125     "race:gLCDOrientation\n"
126 
127     // http://crbug.com/328868
128     "race:PR_Lock\n"
129 
130     // http://crbug.com/333244
131     "race:content::"
132     "VideoCaptureImplTest::MockVideoCaptureImpl::~MockVideoCaptureImpl\n"
133 
134     // http://crbug.com/333871
135     "race:v8::internal::Interface::NewValue()::value_interface\n"
136     "race:v8::internal::IsMinusZero(double)::minus_zero\n"
137     "race:v8::internal::FastCloneShallowObjectStub::"
138     "InitializeInterfaceDescriptor\n"
139     "race:v8::internal::KeyedLoadStubCompiler::registers\n"
140     "race:v8::internal::KeyedStoreStubCompiler::registers()::registers\n"
141     "race:v8::internal::KeyedLoadFastElementStub::"
142     "InitializeInterfaceDescriptor\n"
143     "race:v8::internal::KeyedStoreFastElementStub::"
144     "InitializeInterfaceDescriptor\n"
145     "race:v8::internal::LoadStubCompiler::registers\n"
146     "race:v8::internal::StoreStubCompiler::registers\n"
147     "race:v8::internal::HValue::LoopWeight\n"
148 
149     // http://crbug.com/334140
150     "race:CommandLine::HasSwitch\n"
151     "race:CommandLine::current_process_commandline_\n"
152     "race:CommandLine::GetSwitchValueASCII\n"
153 
154     // http://crbug.com/338675
155     "race:blink::s_platform\n"
156     "race:content::"
157     "RendererWebKitPlatformSupportImpl::~RendererWebKitPlatformSupportImpl\n"
158 
159     // http://crbug.com/347534
160     "race:v8::internal::V8::TearDown\n"
161 
162     // http://crbug.com/347538
163     "race:sctp_timer_start\n"
164 
165     // http://crbug.com/347553
166     "race:blink::WebString::reset\n"
167 
168     // http://crbug.com/348511
169     "race:webrtc::acm1::AudioCodingModuleImpl::PlayoutData10Ms\n"
170 
171     // http://crbug.com/348982
172     "race:cricket::P2PTransportChannel::OnConnectionDestroyed\n"
173     "race:cricket::P2PTransportChannel::AddConnection\n"
174 
175     // http://crbug.com/348984
176     "race:sctp_express_handle_sack\n"
177     "race:system_base_info\n"
178 
179     // https://code.google.com/p/v8/issues/detail?id=3143
180     "race:v8::internal::FLAG_track_double_fields\n"
181 
182     // http://crbug.com/374135
183     "race:media::AlsaWrapper::PcmWritei\n"
184 
185     // False positive in libc's tzset_internal, http://crbug.com/379738.
186     "race:tzset_internal\n"
187 
188     // http://crbug.com/380554
189     "deadlock:g_type_add_interface_static\n"
190 
191     // http:://crbug.com/386385
192     "race:content::AppCacheStorageImpl::DatabaseTask::CallRunCompleted\n"
193 
194     // http://crbug.com/388730
195     "race:g_next_user_script_id\n"
196 
197     // http://crbug.com/397022
198     "deadlock:"
199     "base::trace_event::TraceEventTestFixture_ThreadOnceBlocking_Test::"
200     "TestBody\n"
201 
202     // http://crbug.com/415472
203     "deadlock:base::trace_event::TraceLog::GetCategoryGroupEnabled\n"
204 
205     // http://crbug.com/490856
206     "deadlock:content::TracingControllerImpl::SetEnabledOnFileThread\n"
207 
208     // https://code.google.com/p/skia/issues/detail?id=3294
209     "race:SkBaseMutex::acquire\n"
210 
211     // https://crbug.com/430533
212     "race:TileTaskGraphRunner::Run\n"
213 
214     // Lock inversion in third party code, won't fix.
215     // https://crbug.com/455638
216     "deadlock:dbus::Bus::ShutdownAndBlock\n"
217 
218     // https://crbug.com/459429
219     "race:randomnessPid\n"
220 
221     // https://crbug.com/454655
222     "race:content::BrowserTestBase::PostTaskToInProcessRendererAndWait\n"
223 
224     // https://crbug.com/569682
225     "race:blink::ThreadState::visitStackRoots\n"
226 
227     // http://crbug.com/582274
228     "race:usrsctp_close\n"
229 
230     // http://crbug.com/633145
231     "race:third_party/libjpeg_turbo/simd/jsimd_x86_64.c\n"
232 
233     // http://crbug.com/587199
234     "race:base::TimerTest_OneShotTimer_CustomTaskRunner_Test::TestBody\n"
235     "race:base::TimerSequenceTest_OneShotTimerTaskOnPoolSequence_Test::"
236     "TestBody\n"
237     "race:base::TimerSequenceTest_"
238     "OneShotTimerUsedAndTaskedOnDifferentSequences\n"
239 
240     // http://crbug.com/v8/6065
241     "race:net::(anonymous namespace)::ProxyResolverV8TracingImpl::RequestImpl"
242     "::~RequestImpl()\n"
243 
244     // http://crbug.com/691029
245     "deadlock:libGLX.so*\n"
246 
247     // http://crbug.com/719633
248     "race:crypto::EnsureNSSInit()\n"
249 
250     // http://crbug.com/695929
251     "race:base::i18n::IsRTL\n"
252     "race:base::i18n::SetICUDefaultLocale\n"
253 
254     // https://crbug.com/794920
255     "race:base::debug::SetCrashKeyString\n"
256     "race:crash_reporter::internal::CrashKeyStringImpl::Set\n"
257 
258     // http://crbug.com/795110
259     "race:third_party/fontconfig/*\n"
260 
261     // http://crbug.com/797998
262     "race:content::SandboxIPCHandler::HandleLocaltime\n"
263 
264     // End of suppressions.
265     ;  // Please keep this semicolon.
266 
267 #endif  // THREAD_SANITIZER
268