kjellander@webrtc.org | 767d98e | 2014-06-27 09:18:51 +0000 | [diff] [blame^] | 1 | /* |
| 2 | * Copyright (c) 2014 The WebRTC project authors. All Rights Reserved. |
| 3 | * |
| 4 | * Use of this source code is governed by a BSD-style license |
| 5 | * that can be found in the LICENSE file in the root of the source |
| 6 | * tree. An additional intellectual property rights grant can be found |
| 7 | * in the file PATENTS. All contributing project authors may |
| 8 | * be found in the AUTHORS file in the root of the source tree. |
| 9 | */ |
| 10 | |
| 11 | // This file contains the WebRTC suppressions for ThreadSanitizer. |
| 12 | // Please refer to |
| 13 | // http://dev.chromium.org/developers/testing/threadsanitizer-tsan-v2 |
| 14 | // for more info. |
| 15 | |
| 16 | #if defined(THREAD_SANITIZER) |
| 17 | |
| 18 | // Please make sure the code below declares a single string variable |
| 19 | // kTSanDefaultSuppressions contains TSan suppressions delimited by newlines. |
| 20 | // See http://dev.chromium.org/developers/testing/threadsanitizer-tsan-v2 |
| 21 | // for the instructions on writing suppressions. |
| 22 | char kTSanDefaultSuppressions[] = |
| 23 | |
| 24 | // WebRTC specific suppressions. |
| 25 | |
| 26 | // False positive in system wrappers. |
| 27 | // https://code.google.com/p/webrtc/issues/detail?id=300 |
| 28 | "race:webrtc/system_wrappers/source/thread_posix.cc\n" |
| 29 | |
| 30 | // Audio processing |
| 31 | // https://code.google.com/p/webrtc/issues/detail?id=2521 for details. |
| 32 | "race:webrtc/modules/audio_processing/aec/aec_core.c\n" |
| 33 | "race:webrtc/modules/audio_processing/aec/aec_rdft.c\n" |
| 34 | |
| 35 | // libjingle_p2p_unittest |
| 36 | // https://code.google.com/p/webrtc/issues/detail?id=2079 |
| 37 | "race:webrtc/base/messagequeue.cc\n" |
| 38 | "race:webrtc/base/testclient.cc\n" |
| 39 | "race:webrtc/base/virtualsocketserver.cc\n" |
| 40 | "race:talk/base/messagequeue.cc\n" |
| 41 | "race:talk/base/testclient.cc\n" |
| 42 | "race:talk/base/virtualsocketserver.cc\n" |
| 43 | "race:talk/p2p/base/stunserver_unittest.cc\n" |
| 44 | |
| 45 | // libjingle_unittest |
| 46 | // https://code.google.com/p/webrtc/issues/detail?id=2080 |
| 47 | "race:webrtc/base/logging.cc\n" |
| 48 | "race:webrtc/base/sharedexclusivelock_unittest.cc\n" |
| 49 | "race:webrtc/base/signalthread_unittest.cc\n" |
| 50 | "race:webrtc/base/thread.cc\n" |
| 51 | "race:talk/base/logging.cc\n" |
| 52 | "race:talk/base/sharedexclusivelock_unittest.cc\n" |
| 53 | "race:talk/base/signalthread_unittest.cc\n" |
| 54 | "race:talk/base/thread.cc\n" |
| 55 | |
| 56 | // third_party/usrsctp |
| 57 | // TODO(jiayl): https://code.google.com/p/webrtc/issues/detail?id=3492 |
| 58 | "race:third_party/usrsctp/usrsctplib/user_sctp_timer_iterate.c\n" |
| 59 | |
| 60 | // Potential deadlocks detected after roll in r6516. |
| 61 | // https://code.google.com/p/webrtc/issues/detail?id=3509 |
| 62 | "deadlock:talk/base/criticalsection.h\n" |
| 63 | "deadlock:talk/base/sigslot.h\n" |
| 64 | "deadlock:webrtc/system_wrappers/source/critical_section_posix.cc\n" |
| 65 | "deadlock:webrtc/system_wrappers/source/rw_lock_posix.cc\n" |
| 66 | "deadlock:webrtc/system_wrappers/source/thread_posix.cc\n" |
| 67 | |
| 68 | |
| 69 | |
| 70 | // From Chromium's tsan_suppressions.cc file. |
| 71 | |
| 72 | // False positives in libglib.so. Since we don't instrument them, we cannot |
| 73 | // reason about the synchronization in them. |
| 74 | "race:libglib*.so\n" |
| 75 | |
| 76 | // Races in libevent, http://crbug.com/23244. |
| 77 | "race:libevent/event.c\n" |
| 78 | |
| 79 | // http://crbug.com/84094. |
| 80 | "race:sqlite3StatusSet\n" |
| 81 | "race:pcache1EnforceMaxPage\n" |
| 82 | "race:pcache1AllocPage\n" |
| 83 | |
| 84 | // http://crbug.com/157586 |
| 85 | "race:third_party/libvpx/source/libvpx/vp8/decoder/threading.c\n" |
| 86 | |
| 87 | // http://crbug.com/158922 |
| 88 | "race:third_party/libvpx/source/libvpx/vp8/encoder/*\n" |
| 89 | |
| 90 | // http://crbug.com/223352 |
| 91 | "race:uprv_malloc_46\n" |
| 92 | "race:uprv_realloc_46\n" |
| 93 | |
| 94 | // http://crbug.com/244385 |
| 95 | "race:unixTempFileDir\n" |
| 96 | |
| 97 | // http://crbug.com/244774 |
| 98 | "race:webrtc::RTPReceiver::ProcessBitrate\n" |
| 99 | "race:webrtc::RTPSender::ProcessBitrate\n" |
| 100 | "race:webrtc::VideoCodingModuleImpl::Decode\n" |
| 101 | "race:webrtc::RTPSender::SendOutgoingData\n" |
| 102 | "race:webrtc::VP8EncoderImpl::GetEncodedPartitions\n" |
| 103 | "race:webrtc::VP8EncoderImpl::Encode\n" |
| 104 | "race:webrtc::ViEEncoder::DeliverFrame\n" |
| 105 | "race:webrtc::vcm::VideoReceiver::Decode\n" |
| 106 | "race:webrtc::VCMReceiver::FrameForDecoding\n" |
| 107 | "race:*trace_event_unique_catstatic*\n" |
| 108 | |
| 109 | // http://crbug.com/244856 |
| 110 | "race:AutoPulseLock\n" |
| 111 | |
| 112 | // http://crbug.com/246968 |
| 113 | "race:webrtc::VideoCodingModuleImpl::RegisterPacketRequestCallback\n" |
| 114 | |
| 115 | // http://crbug.com/246970 |
| 116 | "race:webrtc::EventPosix::StartTimer\n" |
| 117 | |
| 118 | // http://crbug.com/258479 |
| 119 | "race:SamplingStateScope\n" |
| 120 | "race:g_trace_state\n" |
| 121 | |
| 122 | // http://crbug.com/270037 |
| 123 | "race:gLibCleanupFunctions\n" |
| 124 | |
| 125 | // http://crbug.com/272987 |
| 126 | "race:webrtc::MediaStreamTrack<webrtc::AudioTrackInterface>::set_enabled\n" |
| 127 | |
| 128 | // http://crbug.com/345245 |
| 129 | "race:jingle_glue::JingleThreadWrapper::~JingleThreadWrapper\n" |
| 130 | "race:webrtc::voe::Channel::UpdatePacketDelay\n" |
| 131 | "race:webrtc::voe::Channel::GetDelayEstimate\n" |
| 132 | "race:webrtc::VCMCodecDataBase::DeregisterReceiveCodec\n" |
| 133 | "race:webrtc::GainControlImpl::set_stream_analog_level\n" |
| 134 | |
| 135 | // http://crbug.com/347538 |
| 136 | "race:sctp_timer_start\n" |
| 137 | |
| 138 | // http://crbug.com/347548 |
| 139 | "race:cricket::WebRtcVideoMediaChannel::MaybeResetVieSendCodec\n" |
| 140 | "race:cricket::WebRtcVideoMediaChannel::SetSendCodec\n" |
| 141 | |
| 142 | // http://crbug.com/348511 |
| 143 | "race:webrtc::acm1::AudioCodingModuleImpl::PlayoutData10Ms\n" |
| 144 | |
| 145 | // http://crbug.com/348982 |
| 146 | "race:cricket::P2PTransportChannel::OnConnectionDestroyed\n" |
| 147 | "race:cricket::P2PTransportChannel::AddConnection\n" |
| 148 | |
| 149 | // http://crbug.com/348984 |
| 150 | "race:sctp_express_handle_sack\n" |
| 151 | |
| 152 | // http://crbug.com/350982 |
| 153 | "race:libvpx/vp9/decoder/vp9_thread.c\n" |
| 154 | |
| 155 | // http://crbug.com/372807 |
| 156 | "deadlock:net::X509Certificate::CreateCertificateListFromBytes\n" |
| 157 | "deadlock:net::X509Certificate::CreateFromBytes\n" |
| 158 | "deadlock:net::SSLClientSocketNSS::Core::DoHandshakeLoop\n" |
| 159 | |
| 160 | // False positive in libc's tzset_internal, http://crbug.com/379738. |
| 161 | "race:tzset_internal\n" |
| 162 | |
| 163 | // http://crbug.com/380554 |
| 164 | "deadlock:g_type_add_interface_static\n" |
| 165 | |
| 166 | // End of suppressions. |
| 167 | ; // Please keep this semicolon. |
| 168 | |
| 169 | #endif // THREAD_SANITIZER |