Closed Bug 1878580 Opened 1 year ago Closed 1 year ago

TSan: data race [@ IPC::MessageBufferReader::ReadBytesInto] vs. [@ freebl_InitNSPR]

Categories

(Core :: Security: PSM, defect)

defect

Tracking

()

RESOLVED INVALID
Tracking Status
firefox124 --- affected

People

(Reporter: tsmith, Unassigned)

References

(Blocks 1 open bug, )

Details

(Keywords: csectype-race)

Crash Data

Found with m-c 20240203-f8d442e9495d (--enable-thread-sanitizer --enable-fuzzing)

This was found by visiting a live website with a TSan build.

STR:

  • Launch browser and visit site

This issue was triggered by visiting http://kugou.com/.

WARNING: ThreadSanitizer: data race (pid=67736)
  Write of size 8 at 0x7ff3a78ef810 by main thread:
    #0 freebl_InitNSPR /builds/worker/checkouts/gecko/security/nss/lib/freebl/stubs.c:768:5 (libfreeblpriv3.so+0xe38a8) (BuildId: b9521677d594330ace4154be6bc6400becc06183)
    #1 FREEBL_InitStubs /builds/worker/checkouts/gecko/security/nss/lib/freebl/stubs.c:856:14 (libfreeblpriv3.so+0xe38a8)
    #2 FREEBL_GetVector /builds/worker/checkouts/gecko/security/nss/lib/freebl/ldvector.c:455:10 (libfreeblpriv3.so+0x90069) (BuildId: b9521677d594330ace4154be6bc6400becc06183)
    #3 freebl_LoadDSO /builds/worker/checkouts/gecko/security/nss/lib/freebl/loader.c:51:45 (libsoftokn3.so+0x22bcb) (BuildId: 79f5de4f99701c923410a58342b99586a4c83c1f)
    #4 PR_CallOnce /builds/worker/checkouts/gecko/nsprpub/pr/src/misc/prinit.c:780:22 (libnspr4.so+0x263a8) (BuildId: 013ac6dfde6ba0632bf957fc68626f89e752c2e5)
    #5 freebl_RunLoaderOnce /builds/worker/checkouts/gecko/security/nss/lib/freebl/loader.c:86:14 (libsoftokn3.so+0x1da8b) (BuildId: 79f5de4f99701c923410a58342b99586a4c83c1f)
    #6 RNG_RNGInit /builds/worker/checkouts/gecko/security/nss/lib/freebl/loader.c:781:34 (libsoftokn3.so+0x1da8b)
    #7 nsc_CommonInitialize /builds/worker/checkouts/gecko/security/nss/lib/softoken/pkcs11.c:3444:10 (libsoftokn3.so+0x34150) (BuildId: 79f5de4f99701c923410a58342b99586a4c83c1f)
    #8 NSC_Initialize /builds/worker/checkouts/gecko/security/nss/lib/softoken/pkcs11.c:3583:11 (libsoftokn3.so+0x349b7) (BuildId: 79f5de4f99701c923410a58342b99586a4c83c1f)
    #9 secmod_ModuleInit /builds/worker/checkouts/gecko/security/nss/lib/pk11wrap/pk11load.c:245:11 (libnss3.so+0xac383) (BuildId: e2e3b9227a53368004658de77642756232a1c302)
    #10 secmod_LoadPKCS11Module /builds/worker/checkouts/gecko/security/nss/lib/pk11wrap/pk11load.c:562:10 (libnss3.so+0xace8e) (BuildId: e2e3b9227a53368004658de77642756232a1c302)
    #11 SECMOD_LoadModule /builds/worker/checkouts/gecko/security/nss/lib/pk11wrap/pk11pars.c:2016:10 (libnss3.so+0xbcc96) (BuildId: e2e3b9227a53368004658de77642756232a1c302)
    #12 SECMOD_LoadModule /builds/worker/checkouts/gecko/security/nss/lib/pk11wrap/pk11pars.c:2052:29 (libnss3.so+0xbce83) (BuildId: e2e3b9227a53368004658de77642756232a1c302)
    #13 nss_InitModules /builds/worker/checkouts/gecko/security/nss/lib/nss/nssinit.c:464:18 (libnss3.so+0x6e199) (BuildId: e2e3b9227a53368004658de77642756232a1c302)
    #14 nss_Init /builds/worker/checkouts/gecko/security/nss/lib/nss/nssinit.c:689:18 (libnss3.so+0x6e199)
    #15 NSS_NoDB_Init /builds/worker/checkouts/gecko/security/nss/lib/nss/nssinit.c:950:12 (libnss3.so+0x6e797) (BuildId: e2e3b9227a53368004658de77642756232a1c302)
    #16 EnsureNSSInitializedChromeOrContent() /builds/worker/checkouts/gecko/security/manager/ssl/nsNSSComponent.cpp:203:7 (libxul.so+0x985e4de) (BuildId: 303360c86679413e4ddac96f29879fbe4489c74e)
    #17 Constructor<nsRandomGenerator, nullptr, (mozilla::psm::ProcessRestriction)1, (mozilla::psm::ThreadRestriction)1> /builds/worker/checkouts/gecko/security/manager/ssl/nsNSSModule.cpp:71:8 (libxul.so+0x9876553) (BuildId: 303360c86679413e4ddac96f29879fbe4489c74e)
    #18 nsresult mozilla::psm::NSSConstructor<nsRandomGenerator>(nsID const&, void**) /builds/worker/checkouts/gecko/security/manager/ssl/nsNSSModule.cpp:99:1 (libxul.so+0x9876553)
    #19 mozilla::xpcom::CreateInstanceImpl(mozilla::xpcom::ModuleID, nsID const&, void**) /builds/worker/workspace/obj-build/xpcom/components/StaticComponents.cpp:12759:27 (libxul.so+0x31bc920) (BuildId: 303360c86679413e4ddac96f29879fbe4489c74e)
    #20 mozilla::xpcom::StaticModule::CreateInstance(nsID const&, void**) const /builds/worker/workspace/obj-build/xpcom/components/StaticComponents.cpp:12983:10 (libxul.so+0x31bf41a) (BuildId: 303360c86679413e4ddac96f29879fbe4489c74e)
    #21 CreateInstance /builds/worker/checkouts/gecko/xpcom/components/nsComponentManager.cpp:188:46 (libxul.so+0x31c9e87) (BuildId: 303360c86679413e4ddac96f29879fbe4489c74e)
    #22 nsComponentManagerImpl::GetServiceLocked(mozilla::Maybe<mozilla::detail::BaseMonitorAutoLock<mozilla::Monitor>>&, (anonymous namespace)::EntryWrapper&, nsID const&, void**) /builds/worker/checkouts/gecko/xpcom/components/nsComponentManager.cpp:982:17 (libxul.so+0x31c9e87)
    #23 nsComponentManagerImpl::GetServiceByContractID(char const*, nsID const&, void**) /builds/worker/checkouts/gecko/xpcom/components/nsComponentManager.cpp:1171:10 (libxul.so+0x31cab0d) (BuildId: 303360c86679413e4ddac96f29879fbe4489c74e)
    #24 CallGetService /builds/worker/checkouts/gecko/xpcom/components/nsComponentManagerUtils.cpp:63:43 (libxul.so+0x31cd59b) (BuildId: 303360c86679413e4ddac96f29879fbe4489c74e)
    #25 nsGetServiceByContractIDWithError::operator()(nsID const&, void**) const /builds/worker/checkouts/gecko/xpcom/components/nsComponentManagerUtils.cpp:250:21 (libxul.so+0x31cd59b)
    #26 assign_from_gs_contractid_with_error /builds/worker/workspace/obj-build/dist/include/nsCOMPtr.h:881:7 (libxul.so+0x9a82d5c) (BuildId: 303360c86679413e4ddac96f29879fbe4489c74e)
    #27 nsCOMPtr /builds/worker/workspace/obj-build/dist/include/nsCOMPtr.h:521:5 (libxul.so+0x9a82d5c)
    #28 mozilla::RelativeTimeline::GetRandomTimelineSeed() /builds/worker/checkouts/gecko/toolkit/components/resistfingerprinting/RelativeTimeline.cpp:18:9 (libxul.so+0x9a82d5c)
    #29 mozilla::dom::PerformanceMainThread::GetRandomTimelineSeed() /builds/worker/checkouts/gecko/dom/performance/PerformanceMainThread.h:75:28 (libxul.so+0x79fa145) (BuildId: 303360c86679413e4ddac96f29879fbe4489c74e)
    #30 mozilla::dom::Performance::Now() /builds/worker/checkouts/gecko/dom/performance/Performance.cpp:140:16 (libxul.so+0x79ec27d) (BuildId: 303360c86679413e4ddac96f29879fbe4489c74e)
    #31 mozilla::dom::Document::HasRecentlyStartedForegroundLoads() /builds/worker/checkouts/gecko/dom/base/Document.cpp:18795:19 (libxul.so+0x4aa6c13) (BuildId: 303360c86679413e4ddac96f29879fbe4489c74e)
    #32 mozilla::MainThreadIdlePeriod::GetIdlePeriodHint(mozilla::TimeStamp*) /builds/worker/checkouts/gecko/xpcom/threads/MainThreadIdlePeriod.cpp:60:7 (libxul.so+0x31d7e8e) (BuildId: 303360c86679413e4ddac96f29879fbe4489c74e)
    #33 mozilla::IdlePeriodState::GetLocalIdleDeadline(bool&, mozilla::detail::BaseAutoUnlock<mozilla::Mutex&> const&) /builds/worker/checkouts/gecko/xpcom/threads/IdlePeriodState.cpp:121:16 (libxul.so+0x31d1418) (BuildId: 303360c86679413e4ddac96f29879fbe4489c74e)
    #34 mozilla::IdlePeriodState::GetIdleDeadlineInternal(bool, mozilla::detail::BaseAutoUnlock<mozilla::Mutex&> const&) /builds/worker/checkouts/gecko/xpcom/threads/IdlePeriodState.cpp:69:7 (libxul.so+0x31d1087) (BuildId: 303360c86679413e4ddac96f29879fbe4489c74e)
    #35 RequestIdleDeadlineIfNeeded /builds/worker/workspace/obj-build/dist/include/mozilla/IdlePeriodState.h:79:5 (libxul.so+0x31dbe92) (BuildId: 303360c86679413e4ddac96f29879fbe4489c74e)
    #36 mozilla::TaskController::ExecuteNextTaskOnlyMainThreadInternal(mozilla::detail::BaseAutoLock<mozilla::Mutex&> const&) /builds/worker/checkouts/gecko/xpcom/threads/TaskController.cpp:746:37 (libxul.so+0x31dbe92)
    #37 mozilla::TaskController::ProcessPendingMTTask(bool) /builds/worker/checkouts/gecko/xpcom/threads/TaskController.cpp:514:36 (libxul.so+0x31dbf0f) (BuildId: 303360c86679413e4ddac96f29879fbe4489c74e)
    #38 operator() /builds/worker/checkouts/gecko/xpcom/threads/TaskController.cpp:232:37 (libxul.so+0x31ebe54) (BuildId: 303360c86679413e4ddac96f29879fbe4489c74e)
    #39 mozilla::detail::RunnableFunction<mozilla::TaskController::TaskController()::$_0>::Run() /builds/worker/checkouts/gecko/xpcom/threads/nsThreadUtils.h:548:5 (libxul.so+0x31ebe54)
    #40 nsThread::ProcessNextEvent(bool, bool*) /builds/worker/checkouts/gecko/xpcom/threads/nsThread.cpp:1199:16 (libxul.so+0x3200c18) (BuildId: 303360c86679413e4ddac96f29879fbe4489c74e)
    #41 NS_ProcessNextEvent(nsIThread*, bool) /builds/worker/checkouts/gecko/xpcom/threads/nsThreadUtils.cpp:480:10 (libxul.so+0x32073e4) (BuildId: 303360c86679413e4ddac96f29879fbe4489c74e)
    #42 mozilla::ipc::MessagePump::Run(base::MessagePump::Delegate*) /builds/worker/checkouts/gecko/ipc/glue/MessagePump.cpp:85:21 (libxul.so+0x3d3883e) (BuildId: 303360c86679413e4ddac96f29879fbe4489c74e)
    #43 mozilla::ipc::MessagePumpForChildProcess::Run(base::MessagePump::Delegate*) /builds/worker/checkouts/gecko/ipc/glue/MessagePump.cpp:268:30 (libxul.so+0x3d3930b) (BuildId: 303360c86679413e4ddac96f29879fbe4489c74e)
    #44 RunInternal /builds/worker/checkouts/gecko/ipc/chromium/src/base/message_loop.cc:370:10 (libxul.so+0x3cb2518) (BuildId: 303360c86679413e4ddac96f29879fbe4489c74e)
    #45 RunHandler /builds/worker/checkouts/gecko/ipc/chromium/src/base/message_loop.cc:363:3 (libxul.so+0x3cb2518)
    #46 MessageLoop::Run() /builds/worker/checkouts/gecko/ipc/chromium/src/base/message_loop.cc:345:3 (libxul.so+0x3cb2518)
    #47 nsBaseAppShell::Run() /builds/worker/checkouts/gecko/widget/nsBaseAppShell.cpp:148:27 (libxul.so+0x7ce6f13) (BuildId: 303360c86679413e4ddac96f29879fbe4489c74e)
    #48 nsAppShell::Run() /builds/worker/checkouts/gecko/widget/gtk/nsAppShell.cpp:470:33 (libxul.so+0x7dd4cec) (BuildId: 303360c86679413e4ddac96f29879fbe4489c74e)
    #49 XRE_RunAppShell() /builds/worker/checkouts/gecko/toolkit/xre/nsEmbedFunctions.cpp:721:20 (libxul.so+0x9c211ff) (BuildId: 303360c86679413e4ddac96f29879fbe4489c74e)
    #50 mozilla::ipc::MessagePumpForChildProcess::Run(base::MessagePump::Delegate*) /builds/worker/checkouts/gecko/ipc/glue/MessagePump.cpp:235:9 (libxul.so+0x3d392ba) (BuildId: 303360c86679413e4ddac96f29879fbe4489c74e)
    #51 RunInternal /builds/worker/checkouts/gecko/ipc/chromium/src/base/message_loop.cc:370:10 (libxul.so+0x3cb2518) (BuildId: 303360c86679413e4ddac96f29879fbe4489c74e)
    #52 RunHandler /builds/worker/checkouts/gecko/ipc/chromium/src/base/message_loop.cc:363:3 (libxul.so+0x3cb2518)
    #53 MessageLoop::Run() /builds/worker/checkouts/gecko/ipc/chromium/src/base/message_loop.cc:345:3 (libxul.so+0x3cb2518)
    #54 XRE_InitChildProcess(int, char**, XREChildData const*) /builds/worker/checkouts/gecko/toolkit/xre/nsEmbedFunctions.cpp:656:34 (libxul.so+0x9c20e60) (BuildId: 303360c86679413e4ddac96f29879fbe4489c74e)
    #55 mozilla::BootstrapImpl::XRE_InitChildProcess(int, char**, XREChildData const*) /builds/worker/checkouts/gecko/toolkit/xre/Bootstrap.cpp:67:12 (libxul.so+0x9c2d332) (BuildId: 303360c86679413e4ddac96f29879fbe4489c74e)
    #56 content_process_main /builds/worker/checkouts/gecko/browser/app/../../ipc/contentproc/plugin-container.cpp:57:28 (firefox-bin+0x15c142) (BuildId: fd34ea5ee7afa5ec954129758e7664480e1d2668)
    #57 main /builds/worker/checkouts/gecko/browser/app/nsBrowserApp.cpp:375:18 (firefox-bin+0x15c142)

  Previous read of size 8 at 0x7ff3a78ef810 by thread T3:
    #0 __tsan_memcpy /builds/worker/fetches/llvm-project/compiler-rt/lib/tsan/rtl/tsan_interceptors_memintrinsics.cpp:27:3 (firefox-bin+0xceea7) (BuildId: fd34ea5ee7afa5ec954129758e7664480e1d2668)
    #1 memcpy /builds/worker/fetches/sysroot-x86_64-linux-gnu/usr/include/x86_64-linux-gnu/bits/string3.h:51:10 (libxul.so+0x3cc6b64) (BuildId: 303360c86679413e4ddac96f29879fbe4489c74e)
    #2 IPC::MessageBufferReader::ReadBytesInto(void*, unsigned int) /builds/worker/checkouts/gecko/ipc/chromium/src/chrome/common/ipc_message_utils.cc:98:5 (libxul.so+0x3cc6b64)
    #3 ReadSequenceParamImpl<char> /builds/worker/checkouts/gecko/ipc/chromium/src/chrome/common/ipc_message_utils.h:616:23 (libxul.so+0x34b793c) (BuildId: 303360c86679413e4ddac96f29879fbe4489c74e)
    #4 bool IPC::ReadSequenceParam<char, IPC::ParamTraits<nsTSubstring<char>>::Read(IPC::MessageReader*, nsTSubstring<char>*)::'lambda'(unsigned int)>(IPC::MessageReader*, IPC::ParamTraits<nsTSubstring<char>>::Read(IPC::MessageReader*, nsTSubstring<char>*)::'lambda'(unsigned int)&&) /builds/worker/checkouts/gecko/ipc/chromium/src/chrome/common/ipc_message_utils.h:676:10 (libxul.so+0x34b793c)
    #5 Read /builds/worker/workspace/obj-build/dist/include/ipc/IPCMessageUtilsSpecializations.h:107:12 (libxul.so+0x380e7cd) (BuildId: 303360c86679413e4ddac96f29879fbe4489c74e)
    #6 IPC::ReadResult<nsTString<char>, std::is_default_constructible_v<nsTString<char>> || detail::HasDeprecatedReadParamPrivateConstructor<nsTString<char>>(0)> IPC::ReadParam<nsTString<char>>(IPC::MessageReader*) /builds/worker/checkouts/gecko/ipc/chromium/src/chrome/common/ipc_message_utils.h:481:13 (libxul.so+0x380e7cd)
    #7 mozilla::net::PHttpBackgroundChannelChild::OnMessageReceived(IPC::Message const&) /builds/worker/workspace/obj-build/ipc/ipdl/PHttpBackgroundChannelChild.cpp:302:32 (libxul.so+0x3a3a97a) (BuildId: 303360c86679413e4ddac96f29879fbe4489c74e)
    #8 mozilla::ipc::PBackgroundChild::OnMessageReceived(IPC::Message const&) /builds/worker/workspace/obj-build/ipc/ipdl/PBackgroundChild.cpp:5555:32 (libxul.so+0x3d7e7a5) (BuildId: 303360c86679413e4ddac96f29879fbe4489c74e)
    #9 mozilla::ipc::MessageChannel::DispatchAsyncMessage(mozilla::ipc::ActorLifecycleProxy*, IPC::Message const&) /builds/worker/checkouts/gecko/ipc/glue/MessageChannel.cpp:1813:25 (libxul.so+0x3d347ff) (BuildId: 303360c86679413e4ddac96f29879fbe4489c74e)
    #10 mozilla::ipc::MessageChannel::DispatchMessage(mozilla::ipc::ActorLifecycleProxy*, mozilla::UniquePtr<IPC::Message, mozilla::DefaultDelete<IPC::Message>>) /builds/worker/checkouts/gecko/ipc/glue/MessageChannel.cpp:1732:9 (libxul.so+0x3d32ee8) (BuildId: 303360c86679413e4ddac96f29879fbe4489c74e)
    #11 mozilla::ipc::MessageChannel::RunMessage(mozilla::ipc::ActorLifecycleProxy*, mozilla::ipc::MessageChannel::MessageTask&) /builds/worker/checkouts/gecko/ipc/glue/MessageChannel.cpp:1525:3 (libxul.so+0x3d334f3) (BuildId: 303360c86679413e4ddac96f29879fbe4489c74e)
    #12 mozilla::ipc::MessageChannel::MessageTask::Run() /builds/worker/checkouts/gecko/ipc/glue/MessageChannel.cpp:1623:14 (libxul.so+0x3d33e37) (BuildId: 303360c86679413e4ddac96f29879fbe4489c74e)
    #13 nsThread::ProcessNextEvent(bool, bool*) /builds/worker/checkouts/gecko/xpcom/threads/nsThread.cpp:1193:16 (libxul.so+0x3200e2e) (BuildId: 303360c86679413e4ddac96f29879fbe4489c74e)
    #14 NS_ProcessNextEvent(nsIThread*, bool) /builds/worker/checkouts/gecko/xpcom/threads/nsThreadUtils.cpp:480:10 (libxul.so+0x32073e4) (BuildId: 303360c86679413e4ddac96f29879fbe4489c74e)
    #15 mozilla::ipc::MessagePumpForNonMainThreads::Run(base::MessagePump::Delegate*) /builds/worker/checkouts/gecko/ipc/glue/MessagePump.cpp:330:5 (libxul.so+0x3d39489) (BuildId: 303360c86679413e4ddac96f29879fbe4489c74e)
    #16 RunInternal /builds/worker/checkouts/gecko/ipc/chromium/src/base/message_loop.cc:370:10 (libxul.so+0x3cb2518) (BuildId: 303360c86679413e4ddac96f29879fbe4489c74e)
    #17 RunHandler /builds/worker/checkouts/gecko/ipc/chromium/src/base/message_loop.cc:363:3 (libxul.so+0x3cb2518)
    #18 MessageLoop::Run() /builds/worker/checkouts/gecko/ipc/chromium/src/base/message_loop.cc:345:3 (libxul.so+0x3cb2518)
    #19 nsThread::ThreadFunc(void*) /builds/worker/checkouts/gecko/xpcom/threads/nsThread.cpp:370:10 (libxul.so+0x31fc6a3) (BuildId: 303360c86679413e4ddac96f29879fbe4489c74e)
    #20 _pt_root /builds/worker/checkouts/gecko/nsprpub/pr/src/pthreads/ptthread.c:201:5 (libnspr4.so+0x4b1c9) (BuildId: 013ac6dfde6ba0632bf957fc68626f89e752c2e5)

  Location is global 'ptr_PR_Open' of size 8 at 0x7ff3a78ef810 (libfreeblpriv3.so+0x124810)

  Thread T3 'Socket Thread' (tid=67741, running) created by main thread at:
    #0 pthread_create /builds/worker/fetches/llvm-project/compiler-rt/lib/tsan/rtl/tsan_interceptors_posix.cpp:1020:3 (firefox-bin+0xd328b) (BuildId: fd34ea5ee7afa5ec954129758e7664480e1d2668)
    #1 _PR_CreateThread /builds/worker/checkouts/gecko/nsprpub/pr/src/pthreads/ptthread.c:458:14 (libnspr4.so+0x4243e) (BuildId: 013ac6dfde6ba0632bf957fc68626f89e752c2e5)
    #2 PR_CreateThread /builds/worker/checkouts/gecko/nsprpub/pr/src/pthreads/ptthread.c:533:12 (libnspr4.so+0x376d4) (BuildId: 013ac6dfde6ba0632bf957fc68626f89e752c2e5)
    #3 nsThread::Init(nsTSubstring<char> const&) /builds/worker/checkouts/gecko/xpcom/threads/nsThread.cpp:620:20 (libxul.so+0x31fde47) (BuildId: 303360c86679413e4ddac96f29879fbe4489c74e)
    #4 nsThreadManager::NewNamedThread(nsTSubstring<char> const&, nsIThreadManager::ThreadCreationOptions, nsIThread**) /builds/worker/checkouts/gecko/xpcom/threads/nsThreadManager.cpp:598:22 (libxul.so+0x3205efd) (BuildId: 303360c86679413e4ddac96f29879fbe4489c74e)
    #5 NS_NewNamedThread(nsTSubstring<char> const&, nsIThread**, already_AddRefed<nsIRunnable>, nsIThreadManager::ThreadCreationOptions) /builds/worker/checkouts/gecko/xpcom/threads/nsThreadUtils.cpp:176:57 (libxul.so+0x320ebd3) (BuildId: 303360c86679413e4ddac96f29879fbe4489c74e)
    #6 NS_NewNamedThread<14UL> /builds/worker/workspace/obj-build/dist/include/nsThreadUtils.h:87:10 (libxul.so+0x34407c3) (BuildId: 303360c86679413e4ddac96f29879fbe4489c74e)
    #7 mozilla::net::nsSocketTransportService::Init() /builds/worker/checkouts/gecko/netwerk/base/nsSocketTransportService2.cpp:757:9 (libxul.so+0x34407c3)
    #8 mozilla::xpcom::CreateInstanceImpl(mozilla::xpcom::ModuleID, nsID const&, void**) /builds/worker/workspace/obj-build/xpcom/components/StaticComponents.cpp:10040:7 (libxul.so+0x31b4324) (BuildId: 303360c86679413e4ddac96f29879fbe4489c74e)
    #9 mozilla::xpcom::StaticModule::CreateInstance(nsID const&, void**) const /builds/worker/workspace/obj-build/xpcom/components/StaticComponents.cpp:12983:10 (libxul.so+0x31bf41a) (BuildId: 303360c86679413e4ddac96f29879fbe4489c74e)
    #10 CreateInstance /builds/worker/checkouts/gecko/xpcom/components/nsComponentManager.cpp:188:46 (libxul.so+0x31c9e87) (BuildId: 303360c86679413e4ddac96f29879fbe4489c74e)
    #11 nsComponentManagerImpl::GetServiceLocked(mozilla::Maybe<mozilla::detail::BaseMonitorAutoLock<mozilla::Monitor>>&, (anonymous namespace)::EntryWrapper&, nsID const&, void**) /builds/worker/checkouts/gecko/xpcom/components/nsComponentManager.cpp:982:17 (libxul.so+0x31c9e87)
    #12 nsComponentManagerImpl::GetServiceByContractID(char const*, nsID const&, void**) /builds/worker/checkouts/gecko/xpcom/components/nsComponentManager.cpp:1171:10 (libxul.so+0x31cab0d) (BuildId: 303360c86679413e4ddac96f29879fbe4489c74e)
    #13 CallGetService /builds/worker/checkouts/gecko/xpcom/components/nsComponentManagerUtils.cpp:63:43 (libxul.so+0x31cd59b) (BuildId: 303360c86679413e4ddac96f29879fbe4489c74e)
    #14 nsGetServiceByContractIDWithError::operator()(nsID const&, void**) const /builds/worker/checkouts/gecko/xpcom/components/nsComponentManagerUtils.cpp:250:21 (libxul.so+0x31cd59b)
    #15 assign_from_gs_contractid_with_error /builds/worker/workspace/obj-build/dist/include/nsCOMPtr.h:881:7 (libxul.so+0x33dc9f0) (BuildId: 303360c86679413e4ddac96f29879fbe4489c74e)
    #16 operator= /builds/worker/workspace/obj-build/dist/include/nsCOMPtr.h:665:5 (libxul.so+0x33dc9f0)
    #17 mozilla::net::nsIOService::InitializeSocketTransportService() /builds/worker/checkouts/gecko/netwerk/base/nsIOService.cpp:435:29 (libxul.so+0x33dc9f0)
    #18 mozilla::net::nsIOService::SetOfflineInternal(bool, bool) /builds/worker/checkouts/gecko/netwerk/base/nsIOService.cpp:1299:7 (libxul.so+0x33e273f) (BuildId: 303360c86679413e4ddac96f29879fbe4489c74e)
    #19 SetOffline /builds/worker/checkouts/gecko/netwerk/base/nsIOService.cpp:1238:48 (libxul.so+0x33db27b) (BuildId: 303360c86679413e4ddac96f29879fbe4489c74e)
    #20 mozilla::net::nsIOService::Init() /builds/worker/checkouts/gecko/netwerk/base/nsIOService.cpp:307:3 (libxul.so+0x33db27b)
    #21 mozilla::net::nsIOService::GetInstance() /builds/worker/checkouts/gecko/netwerk/base/nsIOService.cpp:492:9 (libxul.so+0x33dd011) (BuildId: 303360c86679413e4ddac96f29879fbe4489c74e)
    #22 mozilla::xpcom::CreateInstanceImpl(mozilla::xpcom::ModuleID, nsID const&, void**) /builds/worker/workspace/obj-build/xpcom/components/StaticComponents.cpp:10700:48 (libxul.so+0x31b605d) (BuildId: 303360c86679413e4ddac96f29879fbe4489c74e)
    #23 mozilla::xpcom::StaticModule::CreateInstance(nsID const&, void**) const /builds/worker/workspace/obj-build/xpcom/components/StaticComponents.cpp:12983:10 (libxul.so+0x31bf41a) (BuildId: 303360c86679413e4ddac96f29879fbe4489c74e)
    #24 CreateInstance /builds/worker/checkouts/gecko/xpcom/components/nsComponentManager.cpp:188:46 (libxul.so+0x31c9e87) (BuildId: 303360c86679413e4ddac96f29879fbe4489c74e)
    #25 nsComponentManagerImpl::GetServiceLocked(mozilla::Maybe<mozilla::detail::BaseMonitorAutoLock<mozilla::Monitor>>&, (anonymous namespace)::EntryWrapper&, nsID const&, void**) /builds/worker/checkouts/gecko/xpcom/components/nsComponentManager.cpp:982:17 (libxul.so+0x31c9e87)
    #26 nsComponentManagerImpl::GetService(mozilla::xpcom::ModuleID, nsID const&, void**) /builds/worker/checkouts/gecko/xpcom/components/nsComponentManager.cpp:1072:10 (libxul.so+0x31ca423) (BuildId: 303360c86679413e4ddac96f29879fbe4489c74e)
    #27 mozilla::xpcom::GetServiceHelper::operator()(nsID const&, void**) const /builds/worker/workspace/obj-build/xpcom/components/StaticComponents.cpp:13125:50 (libxul.so+0x31c0168) (BuildId: 303360c86679413e4ddac96f29879fbe4489c74e)
    #28 RefPtr /builds/worker/workspace/obj-build/dist/include/nsCOMPtr.h:1111:7 (libxul.so+0x403025e) (BuildId: 303360c86679413e4ddac96f29879fbe4489c74e)
    #29 nsScriptSecurityManager::Init() /builds/worker/checkouts/gecko/caps/nsScriptSecurityManager.cpp:1553:29 (libxul.so+0x403025e)
    #30 nsScriptSecurityManager::InitStatics() /builds/worker/checkouts/gecko/caps/nsScriptSecurityManager.cpp:1615:28 (libxul.so+0x40307c9) (BuildId: 303360c86679413e4ddac96f29879fbe4489c74e)
    #31 nsXPConnect::InitStatics() /builds/worker/checkouts/gecko/js/xpconnect/src/nsXPConnect.cpp:166:3 (libxul.so+0x3ed1515) (BuildId: 303360c86679413e4ddac96f29879fbe4489c74e)
    #32 xpcModuleCtor() /builds/worker/checkouts/gecko/js/xpconnect/src/XPCModule.cpp:11:3 (libxul.so+0x3e9e64f) (BuildId: 303360c86679413e4ddac96f29879fbe4489c74e)
    #33 nsLayoutModuleInitialize() /builds/worker/checkouts/gecko/layout/build/nsLayoutModule.cpp:99:7 (libxul.so+0x85c5b2b) (BuildId: 303360c86679413e4ddac96f29879fbe4489c74e)
    #34 nsComponentManagerImpl::Init() /builds/worker/checkouts/gecko/xpcom/components/nsComponentManager.cpp:382:5 (libxul.so+0x31c7395) (BuildId: 303360c86679413e4ddac96f29879fbe4489c74e)
    #35 NS_InitXPCOM /builds/worker/checkouts/gecko/xpcom/build/XPCOMInit.cpp:437:51 (libxul.so+0x323e485) (BuildId: 303360c86679413e4ddac96f29879fbe4489c74e)
    #36 mozilla::dom::ContentProcess::Init(int, char**) /builds/worker/checkouts/gecko/dom/ipc/ContentProcess.cpp:160:8 (libxul.so+0x755d99e) (BuildId: 303360c86679413e4ddac96f29879fbe4489c74e)
    #37 XRE_InitChildProcess(int, char**, XREChildData const*) /builds/worker/checkouts/gecko/toolkit/xre/nsEmbedFunctions.cpp:623:21 (libxul.so+0x9c20e3b) (BuildId: 303360c86679413e4ddac96f29879fbe4489c74e)
    #38 mozilla::BootstrapImpl::XRE_InitChildProcess(int, char**, XREChildData const*) /builds/worker/checkouts/gecko/toolkit/xre/Bootstrap.cpp:67:12 (libxul.so+0x9c2d332) (BuildId: 303360c86679413e4ddac96f29879fbe4489c74e)
    #39 content_process_main /builds/worker/checkouts/gecko/browser/app/../../ipc/contentproc/plugin-container.cpp:57:28 (firefox-bin+0x15c142) (BuildId: fd34ea5ee7afa5ec954129758e7664480e1d2668)
    #40 main /builds/worker/checkouts/gecko/browser/app/nsBrowserApp.cpp:375:18 (firefox-bin+0x15c142)

This seems like another TSan false positive.

Status: NEW → RESOLVED
Closed: 1 year ago
Resolution: --- → INVALID
Group: crypto-core-security
You need to log in before you can comment on or make changes to this bug.