Home | History | Annotate | Download | only in sanitizers
      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 // Split up suppressions covered previously by thread.cc and messagequeue.cc.
     27 "race:rtc::MessageQueue::Quit\n"
     28 "race:FileVideoCapturerTest::VideoCapturerListener::OnFrameCaptured\n"
     29 "race:vp8cx_remove_encoder_threads\n"
     30 "race:third_party/libvpx_new/source/libvpx/vp9/common/vp9_scan.h\n"
     31 
     32 // Usage of trace callback and trace level is racy in libjingle_media_unittests.
     33 // https://code.google.com/p/webrtc/issues/detail?id=3372
     34 "race:webrtc::TraceImpl::WriteToFile\n"
     35 "race:webrtc::VideoEngine::SetTraceFilter\n"
     36 "race:webrtc::VoiceEngine::SetTraceFilter\n"
     37 "race:webrtc::Trace::set_level_filter\n"
     38 "race:webrtc::GetStaticInstance<webrtc::TraceImpl>\n"
     39 
     40 // Audio processing
     41 // https://code.google.com/p/webrtc/issues/detail?id=2521 for details.
     42 "race:webrtc/modules/audio_processing/aec/aec_core.c\n"
     43 "race:webrtc/modules/audio_processing/aec/aec_rdft.c\n"
     44 
     45 // Race in pulse initialization.
     46 // https://code.google.com/p/webrtc/issues/detail?id=5152
     47 "race:webrtc::AudioDeviceLinuxPulse::Init\n"
     48 
     49 // rtc_unittest
     50 // https://code.google.com/p/webrtc/issues/detail?id=3911 for details.
     51 "race:rtc::AsyncInvoker::OnMessage\n"
     52 "race:rtc::FireAndForgetAsyncClosure<FunctorB>::Execute\n"
     53 "race:rtc::MessageQueueManager::Clear\n"
     54 "race:rtc::Thread::Clear\n"
     55 // https://code.google.com/p/webrtc/issues/detail?id=3914
     56 "race:rtc::AsyncInvoker::~AsyncInvoker\n"
     57 // https://code.google.com/p/webrtc/issues/detail?id=2080
     58 "race:webrtc/base/logging.cc\n"
     59 "race:webrtc/base/sharedexclusivelock_unittest.cc\n"
     60 "race:webrtc/base/signalthread_unittest.cc\n"
     61 // https://code.google.com/p/webrtc/issues/detail?id=4456
     62 "deadlock:rtc::MessageQueueManager::Clear\n"
     63 "deadlock:rtc::MessageQueueManager::ClearInternal\n"
     64 
     65 // libjingle_p2p_unittest
     66 // https://code.google.com/p/webrtc/issues/detail?id=2079
     67 "race:webrtc/base/testclient.cc\n"
     68 "race:webrtc/base/virtualsocketserver.cc\n"
     69 "race:talk/p2p/base/stunserver_unittest.cc\n"
     70 
     71 // third_party/usrsctp
     72 // TODO(jiayl): https://code.google.com/p/webrtc/issues/detail?id=3492
     73 "race:user_sctp_timer_iterate\n"
     74 
     75 // https://code.google.com/p/webrtc/issues/detail?id=5151
     76 "race:sctp_close\n"
     77 
     78 // Potential deadlocks detected after roll in r6516.
     79 // https://code.google.com/p/webrtc/issues/detail?id=3509
     80 "deadlock:webrtc::RTCPReceiver::SetSsrcs\n"
     81 "deadlock:webrtc::test::UdpSocketManagerPosixImpl::RemoveSocket\n"
     82 "deadlock:webrtc::vcm::VideoReceiver::RegisterPacketRequestCallback\n"
     83 "deadlock:webrtc::ViEEncoder::OnLocalSsrcChanged\n"
     84 
     85 // TODO(pbos): Trace events are racy due to lack of proper POD atomics.
     86 // https://code.google.com/p/webrtc/issues/detail?id=2497
     87 "race:*trace_event_unique_catstatic*\n"
     88 
     89 // https://code.google.com/p/webrtc/issues/detail?id=4719
     90 "race:webrtc::voe::TransmitMixer::PrepareDemux\n"
     91 "race:webrtc::voe::TransmitMixer::EnableStereoChannelSwapping\n"
     92 
     93 // Race between InitCpuFlags and TestCpuFlag in libyuv.
     94 // https://code.google.com/p/libyuv/issues/detail?id=508
     95 "race:InitCpuFlags\n"
     96 
     97 // End of suppressions.
     98 ;  // Please keep this semicolon.
     99 
    100 #endif  // THREAD_SANITIZER
    101