Open Bug 1894419 Opened 18 days ago Updated 2 days ago

Permanent ThreadSanitizer data races in WebRTC transport tests

Categories

(Core :: WebRTC: Networking, defect)

defect

Tracking

()

People

(Reporter: RyanVM, Assigned: bwc)

References

Details

I've been looking at enabling GTests in TSAN mode and this is currently permafailing. Any thoughts on this, Randell?

ThreadSanitizer: data race dom/media/webrtc/transport/third_party/nrappkit/src/log/r_log.c:685:20 in r_log_set_extra_destination
https://treeherder.mozilla.org/logviewer?job_id=456514905&repo=try&lineNumber=44665

TEST-START | WebRtcIceGatherTest.TestGatherFakeStunServerHostnameNoResolver
==================
WARNING: ThreadSanitizer: data race (pid=1006)
  Write of size 4 at 0x7fef0e2f3aa8 by main thread:
    #0 r_log_set_extra_destination /checkouts/gecko/dom/media/webrtc/transport/third_party/nrappkit/src/log/r_log.c:685:20 (libxul.so+0xc147c21)
    #1 mozilla::RLogConnector::DestroyInstance() /checkouts/gecko/dom/media/webrtc/transport/rlogconnector.cpp:116:3 (libxul.so+0x6354a96)
    #2 (anonymous namespace)::StunTest::TearDown() /checkouts/gecko/dom/media/webrtc/transport/test/ice_unittest.cpp:160:5 (libxul.so+0x4ff0148)
    #3 (anonymous namespace)::WebRtcIceGatherTest::TearDown() /checkouts/gecko/dom/media/webrtc/transport/test/ice_unittest.cpp:1428:15 (libxul.so+0x4fe9c53)
    #4 void testing::internal::HandleExceptionsInMethodIfSupported<testing::Test, void>(testing::Test*, void (testing::Test::*)(), char const*) /checkouts/gecko/third_party/googletest/googletest/src/gtest.cc (libxul.so+0x42649ed)
    #5 testing::Test::Run() /checkouts/gecko/third_party/googletest/googletest/src/gtest.cc:2696:3 (libxul.so+0x42648bd)
    #6 testing::TestInfo::Run() /checkouts/gecko/third_party/googletest/googletest/src/gtest.cc:2837:11 (libxul.so+0x4266268)
    #7 testing::TestSuite::Run() /checkouts/gecko/third_party/googletest/googletest/src/gtest.cc:3016:30 (libxul.so+0x4267864)
    #8 testing::internal::UnitTestImpl::RunAllTests() /checkouts/gecko/third_party/googletest/googletest/src/gtest.cc:5922:44 (libxul.so+0x42852f9)
    #9 libvpx_test_cases_Test::TestBody() /checkouts/gecko/dom/media/gtest/TestVPXDecoding.cpp:89:9 (libxul.so+0x4a8b527)
    #10 void testing::internal::HandleExceptionsInMethodIfSupported<testing::Test, void>(testing::Test*, void (testing::Test::*)(), char const*) /checkouts/gecko/third_party/googletest/googletest/src/gtest.cc (libxul.so+0x42649ed)
    #11 testing::Test::Run() /checkouts/gecko/third_party/googletest/googletest/src/gtest.cc:2688:5 (libxul.so+0x4264859)
    #12 testing::TestInfo::Run() /checkouts/gecko/third_party/googletest/googletest/src/gtest.cc:2837:11 (libxul.so+0x4266268)
    #13 testing::TestSuite::Run() /checkouts/gecko/third_party/googletest/googletest/src/gtest.cc:3016:30 (libxul.so+0x4267864)
    #14 testing::internal::UnitTestImpl::RunAllTests() /checkouts/gecko/third_party/googletest/googletest/src/gtest.cc:5922:44 (libxul.so+0x42852f9)
    #15 testing::Test::Run() /checkouts/gecko/third_party/googletest/googletest/src/gtest.cc:2688:5 (libxul.so+0x4264859)
    #16 testing::TestInfo::Run() /checkouts/gecko/third_party/googletest/googletest/src/gtest.cc:2837:11 (libxul.so+0x4266268)
    #17 testing::TestSuite::Run() /checkouts/gecko/third_party/googletest/googletest/src/gtest.cc:3016:30 (libxul.so+0x4267864)
    #18 testing::internal::UnitTestImpl::RunAllTests() /checkouts/gecko/third_party/googletest/googletest/src/gtest.cc:5922:44 (libxul.so+0x42852f9)
    #19 testing::Test::Run() /checkouts/gecko/third_party/googletest/googletest/src/gtest.cc:2688:5 (libxul.so+0x4264859)
    #20 testing::TestInfo::Run() /checkouts/gecko/third_party/googletest/googletest/src/gtest.cc:2837:11 (libxul.so+0x4266268)
    #21 testing::TestSuite::Run() /checkouts/gecko/third_party/googletest/googletest/src/gtest.cc:3016:30 (libxul.so+0x4267864)
    #22 testing::internal::UnitTestImpl::RunAllTests() /checkouts/gecko/third_party/googletest/googletest/src/gtest.cc:5922:44 (libxul.so+0x42852f9)
    #23 bool testing::internal::HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool>(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) /checkouts/gecko/third_party/googletest/googletest/src/gtest.cc (libxul.so+0x4284a9d)
    #24 testing::UnitTest::Run() /checkouts/gecko/third_party/googletest/googletest/src/gtest.cc:5486:10 (libxul.so+0x4284840)
    #25 RUN_ALL_TESTS /workspace/obj-build/dist/include/gtest/gtest.h:2319:73 (libxul.so+0x423a1ff)
    #26 mozilla::RunGTestFunc(int*, char**) /checkouts/gecko/testing/gtest/mozilla/GTestRunner.cpp:167:10 (libxul.so+0x423a1ff)
    #27 XREMain::XRE_mainStartup(bool*) /checkouts/gecko/toolkit/xre/nsAppRunner.cpp:4686:16 (libxul.so+0xc078949)
    #28 XREMain::XRE_main(int, char**, mozilla::BootstrapConfig const&) /checkouts/gecko/toolkit/xre/nsAppRunner.cpp:5946:12 (libxul.so+0xc080672)
    #29 XRE_main(int, char**, mozilla::BootstrapConfig const&) /checkouts/gecko/toolkit/xre/nsAppRunner.cpp:6015:21 (libxul.so+0xc080db1)
    #30 mozilla::BootstrapImpl::XRE_main(int, char**, mozilla::BootstrapConfig const&) /checkouts/gecko/toolkit/xre/Bootstrap.cpp:45:12 (libxul.so+0xc08fe02)
    #31 do_main /checkouts/gecko/browser/app/nsBrowserApp.cpp:227:22 (firefox-bin+0x14ea00)
    #32 main /checkouts/gecko/browser/app/nsBrowserApp.cpp:445:16 (firefox-bin+0x14ea00)
  Previous read of size 4 at 0x7fef0e2f3aa8 by thread T5:
    #0 r_logging_dest /checkouts/gecko/dom/media/webrtc/transport/third_party/nrappkit/src/log/r_log.c:480:38 (libxul.so+0xc146d0d)
    #1 r_vlog /checkouts/gecko/dom/media/webrtc/transport/third_party/nrappkit/src/log/r_log.c:364:10 (libxul.so+0xc146d0d)
    #2 r_log /checkouts/gecko/dom/media/webrtc/transport/third_party/nrappkit/src/log/r_log.c:302:5 (libxul.so+0xc146a36)
    #3 OnSocketDetached /checkouts/gecko/dom/media/webrtc/transport/nr_socket_prsock.cpp:350:3 (libxul.so+0x63323a5)
    #4 non-virtual thunk to mozilla::NrSocket::OnSocketDetached(PRFileDesc*) /checkouts/gecko/dom/media/webrtc/transport/nr_socket_prsock.cpp (libxul.so+0x63323a5)
    #5 mozilla::net::nsSocketTransportService::DetachSocket(AutoTArray<mozilla::net::nsSocketTransportService::SocketContext, 50ul>&, mozilla::net::nsSocketTransportService::SocketContext*) /checkouts/gecko/netwerk/base/nsSocketTransportService2.cpp:424:21 (libxul.so+0x5808823)
    #6 mozilla::net::nsSocketTransportService::DoPollIteration(mozilla::BaseTimeDuration<mozilla::TimeDurationValueCalculator>*) /checkouts/gecko/netwerk/base/nsSocketTransportService2.cpp:1315:7 (libxul.so+0x580d254)
    #7 mozilla::net::nsSocketTransportService::Run() /checkouts/gecko/netwerk/base/nsSocketTransportService2.cpp:1163:7 (libxul.so+0x580c5bb)
    #8 non-virtual thunk to mozilla::net::nsSocketTransportService::Run() /checkouts/gecko/netwerk/base/nsSocketTransportService2.cpp (libxul.so+0x580e6d9)
    #9 nsThread::ProcessNextEvent(bool, bool*) /checkouts/gecko/xpcom/threads/nsThread.cpp:1193:16 (libxul.so+0x55d8c2e)
    #10 NS_ProcessNextEvent(nsIThread*, bool) /checkouts/gecko/xpcom/threads/nsThreadUtils.cpp:480:10 (libxul.so+0x55df1c4)
    #11 mozilla::ipc::MessagePumpForNonMainThreads::Run(base::MessagePump::Delegate*) /checkouts/gecko/ipc/glue/MessagePump.cpp:300:20 (libxul.so+0x612514e)
    #12 RunInternal /checkouts/gecko/ipc/chromium/src/base/message_loop.cc:370:10 (libxul.so+0x60981f8)
    #13 RunHandler /checkouts/gecko/ipc/chromium/src/base/message_loop.cc:363:3 (libxul.so+0x60981f8)
    #14 MessageLoop::Run() /checkouts/gecko/ipc/chromium/src/base/message_loop.cc:345:3 (libxul.so+0x60981f8)
    #15 nsThread::ThreadFunc(void*) /checkouts/gecko/xpcom/threads/nsThread.cpp:370:10 (libxul.so+0x55d44b3)
    #16 _pt_root /checkouts/gecko/nsprpub/pr/src/pthreads/ptthread.c:201:5 (libnspr4.so+0x4ba79)
  Location is global 'log_destinations' of size 72 at 0x7fef0e2f3a70 (libxul.so+0xf922aa8)
  Thread T5 'Socket Thread' (tid=1014, running) created by main thread at:
    #0 pthread_create /fetches/llvm-project/compiler-rt/lib/tsan/rtl/tsan_interceptors_posix.cpp:1020:3 (firefox-bin+0xc59bb)
    #1 _PR_CreateThread /checkouts/gecko/nsprpub/pr/src/pthreads/ptthread.c:458:14 (libnspr4.so+0x42cee)
    #2 PR_CreateThread /checkouts/gecko/nsprpub/pr/src/pthreads/ptthread.c:533:12 (libnspr4.so+0x37f84)
    #3 nsThread::Init(nsTSubstring<char> const&) /checkouts/gecko/xpcom/threads/nsThread.cpp:620:20 (libxul.so+0x55d5c57)
    #4 nsThreadManager::NewNamedThread(nsTSubstring<char> const&, nsIThreadManager::ThreadCreationOptions, nsIThread**) /checkouts/gecko/xpcom/threads/nsThreadManager.cpp:602:22 (libxul.so+0x55ddcfd)
    #5 NS_NewNamedThread(nsTSubstring<char> const&, nsIThread**, already_AddRefed<nsIRunnable>, nsIThreadManager::ThreadCreationOptions) /checkouts/gecko/xpcom/threads/nsThreadUtils.cpp:176:57 (libxul.so+0x55e69b3)
    #6 NS_NewNamedThread<14UL> /workspace/obj-build/dist/include/nsThreadUtils.h:87:10 (libxul.so+0x580ad1b)
    #7 mozilla::net::nsSocketTransportService::Init() /checkouts/gecko/netwerk/base/nsSocketTransportService2.cpp:748:19 (libxul.so+0x580ad1b)
    #8 mozilla::xpcom::CreateInstanceImpl(mozilla::xpcom::ModuleID, nsID const&, void**) /workspace/obj-build/xpcom/components/StaticComponents.cpp:9683:7 (libxul.so+0x558fdaa)
    #9 mozilla::xpcom::StaticModule::CreateInstance(nsID const&, void**) const /workspace/obj-build/xpcom/components/StaticComponents.cpp:12981:10 (libxul.so+0x559b98a)
    #10 CreateInstance /checkouts/gecko/xpcom/components/nsComponentManager.cpp:189:46 (libxul.so+0x55a63a7)
    #11 nsComponentManagerImpl::GetServiceLocked(mozilla::Maybe<mozilla::detail::BaseMonitorAutoLock<mozilla::Monitor>>&, (anonymous namespace)::EntryWrapper&, nsID const&, void**) /checkouts/gecko/xpcom/components/nsComponentManager.cpp:987:17 (libxul.so+0x55a63a7)
    #12 nsComponentManagerImpl::GetServiceByContractID(char const*, nsID const&, void**) /checkouts/gecko/xpcom/components/nsComponentManager.cpp:1176:10 (libxul.so+0x55a701d)
    #13 CallGetService /checkouts/gecko/xpcom/components/nsComponentManagerUtils.cpp:63:43 (libxul.so+0x55a9a9b)
    #14 nsGetServiceByContractIDWithError::operator()(nsID const&, void**) const /checkouts/gecko/xpcom/components/nsComponentManagerUtils.cpp:250:21 (libxul.so+0x55a9a9b)
    #15 assign_from_gs_contractid_with_error /workspace/obj-build/dist/include/nsCOMPtr.h:881:7 (libxul.so+0x57a3cd0)
    #16 operator= /workspace/obj-build/dist/include/nsCOMPtr.h:665:5 (libxul.so+0x57a3cd0)
    #17 mozilla::net::nsIOService::InitializeSocketTransportService() /checkouts/gecko/netwerk/base/nsIOService.cpp:439:29 (libxul.so+0x57a3cd0)
    #18 mozilla::net::nsIOService::SetOfflineInternal(bool, bool) /checkouts/gecko/netwerk/base/nsIOService.cpp:1303:7 (libxul.so+0x57a83ff)
    #19 SetOffline /checkouts/gecko/netwerk/base/nsIOService.cpp:1242:48 (libxul.so+0x57a22bc)
    #20 mozilla::net::nsIOService::Init() /checkouts/gecko/netwerk/base/nsIOService.cpp:311:3 (libxul.so+0x57a22bc)
    #21 mozilla::net::nsIOService::GetInstance() /checkouts/gecko/netwerk/base/nsIOService.cpp:496:9 (libxul.so+0x57a42f1)
    #22 mozilla::xpcom::CreateInstanceImpl(mozilla::xpcom::ModuleID, nsID const&, void**) /workspace/obj-build/xpcom/components/StaticComponents.cpp:12089:48 (libxul.so+0x5597523)
    #23 mozilla::xpcom::StaticModule::CreateInstance(nsID const&, void**) const /workspace/obj-build/xpcom/components/StaticComponents.cpp:12981:10 (libxul.so+0x559b98a)
    #24 CreateInstance /checkouts/gecko/xpcom/components/nsComponentManager.cpp:189:46 (libxul.so+0x55a63a7)
    #25 nsComponentManagerImpl::GetServiceLocked(mozilla::Maybe<mozilla::detail::BaseMonitorAutoLock<mozilla::Monitor>>&, (anonymous namespace)::EntryWrapper&, nsID const&, void**) /checkouts/gecko/xpcom/components/nsComponentManager.cpp:987:17 (libxul.so+0x55a63a7)
    #26 nsComponentManagerImpl::GetService(mozilla::xpcom::ModuleID, nsID const&, void**) /checkouts/gecko/xpcom/components/nsComponentManager.cpp:1077:10 (libxul.so+0x55a6933)
    #27 mozilla::xpcom::GetServiceHelper::operator()(nsID const&, void**) const /workspace/obj-build/xpcom/components/StaticComponents.cpp:13127:50 (libxul.so+0x559c588)
    #28 RefPtr /workspace/obj-build/dist/include/nsCOMPtr.h:1111:7 (libxul.so+0x64071fe)
    #29 nsScriptSecurityManager::Init() /checkouts/gecko/caps/nsScriptSecurityManager.cpp:1565:29 (libxul.so+0x64071fe)
    #30 nsScriptSecurityManager::InitStatics() /checkouts/gecko/caps/nsScriptSecurityManager.cpp:1627:28 (libxul.so+0x6407769)
    #31 nsXPConnect::InitStatics() /checkouts/gecko/js/xpconnect/src/nsXPConnect.cpp:165:3 (libxul.so+0x62aa5e0)
    #32 xpcModuleCtor() /checkouts/gecko/js/xpconnect/src/XPCModule.cpp:11:3 (libxul.so+0x627870f)
    #33 nsLayoutModuleInitialize() /checkouts/gecko/layout/build/nsLayoutModule.cpp:97:7 (libxul.so+0xa9cc99b)
    #34 nsComponentManagerImpl::Init() /checkouts/gecko/xpcom/components/nsComponentManager.cpp:387:5 (libxul.so+0x55a364f)
    #35 NS_InitXPCOM /checkouts/gecko/xpcom/build/XPCOMInit.cpp:448:51 (libxul.so+0x5615a40)
    #36 ScopedXPCOM /workspace/obj-build/dist/include/testing/TestHarness.h:84:15 (libxul.so+0x423a15e)
    #37 mozilla::RunGTestFunc(int*, char**) /checkouts/gecko/testing/gtest/mozilla/GTestRunner.cpp:114:15 (libxul.so+0x423a15e)
    #38 XREMain::XRE_mainStartup(bool*) /checkouts/gecko/toolkit/xre/nsAppRunner.cpp:4686:16 (libxul.so+0xc078949)
    #39 XREMain::XRE_main(int, char**, mozilla::BootstrapConfig const&) /checkouts/gecko/toolkit/xre/nsAppRunner.cpp:5946:12 (libxul.so+0xc080672)
    #40 XRE_main(int, char**, mozilla::BootstrapConfig const&) /checkouts/gecko/toolkit/xre/nsAppRunner.cpp:6015:21 (libxul.so+0xc080db1)
    #41 mozilla::BootstrapImpl::XRE_main(int, char**, mozilla::BootstrapConfig const&) /checkouts/gecko/toolkit/xre/Bootstrap.cpp:45:12 (libxul.so+0xc08fe02)
    #42 do_main /checkouts/gecko/browser/app/nsBrowserApp.cpp:227:22 (firefox-bin+0x14ea00)
    #43 main /checkouts/gecko/browser/app/nsBrowserApp.cpp:445:16 (firefox-bin+0x14ea00)
SUMMARY: ThreadSanitizer: data race /checkouts/gecko/dom/media/webrtc/transport/third_party/nrappkit/src/log/r_log.c:685:20 in r_log_set_extra_destination
Flags: needinfo?(rjesup)

And another one:
ThreadSanitizer: data race nrappkit_unittest.cpp:93:15 in (anonymous namespace)::TimerTest::cb(void*, int, void*)
https://treeherder.mozilla.org/logviewer?job_id=456516966&repo=try&lineNumber=44824

TEST-START | TimerTest.SimpleTimer
Timer fired
==================
WARNING: ThreadSanitizer: data race (pid=992)
  Write of size 1 at 0x7b1800096598 by thread T5:
    #0 (anonymous namespace)::TimerTest::cb(void*, int, void*) /checkouts/gecko/dom/media/webrtc/transport/test/nrappkit_unittest.cpp:93:15 (libxul.so+0x4f9f1fe)
    #1 Notify /checkouts/gecko/dom/media/webrtc/transport/nr_timer.cpp:128:3 (libxul.so+0x62a6589)
    #2 non-virtual thunk to mozilla::nrappkitTimerCallback::Notify(nsITimer*) /checkouts/gecko/dom/media/webrtc/transport/nr_timer.cpp (libxul.so+0x62a6589)
    #3 operator() /checkouts/gecko/xpcom/threads/nsTimerImpl.cpp:677:44 (libxul.so+0x5536a34)
    #4 matchN<mozilla::Variant<nsTimerImpl::UnknownCallback, nsCOMPtr<nsITimerCallback>, nsCOMPtr<nsIObserver>, nsTimerImpl::FuncCallback, nsTimerImpl::ClosureCallback> &, (lambda at /checkouts/gecko/xpcom/threads/nsTimerImpl.cpp:677:7), (lambda at /checkouts/gecko/xpcom/threads/nsTimerImpl.cpp:678:7), (lambda at /checkouts/gecko/xpcom/threads/nsTimerImpl.cpp:681:7), (lambda at /checkouts/gecko/xpcom/threads/nsTimerImpl.cpp:682:7)> /workspace/obj-build/dist/include/mozilla/Variant.h:309:16 (libxul.so+0x5536a34)
    #5 matchN<mozilla::Variant<nsTimerImpl::UnknownCallback, nsCOMPtr<nsITimerCallback>, nsCOMPtr<nsIObserver>, nsTimerImpl::FuncCallback, nsTimerImpl::ClosureCallback> &, (lambda at /checkouts/gecko/xpcom/threads/nsTimerImpl.cpp:676:7), (lambda at /checkouts/gecko/xpcom/threads/nsTimerImpl.cpp:677:7), (lambda at /checkouts/gecko/xpcom/threads/nsTimerImpl.cpp:678:7), (lambda at /checkouts/gecko/xpcom/threads/nsTimerImpl.cpp:681:7), (lambda at /checkouts/gecko/xpcom/threads/nsTimerImpl.cpp:682:7)> /workspace/obj-build/dist/include/mozilla/Variant.h:318:14 (libxul.so+0x5536a34)
    #6 matchN<mozilla::Variant<nsTimerImpl::UnknownCallback, nsCOMPtr<nsITimerCallback>, nsCOMPtr<nsIObserver>, nsTimerImpl::FuncCallback, nsTimerImpl::ClosureCallback> &, (lambda at /checkouts/gecko/xpcom/threads/nsTimerImpl.cpp:676:7), (lambda at /checkouts/gecko/xpcom/threads/nsTimerImpl.cpp:677:7), (lambda at /checkouts/gecko/xpcom/threads/nsTimerImpl.cpp:678:7), (lambda at /checkouts/gecko/xpcom/threads/nsTimerImpl.cpp:681:7), (lambda at /checkouts/gecko/xpcom/threads/nsTimerImpl.cpp:682:7)> /workspace/obj-build/dist/include/mozilla/Variant.h:902:12 (libxul.so+0x5536a34)
    #7 match<(lambda at /checkouts/gecko/xpcom/threads/nsTimerImpl.cpp:676:7), (lambda at /checkouts/gecko/xpcom/threads/nsTimerImpl.cpp:677:7), (lambda at /checkouts/gecko/xpcom/threads/nsTimerImpl.cpp:678:7), (lambda at /checkouts/gecko/xpcom/threads/nsTimerImpl.cpp:681:7), (lambda at /checkouts/gecko/xpcom/threads/nsTimerImpl.cpp:682:7)> /workspace/obj-build/dist/include/mozilla/Variant.h:857:12 (libxul.so+0x5536a34)
    #8 nsTimerImpl::Fire(int) /checkouts/gecko/xpcom/threads/nsTimerImpl.cpp:675:22 (libxul.so+0x5536a34)
    #9 nsTimerEvent::Run() /checkouts/gecko/xpcom/threads/TimerThread.cpp:515:11 (libxul.so+0x5535887)
    #10 nsThread::ProcessNextEvent(bool, bool*) /checkouts/gecko/xpcom/threads/nsThread.cpp:1193:16 (libxul.so+0x5543e4e)
    #11 NS_ProcessNextEvent(nsIThread*, bool) /checkouts/gecko/xpcom/threads/nsThreadUtils.cpp:480:10 (libxul.so+0x554a3e4)
    #12 mozilla::net::nsSocketTransportService::Run() /checkouts/gecko/netwerk/base/nsSocketTransportService2.cpp:1203:11 (libxul.so+0x5777a7c)
    #13 non-virtual thunk to mozilla::net::nsSocketTransportService::Run() /checkouts/gecko/netwerk/base/nsSocketTransportService2.cpp (libxul.so+0x57798f9)
    #14 nsThread::ProcessNextEvent(bool, bool*) /checkouts/gecko/xpcom/threads/nsThread.cpp:1193:16 (libxul.so+0x5543e4e)
    #15 NS_ProcessNextEvent(nsIThread*, bool) /checkouts/gecko/xpcom/threads/nsThreadUtils.cpp:480:10 (libxul.so+0x554a3e4)
    #16 mozilla::ipc::MessagePumpForNonMainThreads::Run(base::MessagePump::Delegate*) /checkouts/gecko/ipc/glue/MessagePump.cpp:300:20 (libxul.so+0x609034e)
    #17 RunInternal /checkouts/gecko/ipc/chromium/src/base/message_loop.cc:370:10 (libxul.so+0x60033f8)
    #18 RunHandler /checkouts/gecko/ipc/chromium/src/base/message_loop.cc:363:3 (libxul.so+0x60033f8)
    #19 MessageLoop::Run() /checkouts/gecko/ipc/chromium/src/base/message_loop.cc:345:3 (libxul.so+0x60033f8)
    #20 nsThread::ThreadFunc(void*) /checkouts/gecko/xpcom/threads/nsThread.cpp:370:10 (libxul.so+0x553f6d3)
    #21 _pt_root /checkouts/gecko/nsprpub/pr/src/pthreads/ptthread.c:201:5 (libnspr4.so+0x4ba79)
  Previous read of size 1 at 0x7b1800096598 by main thread:
    #0 TimerTest_SimpleTimer_Test::TestBody() /checkouts/gecko/dom/media/webrtc/transport/test/nrappkit_unittest.cpp:104:3 (libxul.so+0x4f9e1c1)
    #1 void testing::internal::HandleExceptionsInMethodIfSupported<testing::Test, void>(testing::Test*, void (testing::Test::*)(), char const*) /checkouts/gecko/third_party/googletest/googletest/src/gtest.cc (libxul.so+0x4254c6d)
    #2 testing::Test::Run() /checkouts/gecko/third_party/googletest/googletest/src/gtest.cc:2688:5 (libxul.so+0x4254ad9)
    #3 testing::TestInfo::Run() /checkouts/gecko/third_party/googletest/googletest/src/gtest.cc:2837:11 (libxul.so+0x42564e8)
    #4 testing::TestSuite::Run() /checkouts/gecko/third_party/googletest/googletest/src/gtest.cc:3016:30 (libxul.so+0x4257ae4)
    #5 testing::internal::UnitTestImpl::RunAllTests() /checkouts/gecko/third_party/googletest/googletest/src/gtest.cc:5922:44 (libxul.so+0x4275579)
    #6 libvpx_test_cases_Test::TestBody() /checkouts/gecko/dom/media/gtest/TestVPXDecoding.cpp:89:9 (libxul.so+0x4a7b7a7)
    #7 void testing::internal::HandleExceptionsInMethodIfSupported<testing::Test, void>(testing::Test*, void (testing::Test::*)(), char const*) /checkouts/gecko/third_party/googletest/googletest/src/gtest.cc (libxul.so+0x4254c6d)
    #8 testing::Test::Run() /checkouts/gecko/third_party/googletest/googletest/src/gtest.cc:2688:5 (libxul.so+0x4254ad9)
    #9 testing::TestInfo::Run() /checkouts/gecko/third_party/googletest/googletest/src/gtest.cc:2837:11 (libxul.so+0x42564e8)
    #10 testing::TestSuite::Run() /checkouts/gecko/third_party/googletest/googletest/src/gtest.cc:3016:30 (libxul.so+0x4257ae4)
    #11 testing::internal::UnitTestImpl::RunAllTests() /checkouts/gecko/third_party/googletest/googletest/src/gtest.cc:5922:44 (libxul.so+0x4275579)
    #12 testing::Test::Run() /checkouts/gecko/third_party/googletest/googletest/src/gtest.cc:2688:5 (libxul.so+0x4254ad9)
    #13 testing::TestInfo::Run() /checkouts/gecko/third_party/googletest/googletest/src/gtest.cc:2837:11 (libxul.so+0x42564e8)
    #14 testing::TestSuite::Run() /checkouts/gecko/third_party/googletest/googletest/src/gtest.cc:3016:30 (libxul.so+0x4257ae4)
    #15 testing::internal::UnitTestImpl::RunAllTests() /checkouts/gecko/third_party/googletest/googletest/src/gtest.cc:5922:44 (libxul.so+0x4275579)
    #16 testing::Test::Run() /checkouts/gecko/third_party/googletest/googletest/src/gtest.cc:2688:5 (libxul.so+0x4254ad9)
    #17 testing::TestInfo::Run() /checkouts/gecko/third_party/googletest/googletest/src/gtest.cc:2837:11 (libxul.so+0x42564e8)
    #18 testing::TestSuite::Run() /checkouts/gecko/third_party/googletest/googletest/src/gtest.cc:3016:30 (libxul.so+0x4257ae4)
    #19 testing::internal::UnitTestImpl::RunAllTests() /checkouts/gecko/third_party/googletest/googletest/src/gtest.cc:5922:44 (libxul.so+0x4275579)
    #20 bool testing::internal::HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool>(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) /checkouts/gecko/third_party/googletest/googletest/src/gtest.cc (libxul.so+0x4274d1d)
    #21 testing::UnitTest::Run() /checkouts/gecko/third_party/googletest/googletest/src/gtest.cc:5486:10 (libxul.so+0x4274ac0)
    #22 RUN_ALL_TESTS /workspace/obj-build/dist/include/gtest/gtest.h:2319:73 (libxul.so+0x422a47f)
    #23 mozilla::RunGTestFunc(int*, char**) /checkouts/gecko/testing/gtest/mozilla/GTestRunner.cpp:167:10 (libxul.so+0x422a47f)
    #24 XREMain::XRE_mainStartup(bool*) /checkouts/gecko/toolkit/xre/nsAppRunner.cpp:4686:16 (libxul.so+0xbfe5529)
    #25 XREMain::XRE_main(int, char**, mozilla::BootstrapConfig const&) /checkouts/gecko/toolkit/xre/nsAppRunner.cpp:5946:12 (libxul.so+0xbfed252)
    #26 XRE_main(int, char**, mozilla::BootstrapConfig const&) /checkouts/gecko/toolkit/xre/nsAppRunner.cpp:6015:21 (libxul.so+0xbfed991)
    #27 mozilla::BootstrapImpl::XRE_main(int, char**, mozilla::BootstrapConfig const&) /checkouts/gecko/toolkit/xre/Bootstrap.cpp:45:12 (libxul.so+0xbffc9e2)
    #28 do_main /checkouts/gecko/browser/app/nsBrowserApp.cpp:227:22 (firefox-bin+0x14ea00)
    #29 main /checkouts/gecko/browser/app/nsBrowserApp.cpp:445:16 (firefox-bin+0x14ea00)
  Location is heap block of size 96 at 0x7b1800096540 allocated by main thread:
    #0 malloc /fetches/llvm-project/compiler-rt/lib/tsan/rtl/tsan_interceptors_posix.cpp:663:5 (firefox-bin+0xc3ddc)
    #1 moz_xmalloc /checkouts/gecko/memory/mozalloc/mozalloc.cpp:52:15 (firefox-bin+0x150a08)
    #2 operator new /workspace/obj-build/dist/include/mozilla/cxxalloc.h:33:10 (libxul.so+0x4f9efe7)
    #3 testing::internal::TestFactoryImpl<TimerTest_SimpleTimer_Test>::CreateTest() /workspace/obj-build/dist/include/gtest/internal/gtest-internal.h:456:40 (libxul.so+0x4f9efe7)
    #4 testing::Test* testing::internal::HandleExceptionsInMethodIfSupported<testing::internal::TestFactoryBase, testing::Test*>(testing::internal::TestFactoryBase*, testing::Test* (testing::internal::TestFactoryBase::*)(), char const*) /checkouts/gecko/third_party/googletest/googletest/src/gtest.cc (libxul.so+0x425685d)
    #5 testing::TestInfo::Run() /checkouts/gecko/third_party/googletest/googletest/src/gtest.cc:2827:22 (libxul.so+0x42564cb)
    #6 testing::TestSuite::Run() /checkouts/gecko/third_party/googletest/googletest/src/gtest.cc:3016:30 (libxul.so+0x4257ae4)
    #7 testing::internal::UnitTestImpl::RunAllTests() /checkouts/gecko/third_party/googletest/googletest/src/gtest.cc:5922:44 (libxul.so+0x4275579)
    #8 libvpx_test_cases_Test::TestBody() /checkouts/gecko/dom/media/gtest/TestVPXDecoding.cpp:89:9 (libxul.so+0x4a7b7a7)
    #9 void testing::internal::HandleExceptionsInMethodIfSupported<testing::Test, void>(testing::Test*, void (testing::Test::*)(), char const*) /checkouts/gecko/third_party/googletest/googletest/src/gtest.cc (libxul.so+0x4254c6d)
    #10 testing::Test::Run() /checkouts/gecko/third_party/googletest/googletest/src/gtest.cc:2688:5 (libxul.so+0x4254ad9)
    #11 testing::TestInfo::Run() /checkouts/gecko/third_party/googletest/googletest/src/gtest.cc:2837:11 (libxul.so+0x42564e8)
    #12 testing::TestSuite::Run() /checkouts/gecko/third_party/googletest/googletest/src/gtest.cc:3016:30 (libxul.so+0x4257ae4)
    #13 testing::internal::UnitTestImpl::RunAllTests() /checkouts/gecko/third_party/googletest/googletest/src/gtest.cc:5922:44 (libxul.so+0x4275579)
    #14 testing::Test::Run() /checkouts/gecko/third_party/googletest/googletest/src/gtest.cc:2688:5 (libxul.so+0x4254ad9)
    #15 testing::TestInfo::Run() /checkouts/gecko/third_party/googletest/googletest/src/gtest.cc:2837:11 (libxul.so+0x42564e8)
    #16 testing::TestSuite::Run() /checkouts/gecko/third_party/googletest/googletest/src/gtest.cc:3016:30 (libxul.so+0x4257ae4)
    #17 testing::internal::UnitTestImpl::RunAllTests() /checkouts/gecko/third_party/googletest/googletest/src/gtest.cc:5922:44 (libxul.so+0x4275579)
    #18 testing::Test::Run() /checkouts/gecko/third_party/googletest/googletest/src/gtest.cc:2688:5 (libxul.so+0x4254ad9)
    #19 testing::TestInfo::Run() /checkouts/gecko/third_party/googletest/googletest/src/gtest.cc:2837:11 (libxul.so+0x42564e8)
    #20 testing::TestSuite::Run() /checkouts/gecko/third_party/googletest/googletest/src/gtest.cc:3016:30 (libxul.so+0x4257ae4)
    #21 testing::internal::UnitTestImpl::RunAllTests() /checkouts/gecko/third_party/googletest/googletest/src/gtest.cc:5922:44 (libxul.so+0x4275579)
    #22 bool testing::internal::HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool>(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) /checkouts/gecko/third_party/googletest/googletest/src/gtest.cc (libxul.so+0x4274d1d)
    #23 testing::UnitTest::Run() /checkouts/gecko/third_party/googletest/googletest/src/gtest.cc:5486:10 (libxul.so+0x4274ac0)
    #24 RUN_ALL_TESTS /workspace/obj-build/dist/include/gtest/gtest.h:2319:73 (libxul.so+0x422a47f)
    #25 mozilla::RunGTestFunc(int*, char**) /checkouts/gecko/testing/gtest/mozilla/GTestRunner.cpp:167:10 (libxul.so+0x422a47f)
    #26 XREMain::XRE_mainStartup(bool*) /checkouts/gecko/toolkit/xre/nsAppRunner.cpp:4686:16 (libxul.so+0xbfe5529)
    #27 XREMain::XRE_main(int, char**, mozilla::BootstrapConfig const&) /checkouts/gecko/toolkit/xre/nsAppRunner.cpp:5946:12 (libxul.so+0xbfed252)
    #28 XRE_main(int, char**, mozilla::BootstrapConfig const&) /checkouts/gecko/toolkit/xre/nsAppRunner.cpp:6015:21 (libxul.so+0xbfed991)
    #29 mozilla::BootstrapImpl::XRE_main(int, char**, mozilla::BootstrapConfig const&) /checkouts/gecko/toolkit/xre/Bootstrap.cpp:45:12 (libxul.so+0xbffc9e2)
    #30 do_main /checkouts/gecko/browser/app/nsBrowserApp.cpp:227:22 (firefox-bin+0x14ea00)
    #31 main /checkouts/gecko/browser/app/nsBrowserApp.cpp:445:16 (firefox-bin+0x14ea00)
  Thread T5 'Socket Thread' (tid=1000, running) created by main thread at:
    #0 pthread_create /fetches/llvm-project/compiler-rt/lib/tsan/rtl/tsan_interceptors_posix.cpp:1020:3 (firefox-bin+0xc59bb)
    #1 _PR_CreateThread /checkouts/gecko/nsprpub/pr/src/pthreads/ptthread.c:458:14 (libnspr4.so+0x42cee)
    #2 PR_CreateThread /checkouts/gecko/nsprpub/pr/src/pthreads/ptthread.c:533:12 (libnspr4.so+0x37f84)
    #3 nsThread::Init(nsTSubstring<char> const&) /checkouts/gecko/xpcom/threads/nsThread.cpp:620:20 (libxul.so+0x5540e77)
    #4 nsThreadManager::NewNamedThread(nsTSubstring<char> const&, nsIThreadManager::ThreadCreationOptions, nsIThread**) /checkouts/gecko/xpcom/threads/nsThreadManager.cpp:602:22 (libxul.so+0x5548f1d)
    #5 NS_NewNamedThread(nsTSubstring<char> const&, nsIThread**, already_AddRefed<nsIRunnable>, nsIThreadManager::ThreadCreationOptions) /checkouts/gecko/xpcom/threads/nsThreadUtils.cpp:176:57 (libxul.so+0x5551bd3)
    #6 NS_NewNamedThread<14UL> /workspace/obj-build/dist/include/nsThreadUtils.h:87:10 (libxul.so+0x5775f3b)
    #7 mozilla::net::nsSocketTransportService::Init() /checkouts/gecko/netwerk/base/nsSocketTransportService2.cpp:748:19 (libxul.so+0x5775f3b)
    #8 mozilla::xpcom::CreateInstanceImpl(mozilla::xpcom::ModuleID, nsID const&, void**) /workspace/obj-build/xpcom/components/StaticComponents.cpp:9683:7 (libxul.so+0x54fafca)
    #9 mozilla::xpcom::StaticModule::CreateInstance(nsID const&, void**) const /workspace/obj-build/xpcom/components/StaticComponents.cpp:12981:10 (libxul.so+0x5506baa)
    #10 CreateInstance /checkouts/gecko/xpcom/components/nsComponentManager.cpp:189:46 (libxul.so+0x55115c7)
    #11 nsComponentManagerImpl::GetServiceLocked(mozilla::Maybe<mozilla::detail::BaseMonitorAutoLock<mozilla::Monitor>>&, (anonymous namespace)::EntryWrapper&, nsID const&, void**) /checkouts/gecko/xpcom/components/nsComponentManager.cpp:987:17 (libxul.so+0x55115c7)
    #12 nsComponentManagerImpl::GetServiceByContractID(char const*, nsID const&, void**) /checkouts/gecko/xpcom/components/nsComponentManager.cpp:1176:10 (libxul.so+0x551223d)
    #13 CallGetService /checkouts/gecko/xpcom/components/nsComponentManagerUtils.cpp:63:43 (libxul.so+0x5514cbb)
    #14 nsGetServiceByContractIDWithError::operator()(nsID const&, void**) const /checkouts/gecko/xpcom/components/nsComponentManagerUtils.cpp:250:21 (libxul.so+0x5514cbb)
    #15 assign_from_gs_contractid_with_error /workspace/obj-build/dist/include/nsCOMPtr.h:881:7 (libxul.so+0x570eef0)
    #16 operator= /workspace/obj-build/dist/include/nsCOMPtr.h:665:5 (libxul.so+0x570eef0)
    #17 mozilla::net::nsIOService::InitializeSocketTransportService() /checkouts/gecko/netwerk/base/nsIOService.cpp:439:29 (libxul.so+0x570eef0)
    #18 mozilla::net::nsIOService::SetOfflineInternal(bool, bool) /checkouts/gecko/netwerk/base/nsIOService.cpp:1303:7 (libxul.so+0x571361f)
    #19 SetOffline /checkouts/gecko/netwerk/base/nsIOService.cpp:1242:48 (libxul.so+0x570d4dc)
    #20 mozilla::net::nsIOService::Init() /checkouts/gecko/netwerk/base/nsIOService.cpp:311:3 (libxul.so+0x570d4dc)
    #21 mozilla::net::nsIOService::GetInstance() /checkouts/gecko/netwerk/base/nsIOService.cpp:496:9 (libxul.so+0x570f511)
    #22 mozilla::xpcom::CreateInstanceImpl(mozilla::xpcom::ModuleID, nsID const&, void**) /workspace/obj-build/xpcom/components/StaticComponents.cpp:12089:48 (libxul.so+0x5502743)
    #23 mozilla::xpcom::StaticModule::CreateInstance(nsID const&, void**) const /workspace/obj-build/xpcom/components/StaticComponents.cpp:12981:10 (libxul.so+0x5506baa)
    #24 CreateInstance /checkouts/gecko/xpcom/components/nsComponentManager.cpp:189:46 (libxul.so+0x55115c7)
    #25 nsComponentManagerImpl::GetServiceLocked(mozilla::Maybe<mozilla::detail::BaseMonitorAutoLock<mozilla::Monitor>>&, (anonymous namespace)::EntryWrapper&, nsID const&, void**) /checkouts/gecko/xpcom/components/nsComponentManager.cpp:987:17 (libxul.so+0x55115c7)
    #26 nsComponentManagerImpl::GetService(mozilla::xpcom::ModuleID, nsID const&, void**) /checkouts/gecko/xpcom/components/nsComponentManager.cpp:1077:10 (libxul.so+0x5511b53)
    #27 mozilla::xpcom::GetServiceHelper::operator()(nsID const&, void**) const /workspace/obj-build/xpcom/components/StaticComponents.cpp:13127:50 (libxul.so+0x55077a8)
    #28 RefPtr /workspace/obj-build/dist/include/nsCOMPtr.h:1111:7 (libxul.so+0x6372cae)
    #29 nsScriptSecurityManager::Init() /checkouts/gecko/caps/nsScriptSecurityManager.cpp:1565:29 (libxul.so+0x6372cae)
    #30 nsScriptSecurityManager::InitStatics() /checkouts/gecko/caps/nsScriptSecurityManager.cpp:1627:28 (libxul.so+0x6373219)
    #31 nsXPConnect::InitStatics() /checkouts/gecko/js/xpconnect/src/nsXPConnect.cpp:165:3 (libxul.so+0x62157e0)
    #32 xpcModuleCtor() /checkouts/gecko/js/xpconnect/src/XPCModule.cpp:11:3 (libxul.so+0x61e390f)
    #33 nsLayoutModuleInitialize() /checkouts/gecko/layout/build/nsLayoutModule.cpp:97:7 (libxul.so+0xa93958b)
    #34 nsComponentManagerImpl::Init() /checkouts/gecko/xpcom/components/nsComponentManager.cpp:387:5 (libxul.so+0x550e86f)
    #35 NS_InitXPCOM /checkouts/gecko/xpcom/build/XPCOMInit.cpp:448:51 (libxul.so+0x5580c60)
    #36 ScopedXPCOM /workspace/obj-build/dist/include/testing/TestHarness.h:84:15 (libxul.so+0x422a3de)
    #37 mozilla::RunGTestFunc(int*, char**) /checkouts/gecko/testing/gtest/mozilla/GTestRunner.cpp:114:15 (libxul.so+0x422a3de)
    #38 XREMain::XRE_mainStartup(bool*) /checkouts/gecko/toolkit/xre/nsAppRunner.cpp:4686:16 (libxul.so+0xbfe5529)
    #39 XREMain::XRE_main(int, char**, mozilla::BootstrapConfig const&) /checkouts/gecko/toolkit/xre/nsAppRunner.cpp:5946:12 (libxul.so+0xbfed252)
    #40 XRE_main(int, char**, mozilla::BootstrapConfig const&) /checkouts/gecko/toolkit/xre/nsAppRunner.cpp:6015:21 (libxul.so+0xbfed991)
    #41 mozilla::BootstrapImpl::XRE_main(int, char**, mozilla::BootstrapConfig const&) /checkouts/gecko/toolkit/xre/Bootstrap.cpp:45:12 (libxul.so+0xbffc9e2)
    #42 do_main /checkouts/gecko/browser/app/nsBrowserApp.cpp:227:22 (firefox-bin+0x14ea00)
    #43 main /checkouts/gecko/browser/app/nsBrowserApp.cpp:445:16 (firefox-bin+0x14ea00)
SUMMARY: ThreadSanitizer: data race /checkouts/gecko/dom/media/webrtc/transport/test/nrappkit_unittest.cpp:93:15 in (anonymous namespace)::TimerTest::cb(void*, int, void*)
Summary: Permanent SUMMARY: ThreadSanitizer: data race /builds/worker/checkouts/gecko/dom/media/webrtc/transport/third_party/nrappkit/src/log/r_log.c:685:20 in r_log_set_extra_destination → Permanent ThreadSanitizer data races in WebRTC transport tests

Another:
ThreadSanitizer: data race sctp_unittest.cpp:244:46 in SetConnected
https://treeherder.mozilla.org/logviewer?job_id=456547865&repo=try&lineNumber=44993

TEST-START | SctpTransportTest.TestConnect
Creating TransportTestPeer; flow=0x7b0c0016bed0 local=5000 remote=5001
Creating TransportTestPeer; flow=0x7b0c00127320 local=5001 remote=5000
Calling usrsctp_bind()
Calling usrsctp_connect()
Calling usrsctp_bind()
Calling usrsctp_connect()
Received 104 bytes
Received 104 bytes
Received 424 bytes
Received 424 bytes
Received 332 bytes
Connection up
==================
WARNING: ThreadSanitizer: data race (pid=1002)
  Write of size 1 at 0x7b30000622d8 by thread T5 (mutexes: write M0):
    #0 SetConnected /checkouts/gecko/dom/media/webrtc/transport/test/sctp_unittest.cpp:244:46 (libxul.so+0x4fba24b)
    #1 Notification /checkouts/gecko/dom/media/webrtc/transport/test/sctp_unittest.cpp (libxul.so+0x4fba24b)
    #2 (anonymous namespace)::TransportTestPeer::receive_cb(socket*, sctp_sockstore, void*, unsigned long, sctp_rcvinfo, int, void*) /checkouts/gecko/dom/media/webrtc/transport/test/sctp_unittest.cpp:266:11 (libxul.so+0x4fba24b)
    #3 sctp_invoke_recv_callback /checkouts/gecko/netwerk/sctp/src/netinet/sctputil.c:5359:3 (libxul.so+0x5fcb734)
    #4 sctp_add_to_readq /checkouts/gecko/netwerk/sctp/src/netinet/sctputil.c:5467:2 (libxul.so+0x5fcbc0c)
    #5 sctp_notify_assoc_change /checkouts/gecko/netwerk/sctp/src/netinet/sctputil.c:3341:4 (libxul.so+0x5fc63f9)
    #6 sctp_ulp_notify /checkouts/gecko/netwerk/sctp/src/netinet/sctputil.c:4296:4 (libxul.so+0x5fc0e5b)
    #7 sctp_handle_cookie_echo /checkouts/gecko/netwerk/sctp/src/netinet/sctp_input.c (libxul.so+0x5fa55ff)
    #8 sctp_process_control /checkouts/gecko/netwerk/sctp/src/netinet/sctp_input.c:5334:7 (libxul.so+0x5f6f043)
    #9 sctp_common_input_processing /checkouts/gecko/netwerk/sctp/src/netinet/sctp_input.c:5950:10 (libxul.so+0x5f6c840)
    #10 usrsctp_conninput /checkouts/gecko/netwerk/sctp/src/user_socket.c:3321:2 (libxul.so+0x5fd2853)
    #11 (anonymous namespace)::TransportTestPeer::PacketReceived(mozilla::TransportLayer*, mozilla::MediaPacket&) /checkouts/gecko/dom/media/webrtc/transport/test/sctp_unittest.cpp:224:5 (libxul.so+0x4fbb8b9)
    #12 void sigslot::_opaque_connection::emitter<(anonymous namespace)::TransportTestPeer, mozilla::TransportLayer*, mozilla::MediaPacket&>(sigslot::_opaque_connection const*, mozilla::TransportLayer*, mozilla::MediaPacket&) /checkouts/gecko/dom/media/webrtc/transport/sigslot.h:339:5 (libxul.so+0x4fbb94a)
    #13 emit<mozilla::TransportLayer *, mozilla::MediaPacket &> /checkouts/gecko/dom/media/webrtc/transport/sigslot.h:330:5 (libxul.so+0x62dc2fa)
    #14 emit /checkouts/gecko/dom/media/webrtc/transport/sigslot.h:562:12 (libxul.so+0x62dc2fa)
    #15 operator() /checkouts/gecko/dom/media/webrtc/transport/sigslot.h:566:35 (libxul.so+0x62dc2fa)
    #16 mozilla::TransportLayerLoopback::DeliverPackets() /checkouts/gecko/dom/media/webrtc/transport/transportlayerloopback.cpp:100:5 (libxul.so+0x62dc2fa)
    #17 mozilla::TransportLayerLoopback::Deliverer::Notify(nsITimer*) /checkouts/gecko/dom/media/webrtc/transport/transportlayerloopback.cpp:109:11 (libxul.so+0x62dc774)
    #18 operator() /checkouts/gecko/xpcom/threads/nsTimerImpl.cpp:677:44 (libxul.so+0x55342f4)
    #19 matchN<mozilla::Variant<nsTimerImpl::UnknownCallback, nsCOMPtr<nsITimerCallback>, nsCOMPtr<nsIObserver>, nsTimerImpl::FuncCallback, nsTimerImpl::ClosureCallback> &, (lambda at /checkouts/gecko/xpcom/threads/nsTimerImpl.cpp:677:7), (lambda at /checkouts/gecko/xpcom/threads/nsTimerImpl.cpp:678:7), (lambda at /checkouts/gecko/xpcom/threads/nsTimerImpl.cpp:681:7), (lambda at /checkouts/gecko/xpcom/threads/nsTimerImpl.cpp:682:7)> /workspace/obj-build/dist/include/mozilla/Variant.h:309:16 (libxul.so+0x55342f4)
    #20 matchN<mozilla::Variant<nsTimerImpl::UnknownCallback, nsCOMPtr<nsITimerCallback>, nsCOMPtr<nsIObserver>, nsTimerImpl::FuncCallback, nsTimerImpl::ClosureCallback> &, (lambda at /checkouts/gecko/xpcom/threads/nsTimerImpl.cpp:676:7), (lambda at /checkouts/gecko/xpcom/threads/nsTimerImpl.cpp:677:7), (lambda at /checkouts/gecko/xpcom/threads/nsTimerImpl.cpp:678:7), (lambda at /checkouts/gecko/xpcom/threads/nsTimerImpl.cpp:681:7), (lambda at /checkouts/gecko/xpcom/threads/nsTimerImpl.cpp:682:7)> /workspace/obj-build/dist/include/mozilla/Variant.h:318:14 (libxul.so+0x55342f4)
    #21 matchN<mozilla::Variant<nsTimerImpl::UnknownCallback, nsCOMPtr<nsITimerCallback>, nsCOMPtr<nsIObserver>, nsTimerImpl::FuncCallback, nsTimerImpl::ClosureCallback> &, (lambda at /checkouts/gecko/xpcom/threads/nsTimerImpl.cpp:676:7), (lambda at /checkouts/gecko/xpcom/threads/nsTimerImpl.cpp:677:7), (lambda at /checkouts/gecko/xpcom/threads/nsTimerImpl.cpp:678:7), (lambda at /checkouts/gecko/xpcom/threads/nsTimerImpl.cpp:681:7), (lambda at /checkouts/gecko/xpcom/threads/nsTimerImpl.cpp:682:7)> /workspace/obj-build/dist/include/mozilla/Variant.h:902:12 (libxul.so+0x55342f4)
    #22 match<(lambda at /checkouts/gecko/xpcom/threads/nsTimerImpl.cpp:676:7), (lambda at /checkouts/gecko/xpcom/threads/nsTimerImpl.cpp:677:7), (lambda at /checkouts/gecko/xpcom/threads/nsTimerImpl.cpp:678:7), (lambda at /checkouts/gecko/xpcom/threads/nsTimerImpl.cpp:681:7), (lambda at /checkouts/gecko/xpcom/threads/nsTimerImpl.cpp:682:7)> /workspace/obj-build/dist/include/mozilla/Variant.h:857:12 (libxul.so+0x55342f4)
    #23 nsTimerImpl::Fire(int) /checkouts/gecko/xpcom/threads/nsTimerImpl.cpp:675:22 (libxul.so+0x55342f4)
    #24 nsTimerEvent::Run() /checkouts/gecko/xpcom/threads/TimerThread.cpp:515:11 (libxul.so+0x5533147)
    #25 nsThread::ProcessNextEvent(bool, bool*) /checkouts/gecko/xpcom/threads/nsThread.cpp:1193:16 (libxul.so+0x554170e)
    #26 NS_ProcessNextEvent(nsIThread*, bool) /checkouts/gecko/xpcom/threads/nsThreadUtils.cpp:480:10 (libxul.so+0x5547ca4)
    #27 mozilla::net::nsSocketTransportService::Run() /checkouts/gecko/netwerk/base/nsSocketTransportService2.cpp:1203:11 (libxul.so+0x577533c)
    #28 non-virtual thunk to mozilla::net::nsSocketTransportService::Run() /checkouts/gecko/netwerk/base/nsSocketTransportService2.cpp (libxul.so+0x57771b9)
    #29 nsThread::ProcessNextEvent(bool, bool*) /checkouts/gecko/xpcom/threads/nsThread.cpp:1193:16 (libxul.so+0x554170e)
    #30 NS_ProcessNextEvent(nsIThread*, bool) /checkouts/gecko/xpcom/threads/nsThreadUtils.cpp:480:10 (libxul.so+0x5547ca4)
    #31 mozilla::ipc::MessagePumpForNonMainThreads::Run(base::MessagePump::Delegate*) /checkouts/gecko/ipc/glue/MessagePump.cpp:300:20 (libxul.so+0x608dc0e)
    #32 RunInternal /checkouts/gecko/ipc/chromium/src/base/message_loop.cc:370:10 (libxul.so+0x6000cb8)
    #33 RunHandler /checkouts/gecko/ipc/chromium/src/base/message_loop.cc:363:3 (libxul.so+0x6000cb8)
    #34 MessageLoop::Run() /checkouts/gecko/ipc/chromium/src/base/message_loop.cc:345:3 (libxul.so+0x6000cb8)
    #35 nsThread::ThreadFunc(void*) /checkouts/gecko/xpcom/threads/nsThread.cpp:370:10 (libxul.so+0x553cf93)
    #36 _pt_root /checkouts/gecko/nsprpub/pr/src/pthreads/ptthread.c:201:5 (libnspr4.so+0x4ba79)
  Previous read of size 1 at 0x7b30000622d8 by main thread:
    #0 connected /checkouts/gecko/dom/media/webrtc/transport/test/sctp_unittest.cpp:193:35 (libxul.so+0x4fb8953)
    #1 (anonymous namespace)::SctpTransportTest::ConnectSocket(int, int) /checkouts/gecko/dom/media/webrtc/transport/test/sctp_unittest.cpp:353:5 (libxul.so+0x4fb8953)
    #2 (anonymous namespace)::SctpTransportTest_TestConnect_Test::TestBody() /checkouts/gecko/dom/media/webrtc/transport/test/sctp_unittest.cpp:370:42 (libxul.so+0x4fb84b9)
    #3 void testing::internal::HandleExceptionsInMethodIfSupported<testing::Test, void>(testing::Test*, void (testing::Test::*)(), char const*) /checkouts/gecko/third_party/googletest/googletest/src/gtest.cc (libxul.so+0x42545ad)
    #4 testing::Test::Run() /checkouts/gecko/third_party/googletest/googletest/src/gtest.cc:2688:5 (libxul.so+0x4254419)
    #5 testing::TestInfo::Run() /checkouts/gecko/third_party/googletest/googletest/src/gtest.cc:2837:11 (libxul.so+0x4255e28)
    #6 testing::TestSuite::Run() /checkouts/gecko/third_party/googletest/googletest/src/gtest.cc:3016:30 (libxul.so+0x4257424)
    #7 testing::internal::UnitTestImpl::RunAllTests() /checkouts/gecko/third_party/googletest/googletest/src/gtest.cc:5922:44 (libxul.so+0x4274eb9)
    #8 libvpx_test_cases_Test::TestBody() /checkouts/gecko/dom/media/gtest/TestVPXDecoding.cpp:89:9 (libxul.so+0x4a7b0e7)
    #9 void testing::internal::HandleExceptionsInMethodIfSupported<testing::Test, void>(testing::Test*, void (testing::Test::*)(), char const*) /checkouts/gecko/third_party/googletest/googletest/src/gtest.cc (libxul.so+0x42545ad)
    #10 testing::Test::Run() /checkouts/gecko/third_party/googletest/googletest/src/gtest.cc:2688:5 (libxul.so+0x4254419)
    #11 testing::TestInfo::Run() /checkouts/gecko/third_party/googletest/googletest/src/gtest.cc:2837:11 (libxul.so+0x4255e28)
    #12 testing::TestSuite::Run() /checkouts/gecko/third_party/googletest/googletest/src/gtest.cc:3016:30 (libxul.so+0x4257424)
    #13 testing::internal::UnitTestImpl::RunAllTests() /checkouts/gecko/third_party/googletest/googletest/src/gtest.cc:5922:44 (libxul.so+0x4274eb9)
    #14 testing::Test::Run() /checkouts/gecko/third_party/googletest/googletest/src/gtest.cc:2688:5 (libxul.so+0x4254419)
    #15 testing::TestInfo::Run() /checkouts/gecko/third_party/googletest/googletest/src/gtest.cc:2837:11 (libxul.so+0x4255e28)
    #16 testing::TestSuite::Run() /checkouts/gecko/third_party/googletest/googletest/src/gtest.cc:3016:30 (libxul.so+0x4257424)
    #17 testing::internal::UnitTestImpl::RunAllTests() /checkouts/gecko/third_party/googletest/googletest/src/gtest.cc:5922:44 (libxul.so+0x4274eb9)
    #18 testing::Test::Run() /checkouts/gecko/third_party/googletest/googletest/src/gtest.cc:2688:5 (libxul.so+0x4254419)
    #19 testing::TestInfo::Run() /checkouts/gecko/third_party/googletest/googletest/src/gtest.cc:2837:11 (libxul.so+0x4255e28)
    #20 testing::TestSuite::Run() /checkouts/gecko/third_party/googletest/googletest/src/gtest.cc:3016:30 (libxul.so+0x4257424)
    #21 testing::internal::UnitTestImpl::RunAllTests() /checkouts/gecko/third_party/googletest/googletest/src/gtest.cc:5922:44 (libxul.so+0x4274eb9)
    #22 bool testing::internal::HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool>(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) /checkouts/gecko/third_party/googletest/googletest/src/gtest.cc (libxul.so+0x427465d)
    #23 testing::UnitTest::Run() /checkouts/gecko/third_party/googletest/googletest/src/gtest.cc:5486:10 (libxul.so+0x4274400)
    #24 RUN_ALL_TESTS /workspace/obj-build/dist/include/gtest/gtest.h:2319:73 (libxul.so+0x4229dbf)
    #25 mozilla::RunGTestFunc(int*, char**) /checkouts/gecko/testing/gtest/mozilla/GTestRunner.cpp:167:10 (libxul.so+0x4229dbf)
    #26 XREMain::XRE_mainStartup(bool*) /checkouts/gecko/toolkit/xre/nsAppRunner.cpp:4686:16 (libxul.so+0xbfe2da9)
    #27 XREMain::XRE_main(int, char**, mozilla::BootstrapConfig const&) /checkouts/gecko/toolkit/xre/nsAppRunner.cpp:5946:12 (libxul.so+0xbfeaad2)
    #28 XRE_main(int, char**, mozilla::BootstrapConfig const&) /checkouts/gecko/toolkit/xre/nsAppRunner.cpp:6015:21 (libxul.so+0xbfeb211)
    #29 mozilla::BootstrapImpl::XRE_main(int, char**, mozilla::BootstrapConfig const&) /checkouts/gecko/toolkit/xre/Bootstrap.cpp:45:12 (libxul.so+0xbffa262)
    #30 do_main /checkouts/gecko/browser/app/nsBrowserApp.cpp:227:22 (firefox-bin+0x14ea00)
    #31 main /checkouts/gecko/browser/app/nsBrowserApp.cpp:445:16 (firefox-bin+0x14ea00)
  Location is heap block of size 192 at 0x7b3000062280 allocated by main thread:
    #0 malloc /fetches/llvm-project/compiler-rt/lib/tsan/rtl/tsan_interceptors_posix.cpp:663:5 (firefox-bin+0xc3ddc)
    #1 moz_xmalloc /checkouts/gecko/memory/mozalloc/mozalloc.cpp:52:15 (firefox-bin+0x150a08)
    #2 operator new /workspace/obj-build/dist/include/mozilla/cxxalloc.h:33:10 (libxul.so+0x4fb8524)
    #3 (anonymous namespace)::SctpTransportTest::ConnectSocket(int, int) /checkouts/gecko/dom/media/webrtc/transport/test/sctp_unittest.cpp:348:11 (libxul.so+0x4fb8524)
    #4 (anonymous namespace)::SctpTransportTest_TestConnect_Test::TestBody() /checkouts/gecko/dom/media/webrtc/transport/test/sctp_unittest.cpp:370:42 (libxul.so+0x4fb84b9)
    #5 void testing::internal::HandleExceptionsInMethodIfSupported<testing::Test, void>(testing::Test*, void (testing::Test::*)(), char const*) /checkouts/gecko/third_party/googletest/googletest/src/gtest.cc (libxul.so+0x42545ad)
    #6 testing::Test::Run() /checkouts/gecko/third_party/googletest/googletest/src/gtest.cc:2688:5 (libxul.so+0x4254419)
    #7 testing::TestInfo::Run() /checkouts/gecko/third_party/googletest/googletest/src/gtest.cc:2837:11 (libxul.so+0x4255e28)
    #8 testing::TestSuite::Run() /checkouts/gecko/third_party/googletest/googletest/src/gtest.cc:3016:30 (libxul.so+0x4257424)
    #9 testing::internal::UnitTestImpl::RunAllTests() /checkouts/gecko/third_party/googletest/googletest/src/gtest.cc:5922:44 (libxul.so+0x4274eb9)
    #10 libvpx_test_cases_Test::TestBody() /checkouts/gecko/dom/media/gtest/TestVPXDecoding.cpp:89:9 (libxul.so+0x4a7b0e7)
    #11 void testing::internal::HandleExceptionsInMethodIfSupported<testing::Test, void>(testing::Test*, void (testing::Test::*)(), char const*) /checkouts/gecko/third_party/googletest/googletest/src/gtest.cc (libxul.so+0x42545ad)
    #12 testing::Test::Run() /checkouts/gecko/third_party/googletest/googletest/src/gtest.cc:2688:5 (libxul.so+0x4254419)
    #13 testing::TestInfo::Run() /checkouts/gecko/third_party/googletest/googletest/src/gtest.cc:2837:11 (libxul.so+0x4255e28)
    #14 testing::TestSuite::Run() /checkouts/gecko/third_party/googletest/googletest/src/gtest.cc:3016:30 (libxul.so+0x4257424)
    #15 testing::internal::UnitTestImpl::RunAllTests() /checkouts/gecko/third_party/googletest/googletest/src/gtest.cc:5922:44 (libxul.so+0x4274eb9)
    #16 testing::Test::Run() /checkouts/gecko/third_party/googletest/googletest/src/gtest.cc:2688:5 (libxul.so+0x4254419)
    #17 testing::TestInfo::Run() /checkouts/gecko/third_party/googletest/googletest/src/gtest.cc:2837:11 (libxul.so+0x4255e28)
    #18 testing::TestSuite::Run() /checkouts/gecko/third_party/googletest/googletest/src/gtest.cc:3016:30 (libxul.so+0x4257424)
    #19 testing::internal::UnitTestImpl::RunAllTests() /checkouts/gecko/third_party/googletest/googletest/src/gtest.cc:5922:44 (libxul.so+0x4274eb9)
    #20 testing::Test::Run() /checkouts/gecko/third_party/googletest/googletest/src/gtest.cc:2688:5 (libxul.so+0x4254419)
    #21 testing::TestInfo::Run() /checkouts/gecko/third_party/googletest/googletest/src/gtest.cc:2837:11 (libxul.so+0x4255e28)
    #22 testing::TestSuite::Run() /checkouts/gecko/third_party/googletest/googletest/src/gtest.cc:3016:30 (libxul.so+0x4257424)
    #23 testing::internal::UnitTestImpl::RunAllTests() /checkouts/gecko/third_party/googletest/googletest/src/gtest.cc:5922:44 (libxul.so+0x4274eb9)
    #24 bool testing::internal::HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool>(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) /checkouts/gecko/third_party/googletest/googletest/src/gtest.cc (libxul.so+0x427465d)
    #25 testing::UnitTest::Run() /checkouts/gecko/third_party/googletest/googletest/src/gtest.cc:5486:10 (libxul.so+0x4274400)
    #26 RUN_ALL_TESTS /workspace/obj-build/dist/include/gtest/gtest.h:2319:73 (libxul.so+0x4229dbf)
    #27 mozilla::RunGTestFunc(int*, char**) /checkouts/gecko/testing/gtest/mozilla/GTestRunner.cpp:167:10 (libxul.so+0x4229dbf)
    #28 XREMain::XRE_mainStartup(bool*) /checkouts/gecko/toolkit/xre/nsAppRunner.cpp:4686:16 (libxul.so+0xbfe2da9)
    #29 XREMain::XRE_main(int, char**, mozilla::BootstrapConfig const&) /checkouts/gecko/toolkit/xre/nsAppRunner.cpp:5946:12 (libxul.so+0xbfeaad2)
    #30 XRE_main(int, char**, mozilla::BootstrapConfig const&) /checkouts/gecko/toolkit/xre/nsAppRunner.cpp:6015:21 (libxul.so+0xbfeb211)
    #31 mozilla::BootstrapImpl::XRE_main(int, char**, mozilla::BootstrapConfig const&) /checkouts/gecko/toolkit/xre/Bootstrap.cpp:45:12 (libxul.so+0xbffa262)
    #32 do_main /checkouts/gecko/browser/app/nsBrowserApp.cpp:227:22 (firefox-bin+0x14ea00)
    #33 main /checkouts/gecko/browser/app/nsBrowserApp.cpp:445:16 (firefox-bin+0x14ea00)
  Mutex M0 (0x7b64000ce790) created at:
    #0 pthread_mutex_init /fetches/llvm-project/compiler-rt/lib/tsan/rtl/tsan_interceptors_posix.cpp:1313:3 (firefox-bin+0xc73a0)
    #1 sctp_inpcb_alloc /checkouts/gecko/netwerk/sctp/src/netinet/sctp_pcb.c:2919:2 (libxul.so+0x5f8d798)
    #2 sctpconn_attach /checkouts/gecko/netwerk/sctp/src/netinet/sctp_usrreq.c:831:10 (libxul.so+0x5fb1728)
    #3 socreate /checkouts/gecko/netwerk/sctp/src/user_socket.c:1270:11 (libxul.so+0x5fd12b2)
    #4 usrsctp_socket /checkouts/gecko/netwerk/sctp/src/user_socket.c:1331:10 (libxul.so+0x5fd13f4)
    #5 (anonymous namespace)::TransportTestPeer::TransportTestPeer(std::string, int, int, MtransportTestUtils*) /checkouts/gecko/dom/media/webrtc/transport/test/sctp_unittest.cpp:64:15 (libxul.so+0x4fb939b)
    #6 (anonymous namespace)::SctpTransportTest::ConnectSocket(int, int) /checkouts/gecko/dom/media/webrtc/transport/test/sctp_unittest.cpp:348:15 (libxul.so+0x4fb85a2)
    #7 (anonymous namespace)::SctpTransportTest_TestConnect_Test::TestBody() /checkouts/gecko/dom/media/webrtc/transport/test/sctp_unittest.cpp:370:42 (libxul.so+0x4fb84b9)
    #8 void testing::internal::HandleExceptionsInMethodIfSupported<testing::Test, void>(testing::Test*, void (testing::Test::*)(), char const*) /checkouts/gecko/third_party/googletest/googletest/src/gtest.cc (libxul.so+0x42545ad)
    #9 testing::Test::Run() /checkouts/gecko/third_party/googletest/googletest/src/gtest.cc:2688:5 (libxul.so+0x4254419)
    #10 testing::TestInfo::Run() /checkouts/gecko/third_party/googletest/googletest/src/gtest.cc:2837:11 (libxul.so+0x4255e28)
    #11 testing::TestSuite::Run() /checkouts/gecko/third_party/googletest/googletest/src/gtest.cc:3016:30 (libxul.so+0x4257424)
    #12 testing::internal::UnitTestImpl::RunAllTests() /checkouts/gecko/third_party/googletest/googletest/src/gtest.cc:5922:44 (libxul.so+0x4274eb9)
    #13 libvpx_test_cases_Test::TestBody() /checkouts/gecko/dom/media/gtest/TestVPXDecoding.cpp:89:9 (libxul.so+0x4a7b0e7)
    #14 void testing::internal::HandleExceptionsInMethodIfSupported<testing::Test, void>(testing::Test*, void (testing::Test::*)(), char const*) /checkouts/gecko/third_party/googletest/googletest/src/gtest.cc (libxul.so+0x42545ad)
    #15 testing::Test::Run() /checkouts/gecko/third_party/googletest/googletest/src/gtest.cc:2688:5 (libxul.so+0x4254419)
    #16 testing::TestInfo::Run() /checkouts/gecko/third_party/googletest/googletest/src/gtest.cc:2837:11 (libxul.so+0x4255e28)
    #17 testing::TestSuite::Run() /checkouts/gecko/third_party/googletest/googletest/src/gtest.cc:3016:30 (libxul.so+0x4257424)
    #18 testing::internal::UnitTestImpl::RunAllTests() /checkouts/gecko/third_party/googletest/googletest/src/gtest.cc:5922:44 (libxul.so+0x4274eb9)
    #19 testing::Test::Run() /checkouts/gecko/third_party/googletest/googletest/src/gtest.cc:2688:5 (libxul.so+0x4254419)
    #20 testing::TestInfo::Run() /checkouts/gecko/third_party/googletest/googletest/src/gtest.cc:2837:11 (libxul.so+0x4255e28)
    #21 testing::TestSuite::Run() /checkouts/gecko/third_party/googletest/googletest/src/gtest.cc:3016:30 (libxul.so+0x4257424)
    #22 testing::internal::UnitTestImpl::RunAllTests() /checkouts/gecko/third_party/googletest/googletest/src/gtest.cc:5922:44 (libxul.so+0x4274eb9)
    #23 testing::Test::Run() /checkouts/gecko/third_party/googletest/googletest/src/gtest.cc:2688:5 (libxul.so+0x4254419)
    #24 testing::TestInfo::Run() /checkouts/gecko/third_party/googletest/googletest/src/gtest.cc:2837:11 (libxul.so+0x4255e28)
    #25 testing::TestSuite::Run() /checkouts/gecko/third_party/googletest/googletest/src/gtest.cc:3016:30 (libxul.so+0x4257424)
    #26 testing::internal::UnitTestImpl::RunAllTests() /checkouts/gecko/third_party/googletest/googletest/src/gtest.cc:5922:44 (libxul.so+0x4274eb9)
    #27 bool testing::internal::HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool>(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) /checkouts/gecko/third_party/googletest/googletest/src/gtest.cc (libxul.so+0x427465d)
    #28 testing::UnitTest::Run() /checkouts/gecko/third_party/googletest/googletest/src/gtest.cc:5486:10 (libxul.so+0x4274400)
    #29 RUN_ALL_TESTS /workspace/obj-build/dist/include/gtest/gtest.h:2319:73 (libxul.so+0x4229dbf)
    #30 mozilla::RunGTestFunc(int*, char**) /checkouts/gecko/testing/gtest/mozilla/GTestRunner.cpp:167:10 (libxul.so+0x4229dbf)
    #31 XREMain::XRE_mainStartup(bool*) /checkouts/gecko/toolkit/xre/nsAppRunner.cpp:4686:16 (libxul.so+0xbfe2da9)
    #32 XREMain::XRE_main(int, char**, mozilla::BootstrapConfig const&) /checkouts/gecko/toolkit/xre/nsAppRunner.cpp:5946:12 (libxul.so+0xbfeaad2)
    #33 XRE_main(int, char**, mozilla::BootstrapConfig const&) /checkouts/gecko/toolkit/xre/nsAppRunner.cpp:6015:21 (libxul.so+0xbfeb211)
    #34 mozilla::BootstrapImpl::XRE_main(int, char**, mozilla::BootstrapConfig const&) /checkouts/gecko/toolkit/xre/Bootstrap.cpp:45:12 (libxul.so+0xbffa262)
    #35 do_main /checkouts/gecko/browser/app/nsBrowserApp.cpp:227:22 (firefox-bin+0x14ea00)
    #36 main /checkouts/gecko/browser/app/nsBrowserApp.cpp:445:16 (firefox-bin+0x14ea00)
  Thread T5 'Socket Thread' (tid=1010, running) created by main thread at:
    #0 pthread_create /fetches/llvm-project/compiler-rt/lib/tsan/rtl/tsan_interceptors_posix.cpp:1020:3 (firefox-bin+0xc59bb)
    #1 _PR_CreateThread /checkouts/gecko/nsprpub/pr/src/pthreads/ptthread.c:458:14 (libnspr4.so+0x42cee)
    #2 PR_CreateThread /checkouts/gecko/nsprpub/pr/src/pthreads/ptthread.c:533:12 (libnspr4.so+0x37f84)
    #3 nsThread::Init(nsTSubstring<char> const&) /checkouts/gecko/xpcom/threads/nsThread.cpp:620:20 (libxul.so+0x553e737)
    #4 nsThreadManager::NewNamedThread(nsTSubstring<char> const&, nsIThreadManager::ThreadCreationOptions, nsIThread**) /checkouts/gecko/xpcom/threads/nsThreadManager.cpp:602:22 (libxul.so+0x55467dd)
    #5 NS_NewNamedThread(nsTSubstring<char> const&, nsIThread**, already_AddRefed<nsIRunnable>, nsIThreadManager::ThreadCreationOptions) /checkouts/gecko/xpcom/threads/nsThreadUtils.cpp:176:57 (libxul.so+0x554f493)
    #6 NS_NewNamedThread<14UL> /workspace/obj-build/dist/include/nsThreadUtils.h:87:10 (libxul.so+0x57737fb)
    #7 mozilla::net::nsSocketTransportService::Init() /checkouts/gecko/netwerk/base/nsSocketTransportService2.cpp:748:19 (libxul.so+0x57737fb)
    #8 mozilla::xpcom::CreateInstanceImpl(mozilla::xpcom::ModuleID, nsID const&, void**) /workspace/obj-build/xpcom/components/StaticComponents.cpp:9683:7 (libxul.so+0x54f888a)
    #9 mozilla::xpcom::StaticModule::CreateInstance(nsID const&, void**) const /workspace/obj-build/xpcom/components/StaticComponents.cpp:12981:10 (libxul.so+0x550446a)
    #10 CreateInstance /checkouts/gecko/xpcom/components/nsComponentManager.cpp:189:46 (libxul.so+0x550ee87)
    #11 nsComponentManagerImpl::GetServiceLocked(mozilla::Maybe<mozilla::detail::BaseMonitorAutoLock<mozilla::Monitor>>&, (anonymous namespace)::EntryWrapper&, nsID const&, void**) /checkouts/gecko/xpcom/components/nsComponentManager.cpp:987:17 (libxul.so+0x550ee87)
    #12 nsComponentManagerImpl::GetServiceByContractID(char const*, nsID const&, void**) /checkouts/gecko/xpcom/components/nsComponentManager.cpp:1176:10 (libxul.so+0x550fafd)
    #13 CallGetService /checkouts/gecko/xpcom/components/nsComponentManagerUtils.cpp:63:43 (libxul.so+0x551257b)
    #14 nsGetServiceByContractIDWithError::operator()(nsID const&, void**) const /checkouts/gecko/xpcom/components/nsComponentManagerUtils.cpp:250:21 (libxul.so+0x551257b)
    #15 assign_from_gs_contractid_with_error /workspace/obj-build/dist/include/nsCOMPtr.h:881:7 (libxul.so+0x570c7b0)
    #16 operator= /workspace/obj-build/dist/include/nsCOMPtr.h:665:5 (libxul.so+0x570c7b0)
    #17 mozilla::net::nsIOService::InitializeSocketTransportService() /checkouts/gecko/netwerk/base/nsIOService.cpp:439:29 (libxul.so+0x570c7b0)
    #18 mozilla::net::nsIOService::SetOfflineInternal(bool, bool) /checkouts/gecko/netwerk/base/nsIOService.cpp:1303:7 (libxul.so+0x5710edf)
    #19 SetOffline /checkouts/gecko/netwerk/base/nsIOService.cpp:1242:48 (libxul.so+0x570ad9c)
    #20 mozilla::net::nsIOService::Init() /checkouts/gecko/netwerk/base/nsIOService.cpp:311:3 (libxul.so+0x570ad9c)
    #21 mozilla::net::nsIOService::GetInstance() /checkouts/gecko/netwerk/base/nsIOService.cpp:496:9 (libxul.so+0x570cdd1)
    #22 mozilla::xpcom::CreateInstanceImpl(mozilla::xpcom::ModuleID, nsID const&, void**) /workspace/obj-build/xpcom/components/StaticComponents.cpp:12089:48 (libxul.so+0x5500003)
    #23 mozilla::xpcom::StaticModule::CreateInstance(nsID const&, void**) const /workspace/obj-build/xpcom/components/StaticComponents.cpp:12981:10 (libxul.so+0x550446a)
    #24 CreateInstance /checkouts/gecko/xpcom/components/nsComponentManager.cpp:189:46 (libxul.so+0x550ee87)
    #25 nsComponentManagerImpl::GetServiceLocked(mozilla::Maybe<mozilla::detail::BaseMonitorAutoLock<mozilla::Monitor>>&, (anonymous namespace)::EntryWrapper&, nsID const&, void**) /checkouts/gecko/xpcom/components/nsComponentManager.cpp:987:17 (libxul.so+0x550ee87)
    #26 nsComponentManagerImpl::GetService(mozilla::xpcom::ModuleID, nsID const&, void**) /checkouts/gecko/xpcom/components/nsComponentManager.cpp:1077:10 (libxul.so+0x550f413)
    #27 mozilla::xpcom::GetServiceHelper::operator()(nsID const&, void**) const /workspace/obj-build/xpcom/components/StaticComponents.cpp:13127:50 (libxul.so+0x5505068)
    #28 RefPtr /workspace/obj-build/dist/include/nsCOMPtr.h:1111:7 (libxul.so+0x637051e)
    #29 nsScriptSecurityManager::Init() /checkouts/gecko/caps/nsScriptSecurityManager.cpp:1565:29 (libxul.so+0x637051e)
    #30 nsScriptSecurityManager::InitStatics() /checkouts/gecko/caps/nsScriptSecurityManager.cpp:1627:28 (libxul.so+0x6370a89)
    #31 nsXPConnect::InitStatics() /checkouts/gecko/js/xpconnect/src/nsXPConnect.cpp:165:3 (libxul.so+0x62130a0)
    #32 xpcModuleCtor() /checkouts/gecko/js/xpconnect/src/XPCModule.cpp:11:3 (libxul.so+0x61e11cf)
    #33 nsLayoutModuleInitialize() /checkouts/gecko/layout/build/nsLayoutModule.cpp:97:7 (libxul.so+0xa936dfb)
    #34 nsComponentManagerImpl::Init() /checkouts/gecko/xpcom/components/nsComponentManager.cpp:387:5 (libxul.so+0x550c12f)
    #35 NS_InitXPCOM /checkouts/gecko/xpcom/build/XPCOMInit.cpp:448:51 (libxul.so+0x557e520)
    #36 ScopedXPCOM /workspace/obj-build/dist/include/testing/TestHarness.h:84:15 (libxul.so+0x4229d1e)
    #37 mozilla::RunGTestFunc(int*, char**) /checkouts/gecko/testing/gtest/mozilla/GTestRunner.cpp:114:15 (libxul.so+0x4229d1e)
    #38 XREMain::XRE_mainStartup(bool*) /checkouts/gecko/toolkit/xre/nsAppRunner.cpp:4686:16 (libxul.so+0xbfe2da9)
    #39 XREMain::XRE_main(int, char**, mozilla::BootstrapConfig const&) /checkouts/gecko/toolkit/xre/nsAppRunner.cpp:5946:12 (libxul.so+0xbfeaad2)
    #40 XRE_main(int, char**, mozilla::BootstrapConfig const&) /checkouts/gecko/toolkit/xre/nsAppRunner.cpp:6015:21 (libxul.so+0xbfeb211)
    #41 mozilla::BootstrapImpl::XRE_main(int, char**, mozilla::BootstrapConfig const&) /checkouts/gecko/toolkit/xre/Bootstrap.cpp:45:12 (libxul.so+0xbffa262)
    #42 do_main /checkouts/gecko/browser/app/nsBrowserApp.cpp:227:22 (firefox-bin+0x14ea00)
    #43 main /checkouts/gecko/browser/app/nsBrowserApp.cpp:445:16 (firefox-bin+0x14ea00)
SUMMARY: ThreadSanitizer: data race /checkouts/gecko/dom/media/webrtc/transport/test/sctp_unittest.cpp:244:46 in SetConnected

ThreadSanitizer: data race dom/media/webrtc/transport/third_party/nrappkit/src/log/r_log.c:188:16 in r_log_register

https://treeherder.mozilla.org/logviewer?job_id=456547867&repo=try&lineNumber=44791

TEST-START | NrTcpSocketTest.TestReadConsumeReadDrain
TEST-PASS | NrTcpSocketTest.TestReadConsumeReadDrain | test completed (time: 8ms)
==================
WARNING: ThreadSanitizer: data race (pid=996)
  Write of size 4 at 0x7f77664c6d4c by main thread:
    #0 r_log_register /checkouts/gecko/dom/media/webrtc/transport/third_party/nrappkit/src/log/r_log.c:188:16 (libxul.so+0xc0b0114)
    #1 RLogConnectorTest::SetUpTestCase() /checkouts/gecko/dom/media/webrtc/transport/test/rlogconnector_unittest.cpp:38:5 (libxul.so+0x4fad94a)
    #2 RunSetUpTestSuite /workspace/obj-build/dist/include/gtest/gtest.h:796:7 (libxul.so+0x4257154)
    #3 HandleExceptionsInMethodIfSupported<testing::TestSuite, void> /checkouts/gecko/third_party/googletest/googletest/src/gtest.cc (libxul.so+0x4257154)
    #4 testing::TestSuite::Run() /checkouts/gecko/third_party/googletest/googletest/src/gtest.cc:3004:3 (libxul.so+0x4257154)
    #5 testing::internal::UnitTestImpl::RunAllTests() /checkouts/gecko/third_party/googletest/googletest/src/gtest.cc:5922:44 (libxul.so+0x4274eb9)
    #6 libvpx_test_cases_Test::TestBody() /checkouts/gecko/dom/media/gtest/TestVPXDecoding.cpp:89:9 (libxul.so+0x4a7b0e7)
    #7 void testing::internal::HandleExceptionsInMethodIfSupported<testing::Test, void>(testing::Test*, void (testing::Test::*)(), char const*) /checkouts/gecko/third_party/googletest/googletest/src/gtest.cc (libxul.so+0x42545ad)
    #8 testing::Test::Run() /checkouts/gecko/third_party/googletest/googletest/src/gtest.cc:2688:5 (libxul.so+0x4254419)
    #9 testing::TestInfo::Run() /checkouts/gecko/third_party/googletest/googletest/src/gtest.cc:2837:11 (libxul.so+0x4255e28)
    #10 testing::TestSuite::Run() /checkouts/gecko/third_party/googletest/googletest/src/gtest.cc:3016:30 (libxul.so+0x4257424)
    #11 testing::internal::UnitTestImpl::RunAllTests() /checkouts/gecko/third_party/googletest/googletest/src/gtest.cc:5922:44 (libxul.so+0x4274eb9)
    #12 testing::Test::Run() /checkouts/gecko/third_party/googletest/googletest/src/gtest.cc:2688:5 (libxul.so+0x4254419)
    #13 testing::TestInfo::Run() /checkouts/gecko/third_party/googletest/googletest/src/gtest.cc:2837:11 (libxul.so+0x4255e28)
    #14 testing::TestSuite::Run() /checkouts/gecko/third_party/googletest/googletest/src/gtest.cc:3016:30 (libxul.so+0x4257424)
    #15 testing::internal::UnitTestImpl::RunAllTests() /checkouts/gecko/third_party/googletest/googletest/src/gtest.cc:5922:44 (libxul.so+0x4274eb9)
    #16 testing::Test::Run() /checkouts/gecko/third_party/googletest/googletest/src/gtest.cc:2688:5 (libxul.so+0x4254419)
    #17 testing::TestInfo::Run() /checkouts/gecko/third_party/googletest/googletest/src/gtest.cc:2837:11 (libxul.so+0x4255e28)
    #18 testing::TestSuite::Run() /checkouts/gecko/third_party/googletest/googletest/src/gtest.cc:3016:30 (libxul.so+0x4257424)
    #19 testing::internal::UnitTestImpl::RunAllTests() /checkouts/gecko/third_party/googletest/googletest/src/gtest.cc:5922:44 (libxul.so+0x4274eb9)
    #20 bool testing::internal::HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool>(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) /checkouts/gecko/third_party/googletest/googletest/src/gtest.cc (libxul.so+0x427465d)
    #21 testing::UnitTest::Run() /checkouts/gecko/third_party/googletest/googletest/src/gtest.cc:5486:10 (libxul.so+0x4274400)
    #22 RUN_ALL_TESTS /workspace/obj-build/dist/include/gtest/gtest.h:2319:73 (libxul.so+0x4229dbf)
    #23 mozilla::RunGTestFunc(int*, char**) /checkouts/gecko/testing/gtest/mozilla/GTestRunner.cpp:167:10 (libxul.so+0x4229dbf)
    #24 XREMain::XRE_mainStartup(bool*) /checkouts/gecko/toolkit/xre/nsAppRunner.cpp:4686:16 (libxul.so+0xbfe2da9)
    #25 XREMain::XRE_main(int, char**, mozilla::BootstrapConfig const&) /checkouts/gecko/toolkit/xre/nsAppRunner.cpp:5946:12 (libxul.so+0xbfeaad2)
    #26 XRE_main(int, char**, mozilla::BootstrapConfig const&) /checkouts/gecko/toolkit/xre/nsAppRunner.cpp:6015:21 (libxul.so+0xbfeb211)
    #27 mozilla::BootstrapImpl::XRE_main(int, char**, mozilla::BootstrapConfig const&) /checkouts/gecko/toolkit/xre/Bootstrap.cpp:45:12 (libxul.so+0xbffa262)
    #28 do_main /checkouts/gecko/browser/app/nsBrowserApp.cpp:227:22 (firefox-bin+0x14ea00)
    #29 main /checkouts/gecko/browser/app/nsBrowserApp.cpp:445:16 (firefox-bin+0x14ea00)
  Previous read of size 4 at 0x7f77664c6d4c by thread T5:
    #0 r_logging_dest /checkouts/gecko/dom/media/webrtc/transport/third_party/nrappkit/src/log/r_log.c:489:35 (libxul.so+0xc0b0cb9)
    #1 r_vlog /checkouts/gecko/dom/media/webrtc/transport/third_party/nrappkit/src/log/r_log.c:364:10 (libxul.so+0xc0b0cb9)
    #2 r_log /checkouts/gecko/dom/media/webrtc/transport/third_party/nrappkit/src/log/r_log.c:302:5 (libxul.so+0xc0b0986)
    #3 OnSocketDetached /checkouts/gecko/dom/media/webrtc/transport/nr_socket_prsock.cpp:350:3 (libxul.so+0x629ae65)
    #4 non-virtual thunk to mozilla::NrSocket::OnSocketDetached(PRFileDesc*) /checkouts/gecko/dom/media/webrtc/transport/nr_socket_prsock.cpp (libxul.so+0x629ae65)
    #5 mozilla::net::nsSocketTransportService::DetachSocket(AutoTArray<mozilla::net::nsSocketTransportService::SocketContext, 50ul>&, mozilla::net::nsSocketTransportService::SocketContext*) /checkouts/gecko/netwerk/base/nsSocketTransportService2.cpp:424:21 (libxul.so+0x5771303)
    #6 mozilla::net::nsSocketTransportService::DoPollIteration(mozilla::BaseTimeDuration<mozilla::TimeDurationValueCalculator>*) /checkouts/gecko/netwerk/base/nsSocketTransportService2.cpp:1315:7 (libxul.so+0x5775d34)
    #7 mozilla::net::nsSocketTransportService::Run() /checkouts/gecko/netwerk/base/nsSocketTransportService2.cpp:1163:7 (libxul.so+0x577509b)
    #8 non-virtual thunk to mozilla::net::nsSocketTransportService::Run() /checkouts/gecko/netwerk/base/nsSocketTransportService2.cpp (libxul.so+0x57771b9)
    #9 nsThread::ProcessNextEvent(bool, bool*) /checkouts/gecko/xpcom/threads/nsThread.cpp:1193:16 (libxul.so+0x554170e)
    #10 NS_ProcessNextEvent(nsIThread*, bool) /checkouts/gecko/xpcom/threads/nsThreadUtils.cpp:480:10 (libxul.so+0x5547ca4)
    #11 mozilla::ipc::MessagePumpForNonMainThreads::Run(base::MessagePump::Delegate*) /checkouts/gecko/ipc/glue/MessagePump.cpp:300:20 (libxul.so+0x608dc0e)
    #12 RunInternal /checkouts/gecko/ipc/chromium/src/base/message_loop.cc:370:10 (libxul.so+0x6000cb8)
    #13 RunHandler /checkouts/gecko/ipc/chromium/src/base/message_loop.cc:363:3 (libxul.so+0x6000cb8)
    #14 MessageLoop::Run() /checkouts/gecko/ipc/chromium/src/base/message_loop.cc:345:3 (libxul.so+0x6000cb8)
    #15 nsThread::ThreadFunc(void*) /checkouts/gecko/xpcom/threads/nsThread.cpp:370:10 (libxul.so+0x553cf93)
    #16 _pt_root /checkouts/gecko/nsprpub/pr/src/pthreads/ptthread.c:201:5 (libnspr4.so+0x4ba79)
  Location is global 'log_type_ct' of size 4 at 0x7f77664c6d4c (libxul.so+0xf95ad4c)
  Thread T5 'Socket Thread' (tid=1004, running) created by main thread at:
    #0 pthread_create /fetches/llvm-project/compiler-rt/lib/tsan/rtl/tsan_interceptors_posix.cpp:1020:3 (firefox-bin+0xc59bb)
    #1 _PR_CreateThread /checkouts/gecko/nsprpub/pr/src/pthreads/ptthread.c:458:14 (libnspr4.so+0x42cee)
    #2 PR_CreateThread /checkouts/gecko/nsprpub/pr/src/pthreads/ptthread.c:533:12 (libnspr4.so+0x37f84)
    #3 nsThread::Init(nsTSubstring<char> const&) /checkouts/gecko/xpcom/threads/nsThread.cpp:620:20 (libxul.so+0x553e737)
    #4 nsThreadManager::NewNamedThread(nsTSubstring<char> const&, nsIThreadManager::ThreadCreationOptions, nsIThread**) /checkouts/gecko/xpcom/threads/nsThreadManager.cpp:602:22 (libxul.so+0x55467dd)
    #5 NS_NewNamedThread(nsTSubstring<char> const&, nsIThread**, already_AddRefed<nsIRunnable>, nsIThreadManager::ThreadCreationOptions) /checkouts/gecko/xpcom/threads/nsThreadUtils.cpp:176:57 (libxul.so+0x554f493)
    #6 NS_NewNamedThread<14UL> /workspace/obj-build/dist/include/nsThreadUtils.h:87:10 (libxul.so+0x57737fb)
    #7 mozilla::net::nsSocketTransportService::Init() /checkouts/gecko/netwerk/base/nsSocketTransportService2.cpp:748:19 (libxul.so+0x57737fb)
    #8 mozilla::xpcom::CreateInstanceImpl(mozilla::xpcom::ModuleID, nsID const&, void**) /workspace/obj-build/xpcom/components/StaticComponents.cpp:9683:7 (libxul.so+0x54f888a)
    #9 mozilla::xpcom::StaticModule::CreateInstance(nsID const&, void**) const /workspace/obj-build/xpcom/components/StaticComponents.cpp:12981:10 (libxul.so+0x550446a)
    #10 CreateInstance /checkouts/gecko/xpcom/components/nsComponentManager.cpp:189:46 (libxul.so+0x550ee87)
    #11 nsComponentManagerImpl::GetServiceLocked(mozilla::Maybe<mozilla::detail::BaseMonitorAutoLock<mozilla::Monitor>>&, (anonymous namespace)::EntryWrapper&, nsID const&, void**) /checkouts/gecko/xpcom/components/nsComponentManager.cpp:987:17 (libxul.so+0x550ee87)
    #12 nsComponentManagerImpl::GetServiceByContractID(char const*, nsID const&, void**) /checkouts/gecko/xpcom/components/nsComponentManager.cpp:1176:10 (libxul.so+0x550fafd)
    #13 CallGetService /checkouts/gecko/xpcom/components/nsComponentManagerUtils.cpp:63:43 (libxul.so+0x551257b)
    #14 nsGetServiceByContractIDWithError::operator()(nsID const&, void**) const /checkouts/gecko/xpcom/components/nsComponentManagerUtils.cpp:250:21 (libxul.so+0x551257b)
    #15 assign_from_gs_contractid_with_error /workspace/obj-build/dist/include/nsCOMPtr.h:881:7 (libxul.so+0x570c7b0)
    #16 operator= /workspace/obj-build/dist/include/nsCOMPtr.h:665:5 (libxul.so+0x570c7b0)
    #17 mozilla::net::nsIOService::InitializeSocketTransportService() /checkouts/gecko/netwerk/base/nsIOService.cpp:439:29 (libxul.so+0x570c7b0)
    #18 mozilla::net::nsIOService::SetOfflineInternal(bool, bool) /checkouts/gecko/netwerk/base/nsIOService.cpp:1303:7 (libxul.so+0x5710edf)
    #19 SetOffline /checkouts/gecko/netwerk/base/nsIOService.cpp:1242:48 (libxul.so+0x570ad9c)
    #20 mozilla::net::nsIOService::Init() /checkouts/gecko/netwerk/base/nsIOService.cpp:311:3 (libxul.so+0x570ad9c)
    #21 mozilla::net::nsIOService::GetInstance() /checkouts/gecko/netwerk/base/nsIOService.cpp:496:9 (libxul.so+0x570cdd1)
    #22 mozilla::xpcom::CreateInstanceImpl(mozilla::xpcom::ModuleID, nsID const&, void**) /workspace/obj-build/xpcom/components/StaticComponents.cpp:12089:48 (libxul.so+0x5500003)
    #23 mozilla::xpcom::StaticModule::CreateInstance(nsID const&, void**) const /workspace/obj-build/xpcom/components/StaticComponents.cpp:12981:10 (libxul.so+0x550446a)
    #24 CreateInstance /checkouts/gecko/xpcom/components/nsComponentManager.cpp:189:46 (libxul.so+0x550ee87)
    #25 nsComponentManagerImpl::GetServiceLocked(mozilla::Maybe<mozilla::detail::BaseMonitorAutoLock<mozilla::Monitor>>&, (anonymous namespace)::EntryWrapper&, nsID const&, void**) /checkouts/gecko/xpcom/components/nsComponentManager.cpp:987:17 (libxul.so+0x550ee87)
    #26 nsComponentManagerImpl::GetService(mozilla::xpcom::ModuleID, nsID const&, void**) /checkouts/gecko/xpcom/components/nsComponentManager.cpp:1077:10 (libxul.so+0x550f413)
    #27 mozilla::xpcom::GetServiceHelper::operator()(nsID const&, void**) const /workspace/obj-build/xpcom/components/StaticComponents.cpp:13127:50 (libxul.so+0x5505068)
    #28 RefPtr /workspace/obj-build/dist/include/nsCOMPtr.h:1111:7 (libxul.so+0x637051e)
    #29 nsScriptSecurityManager::Init() /checkouts/gecko/caps/nsScriptSecurityManager.cpp:1565:29 (libxul.so+0x637051e)
    #30 nsScriptSecurityManager::InitStatics() /checkouts/gecko/caps/nsScriptSecurityManager.cpp:1627:28 (libxul.so+0x6370a89)
    #31 nsXPConnect::InitStatics() /checkouts/gecko/js/xpconnect/src/nsXPConnect.cpp:165:3 (libxul.so+0x62130a0)
    #32 xpcModuleCtor() /checkouts/gecko/js/xpconnect/src/XPCModule.cpp:11:3 (libxul.so+0x61e11cf)
    #33 nsLayoutModuleInitialize() /checkouts/gecko/layout/build/nsLayoutModule.cpp:97:7 (libxul.so+0xa936dfb)
    #34 nsComponentManagerImpl::Init() /checkouts/gecko/xpcom/components/nsComponentManager.cpp:387:5 (libxul.so+0x550c12f)
    #35 NS_InitXPCOM /checkouts/gecko/xpcom/build/XPCOMInit.cpp:448:51 (libxul.so+0x557e520)
    #36 ScopedXPCOM /workspace/obj-build/dist/include/testing/TestHarness.h:84:15 (libxul.so+0x4229d1e)
    #37 mozilla::RunGTestFunc(int*, char**) /checkouts/gecko/testing/gtest/mozilla/GTestRunner.cpp:114:15 (libxul.so+0x4229d1e)
    #38 XREMain::XRE_mainStartup(bool*) /checkouts/gecko/toolkit/xre/nsAppRunner.cpp:4686:16 (libxul.so+0xbfe2da9)
    #39 XREMain::XRE_main(int, char**, mozilla::BootstrapConfig const&) /checkouts/gecko/toolkit/xre/nsAppRunner.cpp:5946:12 (libxul.so+0xbfeaad2)
    #40 XRE_main(int, char**, mozilla::BootstrapConfig const&) /checkouts/gecko/toolkit/xre/nsAppRunner.cpp:6015:21 (libxul.so+0xbfeb211)
    #41 mozilla::BootstrapImpl::XRE_main(int, char**, mozilla::BootstrapConfig const&) /checkouts/gecko/toolkit/xre/Bootstrap.cpp:45:12 (libxul.so+0xbffa262)
    #42 do_main /checkouts/gecko/browser/app/nsBrowserApp.cpp:227:22 (firefox-bin+0x14ea00)
    #43 main /checkouts/gecko/browser/app/nsBrowserApp.cpp:445:16 (firefox-bin+0x14ea00)
SUMMARY: ThreadSanitizer: data race /checkouts/gecko/dom/media/webrtc/transport/third_party/nrappkit/src/log/r_log.c:188:16 in r_log_register
ThreadSanitizer: data race sockettransportservice_unittest.cpp:146:3 in (anonymous namespace)::SocketTransportServiceTest::SetUp()
ThreadSanitizer: data race sockettransportservice_unittest.cpp:155:15 in RegisterHandler

https://treeherder.mozilla.org/logviewer?job_id=456554955&repo=try&lineNumber=44898

TEST-START | SocketTransportServiceTest.SendEvent
==================
WARNING: ThreadSanitizer: data race (pid=996)
  Write of size 1 at 0x7b20000e10f8 by thread T5:
    #0 RegisterHandler /checkouts/gecko/dom/media/webrtc/transport/test/sockettransportservice_unittest.cpp:155:15 (libxul.so+0x4fb0365)
    #1 (anonymous namespace)::RegisterEvent::Run() /checkouts/gecko/dom/media/webrtc/transport/test/sockettransportservice_unittest.cpp:82:12 (libxul.so+0x4fb0365)
    #2 nsThread::ProcessNextEvent(bool, bool*) /checkouts/gecko/xpcom/threads/nsThread.cpp:1193:16 (libxul.so+0x552fc0e)
    #3 NS_ProcessNextEvent(nsIThread*, bool) /checkouts/gecko/xpcom/threads/nsThreadUtils.cpp:480:10 (libxul.so+0x55361a4)
    #4 mozilla::net::nsSocketTransportService::Run() /checkouts/gecko/netwerk/base/nsSocketTransportService2.cpp:1203:11 (libxul.so+0x576383c)
    #5 non-virtual thunk to mozilla::net::nsSocketTransportService::Run() /checkouts/gecko/netwerk/base/nsSocketTransportService2.cpp (libxul.so+0x57656b9)
    #6 nsThread::ProcessNextEvent(bool, bool*) /checkouts/gecko/xpcom/threads/nsThread.cpp:1193:16 (libxul.so+0x552fc0e)
    #7 NS_ProcessNextEvent(nsIThread*, bool) /checkouts/gecko/xpcom/threads/nsThreadUtils.cpp:480:10 (libxul.so+0x55361a4)
    #8 mozilla::ipc::MessagePumpForNonMainThreads::Run(base::MessagePump::Delegate*) /checkouts/gecko/ipc/glue/MessagePump.cpp:300:20 (libxul.so+0x607c10e)
    #9 RunInternal /checkouts/gecko/ipc/chromium/src/base/message_loop.cc:370:10 (libxul.so+0x5fef1b8)
    #10 RunHandler /checkouts/gecko/ipc/chromium/src/base/message_loop.cc:363:3 (libxul.so+0x5fef1b8)
    #11 MessageLoop::Run() /checkouts/gecko/ipc/chromium/src/base/message_loop.cc:345:3 (libxul.so+0x5fef1b8)
    #12 nsThread::ThreadFunc(void*) /checkouts/gecko/xpcom/threads/nsThread.cpp:370:10 (libxul.so+0x552b493)
    #13 _pt_root /checkouts/gecko/nsprpub/pr/src/pthreads/ptthread.c:201:5 (libnspr4.so+0x4ba79)
  Previous read of size 1 at 0x7b20000e10f8 by main thread:
    #0 (anonymous namespace)::SocketTransportServiceTest::SetUp() /checkouts/gecko/dom/media/webrtc/transport/test/sockettransportservice_unittest.cpp:146:3 (libxul.so+0x4faf8d8)
    #1 void testing::internal::HandleExceptionsInMethodIfSupported<testing::Test, void>(testing::Test*, void (testing::Test::*)(), char const*) /checkouts/gecko/third_party/googletest/googletest/src/gtest.cc (libxul.so+0x425232d)
    #2 testing::Test::Run() /checkouts/gecko/third_party/googletest/googletest/src/gtest.cc:2683:3 (libxul.so+0x4252123)
    #3 testing::TestInfo::Run() /checkouts/gecko/third_party/googletest/googletest/src/gtest.cc:2837:11 (libxul.so+0x4253ba8)
    #4 testing::TestSuite::Run() /checkouts/gecko/third_party/googletest/googletest/src/gtest.cc:3016:30 (libxul.so+0x42551a4)
    #5 testing::internal::UnitTestImpl::RunAllTests() /checkouts/gecko/third_party/googletest/googletest/src/gtest.cc:5922:44 (libxul.so+0x4272c39)
    #6 libvpx_test_cases_Test::TestBody() /checkouts/gecko/dom/media/gtest/TestVPXDecoding.cpp:89:9 (libxul.so+0x4a78e67)
    #7 void testing::internal::HandleExceptionsInMethodIfSupported<testing::Test, void>(testing::Test*, void (testing::Test::*)(), char const*) /checkouts/gecko/third_party/googletest/googletest/src/gtest.cc (libxul.so+0x425232d)
    #8 testing::Test::Run() /checkouts/gecko/third_party/googletest/googletest/src/gtest.cc:2688:5 (libxul.so+0x4252199)
    #9 testing::TestInfo::Run() /checkouts/gecko/third_party/googletest/googletest/src/gtest.cc:2837:11 (libxul.so+0x4253ba8)
    #10 testing::TestSuite::Run() /checkouts/gecko/third_party/googletest/googletest/src/gtest.cc:3016:30 (libxul.so+0x42551a4)
    #11 testing::internal::UnitTestImpl::RunAllTests() /checkouts/gecko/third_party/googletest/googletest/src/gtest.cc:5922:44 (libxul.so+0x4272c39)
    #12 testing::Test::Run() /checkouts/gecko/third_party/googletest/googletest/src/gtest.cc:2688:5 (libxul.so+0x4252199)
    #13 testing::TestInfo::Run() /checkouts/gecko/third_party/googletest/googletest/src/gtest.cc:2837:11 (libxul.so+0x4253ba8)
    #14 testing::TestSuite::Run() /checkouts/gecko/third_party/googletest/googletest/src/gtest.cc:3016:30 (libxul.so+0x42551a4)
    #15 testing::internal::UnitTestImpl::RunAllTests() /checkouts/gecko/third_party/googletest/googletest/src/gtest.cc:5922:44 (libxul.so+0x4272c39)
    #16 testing::Test::Run() /checkouts/gecko/third_party/googletest/googletest/src/gtest.cc:2688:5 (libxul.so+0x4252199)
    #17 testing::TestInfo::Run() /checkouts/gecko/third_party/googletest/googletest/src/gtest.cc:2837:11 (libxul.so+0x4253ba8)
    #18 testing::TestSuite::Run() /checkouts/gecko/third_party/googletest/googletest/src/gtest.cc:3016:30 (libxul.so+0x42551a4)
    #19 testing::internal::UnitTestImpl::RunAllTests() /checkouts/gecko/third_party/googletest/googletest/src/gtest.cc:5922:44 (libxul.so+0x4272c39)
    #20 bool testing::internal::HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool>(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) /checkouts/gecko/third_party/googletest/googletest/src/gtest.cc (libxul.so+0x42723dd)
    #21 testing::UnitTest::Run() /checkouts/gecko/third_party/googletest/googletest/src/gtest.cc:5486:10 (libxul.so+0x4272180)
    #22 RUN_ALL_TESTS /workspace/obj-build/dist/include/gtest/gtest.h:2319:73 (libxul.so+0x4227b3f)
    #23 mozilla::RunGTestFunc(int*, char**) /checkouts/gecko/testing/gtest/mozilla/GTestRunner.cpp:167:10 (libxul.so+0x4227b3f)
    #24 XREMain::XRE_mainStartup(bool*) /checkouts/gecko/toolkit/xre/nsAppRunner.cpp:4686:16 (libxul.so+0xbfd12a9)
    #25 XREMain::XRE_main(int, char**, mozilla::BootstrapConfig const&) /checkouts/gecko/toolkit/xre/nsAppRunner.cpp:5946:12 (libxul.so+0xbfd8fd2)
    #26 XRE_main(int, char**, mozilla::BootstrapConfig const&) /checkouts/gecko/toolkit/xre/nsAppRunner.cpp:6015:21 (libxul.so+0xbfd9711)
    #27 mozilla::BootstrapImpl::XRE_main(int, char**, mozilla::BootstrapConfig const&) /checkouts/gecko/toolkit/xre/Bootstrap.cpp:45:12 (libxul.so+0xbfe8762)
    #28 do_main /checkouts/gecko/browser/app/nsBrowserApp.cpp:227:22 (firefox-bin+0x14ea00)
    #29 main /checkouts/gecko/browser/app/nsBrowserApp.cpp:445:16 (firefox-bin+0x14ea00)
  Location is heap block of size 128 at 0x7b20000e1080 allocated by main thread:
    #0 malloc /fetches/llvm-project/compiler-rt/lib/tsan/rtl/tsan_interceptors_posix.cpp:663:5 (firefox-bin+0xc3ddc)
    #1 moz_xmalloc /checkouts/gecko/memory/mozalloc/mozalloc.cpp:52:15 (firefox-bin+0x150a08)
    #2 operator new /workspace/obj-build/dist/include/mozilla/cxxalloc.h:33:10 (libxul.so+0x4faf387)
    #3 testing::internal::TestFactoryImpl<(anonymous namespace)::SocketTransportServiceTest_SendEvent_Test>::CreateTest() /workspace/obj-build/dist/include/gtest/internal/gtest-internal.h:456:40 (libxul.so+0x4faf387)
    #4 testing::Test* testing::internal::HandleExceptionsInMethodIfSupported<testing::internal::TestFactoryBase, testing::Test*>(testing::internal::TestFactoryBase*, testing::Test* (testing::internal::TestFactoryBase::*)(), char const*) /checkouts/gecko/third_party/googletest/googletest/src/gtest.cc (libxul.so+0x4253f1d)
    #5 testing::TestInfo::Run() /checkouts/gecko/third_party/googletest/googletest/src/gtest.cc:2827:22 (libxul.so+0x4253b8b)
    #6 testing::TestSuite::Run() /checkouts/gecko/third_party/googletest/googletest/src/gtest.cc:3016:30 (libxul.so+0x42551a4)
    #7 testing::internal::UnitTestImpl::RunAllTests() /checkouts/gecko/third_party/googletest/googletest/src/gtest.cc:5922:44 (libxul.so+0x4272c39)
    #8 libvpx_test_cases_Test::TestBody() /checkouts/gecko/dom/media/gtest/TestVPXDecoding.cpp:89:9 (libxul.so+0x4a78e67)
    #9 void testing::internal::HandleExceptionsInMethodIfSupported<testing::Test, void>(testing::Test*, void (testing::Test::*)(), char const*) /checkouts/gecko/third_party/googletest/googletest/src/gtest.cc (libxul.so+0x425232d)
    #10 testing::Test::Run() /checkouts/gecko/third_party/googletest/googletest/src/gtest.cc:2688:5 (libxul.so+0x4252199)
    #11 testing::TestInfo::Run() /checkouts/gecko/third_party/googletest/googletest/src/gtest.cc:2837:11 (libxul.so+0x4253ba8)
    #12 testing::TestSuite::Run() /checkouts/gecko/third_party/googletest/googletest/src/gtest.cc:3016:30 (libxul.so+0x42551a4)
    #13 testing::internal::UnitTestImpl::RunAllTests() /checkouts/gecko/third_party/googletest/googletest/src/gtest.cc:5922:44 (libxul.so+0x4272c39)
    #14 testing::Test::Run() /checkouts/gecko/third_party/googletest/googletest/src/gtest.cc:2688:5 (libxul.so+0x4252199)
    #15 testing::TestInfo::Run() /checkouts/gecko/third_party/googletest/googletest/src/gtest.cc:2837:11 (libxul.so+0x4253ba8)
    #16 testing::TestSuite::Run() /checkouts/gecko/third_party/googletest/googletest/src/gtest.cc:3016:30 (libxul.so+0x42551a4)
    #17 testing::internal::UnitTestImpl::RunAllTests() /checkouts/gecko/third_party/googletest/googletest/src/gtest.cc:5922:44 (libxul.so+0x4272c39)
    #18 testing::Test::Run() /checkouts/gecko/third_party/googletest/googletest/src/gtest.cc:2688:5 (libxul.so+0x4252199)
    #19 testing::TestInfo::Run() /checkouts/gecko/third_party/googletest/googletest/src/gtest.cc:2837:11 (libxul.so+0x4253ba8)
    #20 testing::TestSuite::Run() /checkouts/gecko/third_party/googletest/googletest/src/gtest.cc:3016:30 (libxul.so+0x42551a4)
    #21 testing::internal::UnitTestImpl::RunAllTests() /checkouts/gecko/third_party/googletest/googletest/src/gtest.cc:5922:44 (libxul.so+0x4272c39)
    #22 bool testing::internal::HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool>(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) /checkouts/gecko/third_party/googletest/googletest/src/gtest.cc (libxul.so+0x42723dd)
    #23 testing::UnitTest::Run() /checkouts/gecko/third_party/googletest/googletest/src/gtest.cc:5486:10 (libxul.so+0x4272180)
    #24 RUN_ALL_TESTS /workspace/obj-build/dist/include/gtest/gtest.h:2319:73 (libxul.so+0x4227b3f)
    #25 mozilla::RunGTestFunc(int*, char**) /checkouts/gecko/testing/gtest/mozilla/GTestRunner.cpp:167:10 (libxul.so+0x4227b3f)
    #26 XREMain::XRE_mainStartup(bool*) /checkouts/gecko/toolkit/xre/nsAppRunner.cpp:4686:16 (libxul.so+0xbfd12a9)
    #27 XREMain::XRE_main(int, char**, mozilla::BootstrapConfig const&) /checkouts/gecko/toolkit/xre/nsAppRunner.cpp:5946:12 (libxul.so+0xbfd8fd2)
    #28 XRE_main(int, char**, mozilla::BootstrapConfig const&) /checkouts/gecko/toolkit/xre/nsAppRunner.cpp:6015:21 (libxul.so+0xbfd9711)
    #29 mozilla::BootstrapImpl::XRE_main(int, char**, mozilla::BootstrapConfig const&) /checkouts/gecko/toolkit/xre/Bootstrap.cpp:45:12 (libxul.so+0xbfe8762)
    #30 do_main /checkouts/gecko/browser/app/nsBrowserApp.cpp:227:22 (firefox-bin+0x14ea00)
    #31 main /checkouts/gecko/browser/app/nsBrowserApp.cpp:445:16 (firefox-bin+0x14ea00)
  Thread T5 'Socket Thread' (tid=1004, running) created by main thread at:
    #0 pthread_create /fetches/llvm-project/compiler-rt/lib/tsan/rtl/tsan_interceptors_posix.cpp:1020:3 (firefox-bin+0xc59bb)
    #1 _PR_CreateThread /checkouts/gecko/nsprpub/pr/src/pthreads/ptthread.c:458:14 (libnspr4.so+0x42cee)
    #2 PR_CreateThread /checkouts/gecko/nsprpub/pr/src/pthreads/ptthread.c:533:12 (libnspr4.so+0x37f84)
    #3 nsThread::Init(nsTSubstring<char> const&) /checkouts/gecko/xpcom/threads/nsThread.cpp:620:20 (libxul.so+0x552cc37)
    #4 nsThreadManager::NewNamedThread(nsTSubstring<char> const&, nsIThreadManager::ThreadCreationOptions, nsIThread**) /checkouts/gecko/xpcom/threads/nsThreadManager.cpp:602:22 (libxul.so+0x5534cdd)
    #5 NS_NewNamedThread(nsTSubstring<char> const&, nsIThread**, already_AddRefed<nsIRunnable>, nsIThreadManager::ThreadCreationOptions) /checkouts/gecko/xpcom/threads/nsThreadUtils.cpp:176:57 (libxul.so+0x553d993)
    #6 NS_NewNamedThread<14UL> /workspace/obj-build/dist/include/nsThreadUtils.h:87:10 (libxul.so+0x5761cfb)
    #7 mozilla::net::nsSocketTransportService::Init() /checkouts/gecko/netwerk/base/nsSocketTransportService2.cpp:748:19 (libxul.so+0x5761cfb)
    #8 mozilla::xpcom::CreateInstanceImpl(mozilla::xpcom::ModuleID, nsID const&, void**) /workspace/obj-build/xpcom/components/StaticComponents.cpp:9683:7 (libxul.so+0x54e6d8a)
    #9 mozilla::xpcom::StaticModule::CreateInstance(nsID const&, void**) const /workspace/obj-build/xpcom/components/StaticComponents.cpp:12981:10 (libxul.so+0x54f296a)
    #10 CreateInstance /checkouts/gecko/xpcom/components/nsComponentManager.cpp:189:46 (libxul.so+0x54fd387)
    #11 nsComponentManagerImpl::GetServiceLocked(mozilla::Maybe<mozilla::detail::BaseMonitorAutoLock<mozilla::Monitor>>&, (anonymous namespace)::EntryWrapper&, nsID const&, void**) /checkouts/gecko/xpcom/components/nsComponentManager.cpp:987:17 (libxul.so+0x54fd387)
    #12 nsComponentManagerImpl::GetServiceByContractID(char const*, nsID const&, void**) /checkouts/gecko/xpcom/components/nsComponentManager.cpp:1176:10 (libxul.so+0x54fdffd)
    #13 CallGetService /checkouts/gecko/xpcom/components/nsComponentManagerUtils.cpp:63:43 (libxul.so+0x5500a7b)
    #14 nsGetServiceByContractIDWithError::operator()(nsID const&, void**) const /checkouts/gecko/xpcom/components/nsComponentManagerUtils.cpp:250:21 (libxul.so+0x5500a7b)
    #15 assign_from_gs_contractid_with_error /workspace/obj-build/dist/include/nsCOMPtr.h:881:7 (libxul.so+0x56facb0)
    #16 operator= /workspace/obj-build/dist/include/nsCOMPtr.h:665:5 (libxul.so+0x56facb0)
    #17 mozilla::net::nsIOService::InitializeSocketTransportService() /checkouts/gecko/netwerk/base/nsIOService.cpp:439:29 (libxul.so+0x56facb0)
    #18 mozilla::net::nsIOService::SetOfflineInternal(bool, bool) /checkouts/gecko/netwerk/base/nsIOService.cpp:1303:7 (libxul.so+0x56ff3df)
    #19 SetOffline /checkouts/gecko/netwerk/base/nsIOService.cpp:1242:48 (libxul.so+0x56f929c)
    #20 mozilla::net::nsIOService::Init() /checkouts/gecko/netwerk/base/nsIOService.cpp:311:3 (libxul.so+0x56f929c)
    #21 mozilla::net::nsIOService::GetInstance() /checkouts/gecko/netwerk/base/nsIOService.cpp:496:9 (libxul.so+0x56fb2d1)
    #22 mozilla::xpcom::CreateInstanceImpl(mozilla::xpcom::ModuleID, nsID const&, void**) /workspace/obj-build/xpcom/components/StaticComponents.cpp:12089:48 (libxul.so+0x54ee503)
    #23 mozilla::xpcom::StaticModule::CreateInstance(nsID const&, void**) const /workspace/obj-build/xpcom/components/StaticComponents.cpp:12981:10 (libxul.so+0x54f296a)
    #24 CreateInstance /checkouts/gecko/xpcom/components/nsComponentManager.cpp:189:46 (libxul.so+0x54fd387)
    #25 nsComponentManagerImpl::GetServiceLocked(mozilla::Maybe<mozilla::detail::BaseMonitorAutoLock<mozilla::Monitor>>&, (anonymous namespace)::EntryWrapper&, nsID const&, void**) /checkouts/gecko/xpcom/components/nsComponentManager.cpp:987:17 (libxul.so+0x54fd387)
    #26 nsComponentManagerImpl::GetService(mozilla::xpcom::ModuleID, nsID const&, void**) /checkouts/gecko/xpcom/components/nsComponentManager.cpp:1077:10 (libxul.so+0x54fd913)
    #27 mozilla::xpcom::GetServiceHelper::operator()(nsID const&, void**) const /workspace/obj-build/xpcom/components/StaticComponents.cpp:13127:50 (libxul.so+0x54f3568)
    #28 RefPtr /workspace/obj-build/dist/include/nsCOMPtr.h:1111:7 (libxul.so+0x635ea1e)
    #29 nsScriptSecurityManager::Init() /checkouts/gecko/caps/nsScriptSecurityManager.cpp:1565:29 (libxul.so+0x635ea1e)
    #30 nsScriptSecurityManager::InitStatics() /checkouts/gecko/caps/nsScriptSecurityManager.cpp:1627:28 (libxul.so+0x635ef89)
    #31 nsXPConnect::InitStatics() /checkouts/gecko/js/xpconnect/src/nsXPConnect.cpp:165:3 (libxul.so+0x62015a0)
    #32 xpcModuleCtor() /checkouts/gecko/js/xpconnect/src/XPCModule.cpp:11:3 (libxul.so+0x61cf6cf)
    #33 nsLayoutModuleInitialize() /checkouts/gecko/layout/build/nsLayoutModule.cpp:97:7 (libxul.so+0xa9252fb)
    #34 nsComponentManagerImpl::Init() /checkouts/gecko/xpcom/components/nsComponentManager.cpp:387:5 (libxul.so+0x54fa62f)
    #35 NS_InitXPCOM /checkouts/gecko/xpcom/build/XPCOMInit.cpp:448:51 (libxul.so+0x556ca20)
    #36 ScopedXPCOM /workspace/obj-build/dist/include/testing/TestHarness.h:84:15 (libxul.so+0x4227a9e)
    #37 mozilla::RunGTestFunc(int*, char**) /checkouts/gecko/testing/gtest/mozilla/GTestRunner.cpp:114:15 (libxul.so+0x4227a9e)
    #38 XREMain::XRE_mainStartup(bool*) /checkouts/gecko/toolkit/xre/nsAppRunner.cpp:4686:16 (libxul.so+0xbfd12a9)
    #39 XREMain::XRE_main(int, char**, mozilla::BootstrapConfig const&) /checkouts/gecko/toolkit/xre/nsAppRunner.cpp:5946:12 (libxul.so+0xbfd8fd2)
    #40 XRE_main(int, char**, mozilla::BootstrapConfig const&) /checkouts/gecko/toolkit/xre/nsAppRunner.cpp:6015:21 (libxul.so+0xbfd9711)
    #41 mozilla::BootstrapImpl::XRE_main(int, char**, mozilla::BootstrapConfig const&) /checkouts/gecko/toolkit/xre/Bootstrap.cpp:45:12 (libxul.so+0xbfe8762)
    #42 do_main /checkouts/gecko/browser/app/nsBrowserApp.cpp:227:22 (firefox-bin+0x14ea00)
    #43 main /checkouts/gecko/browser/app/nsBrowserApp.cpp:445:16 (firefox-bin+0x14ea00)
SUMMARY: ThreadSanitizer: data race /checkouts/gecko/dom/media/webrtc/transport/test/sockettransportservice_unittest.cpp:155:15 in RegisterHandler

https://treeherder.mozilla.org/logviewer?job_id=456554953&repo=try&lineNumber=44898

TEST-START | SocketTransportServiceTest.SendEvent
==================
WARNING: ThreadSanitizer: data race (pid=999)
  Read of size 1 at 0x7b20000df978 by main thread:
    #0 (anonymous namespace)::SocketTransportServiceTest::SetUp() /checkouts/gecko/dom/media/webrtc/transport/test/sockettransportservice_unittest.cpp:146:3 (libxul.so+0x4faf8d8)
    #1 void testing::internal::HandleExceptionsInMethodIfSupported<testing::Test, void>(testing::Test*, void (testing::Test::*)(), char const*) /checkouts/gecko/third_party/googletest/googletest/src/gtest.cc (libxul.so+0x425232d)
    #2 testing::Test::Run() /checkouts/gecko/third_party/googletest/googletest/src/gtest.cc:2683:3 (libxul.so+0x4252123)
    #3 testing::TestInfo::Run() /checkouts/gecko/third_party/googletest/googletest/src/gtest.cc:2837:11 (libxul.so+0x4253ba8)
    #4 testing::TestSuite::Run() /checkouts/gecko/third_party/googletest/googletest/src/gtest.cc:3016:30 (libxul.so+0x42551a4)
    #5 testing::internal::UnitTestImpl::RunAllTests() /checkouts/gecko/third_party/googletest/googletest/src/gtest.cc:5922:44 (libxul.so+0x4272c39)
    #6 libvpx_test_cases_Test::TestBody() /checkouts/gecko/dom/media/gtest/TestVPXDecoding.cpp:89:9 (libxul.so+0x4a78e67)
    #7 void testing::internal::HandleExceptionsInMethodIfSupported<testing::Test, void>(testing::Test*, void (testing::Test::*)(), char const*) /checkouts/gecko/third_party/googletest/googletest/src/gtest.cc (libxul.so+0x425232d)
    #8 testing::Test::Run() /checkouts/gecko/third_party/googletest/googletest/src/gtest.cc:2688:5 (libxul.so+0x4252199)
    #9 testing::TestInfo::Run() /checkouts/gecko/third_party/googletest/googletest/src/gtest.cc:2837:11 (libxul.so+0x4253ba8)
    #10 testing::TestSuite::Run() /checkouts/gecko/third_party/googletest/googletest/src/gtest.cc:3016:30 (libxul.so+0x42551a4)
    #11 testing::internal::UnitTestImpl::RunAllTests() /checkouts/gecko/third_party/googletest/googletest/src/gtest.cc:5922:44 (libxul.so+0x4272c39)
    #12 testing::Test::Run() /checkouts/gecko/third_party/googletest/googletest/src/gtest.cc:2688:5 (libxul.so+0x4252199)
    #13 testing::TestInfo::Run() /checkouts/gecko/third_party/googletest/googletest/src/gtest.cc:2837:11 (libxul.so+0x4253ba8)
    #14 testing::TestSuite::Run() /checkouts/gecko/third_party/googletest/googletest/src/gtest.cc:3016:30 (libxul.so+0x42551a4)
    #15 testing::internal::UnitTestImpl::RunAllTests() /checkouts/gecko/third_party/googletest/googletest/src/gtest.cc:5922:44 (libxul.so+0x4272c39)
    #16 testing::Test::Run() /checkouts/gecko/third_party/googletest/googletest/src/gtest.cc:2688:5 (libxul.so+0x4252199)
    #17 testing::TestInfo::Run() /checkouts/gecko/third_party/googletest/googletest/src/gtest.cc:2837:11 (libxul.so+0x4253ba8)
    #18 testing::TestSuite::Run() /checkouts/gecko/third_party/googletest/googletest/src/gtest.cc:3016:30 (libxul.so+0x42551a4)
    #19 testing::internal::UnitTestImpl::RunAllTests() /checkouts/gecko/third_party/googletest/googletest/src/gtest.cc:5922:44 (libxul.so+0x4272c39)
    #20 bool testing::internal::HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool>(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) /checkouts/gecko/third_party/googletest/googletest/src/gtest.cc (libxul.so+0x42723dd)
    #21 testing::UnitTest::Run() /checkouts/gecko/third_party/googletest/googletest/src/gtest.cc:5486:10 (libxul.so+0x4272180)
    #22 RUN_ALL_TESTS /workspace/obj-build/dist/include/gtest/gtest.h:2319:73 (libxul.so+0x4227b3f)
    #23 mozilla::RunGTestFunc(int*, char**) /checkouts/gecko/testing/gtest/mozilla/GTestRunner.cpp:167:10 (libxul.so+0x4227b3f)
    #24 XREMain::XRE_mainStartup(bool*) /checkouts/gecko/toolkit/xre/nsAppRunner.cpp:4686:16 (libxul.so+0xbfd12a9)
    #25 XREMain::XRE_main(int, char**, mozilla::BootstrapConfig const&) /checkouts/gecko/toolkit/xre/nsAppRunner.cpp:5946:12 (libxul.so+0xbfd8fd2)
    #26 XRE_main(int, char**, mozilla::BootstrapConfig const&) /checkouts/gecko/toolkit/xre/nsAppRunner.cpp:6015:21 (libxul.so+0xbfd9711)
    #27 mozilla::BootstrapImpl::XRE_main(int, char**, mozilla::BootstrapConfig const&) /checkouts/gecko/toolkit/xre/Bootstrap.cpp:45:12 (libxul.so+0xbfe8762)
    #28 do_main /checkouts/gecko/browser/app/nsBrowserApp.cpp:227:22 (firefox-bin+0x14ea00)
    #29 main /checkouts/gecko/browser/app/nsBrowserApp.cpp:445:16 (firefox-bin+0x14ea00)
  Previous write of size 1 at 0x7b20000df978 by thread T5:
    #0 RegisterHandler /checkouts/gecko/dom/media/webrtc/transport/test/sockettransportservice_unittest.cpp:155:15 (libxul.so+0x4fb0365)
    #1 (anonymous namespace)::RegisterEvent::Run() /checkouts/gecko/dom/media/webrtc/transport/test/sockettransportservice_unittest.cpp:82:12 (libxul.so+0x4fb0365)
    #2 nsThread::ProcessNextEvent(bool, bool*) /checkouts/gecko/xpcom/threads/nsThread.cpp:1193:16 (libxul.so+0x552fc0e)
    #3 NS_ProcessNextEvent(nsIThread*, bool) /checkouts/gecko/xpcom/threads/nsThreadUtils.cpp:480:10 (libxul.so+0x55361a4)
    #4 mozilla::net::nsSocketTransportService::Run() /checkouts/gecko/netwerk/base/nsSocketTransportService2.cpp:1203:11 (libxul.so+0x576383c)
    #5 non-virtual thunk to mozilla::net::nsSocketTransportService::Run() /checkouts/gecko/netwerk/base/nsSocketTransportService2.cpp (libxul.so+0x57656b9)
    #6 nsThread::ProcessNextEvent(bool, bool*) /checkouts/gecko/xpcom/threads/nsThread.cpp:1193:16 (libxul.so+0x552fc0e)
    #7 NS_ProcessNextEvent(nsIThread*, bool) /checkouts/gecko/xpcom/threads/nsThreadUtils.cpp:480:10 (libxul.so+0x55361a4)
    #8 mozilla::ipc::MessagePumpForNonMainThreads::Run(base::MessagePump::Delegate*) /checkouts/gecko/ipc/glue/MessagePump.cpp:300:20 (libxul.so+0x607c10e)
    #9 RunInternal /checkouts/gecko/ipc/chromium/src/base/message_loop.cc:370:10 (libxul.so+0x5fef1b8)
    #10 RunHandler /checkouts/gecko/ipc/chromium/src/base/message_loop.cc:363:3 (libxul.so+0x5fef1b8)
    #11 MessageLoop::Run() /checkouts/gecko/ipc/chromium/src/base/message_loop.cc:345:3 (libxul.so+0x5fef1b8)
    #12 nsThread::ThreadFunc(void*) /checkouts/gecko/xpcom/threads/nsThread.cpp:370:10 (libxul.so+0x552b493)
    #13 _pt_root /checkouts/gecko/nsprpub/pr/src/pthreads/ptthread.c:201:5 (libnspr4.so+0x4ba79)
  Location is heap block of size 128 at 0x7b20000df900 allocated by main thread:
    #0 malloc /fetches/llvm-project/compiler-rt/lib/tsan/rtl/tsan_interceptors_posix.cpp:663:5 (firefox-bin+0xc3ddc)
    #1 moz_xmalloc /checkouts/gecko/memory/mozalloc/mozalloc.cpp:52:15 (firefox-bin+0x150a08)
    #2 operator new /workspace/obj-build/dist/include/mozilla/cxxalloc.h:33:10 (libxul.so+0x4faf387)
    #3 testing::internal::TestFactoryImpl<(anonymous namespace)::SocketTransportServiceTest_SendEvent_Test>::CreateTest() /workspace/obj-build/dist/include/gtest/internal/gtest-internal.h:456:40 (libxul.so+0x4faf387)
    #4 testing::Test* testing::internal::HandleExceptionsInMethodIfSupported<testing::internal::TestFactoryBase, testing::Test*>(testing::internal::TestFactoryBase*, testing::Test* (testing::internal::TestFactoryBase::*)(), char const*) /checkouts/gecko/third_party/googletest/googletest/src/gtest.cc (libxul.so+0x4253f1d)
    #5 testing::TestInfo::Run() /checkouts/gecko/third_party/googletest/googletest/src/gtest.cc:2827:22 (libxul.so+0x4253b8b)
    #6 testing::TestSuite::Run() /checkouts/gecko/third_party/googletest/googletest/src/gtest.cc:3016:30 (libxul.so+0x42551a4)
    #7 testing::internal::UnitTestImpl::RunAllTests() /checkouts/gecko/third_party/googletest/googletest/src/gtest.cc:5922:44 (libxul.so+0x4272c39)
    #8 libvpx_test_cases_Test::TestBody() /checkouts/gecko/dom/media/gtest/TestVPXDecoding.cpp:89:9 (libxul.so+0x4a78e67)
    #9 void testing::internal::HandleExceptionsInMethodIfSupported<testing::Test, void>(testing::Test*, void (testing::Test::*)(), char const*) /checkouts/gecko/third_party/googletest/googletest/src/gtest.cc (libxul.so+0x425232d)
    #10 testing::Test::Run() /checkouts/gecko/third_party/googletest/googletest/src/gtest.cc:2688:5 (libxul.so+0x4252199)
    #11 testing::TestInfo::Run() /checkouts/gecko/third_party/googletest/googletest/src/gtest.cc:2837:11 (libxul.so+0x4253ba8)
    #12 testing::TestSuite::Run() /checkouts/gecko/third_party/googletest/googletest/src/gtest.cc:3016:30 (libxul.so+0x42551a4)
    #13 testing::internal::UnitTestImpl::RunAllTests() /checkouts/gecko/third_party/googletest/googletest/src/gtest.cc:5922:44 (libxul.so+0x4272c39)
    #14 testing::Test::Run() /checkouts/gecko/third_party/googletest/googletest/src/gtest.cc:2688:5 (libxul.so+0x4252199)
    #15 testing::TestInfo::Run() /checkouts/gecko/third_party/googletest/googletest/src/gtest.cc:2837:11 (libxul.so+0x4253ba8)
    #16 testing::TestSuite::Run() /checkouts/gecko/third_party/googletest/googletest/src/gtest.cc:3016:30 (libxul.so+0x42551a4)
    #17 testing::internal::UnitTestImpl::RunAllTests() /checkouts/gecko/third_party/googletest/googletest/src/gtest.cc:5922:44 (libxul.so+0x4272c39)
    #18 testing::Test::Run() /checkouts/gecko/third_party/googletest/googletest/src/gtest.cc:2688:5 (libxul.so+0x4252199)
    #19 testing::TestInfo::Run() /checkouts/gecko/third_party/googletest/googletest/src/gtest.cc:2837:11 (libxul.so+0x4253ba8)
    #20 testing::TestSuite::Run() /checkouts/gecko/third_party/googletest/googletest/src/gtest.cc:3016:30 (libxul.so+0x42551a4)
    #21 testing::internal::UnitTestImpl::RunAllTests() /checkouts/gecko/third_party/googletest/googletest/src/gtest.cc:5922:44 (libxul.so+0x4272c39)
    #22 bool testing::internal::HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool>(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) /checkouts/gecko/third_party/googletest/googletest/src/gtest.cc (libxul.so+0x42723dd)
    #23 testing::UnitTest::Run() /checkouts/gecko/third_party/googletest/googletest/src/gtest.cc:5486:10 (libxul.so+0x4272180)
    #24 RUN_ALL_TESTS /workspace/obj-build/dist/include/gtest/gtest.h:2319:73 (libxul.so+0x4227b3f)
    #25 mozilla::RunGTestFunc(int*, char**) /checkouts/gecko/testing/gtest/mozilla/GTestRunner.cpp:167:10 (libxul.so+0x4227b3f)
    #26 XREMain::XRE_mainStartup(bool*) /checkouts/gecko/toolkit/xre/nsAppRunner.cpp:4686:16 (libxul.so+0xbfd12a9)
    #27 XREMain::XRE_main(int, char**, mozilla::BootstrapConfig const&) /checkouts/gecko/toolkit/xre/nsAppRunner.cpp:5946:12 (libxul.so+0xbfd8fd2)
    #28 XRE_main(int, char**, mozilla::BootstrapConfig const&) /checkouts/gecko/toolkit/xre/nsAppRunner.cpp:6015:21 (libxul.so+0xbfd9711)
    #29 mozilla::BootstrapImpl::XRE_main(int, char**, mozilla::BootstrapConfig const&) /checkouts/gecko/toolkit/xre/Bootstrap.cpp:45:12 (libxul.so+0xbfe8762)
    #30 do_main /checkouts/gecko/browser/app/nsBrowserApp.cpp:227:22 (firefox-bin+0x14ea00)
    #31 main /checkouts/gecko/browser/app/nsBrowserApp.cpp:445:16 (firefox-bin+0x14ea00)
  Thread T5 'Socket Thread' (tid=1007, running) created by main thread at:
    #0 pthread_create /fetches/llvm-project/compiler-rt/lib/tsan/rtl/tsan_interceptors_posix.cpp:1020:3 (firefox-bin+0xc59bb)
    #1 _PR_CreateThread /checkouts/gecko/nsprpub/pr/src/pthreads/ptthread.c:458:14 (libnspr4.so+0x42cee)
    #2 PR_CreateThread /checkouts/gecko/nsprpub/pr/src/pthreads/ptthread.c:533:12 (libnspr4.so+0x37f84)
    #3 nsThread::Init(nsTSubstring<char> const&) /checkouts/gecko/xpcom/threads/nsThread.cpp:620:20 (libxul.so+0x552cc37)
    #4 nsThreadManager::NewNamedThread(nsTSubstring<char> const&, nsIThreadManager::ThreadCreationOptions, nsIThread**) /checkouts/gecko/xpcom/threads/nsThreadManager.cpp:602:22 (libxul.so+0x5534cdd)
    #5 NS_NewNamedThread(nsTSubstring<char> const&, nsIThread**, already_AddRefed<nsIRunnable>, nsIThreadManager::ThreadCreationOptions) /checkouts/gecko/xpcom/threads/nsThreadUtils.cpp:176:57 (libxul.so+0x553d993)
    #6 NS_NewNamedThread<14UL> /workspace/obj-build/dist/include/nsThreadUtils.h:87:10 (libxul.so+0x5761cfb)
    #7 mozilla::net::nsSocketTransportService::Init() /checkouts/gecko/netwerk/base/nsSocketTransportService2.cpp:748:19 (libxul.so+0x5761cfb)
    #8 mozilla::xpcom::CreateInstanceImpl(mozilla::xpcom::ModuleID, nsID const&, void**) /workspace/obj-build/xpcom/components/StaticComponents.cpp:9683:7 (libxul.so+0x54e6d8a)
    #9 mozilla::xpcom::StaticModule::CreateInstance(nsID const&, void**) const /workspace/obj-build/xpcom/components/StaticComponents.cpp:12981:10 (libxul.so+0x54f296a)
    #10 CreateInstance /checkouts/gecko/xpcom/components/nsComponentManager.cpp:189:46 (libxul.so+0x54fd387)
    #11 nsComponentManagerImpl::GetServiceLocked(mozilla::Maybe<mozilla::detail::BaseMonitorAutoLock<mozilla::Monitor>>&, (anonymous namespace)::EntryWrapper&, nsID const&, void**) /checkouts/gecko/xpcom/components/nsComponentManager.cpp:987:17 (libxul.so+0x54fd387)
    #12 nsComponentManagerImpl::GetServiceByContractID(char const*, nsID const&, void**) /checkouts/gecko/xpcom/components/nsComponentManager.cpp:1176:10 (libxul.so+0x54fdffd)
    #13 CallGetService /checkouts/gecko/xpcom/components/nsComponentManagerUtils.cpp:63:43 (libxul.so+0x5500a7b)
    #14 nsGetServiceByContractIDWithError::operator()(nsID const&, void**) const /checkouts/gecko/xpcom/components/nsComponentManagerUtils.cpp:250:21 (libxul.so+0x5500a7b)
    #15 assign_from_gs_contractid_with_error /workspace/obj-build/dist/include/nsCOMPtr.h:881:7 (libxul.so+0x56facb0)
    #16 operator= /workspace/obj-build/dist/include/nsCOMPtr.h:665:5 (libxul.so+0x56facb0)
    #17 mozilla::net::nsIOService::InitializeSocketTransportService() /checkouts/gecko/netwerk/base/nsIOService.cpp:439:29 (libxul.so+0x56facb0)
    #18 mozilla::net::nsIOService::SetOfflineInternal(bool, bool) /checkouts/gecko/netwerk/base/nsIOService.cpp:1303:7 (libxul.so+0x56ff3df)
    #19 SetOffline /checkouts/gecko/netwerk/base/nsIOService.cpp:1242:48 (libxul.so+0x56f929c)
    #20 mozilla::net::nsIOService::Init() /checkouts/gecko/netwerk/base/nsIOService.cpp:311:3 (libxul.so+0x56f929c)
    #21 mozilla::net::nsIOService::GetInstance() /checkouts/gecko/netwerk/base/nsIOService.cpp:496:9 (libxul.so+0x56fb2d1)
    #22 mozilla::xpcom::CreateInstanceImpl(mozilla::xpcom::ModuleID, nsID const&, void**) /workspace/obj-build/xpcom/components/StaticComponents.cpp:12089:48 (libxul.so+0x54ee503)
    #23 mozilla::xpcom::StaticModule::CreateInstance(nsID const&, void**) const /workspace/obj-build/xpcom/components/StaticComponents.cpp:12981:10 (libxul.so+0x54f296a)
    #24 CreateInstance /checkouts/gecko/xpcom/components/nsComponentManager.cpp:189:46 (libxul.so+0x54fd387)
    #25 nsComponentManagerImpl::GetServiceLocked(mozilla::Maybe<mozilla::detail::BaseMonitorAutoLock<mozilla::Monitor>>&, (anonymous namespace)::EntryWrapper&, nsID const&, void**) /checkouts/gecko/xpcom/components/nsComponentManager.cpp:987:17 (libxul.so+0x54fd387)
    #26 nsComponentManagerImpl::GetService(mozilla::xpcom::ModuleID, nsID const&, void**) /checkouts/gecko/xpcom/components/nsComponentManager.cpp:1077:10 (libxul.so+0x54fd913)
    #27 mozilla::xpcom::GetServiceHelper::operator()(nsID const&, void**) const /workspace/obj-build/xpcom/components/StaticComponents.cpp:13127:50 (libxul.so+0x54f3568)
    #28 RefPtr /workspace/obj-build/dist/include/nsCOMPtr.h:1111:7 (libxul.so+0x635ea1e)
    #29 nsScriptSecurityManager::Init() /checkouts/gecko/caps/nsScriptSecurityManager.cpp:1565:29 (libxul.so+0x635ea1e)
    #30 nsScriptSecurityManager::InitStatics() /checkouts/gecko/caps/nsScriptSecurityManager.cpp:1627:28 (libxul.so+0x635ef89)
    #31 nsXPConnect::InitStatics() /checkouts/gecko/js/xpconnect/src/nsXPConnect.cpp:165:3 (libxul.so+0x62015a0)
    #32 xpcModuleCtor() /checkouts/gecko/js/xpconnect/src/XPCModule.cpp:11:3 (libxul.so+0x61cf6cf)
    #33 nsLayoutModuleInitialize() /checkouts/gecko/layout/build/nsLayoutModule.cpp:97:7 (libxul.so+0xa9252fb)
    #34 nsComponentManagerImpl::Init() /checkouts/gecko/xpcom/components/nsComponentManager.cpp:387:5 (libxul.so+0x54fa62f)
    #35 NS_InitXPCOM /checkouts/gecko/xpcom/build/XPCOMInit.cpp:448:51 (libxul.so+0x556ca20)
    #36 ScopedXPCOM /workspace/obj-build/dist/include/testing/TestHarness.h:84:15 (libxul.so+0x4227a9e)
    #37 mozilla::RunGTestFunc(int*, char**) /checkouts/gecko/testing/gtest/mozilla/GTestRunner.cpp:114:15 (libxul.so+0x4227a9e)
    #38 XREMain::XRE_mainStartup(bool*) /checkouts/gecko/toolkit/xre/nsAppRunner.cpp:4686:16 (libxul.so+0xbfd12a9)
    #39 XREMain::XRE_main(int, char**, mozilla::BootstrapConfig const&) /checkouts/gecko/toolkit/xre/nsAppRunner.cpp:5946:12 (libxul.so+0xbfd8fd2)
    #40 XRE_main(int, char**, mozilla::BootstrapConfig const&) /checkouts/gecko/toolkit/xre/nsAppRunner.cpp:6015:21 (libxul.so+0xbfd9711)
    #41 mozilla::BootstrapImpl::XRE_main(int, char**, mozilla::BootstrapConfig const&) /checkouts/gecko/toolkit/xre/Bootstrap.cpp:45:12 (libxul.so+0xbfe8762)
    #42 do_main /checkouts/gecko/browser/app/nsBrowserApp.cpp:227:22 (firefox-bin+0x14ea00)
    #43 main /checkouts/gecko/browser/app/nsBrowserApp.cpp:445:16 (firefox-bin+0x14ea00)
SUMMARY: ThreadSanitizer: data race /checkouts/gecko/dom/media/webrtc/transport/test/sockettransportservice_unittest.cpp:146:3 in (anonymous namespace)::SocketTransportServiceTest::SetUp()

ThreadSanitizer: data race transport_unittests.cpp:706:5 in (anonymous namespace)::TransportTestPeer::PacketReceived(mozilla::TransportLayer*, mozilla::MediaPacket&)

https://treeherder.mozilla.org/logviewer?job_id=456562819&repo=try&lineNumber=45065

TEST-START | TransportTest.TestTransfer
Received == 0 packets
Received 1024 bytes
==================
WARNING: ThreadSanitizer: data race (pid=1010)
  Write of size 8 at 0x7b480009ba68 by thread T5:
    #0 (anonymous namespace)::TransportTestPeer::PacketReceived(mozilla::TransportLayer*, mozilla::MediaPacket&) /checkouts/gecko/dom/media/webrtc/transport/test/transport_unittests.cpp:706:5 (libxul.so+0x4fd4687)
    #1 void sigslot::_opaque_connection::emitter<(anonymous namespace)::TransportTestPeer, mozilla::TransportLayer*, mozilla::MediaPacket&>(sigslot::_opaque_connection const*, mozilla::TransportLayer*, mozilla::MediaPacket&) /checkouts/gecko/dom/media/webrtc/transport/sigslot.h:339:5 (libxul.so+0x4fd473a)
    #2 emit<mozilla::TransportLayer *, mozilla::MediaPacket &> /checkouts/gecko/dom/media/webrtc/transport/sigslot.h:330:5 (libxul.so+0x62bf346)
    #3 emit /checkouts/gecko/dom/media/webrtc/transport/sigslot.h:562:12 (libxul.so+0x62bf346)
    #4 operator() /checkouts/gecko/dom/media/webrtc/transport/sigslot.h:566:35 (libxul.so+0x62bf346)
    #5 mozilla::TransportLayerDtls::GetDecryptedPackets() /checkouts/gecko/dom/media/webrtc/transport/transportlayerdtls.cpp:1053:9 (libxul.so+0x62bf346)
    #6 mozilla::TransportLayerDtls::PacketReceived(mozilla::TransportLayer*, mozilla::MediaPacket&) /checkouts/gecko/dom/media/webrtc/transport/transportlayerdtls.cpp:1027:3 (libxul.so+0x62b9f60)
    #7 void sigslot::_opaque_connection::emitter<mozilla::TransportLayerDtls, mozilla::TransportLayer*, mozilla::MediaPacket&>(sigslot::_opaque_connection const*, mozilla::TransportLayer*, mozilla::MediaPacket&) /checkouts/gecko/dom/media/webrtc/transport/sigslot.h:339:5 (libxul.so+0x62c4e6a)
    #8 emit<mozilla::TransportLayer *, mozilla::MediaPacket &> /checkouts/gecko/dom/media/webrtc/transport/sigslot.h:330:5 (libxul.so+0x4fd292d)
    #9 emit /checkouts/gecko/dom/media/webrtc/transport/sigslot.h:562:12 (libxul.so+0x4fd292d)
    #10 operator() /checkouts/gecko/dom/media/webrtc/transport/sigslot.h:566:35 (libxul.so+0x4fd292d)
    #11 TransportLayerLossy::PacketReceived(mozilla::TransportLayer*, mozilla::MediaPacket&) /checkouts/gecko/dom/media/webrtc/transport/test/transport_unittests.cpp:140:5 (libxul.so+0x4fd292d)
    #12 void sigslot::_opaque_connection::emitter<TransportLayerLossy, mozilla::TransportLayer*, mozilla::MediaPacket&>(sigslot::_opaque_connection const*, mozilla::TransportLayer*, mozilla::MediaPacket&) /checkouts/gecko/dom/media/webrtc/transport/sigslot.h:339:5 (libxul.so+0x4fd2a3a)
    #13 emit<mozilla::TransportLayer *, mozilla::MediaPacket &> /checkouts/gecko/dom/media/webrtc/transport/sigslot.h:330:5 (libxul.so+0x62c697d)
    #14 emit /checkouts/gecko/dom/media/webrtc/transport/sigslot.h:562:12 (libxul.so+0x62c697d)
    #15 operator() /checkouts/gecko/dom/media/webrtc/transport/sigslot.h:566:35 (libxul.so+0x62c697d)
    #16 mozilla::TransportLayerLogging::PacketReceived(mozilla::TransportLayer*, mozilla::MediaPacket&) /checkouts/gecko/dom/media/webrtc/transport/transportlayerlog.cpp:45:3 (libxul.so+0x62c697d)
    #17 void sigslot::_opaque_connection::emitter<mozilla::TransportLayerLogging, mozilla::TransportLayer*, mozilla::MediaPacket&>(sigslot::_opaque_connection const*, mozilla::TransportLayer*, mozilla::MediaPacket&) /checkouts/gecko/dom/media/webrtc/transport/sigslot.h:339:5 (libxul.so+0x62c702a)
    #18 emit<mozilla::TransportLayer *, mozilla::MediaPacket &> /checkouts/gecko/dom/media/webrtc/transport/sigslot.h:330:5 (libxul.so+0x62c81fa)
    #19 emit /checkouts/gecko/dom/media/webrtc/transport/sigslot.h:562:12 (libxul.so+0x62c81fa)
    #20 operator() /checkouts/gecko/dom/media/webrtc/transport/sigslot.h:566:35 (libxul.so+0x62c81fa)
    #21 mozilla::TransportLayerLoopback::DeliverPackets() /checkouts/gecko/dom/media/webrtc/transport/transportlayerloopback.cpp:100:5 (libxul.so+0x62c81fa)
    #22 mozilla::TransportLayerLoopback::Deliverer::Notify(nsITimer*) /checkouts/gecko/dom/media/webrtc/transport/transportlayerloopback.cpp:109:11 (libxul.so+0x62c8674)
    #23 operator() /checkouts/gecko/xpcom/threads/nsTimerImpl.cpp:677:44 (libxul.so+0x55201a4)
    #24 matchN<mozilla::Variant<nsTimerImpl::UnknownCallback, nsCOMPtr<nsITimerCallback>, nsCOMPtr<nsIObserver>, nsTimerImpl::FuncCallback, nsTimerImpl::ClosureCallback> &, (lambda at /checkouts/gecko/xpcom/threads/nsTimerImpl.cpp:677:7), (lambda at /checkouts/gecko/xpcom/threads/nsTimerImpl.cpp:678:7), (lambda at /checkouts/gecko/xpcom/threads/nsTimerImpl.cpp:681:7), (lambda at /checkouts/gecko/xpcom/threads/nsTimerImpl.cpp:682:7)> /workspace/obj-build/dist/include/mozilla/Variant.h:309:16 (libxul.so+0x55201a4)
    #25 matchN<mozilla::Variant<nsTimerImpl::UnknownCallback, nsCOMPtr<nsITimerCallback>, nsCOMPtr<nsIObserver>, nsTimerImpl::FuncCallback, nsTimerImpl::ClosureCallback> &, (lambda at /checkouts/gecko/xpcom/threads/nsTimerImpl.cpp:676:7), (lambda at /checkouts/gecko/xpcom/threads/nsTimerImpl.cpp:677:7), (lambda at /checkouts/gecko/xpcom/threads/nsTimerImpl.cpp:678:7), (lambda at /checkouts/gecko/xpcom/threads/nsTimerImpl.cpp:681:7), (lambda at /checkouts/gecko/xpcom/threads/nsTimerImpl.cpp:682:7)> /workspace/obj-build/dist/include/mozilla/Variant.h:318:14 (libxul.so+0x55201a4)
    #26 matchN<mozilla::Variant<nsTimerImpl::UnknownCallback, nsCOMPtr<nsITimerCallback>, nsCOMPtr<nsIObserver>, nsTimerImpl::FuncCallback, nsTimerImpl::ClosureCallback> &, (lambda at /checkouts/gecko/xpcom/threads/nsTimerImpl.cpp:676:7), (lambda at /checkouts/gecko/xpcom/threads/nsTimerImpl.cpp:677:7), (lambda at /checkouts/gecko/xpcom/threads/nsTimerImpl.cpp:678:7), (lambda at /checkouts/gecko/xpcom/threads/nsTimerImpl.cpp:681:7), (lambda at /checkouts/gecko/xpcom/threads/nsTimerImpl.cpp:682:7)> /workspace/obj-build/dist/include/mozilla/Variant.h:902:12 (libxul.so+0x55201a4)
    #27 match<(lambda at /checkouts/gecko/xpcom/threads/nsTimerImpl.cpp:676:7), (lambda at /checkouts/gecko/xpcom/threads/nsTimerImpl.cpp:677:7), (lambda at /checkouts/gecko/xpcom/threads/nsTimerImpl.cpp:678:7), (lambda at /checkouts/gecko/xpcom/threads/nsTimerImpl.cpp:681:7), (lambda at /checkouts/gecko/xpcom/threads/nsTimerImpl.cpp:682:7)> /workspace/obj-build/dist/include/mozilla/Variant.h:857:12 (libxul.so+0x55201a4)
    #28 nsTimerImpl::Fire(int) /checkouts/gecko/xpcom/threads/nsTimerImpl.cpp:675:22 (libxul.so+0x55201a4)
    #29 nsTimerEvent::Run() /checkouts/gecko/xpcom/threads/TimerThread.cpp:515:11 (libxul.so+0x551eff7)
    #30 nsThread::ProcessNextEvent(bool, bool*) /checkouts/gecko/xpcom/threads/nsThread.cpp:1193:16 (libxul.so+0x552d5be)
    #31 NS_ProcessNextEvent(nsIThread*, bool) /checkouts/gecko/xpcom/threads/nsThreadUtils.cpp:480:10 (libxul.so+0x5533b54)
    #32 mozilla::net::nsSocketTransportService::Run() /checkouts/gecko/netwerk/base/nsSocketTransportService2.cpp:1203:11 (libxul.so+0x576120c)
    #33 non-virtual thunk to mozilla::net::nsSocketTransportService::Run() /checkouts/gecko/netwerk/base/nsSocketTransportService2.cpp (libxul.so+0x5763089)
    #34 nsThread::ProcessNextEvent(bool, bool*) /checkouts/gecko/xpcom/threads/nsThread.cpp:1193:16 (libxul.so+0x552d5be)
    #35 NS_ProcessNextEvent(nsIThread*, bool) /checkouts/gecko/xpcom/threads/nsThreadUtils.cpp:480:10 (libxul.so+0x5533b54)
    #36 mozilla::ipc::MessagePumpForNonMainThreads::Run(base::MessagePump::Delegate*) /checkouts/gecko/ipc/glue/MessagePump.cpp:300:20 (libxul.so+0x6079b0e)
    #37 RunInternal /checkouts/gecko/ipc/chromium/src/base/message_loop.cc:370:10 (libxul.so+0x5fecbb8)
    #38 RunHandler /checkouts/gecko/ipc/chromium/src/base/message_loop.cc:363:3 (libxul.so+0x5fecbb8)
    #39 MessageLoop::Run() /checkouts/gecko/ipc/chromium/src/base/message_loop.cc:345:3 (libxul.so+0x5fecbb8)
    #40 nsThread::ThreadFunc(void*) /checkouts/gecko/xpcom/threads/nsThread.cpp:370:10 (libxul.so+0x5528e43)
    #41 _pt_root /checkouts/gecko/nsprpub/pr/src/pthreads/ptthread.c:201:5 (libnspr4.so+0x4ba79)
  Previous read of size 8 at 0x7b480009ba68 by main thread:
    #0 receivedPackets /checkouts/gecko/dom/media/webrtc/transport/test/transport_unittests.cpp:747:37 (libxul.so+0x4fde2b3)
    #1 (anonymous namespace)::TransportTest::TransferTest(unsigned long, unsigned long) /checkouts/gecko/dom/media/webrtc/transport/test/transport_unittests.cpp:920:5 (libxul.so+0x4fde2b3)
    #2 (anonymous namespace)::TransportTest_TestTransfer_Test::TestBody() /checkouts/gecko/dom/media/webrtc/transport/test/transport_unittests.cpp:1145:3 (libxul.so+0x4fddd74)
    #3 void testing::internal::HandleExceptionsInMethodIfSupported<testing::Test, void>(testing::Test*, void (testing::Test::*)(), char const*) /checkouts/gecko/third_party/googletest/googletest/src/gtest.cc (libxul.so+0x4251c6d)
    #4 testing::Test::Run() /checkouts/gecko/third_party/googletest/googletest/src/gtest.cc:2688:5 (libxul.so+0x4251ad9)
    #5 testing::TestInfo::Run() /checkouts/gecko/third_party/googletest/googletest/src/gtest.cc:2837:11 (libxul.so+0x42534e8)
    #6 testing::TestSuite::Run() /checkouts/gecko/third_party/googletest/googletest/src/gtest.cc:3016:30 (libxul.so+0x4254ae4)
    #7 testing::internal::UnitTestImpl::RunAllTests() /checkouts/gecko/third_party/googletest/googletest/src/gtest.cc:5922:44 (libxul.so+0x4272579)
    #8 libvpx_test_cases_Test::TestBody() /checkouts/gecko/dom/media/gtest/TestVPXDecoding.cpp:89:9 (libxul.so+0x4a787a7)
    #9 void testing::internal::HandleExceptionsInMethodIfSupported<testing::Test, void>(testing::Test*, void (testing::Test::*)(), char const*) /checkouts/gecko/third_party/googletest/googletest/src/gtest.cc (libxul.so+0x4251c6d)
    #10 testing::Test::Run() /checkouts/gecko/third_party/googletest/googletest/src/gtest.cc:2688:5 (libxul.so+0x4251ad9)
    #11 testing::TestInfo::Run() /checkouts/gecko/third_party/googletest/googletest/src/gtest.cc:2837:11 (libxul.so+0x42534e8)
    #12 testing::TestSuite::Run() /checkouts/gecko/third_party/googletest/googletest/src/gtest.cc:3016:30 (libxul.so+0x4254ae4)
    #13 testing::internal::UnitTestImpl::RunAllTests() /checkouts/gecko/third_party/googletest/googletest/src/gtest.cc:5922:44 (libxul.so+0x4272579)
    #14 testing::Test::Run() /checkouts/gecko/third_party/googletest/googletest/src/gtest.cc:2688:5 (libxul.so+0x4251ad9)
    #15 testing::TestInfo::Run() /checkouts/gecko/third_party/googletest/googletest/src/gtest.cc:2837:11 (libxul.so+0x42534e8)
    #16 testing::TestSuite::Run() /checkouts/gecko/third_party/googletest/googletest/src/gtest.cc:3016:30 (libxul.so+0x4254ae4)
    #17 testing::internal::UnitTestImpl::RunAllTests() /checkouts/gecko/third_party/googletest/googletest/src/gtest.cc:5922:44 (libxul.so+0x4272579)
    #18 testing::Test::Run() /checkouts/gecko/third_party/googletest/googletest/src/gtest.cc:2688:5 (libxul.so+0x4251ad9)
    #19 testing::TestInfo::Run() /checkouts/gecko/third_party/googletest/googletest/src/gtest.cc:2837:11 (libxul.so+0x42534e8)
    #20 testing::TestSuite::Run() /checkouts/gecko/third_party/googletest/googletest/src/gtest.cc:3016:30 (libxul.so+0x4254ae4)
    #21 testing::internal::UnitTestImpl::RunAllTests() /checkouts/gecko/third_party/googletest/googletest/src/gtest.cc:5922:44 (libxul.so+0x4272579)
    #22 bool testing::internal::HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool>(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) /checkouts/gecko/third_party/googletest/googletest/src/gtest.cc (libxul.so+0x4271d1d)
    #23 testing::UnitTest::Run() /checkouts/gecko/third_party/googletest/googletest/src/gtest.cc:5486:10 (libxul.so+0x4271ac0)
    #24 RUN_ALL_TESTS /workspace/obj-build/dist/include/gtest/gtest.h:2319:73 (libxul.so+0x422747f)
    #25 mozilla::RunGTestFunc(int*, char**) /checkouts/gecko/testing/gtest/mozilla/GTestRunner.cpp:167:10 (libxul.so+0x422747f)
    #26 XREMain::XRE_mainStartup(bool*) /checkouts/gecko/toolkit/xre/nsAppRunner.cpp:4686:16 (libxul.so+0xbfceca9)
    #27 XREMain::XRE_main(int, char**, mozilla::BootstrapConfig const&) /checkouts/gecko/toolkit/xre/nsAppRunner.cpp:5946:12 (libxul.so+0xbfd69d2)
    #28 XRE_main(int, char**, mozilla::BootstrapConfig const&) /checkouts/gecko/toolkit/xre/nsAppRunner.cpp:6015:21 (libxul.so+0xbfd7111)
    #29 mozilla::BootstrapImpl::XRE_main(int, char**, mozilla::BootstrapConfig const&) /checkouts/gecko/toolkit/xre/Bootstrap.cpp:45:12 (libxul.so+0xbfe6162)
    #30 do_main /checkouts/gecko/browser/app/nsBrowserApp.cpp:227:22 (firefox-bin+0x14ea00)
    #31 main /checkouts/gecko/browser/app/nsBrowserApp.cpp:445:16 (firefox-bin+0x14ea00)
  Location is heap block of size 352 at 0x7b480009ba00 allocated by main thread:
    #0 malloc /fetches/llvm-project/compiler-rt/lib/tsan/rtl/tsan_interceptors_posix.cpp:663:5 (firefox-bin+0xc3ddc)
    #1 moz_xmalloc /checkouts/gecko/memory/mozalloc/mozalloc.cpp:52:15 (firefox-bin+0x150a08)
    #2 operator new /workspace/obj-build/dist/include/mozilla/cxxalloc.h:33:10 (libxul.so+0x4fcf5a9)
    #3 (anonymous namespace)::TransportTest::Reset() /checkouts/gecko/dom/media/webrtc/transport/test/transport_unittests.cpp:843:11 (libxul.so+0x4fcf5a9)
    #4 (anonymous namespace)::TransportTest::SetUp() /checkouts/gecko/dom/media/webrtc/transport/test/transport_unittests.cpp:832:5 (libxul.so+0x4fcf1b6)
    #5 void testing::internal::HandleExceptionsInMethodIfSupported<testing::Test, void>(testing::Test*, void (testing::Test::*)(), char const*) /checkouts/gecko/third_party/googletest/googletest/src/gtest.cc (libxul.so+0x4251c6d)
    #6 testing::Test::Run() /checkouts/gecko/third_party/googletest/googletest/src/gtest.cc:2683:3 (libxul.so+0x4251a63)
    #7 testing::TestInfo::Run() /checkouts/gecko/third_party/googletest/googletest/src/gtest.cc:2837:11 (libxul.so+0x42534e8)
    #8 testing::TestSuite::Run() /checkouts/gecko/third_party/googletest/googletest/src/gtest.cc:3016:30 (libxul.so+0x4254ae4)
    #9 testing::internal::UnitTestImpl::RunAllTests() /checkouts/gecko/third_party/googletest/googletest/src/gtest.cc:5922:44 (libxul.so+0x4272579)
    #10 libvpx_test_cases_Test::TestBody() /checkouts/gecko/dom/media/gtest/TestVPXDecoding.cpp:89:9 (libxul.so+0x4a787a7)
    #11 void testing::internal::HandleExceptionsInMethodIfSupported<testing::Test, void>(testing::Test*, void (testing::Test::*)(), char const*) /checkouts/gecko/third_party/googletest/googletest/src/gtest.cc (libxul.so+0x4251c6d)
    #12 testing::Test::Run() /checkouts/gecko/third_party/googletest/googletest/src/gtest.cc:2688:5 (libxul.so+0x4251ad9)
    #13 testing::TestInfo::Run() /checkouts/gecko/third_party/googletest/googletest/src/gtest.cc:2837:11 (libxul.so+0x42534e8)
    #14 testing::TestSuite::Run() /checkouts/gecko/third_party/googletest/googletest/src/gtest.cc:3016:30 (libxul.so+0x4254ae4)
    #15 testing::internal::UnitTestImpl::RunAllTests() /checkouts/gecko/third_party/googletest/googletest/src/gtest.cc:5922:44 (libxul.so+0x4272579)
    #16 testing::Test::Run() /checkouts/gecko/third_party/googletest/googletest/src/gtest.cc:2688:5 (libxul.so+0x4251ad9)
    #17 testing::TestInfo::Run() /checkouts/gecko/third_party/googletest/googletest/src/gtest.cc:2837:11 (libxul.so+0x42534e8)
    #18 testing::TestSuite::Run() /checkouts/gecko/third_party/googletest/googletest/src/gtest.cc:3016:30 (libxul.so+0x4254ae4)
    #19 testing::internal::UnitTestImpl::RunAllTests() /checkouts/gecko/third_party/googletest/googletest/src/gtest.cc:5922:44 (libxul.so+0x4272579)
    #20 testing::Test::Run() /checkouts/gecko/third_party/googletest/googletest/src/gtest.cc:2688:5 (libxul.so+0x4251ad9)
    #21 testing::TestInfo::Run() /checkouts/gecko/third_party/googletest/googletest/src/gtest.cc:2837:11 (libxul.so+0x42534e8)
    #22 testing::TestSuite::Run() /checkouts/gecko/third_party/googletest/googletest/src/gtest.cc:3016:30 (libxul.so+0x4254ae4)
    #23 testing::internal::UnitTestImpl::RunAllTests() /checkouts/gecko/third_party/googletest/googletest/src/gtest.cc:5922:44 (libxul.so+0x4272579)
    #24 bool testing::internal::HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool>(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) /checkouts/gecko/third_party/googletest/googletest/src/gtest.cc (libxul.so+0x4271d1d)
    #25 testing::UnitTest::Run() /checkouts/gecko/third_party/googletest/googletest/src/gtest.cc:5486:10 (libxul.so+0x4271ac0)
    #26 RUN_ALL_TESTS /workspace/obj-build/dist/include/gtest/gtest.h:2319:73 (libxul.so+0x422747f)
    #27 mozilla::RunGTestFunc(int*, char**) /checkouts/gecko/testing/gtest/mozilla/GTestRunner.cpp:167:10 (libxul.so+0x422747f)
    #28 XREMain::XRE_mainStartup(bool*) /checkouts/gecko/toolkit/xre/nsAppRunner.cpp:4686:16 (libxul.so+0xbfceca9)
    #29 XREMain::XRE_main(int, char**, mozilla::BootstrapConfig const&) /checkouts/gecko/toolkit/xre/nsAppRunner.cpp:5946:12 (libxul.so+0xbfd69d2)
    #30 XRE_main(int, char**, mozilla::BootstrapConfig const&) /checkouts/gecko/toolkit/xre/nsAppRunner.cpp:6015:21 (libxul.so+0xbfd7111)
    #31 mozilla::BootstrapImpl::XRE_main(int, char**, mozilla::BootstrapConfig const&) /checkouts/gecko/toolkit/xre/Bootstrap.cpp:45:12 (libxul.so+0xbfe6162)
    #32 do_main /checkouts/gecko/browser/app/nsBrowserApp.cpp:227:22 (firefox-bin+0x14ea00)
    #33 main /checkouts/gecko/browser/app/nsBrowserApp.cpp:445:16 (firefox-bin+0x14ea00)
  Thread T5 'Socket Thread' (tid=1018, running) created by main thread at:
    #0 pthread_create /fetches/llvm-project/compiler-rt/lib/tsan/rtl/tsan_interceptors_posix.cpp:1020:3 (firefox-bin+0xc59bb)
    #1 _PR_CreateThread /checkouts/gecko/nsprpub/pr/src/pthreads/ptthread.c:458:14 (libnspr4.so+0x42cee)
    #2 PR_CreateThread /checkouts/gecko/nsprpub/pr/src/pthreads/ptthread.c:533:12 (libnspr4.so+0x37f84)
    #3 nsThread::Init(nsTSubstring<char> const&) /checkouts/gecko/xpcom/threads/nsThread.cpp:620:20 (libxul.so+0x552a5e7)
    #4 nsThreadManager::NewNamedThread(nsTSubstring<char> const&, nsIThreadManager::ThreadCreationOptions, nsIThread**) /checkouts/gecko/xpcom/threads/nsThreadManager.cpp:602:22 (libxul.so+0x553268d)
    #5 NS_NewNamedThread(nsTSubstring<char> const&, nsIThread**, already_AddRefed<nsIRunnable>, nsIThreadManager::ThreadCreationOptions) /checkouts/gecko/xpcom/threads/nsThreadUtils.cpp:176:57 (libxul.so+0x553b343)
    #6 NS_NewNamedThread<14UL> /workspace/obj-build/dist/include/nsThreadUtils.h:87:10 (libxul.so+0x575f6cb)
    #7 mozilla::net::nsSocketTransportService::Init() /checkouts/gecko/netwerk/base/nsSocketTransportService2.cpp:748:19 (libxul.so+0x575f6cb)
    #8 mozilla::xpcom::CreateInstanceImpl(mozilla::xpcom::ModuleID, nsID const&, void**) /workspace/obj-build/xpcom/components/StaticComponents.cpp:9683:7 (libxul.so+0x54e473a)
    #9 mozilla::xpcom::StaticModule::CreateInstance(nsID const&, void**) const /workspace/obj-build/xpcom/components/StaticComponents.cpp:12981:10 (libxul.so+0x54f031a)
    #10 CreateInstance /checkouts/gecko/xpcom/components/nsComponentManager.cpp:189:46 (libxul.so+0x54fad37)
    #11 nsComponentManagerImpl::GetServiceLocked(mozilla::Maybe<mozilla::detail::BaseMonitorAutoLock<mozilla::Monitor>>&, (anonymous namespace)::EntryWrapper&, nsID const&, void**) /checkouts/gecko/xpcom/components/nsComponentManager.cpp:987:17 (libxul.so+0x54fad37)
    #12 nsComponentManagerImpl::GetServiceByContractID(char const*, nsID const&, void**) /checkouts/gecko/xpcom/components/nsComponentManager.cpp:1176:10 (libxul.so+0x54fb9ad)
    #13 CallGetService /checkouts/gecko/xpcom/components/nsComponentManagerUtils.cpp:63:43 (libxul.so+0x54fe42b)
    #14 nsGetServiceByContractIDWithError::operator()(nsID const&, void**) const /checkouts/gecko/xpcom/components/nsComponentManagerUtils.cpp:250:21 (libxul.so+0x54fe42b)
    #15 assign_from_gs_contractid_with_error /workspace/obj-build/dist/include/nsCOMPtr.h:881:7 (libxul.so+0x56f8680)
    #16 operator= /workspace/obj-build/dist/include/nsCOMPtr.h:665:5 (libxul.so+0x56f8680)
    #17 mozilla::net::nsIOService::InitializeSocketTransportService() /checkouts/gecko/netwerk/base/nsIOService.cpp:439:29 (libxul.so+0x56f8680)
    #18 mozilla::net::nsIOService::SetOfflineInternal(bool, bool) /checkouts/gecko/netwerk/base/nsIOService.cpp:1303:7 (libxul.so+0x56fcdaf)
    #19 SetOffline /checkouts/gecko/netwerk/base/nsIOService.cpp:1242:48 (libxul.so+0x56f6c6c)
    #20 mozilla::net::nsIOService::Init() /checkouts/gecko/netwerk/base/nsIOService.cpp:311:3 (libxul.so+0x56f6c6c)
    #21 mozilla::net::nsIOService::GetInstance() /checkouts/gecko/netwerk/base/nsIOService.cpp:496:9 (libxul.so+0x56f8ca1)
    #22 mozilla::xpcom::CreateInstanceImpl(mozilla::xpcom::ModuleID, nsID const&, void**) /workspace/obj-build/xpcom/components/StaticComponents.cpp:12089:48 (libxul.so+0x54ebeb3)
    #23 mozilla::xpcom::StaticModule::CreateInstance(nsID const&, void**) const /workspace/obj-build/xpcom/components/StaticComponents.cpp:12981:10 (libxul.so+0x54f031a)
    #24 CreateInstance /checkouts/gecko/xpcom/components/nsComponentManager.cpp:189:46 (libxul.so+0x54fad37)
    #25 nsComponentManagerImpl::GetServiceLocked(mozilla::Maybe<mozilla::detail::BaseMonitorAutoLock<mozilla::Monitor>>&, (anonymous namespace)::EntryWrapper&, nsID const&, void**) /checkouts/gecko/xpcom/components/nsComponentManager.cpp:987:17 (libxul.so+0x54fad37)
    #26 nsComponentManagerImpl::GetService(mozilla::xpcom::ModuleID, nsID const&, void**) /checkouts/gecko/xpcom/components/nsComponentManager.cpp:1077:10 (libxul.so+0x54fb2c3)
    #27 mozilla::xpcom::GetServiceHelper::operator()(nsID const&, void**) const /workspace/obj-build/xpcom/components/StaticComponents.cpp:13127:50 (libxul.so+0x54f0f18)
    #28 RefPtr /workspace/obj-build/dist/include/nsCOMPtr.h:1111:7 (libxul.so+0x635c41e)
    #29 nsScriptSecurityManager::Init() /checkouts/gecko/caps/nsScriptSecurityManager.cpp:1565:29 (libxul.so+0x635c41e)
    #30 nsScriptSecurityManager::InitStatics() /checkouts/gecko/caps/nsScriptSecurityManager.cpp:1627:28 (libxul.so+0x635c989)
    #31 nsXPConnect::InitStatics() /checkouts/gecko/js/xpconnect/src/nsXPConnect.cpp:165:3 (libxul.so+0x61fefa0)
    #32 xpcModuleCtor() /checkouts/gecko/js/xpconnect/src/XPCModule.cpp:11:3 (libxul.so+0x61cd0cf)
    #33 nsLayoutModuleInitialize() /checkouts/gecko/layout/build/nsLayoutModule.cpp:97:7 (libxul.so+0xa922cfb)
    #34 nsComponentManagerImpl::Init() /checkouts/gecko/xpcom/components/nsComponentManager.cpp:387:5 (libxul.so+0x54f7fdf)
    #35 NS_InitXPCOM /checkouts/gecko/xpcom/build/XPCOMInit.cpp:448:51 (libxul.so+0x556a3d0)
    #36 ScopedXPCOM /workspace/obj-build/dist/include/testing/TestHarness.h:84:15 (libxul.so+0x42273de)
    #37 mozilla::RunGTestFunc(int*, char**) /checkouts/gecko/testing/gtest/mozilla/GTestRunner.cpp:114:15 (libxul.so+0x42273de)
    #38 XREMain::XRE_mainStartup(bool*) /checkouts/gecko/toolkit/xre/nsAppRunner.cpp:4686:16 (libxul.so+0xbfceca9)
    #39 XREMain::XRE_main(int, char**, mozilla::BootstrapConfig const&) /checkouts/gecko/toolkit/xre/nsAppRunner.cpp:5946:12 (libxul.so+0xbfd69d2)
    #40 XRE_main(int, char**, mozilla::BootstrapConfig const&) /checkouts/gecko/toolkit/xre/nsAppRunner.cpp:6015:21 (libxul.so+0xbfd7111)
    #41 mozilla::BootstrapImpl::XRE_main(int, char**, mozilla::BootstrapConfig const&) /checkouts/gecko/toolkit/xre/Bootstrap.cpp:45:12 (libxul.so+0xbfe6162)
    #42 do_main /checkouts/gecko/browser/app/nsBrowserApp.cpp:227:22 (firefox-bin+0x14ea00)
    #43 main /checkouts/gecko/browser/app/nsBrowserApp.cpp:445:16 (firefox-bin+0x14ea00)
SUMMARY: ThreadSanitizer: data race /checkouts/gecko/dom/media/webrtc/transport/test/transport_unittests.cpp:706:5 in (anonymous namespace)::TransportTestPeer::PacketReceived(mozilla::TransportLayer*, mozilla::MediaPacket&)

ThreadSanitizer: data race webrtcproxychannel_unittest.cpp:591:22 in OnConnected

https://treeherder.mozilla.org/logviewer?job_id=456564558&repo=try&lineNumber=45034

TEST-START | WebrtcTCPSocketTest.TransportAvailable
==================
WARNING: ThreadSanitizer: data race (pid=996)
  Write of size 1 at 0x7b3000061101 by thread T5:
    #0 OnConnected /checkouts/gecko/dom/media/webrtc/transport/test/webrtcproxychannel_unittest.cpp:591:22 (libxul.so+0x4fd45e6)
    #1 mozilla::WebrtcTCPSocketTestCallback::OnConnected(nsTSubstring<char> const&) /checkouts/gecko/dom/media/webrtc/transport/test/webrtcproxychannel_unittest.cpp:641:10 (libxul.so+0x4fd45e6)
    #2 mozilla::FakeWebrtcTCPSocket::InvokeOnConnected() /checkouts/gecko/dom/media/webrtc/transport/test/webrtcproxychannel_unittest.cpp:497:20 (libxul.so+0x4fd3c07)
    #3 FinishOpen /checkouts/gecko/dom/media/webrtc/transport/ipc/WebrtcTCPSocket.cpp:610:3 (libxul.so+0x62a607a)
    #4 mozilla::net::WebrtcTCPSocket::OnTransportAvailable(nsISocketTransport*, nsIAsyncInputStream*, nsIAsyncOutputStream*) /checkouts/gecko/dom/media/webrtc/transport/ipc/WebrtcTCPSocket.cpp:597:3 (libxul.so+0x62a607a)
    #5 operator() /checkouts/gecko/dom/media/webrtc/transport/test/webrtcproxychannel_unittest.cpp:601:26 (libxul.so+0x4fda359)
    #6 mozilla::detail::RunnableFunction<mozilla::WebrtcTCPSocketTest::DoTransportAvailable()::$_0>::Run() /workspace/obj-build/dist/include/nsThreadUtils.h:548:5 (libxul.so+0x4fda359)
    #7 nsThread::ProcessNextEvent(bool, bool*) /checkouts/gecko/xpcom/threads/nsThread.cpp:1193:16 (libxul.so+0x55060ce)
    #8 NS_ProcessNextEvent(nsIThread*, bool) /checkouts/gecko/xpcom/threads/nsThreadUtils.cpp:480:10 (libxul.so+0x550c664)
    #9 mozilla::net::nsSocketTransportService::Run() /checkouts/gecko/netwerk/base/nsSocketTransportService2.cpp:1203:11 (libxul.so+0x5739d1c)
    #10 non-virtual thunk to mozilla::net::nsSocketTransportService::Run() /checkouts/gecko/netwerk/base/nsSocketTransportService2.cpp (libxul.so+0x573bb99)
    #11 nsThread::ProcessNextEvent(bool, bool*) /checkouts/gecko/xpcom/threads/nsThread.cpp:1193:16 (libxul.so+0x55060ce)
    #12 NS_ProcessNextEvent(nsIThread*, bool) /checkouts/gecko/xpcom/threads/nsThreadUtils.cpp:480:10 (libxul.so+0x550c664)
    #13 mozilla::ipc::MessagePumpForNonMainThreads::Run(base::MessagePump::Delegate*) /checkouts/gecko/ipc/glue/MessagePump.cpp:300:20 (libxul.so+0x6052cde)
    #14 RunInternal /checkouts/gecko/ipc/chromium/src/base/message_loop.cc:370:10 (libxul.so+0x5fc5d88)
    #15 RunHandler /checkouts/gecko/ipc/chromium/src/base/message_loop.cc:363:3 (libxul.so+0x5fc5d88)
    #16 MessageLoop::Run() /checkouts/gecko/ipc/chromium/src/base/message_loop.cc:345:3 (libxul.so+0x5fc5d88)
    #17 nsThread::ThreadFunc(void*) /checkouts/gecko/xpcom/threads/nsThread.cpp:370:10 (libxul.so+0x5501953)
    #18 _pt_root /checkouts/gecko/nsprpub/pr/src/pthreads/ptthread.c:201:5 (libnspr4.so+0x4ba79)
  Previous read of size 1 at 0x7b3000061101 by main thread:
    #0 WebrtcTCPSocketTest_TransportAvailable_Test::TestBody() /checkouts/gecko/dom/media/webrtc/transport/test/webrtcproxychannel_unittest.cpp:656:3 (libxul.so+0x4fd49f7)
    #1 void testing::internal::HandleExceptionsInMethodIfSupported<testing::Test, void>(testing::Test*, void (testing::Test::*)(), char const*) /checkouts/gecko/third_party/googletest/googletest/src/gtest.cc (libxul.so+0x424c06d)
    #2 testing::Test::Run() /checkouts/gecko/third_party/googletest/googletest/src/gtest.cc:2688:5 (libxul.so+0x424bed9)
    #3 testing::TestInfo::Run() /checkouts/gecko/third_party/googletest/googletest/src/gtest.cc:2837:11 (libxul.so+0x424d8e8)
    #4 testing::TestSuite::Run() /checkouts/gecko/third_party/googletest/googletest/src/gtest.cc:3016:30 (libxul.so+0x424eee4)
    #5 testing::internal::UnitTestImpl::RunAllTests() /checkouts/gecko/third_party/googletest/googletest/src/gtest.cc:5922:44 (libxul.so+0x426c979)
    #6 libvpx_test_cases_Test::TestBody() /checkouts/gecko/dom/media/gtest/TestVPXDecoding.cpp:89:9 (libxul.so+0x4a72ba7)
    #7 void testing::internal::HandleExceptionsInMethodIfSupported<testing::Test, void>(testing::Test*, void (testing::Test::*)(), char const*) /checkouts/gecko/third_party/googletest/googletest/src/gtest.cc (libxul.so+0x424c06d)
    #8 testing::Test::Run() /checkouts/gecko/third_party/googletest/googletest/src/gtest.cc:2688:5 (libxul.so+0x424bed9)
    #9 testing::TestInfo::Run() /checkouts/gecko/third_party/googletest/googletest/src/gtest.cc:2837:11 (libxul.so+0x424d8e8)
    #10 testing::TestSuite::Run() /checkouts/gecko/third_party/googletest/googletest/src/gtest.cc:3016:30 (libxul.so+0x424eee4)
    #11 testing::internal::UnitTestImpl::RunAllTests() /checkouts/gecko/third_party/googletest/googletest/src/gtest.cc:5922:44 (libxul.so+0x426c979)
    #12 testing::Test::Run() /checkouts/gecko/third_party/googletest/googletest/src/gtest.cc:2688:5 (libxul.so+0x424bed9)
    #13 testing::TestInfo::Run() /checkouts/gecko/third_party/googletest/googletest/src/gtest.cc:2837:11 (libxul.so+0x424d8e8)
    #14 testing::TestSuite::Run() /checkouts/gecko/third_party/googletest/googletest/src/gtest.cc:3016:30 (libxul.so+0x424eee4)
    #15 testing::internal::UnitTestImpl::RunAllTests() /checkouts/gecko/third_party/googletest/googletest/src/gtest.cc:5922:44 (libxul.so+0x426c979)
    #16 testing::Test::Run() /checkouts/gecko/third_party/googletest/googletest/src/gtest.cc:2688:5 (libxul.so+0x424bed9)
    #17 testing::TestInfo::Run() /checkouts/gecko/third_party/googletest/googletest/src/gtest.cc:2837:11 (libxul.so+0x424d8e8)
    #18 testing::TestSuite::Run() /checkouts/gecko/third_party/googletest/googletest/src/gtest.cc:3016:30 (libxul.so+0x424eee4)
    #19 testing::internal::UnitTestImpl::RunAllTests() /checkouts/gecko/third_party/googletest/googletest/src/gtest.cc:5922:44 (libxul.so+0x426c979)
    #20 bool testing::internal::HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool>(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) /checkouts/gecko/third_party/googletest/googletest/src/gtest.cc (libxul.so+0x426c11d)
    #21 testing::UnitTest::Run() /checkouts/gecko/third_party/googletest/googletest/src/gtest.cc:5486:10 (libxul.so+0x426bec0)
    #22 RUN_ALL_TESTS /workspace/obj-build/dist/include/gtest/gtest.h:2319:73 (libxul.so+0x422187f)
    #23 mozilla::RunGTestFunc(int*, char**) /checkouts/gecko/testing/gtest/mozilla/GTestRunner.cpp:167:10 (libxul.so+0x422187f)
    #24 XREMain::XRE_mainStartup(bool*) /checkouts/gecko/toolkit/xre/nsAppRunner.cpp:4686:16 (libxul.so+0xbfa4a29)
    #25 XREMain::XRE_main(int, char**, mozilla::BootstrapConfig const&) /checkouts/gecko/toolkit/xre/nsAppRunner.cpp:5946:12 (libxul.so+0xbfac752)
    #26 XRE_main(int, char**, mozilla::BootstrapConfig const&) /checkouts/gecko/toolkit/xre/nsAppRunner.cpp:6015:21 (libxul.so+0xbface91)
    #27 mozilla::BootstrapImpl::XRE_main(int, char**, mozilla::BootstrapConfig const&) /checkouts/gecko/toolkit/xre/Bootstrap.cpp:45:12 (libxul.so+0xbfbbee2)
    #28 do_main /checkouts/gecko/browser/app/nsBrowserApp.cpp:227:22 (firefox-bin+0x14ea00)
    #29 main /checkouts/gecko/browser/app/nsBrowserApp.cpp:445:16 (firefox-bin+0x14ea00)
  Location is heap block of size 184 at 0x7b3000061080 allocated by main thread:
    #0 malloc /fetches/llvm-project/compiler-rt/lib/tsan/rtl/tsan_interceptors_posix.cpp:663:5 (firefox-bin+0xc3ddc)
    #1 moz_xmalloc /checkouts/gecko/memory/mozalloc/mozalloc.cpp:52:15 (firefox-bin+0x150a08)
    #2 operator new /workspace/obj-build/dist/include/mozilla/cxxalloc.h:33:10 (libxul.so+0x4fd9777)
    #3 testing::internal::TestFactoryImpl<WebrtcTCPSocketTest_TransportAvailable_Test>::CreateTest() /workspace/obj-build/dist/include/gtest/internal/gtest-internal.h:456:40 (libxul.so+0x4fd9777)
    #4 testing::Test* testing::internal::HandleExceptionsInMethodIfSupported<testing::internal::TestFactoryBase, testing::Test*>(testing::internal::TestFactoryBase*, testing::Test* (testing::internal::TestFactoryBase::*)(), char const*) /checkouts/gecko/third_party/googletest/googletest/src/gtest.cc (libxul.so+0x424dc5d)
    #5 testing::TestInfo::Run() /checkouts/gecko/third_party/googletest/googletest/src/gtest.cc:2827:22 (libxul.so+0x424d8cb)
    #6 testing::TestSuite::Run() /checkouts/gecko/third_party/googletest/googletest/src/gtest.cc:3016:30 (libxul.so+0x424eee4)
    #7 testing::internal::UnitTestImpl::RunAllTests() /checkouts/gecko/third_party/googletest/googletest/src/gtest.cc:5922:44 (libxul.so+0x426c979)
    #8 libvpx_test_cases_Test::TestBody() /checkouts/gecko/dom/media/gtest/TestVPXDecoding.cpp:89:9 (libxul.so+0x4a72ba7)
    #9 void testing::internal::HandleExceptionsInMethodIfSupported<testing::Test, void>(testing::Test*, void (testing::Test::*)(), char const*) /checkouts/gecko/third_party/googletest/googletest/src/gtest.cc (libxul.so+0x424c06d)
    #10 testing::Test::Run() /checkouts/gecko/third_party/googletest/googletest/src/gtest.cc:2688:5 (libxul.so+0x424bed9)
    #11 testing::TestInfo::Run() /checkouts/gecko/third_party/googletest/googletest/src/gtest.cc:2837:11 (libxul.so+0x424d8e8)
    #12 testing::TestSuite::Run() /checkouts/gecko/third_party/googletest/googletest/src/gtest.cc:3016:30 (libxul.so+0x424eee4)
    #13 testing::internal::UnitTestImpl::RunAllTests() /checkouts/gecko/third_party/googletest/googletest/src/gtest.cc:5922:44 (libxul.so+0x426c979)
    #14 testing::Test::Run() /checkouts/gecko/third_party/googletest/googletest/src/gtest.cc:2688:5 (libxul.so+0x424bed9)
    #15 testing::TestInfo::Run() /checkouts/gecko/third_party/googletest/googletest/src/gtest.cc:2837:11 (libxul.so+0x424d8e8)
    #16 testing::TestSuite::Run() /checkouts/gecko/third_party/googletest/googletest/src/gtest.cc:3016:30 (libxul.so+0x424eee4)
    #17 testing::internal::UnitTestImpl::RunAllTests() /checkouts/gecko/third_party/googletest/googletest/src/gtest.cc:5922:44 (libxul.so+0x426c979)
    #18 testing::Test::Run() /checkouts/gecko/third_party/googletest/googletest/src/gtest.cc:2688:5 (libxul.so+0x424bed9)
    #19 testing::TestInfo::Run() /checkouts/gecko/third_party/googletest/googletest/src/gtest.cc:2837:11 (libxul.so+0x424d8e8)
    #20 testing::TestSuite::Run() /checkouts/gecko/third_party/googletest/googletest/src/gtest.cc:3016:30 (libxul.so+0x424eee4)
    #21 testing::internal::UnitTestImpl::RunAllTests() /checkouts/gecko/third_party/googletest/googletest/src/gtest.cc:5922:44 (libxul.so+0x426c979)
    #22 bool testing::internal::HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool>(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) /checkouts/gecko/third_party/googletest/googletest/src/gtest.cc (libxul.so+0x426c11d)
    #23 testing::UnitTest::Run() /checkouts/gecko/third_party/googletest/googletest/src/gtest.cc:5486:10 (libxul.so+0x426bec0)
    #24 RUN_ALL_TESTS /workspace/obj-build/dist/include/gtest/gtest.h:2319:73 (libxul.so+0x422187f)
    #25 mozilla::RunGTestFunc(int*, char**) /checkouts/gecko/testing/gtest/mozilla/GTestRunner.cpp:167:10 (libxul.so+0x422187f)
    #26 XREMain::XRE_mainStartup(bool*) /checkouts/gecko/toolkit/xre/nsAppRunner.cpp:4686:16 (libxul.so+0xbfa4a29)
    #27 XREMain::XRE_main(int, char**, mozilla::BootstrapConfig const&) /checkouts/gecko/toolkit/xre/nsAppRunner.cpp:5946:12 (libxul.so+0xbfac752)
    #28 XRE_main(int, char**, mozilla::BootstrapConfig const&) /checkouts/gecko/toolkit/xre/nsAppRunner.cpp:6015:21 (libxul.so+0xbface91)
    #29 mozilla::BootstrapImpl::XRE_main(int, char**, mozilla::BootstrapConfig const&) /checkouts/gecko/toolkit/xre/Bootstrap.cpp:45:12 (libxul.so+0xbfbbee2)
    #30 do_main /checkouts/gecko/browser/app/nsBrowserApp.cpp:227:22 (firefox-bin+0x14ea00)
    #31 main /checkouts/gecko/browser/app/nsBrowserApp.cpp:445:16 (firefox-bin+0x14ea00)
  Thread T5 'Socket Thread' (tid=1004, running) created by main thread at:
    #0 pthread_create /fetches/llvm-project/compiler-rt/lib/tsan/rtl/tsan_interceptors_posix.cpp:1020:3 (firefox-bin+0xc59bb)
    #1 _PR_CreateThread /checkouts/gecko/nsprpub/pr/src/pthreads/ptthread.c:458:14 (libnspr4.so+0x42cee)
    #2 PR_CreateThread /checkouts/gecko/nsprpub/pr/src/pthreads/ptthread.c:533:12 (libnspr4.so+0x37f84)
    #3 nsThread::Init(nsTSubstring<char> const&) /checkouts/gecko/xpcom/threads/nsThread.cpp:620:20 (libxul.so+0x55030f7)
    #4 nsThreadManager::NewNamedThread(nsTSubstring<char> const&, nsIThreadManager::ThreadCreationOptions, nsIThread**) /checkouts/gecko/xpcom/threads/nsThreadManager.cpp:602:22 (libxul.so+0x550b19d)
    #5 NS_NewNamedThread(nsTSubstring<char> const&, nsIThread**, already_AddRefed<nsIRunnable>, nsIThreadManager::ThreadCreationOptions) /checkouts/gecko/xpcom/threads/nsThreadUtils.cpp:176:57 (libxul.so+0x5513e53)
    #6 NS_NewNamedThread<14UL> /workspace/obj-build/dist/include/nsThreadUtils.h:87:10 (libxul.so+0x57381db)
    #7 mozilla::net::nsSocketTransportService::Init() /checkouts/gecko/netwerk/base/nsSocketTransportService2.cpp:748:19 (libxul.so+0x57381db)
    #8 mozilla::xpcom::CreateInstanceImpl(mozilla::xpcom::ModuleID, nsID const&, void**) /workspace/obj-build/xpcom/components/StaticComponents.cpp:9683:7 (libxul.so+0x54bd24a)
    #9 mozilla::xpcom::StaticModule::CreateInstance(nsID const&, void**) const /workspace/obj-build/xpcom/components/StaticComponents.cpp:12981:10 (libxul.so+0x54c8e2a)
    #10 CreateInstance /checkouts/gecko/xpcom/components/nsComponentManager.cpp:189:46 (libxul.so+0x54d3847)
    #11 nsComponentManagerImpl::GetServiceLocked(mozilla::Maybe<mozilla::detail::BaseMonitorAutoLock<mozilla::Monitor>>&, (anonymous namespace)::EntryWrapper&, nsID const&, void**) /checkouts/gecko/xpcom/components/nsComponentManager.cpp:987:17 (libxul.so+0x54d3847)
    #12 nsComponentManagerImpl::GetServiceByContractID(char const*, nsID const&, void**) /checkouts/gecko/xpcom/components/nsComponentManager.cpp:1176:10 (libxul.so+0x54d44bd)
    #13 CallGetService /checkouts/gecko/xpcom/components/nsComponentManagerUtils.cpp:63:43 (libxul.so+0x54d6f3b)
    #14 nsGetServiceByContractIDWithError::operator()(nsID const&, void**) const /checkouts/gecko/xpcom/components/nsComponentManagerUtils.cpp:250:21 (libxul.so+0x54d6f3b)
    #15 assign_from_gs_contractid_with_error /workspace/obj-build/dist/include/nsCOMPtr.h:881:7 (libxul.so+0x56d1190)
    #16 operator= /workspace/obj-build/dist/include/nsCOMPtr.h:665:5 (libxul.so+0x56d1190)
    #17 mozilla::net::nsIOService::InitializeSocketTransportService() /checkouts/gecko/netwerk/base/nsIOService.cpp:439:29 (libxul.so+0x56d1190)
    #18 mozilla::net::nsIOService::SetOfflineInternal(bool, bool) /checkouts/gecko/netwerk/base/nsIOService.cpp:1303:7 (libxul.so+0x56d58bf)
    #19 SetOffline /checkouts/gecko/netwerk/base/nsIOService.cpp:1242:48 (libxul.so+0x56cf77c)
    #20 mozilla::net::nsIOService::Init() /checkouts/gecko/netwerk/base/nsIOService.cpp:311:3 (libxul.so+0x56cf77c)
    #21 mozilla::net::nsIOService::GetInstance() /checkouts/gecko/netwerk/base/nsIOService.cpp:496:9 (libxul.so+0x56d17b1)
    #22 mozilla::xpcom::CreateInstanceImpl(mozilla::xpcom::ModuleID, nsID const&, void**) /workspace/obj-build/xpcom/components/StaticComponents.cpp:12089:48 (libxul.so+0x54c49c3)
    #23 mozilla::xpcom::StaticModule::CreateInstance(nsID const&, void**) const /workspace/obj-build/xpcom/components/StaticComponents.cpp:12981:10 (libxul.so+0x54c8e2a)
    #24 CreateInstance /checkouts/gecko/xpcom/components/nsComponentManager.cpp:189:46 (libxul.so+0x54d3847)
    #25 nsComponentManagerImpl::GetServiceLocked(mozilla::Maybe<mozilla::detail::BaseMonitorAutoLock<mozilla::Monitor>>&, (anonymous namespace)::EntryWrapper&, nsID const&, void**) /checkouts/gecko/xpcom/components/nsComponentManager.cpp:987:17 (libxul.so+0x54d3847)
    #26 nsComponentManagerImpl::GetService(mozilla::xpcom::ModuleID, nsID const&, void**) /checkouts/gecko/xpcom/components/nsComponentManager.cpp:1077:10 (libxul.so+0x54d3dd3)
    #27 mozilla::xpcom::GetServiceHelper::operator()(nsID const&, void**) const /workspace/obj-build/xpcom/components/StaticComponents.cpp:13127:50 (libxul.so+0x54c9a28)
    #28 RefPtr /workspace/obj-build/dist/include/nsCOMPtr.h:1111:7 (libxul.so+0x6331d1e)
    #29 nsScriptSecurityManager::Init() /checkouts/gecko/caps/nsScriptSecurityManager.cpp:1565:29 (libxul.so+0x6331d1e)
    #30 nsScriptSecurityManager::InitStatics() /checkouts/gecko/caps/nsScriptSecurityManager.cpp:1627:28 (libxul.so+0x6332289)
    #31 nsXPConnect::InitStatics() /checkouts/gecko/js/xpconnect/src/nsXPConnect.cpp:165:3 (libxul.so+0x61d8170)
    #32 xpcModuleCtor() /checkouts/gecko/js/xpconnect/src/XPCModule.cpp:11:3 (libxul.so+0x61a629f)
    #33 nsLayoutModuleInitialize() /checkouts/gecko/layout/build/nsLayoutModule.cpp:97:7 (libxul.so+0xa8f8a7b)
    #34 nsComponentManagerImpl::Init() /checkouts/gecko/xpcom/components/nsComponentManager.cpp:387:5 (libxul.so+0x54d0aef)
    #35 NS_InitXPCOM /checkouts/gecko/xpcom/build/XPCOMInit.cpp:448:51 (libxul.so+0x5542ee0)
    #36 ScopedXPCOM /workspace/obj-build/dist/include/testing/TestHarness.h:84:15 (libxul.so+0x42217de)
    #37 mozilla::RunGTestFunc(int*, char**) /checkouts/gecko/testing/gtest/mozilla/GTestRunner.cpp:114:15 (libxul.so+0x42217de)
    #38 XREMain::XRE_mainStartup(bool*) /checkouts/gecko/toolkit/xre/nsAppRunner.cpp:4686:16 (libxul.so+0xbfa4a29)
    #39 XREMain::XRE_main(int, char**, mozilla::BootstrapConfig const&) /checkouts/gecko/toolkit/xre/nsAppRunner.cpp:5946:12 (libxul.so+0xbfac752)
    #40 XRE_main(int, char**, mozilla::BootstrapConfig const&) /checkouts/gecko/toolkit/xre/nsAppRunner.cpp:6015:21 (libxul.so+0xbface91)
    #41 mozilla::BootstrapImpl::XRE_main(int, char**, mozilla::BootstrapConfig const&) /checkouts/gecko/toolkit/xre/Bootstrap.cpp:45:12 (libxul.so+0xbfbbee2)
    #42 do_main /checkouts/gecko/browser/app/nsBrowserApp.cpp:227:22 (firefox-bin+0x14ea00)
    #43 main /checkouts/gecko/browser/app/nsBrowserApp.cpp:445:16 (firefox-bin+0x14ea00)
SUMMARY: ThreadSanitizer: data race /checkouts/gecko/dom/media/webrtc/transport/test/webrtcproxychannel_unittest.cpp:591:22 in OnConnected
Flags: needinfo?(rjesup) → needinfo?(docfaraday)

FYI, you'll need to revert the below change to re-enable the test when there's a fix ready.
https://hg.mozilla.org/mozilla-central/diff/8ceeacec0dfd1398a7cc01d1b5a08ae5be835435/dom/media/webrtc/transport/test/moz.build

I've managed to clear up our TSan failures here, but I'm seeing a permafail in PortsTest, which is not our code at all:

https://treeherder.mozilla.org/jobs?repo=try&revision=d32efb8bc68fc87f583e6a27a1620caf108dc139

I'm not 100% sure, but it looks like the problem is buried down in ipc/chromium.

Assignee: nobody → docfaraday
Flags: needinfo?(docfaraday)

That's a different (known) bug and the test is currently disabled while it waits on a patch.

Ahhh, that changeset didn't just disable our failing tests, I need to do a partial backout. Got it.

The severity field is not set for this bug.
:bwc, could you have a look please?

For more information, please visit BugBot documentation.

Flags: needinfo?(docfaraday)

I think I've got something that's ready to put up for review here. Just waiting on some more try runs.

Flags: needinfo?(docfaraday)
You need to log in before you can comment on or make changes to this bug.