Closed Bug 1686159 Opened 4 years ago Closed 2 years ago

Intermittent SUMMARY: ThreadSanitizer: data race /builds/worker/workspace/obj-build/xpcom/build/Services.cpp:421:8 in XPCOMService_GetHttpActivityDistributor

Categories

(Core :: XPCOM, defect)

defect

Tracking

()

RESOLVED FIXED

People

(Reporter: bogdan_tara, Unassigned)

References

(Blocks 1 open bug)

Details

(Keywords: csectype-race, sec-moderate)

https://treeherder.mozilla.org/logviewer?job_id=326396339&repo=mozilla-central&lineNumber=3860

https://firefox-ci-tc.services.mozilla.com/api/queue/v1/task/G8lAcuZ9S_y9UiNsO3nJbA/runs/0/artifacts/public/logs/live_backing.log

[task 2021-01-11T22:56:05.771Z] 22:56:05     INFO -  TEST-START | netwerk/test/unit/test_use_httpssvc.js
[task 2021-01-11T22:56:07.679Z] 22:56:07  WARNING -  TEST-UNEXPECTED-FAIL | netwerk/test/unit/test_use_httpssvc.js | xpcshell return code: -6
[task 2021-01-11T22:56:07.679Z] 22:56:07     INFO -  TEST-INFO took 1904ms
[task 2021-01-11T22:56:07.682Z] 22:56:07     INFO -  >>>>>>>
[task 2021-01-11T22:56:07.682Z] 22:56:07     INFO -  TEST-PASS | netwerk/test/unit/test_use_httpssvc.js | setup - [setup : 31] "43346" != null
[task 2021-01-11T22:56:07.683Z] 22:56:07     INFO -  TEST-PASS | netwerk/test/unit/test_use_httpssvc.js | setup - [setup : 32] "43346" != ""
[task 2021-01-11T22:56:07.683Z] 22:56:07     INFO -  (xpcshell/head.js) | test MAIN run_test pending (1)
[task 2021-01-11T22:56:07.683Z] 22:56:07     INFO -  (xpcshell/head.js) | test run_next_test 0 pending (2)
[task 2021-01-11T22:56:07.684Z] 22:56:07     INFO -  (xpcshell/head.js) | test MAIN run_test finished (2)
[task 2021-01-11T22:56:07.684Z] 22:56:07     INFO -  running event loop
[task 2021-01-11T22:56:07.685Z] 22:56:07     INFO -  netwerk/test/unit/test_use_httpssvc.js | Starting testUseHTTPSSVCForHttpsUpgrade
[task 2021-01-11T22:56:07.685Z] 22:56:07     INFO -  (xpcshell/head.js) | test testUseHTTPSSVCForHttpsUpgrade pending (2)
[task 2021-01-11T22:56:07.686Z] 22:56:07     INFO -  (xpcshell/head.js) | test run_next_test 0 finished (2)
[task 2021-01-11T22:56:07.686Z] 22:56:07     INFO -  PID 18277 | ==================
[task 2021-01-11T22:56:07.686Z] 22:56:07     INFO -  PID 18277 | WARNING: ThreadSanitizer: data race (pid=18277)
[task 2021-01-11T22:56:07.686Z] 22:56:07     INFO -  PID 18277 |   Read of size 8 at 0x7faf9bab9d08 by main thread (mutexes: write M457251100324614704):
[task 2021-01-11T22:56:07.686Z] 22:56:07     INFO -  PID 18277 |     #0 XPCOMService_GetHttpActivityDistributor /builds/worker/workspace/obj-build/xpcom/build/Services.cpp:421:8 (libxul.so+0xbbe4e3)
[task 2021-01-11T22:56:07.686Z] 22:56:07     INFO -  PID 18277 |     #1 GetHttpActivityDistributor /builds/worker/workspace/obj-build/dist/include/mozilla/Services.h:453:55 (libxul.so+0x1287f8a)
[task 2021-01-11T22:56:07.686Z] 22:56:07     INFO -  PID 18277 |     #2 mozilla::net::nsHttpTransaction::Init(unsigned int, mozilla::net::nsHttpConnectionInfo*, mozilla::net::nsHttpRequestHead*, nsIInputStream*, unsigned long, bool, nsIEventTarget*, nsIInterfaceRequestor*, nsITransportEventSink*, unsigned long, mozilla::net::HttpTrafficCategory, nsIRequestContext*, unsigned int, unsigned int, bool, unsigned long, std::function<void (mozilla::net::TransactionObserverResult&&)>&&, std::function<nsresult (unsigned int, nsTSubstring<char> const&, nsTSubstring<char> const&, mozilla::net::HttpTransactionShell*)>&&, mozilla::net::HttpTransactionShell*, unsigned int) /builds/worker/checkouts/gecko/netwerk/protocol/http/nsHttpTransaction.cpp:292:26 (libxul.so+0x1287f8a)
[task 2021-01-11T22:56:07.686Z] 22:56:07     INFO -  PID 18277 |     #3 non-virtual thunk to mozilla::net::nsHttpTransaction::Init(unsigned int, mozilla::net::nsHttpConnectionInfo*, mozilla::net::nsHttpRequestHead*, nsIInputStream*, unsigned long, bool, nsIEventTarget*, nsIInterfaceRequestor*, nsITransportEventSink*, unsigned long, mozilla::net::HttpTrafficCategory, nsIRequestContext*, unsigned int, unsigned int, bool, unsigned long, std::function<void (mozilla::net::TransactionObserverResult&&)>&&, std::function<nsresult (unsigned int, nsTSubstring<char> const&, nsTSubstring<char> const&, mozilla::net::HttpTransactionShell*)>&&, mozilla::net::HttpTransactionShell*, unsigned int) /builds/worker/checkouts/gecko/netwerk/protocol/http/nsHttpTransaction.cpp (libxul.so+0x1289349)
[task 2021-01-11T22:56:07.686Z] 22:56:07     INFO -  PID 18277 |     #4 mozilla::net::nsHttpChannel::SetupTransaction() /builds/worker/checkouts/gecko/netwerk/protocol/http/nsHttpChannel.cpp:1454:22 (libxul.so+0x121abe3)
[task 2021-01-11T22:56:07.686Z] 22:56:07     INFO -  PID 18277 |     #5 mozilla::net::nsHttpChannel::DoConnectActual(mozilla::net::HttpTransactionShell*) /builds/worker/checkouts/gecko/netwerk/protocol/http/nsHttpChannel.cpp:956:17 (libxul.so+0x12194b5)
[task 2021-01-11T22:56:07.686Z] 22:56:07     INFO -  PID 18277 |     #6 mozilla::net::nsHttpChannel::DoConnect(mozilla::net::HttpTransactionShell*) /builds/worker/checkouts/gecko/netwerk/protocol/http/nsHttpChannel.cpp:948:10 (libxul.so+0x121932b)
[task 2021-01-11T22:56:07.686Z] 22:56:07     INFO -  PID 18277 |     #7 mozilla::net::nsHttpChannel::ContinueConnect() /builds/worker/checkouts/gecko/netwerk/protocol/http/nsHttpChannel.cpp:912:10 (libxul.so+0x12172ea)
[task 2021-01-11T22:56:07.686Z] 22:56:07     INFO -  PID 18277 |     #8 mozilla::net::nsHttpChannel::TriggerNetwork() /builds/worker/checkouts/gecko/netwerk/protocol/http/nsHttpChannel.cpp:9724:10 (libxul.so+0x1218a54)
[task 2021-01-11T22:56:07.689Z] 22:56:07     INFO -  PID 18277 |     #9 mozilla::net::nsHttpChannel::OnCacheEntryAvailableInternal(nsICacheEntry*, bool, nsIApplicationCache*, nsresult) /builds/worker/checkouts/gecko/netwerk/protocol/http/nsHttpChannel.cpp:4419:10 (libxul.so+0x122e1c4)
[task 2021-01-11T22:56:07.689Z] 22:56:07     INFO -  PID 18277 |     #10 mozilla::net::nsHttpChannel::OnCacheEntryAvailable(nsICacheEntry*, bool, nsIApplicationCache*, nsresult) /builds/worker/checkouts/gecko/netwerk/protocol/http/nsHttpChannel.cpp:4332:8 (libxul.so+0x122dc9a)
[task 2021-01-11T22:56:07.690Z] 22:56:07     INFO -  PID 18277 |     #11 non-virtual thunk to mozilla::net::nsHttpChannel::OnCacheEntryAvailable(nsICacheEntry*, bool, nsIApplicationCache*, nsresult) /builds/worker/checkouts/gecko/netwerk/protocol/http/nsHttpChannel.cpp (libxul.so+0x122e30b)
[task 2021-01-11T22:56:07.690Z] 22:56:07     INFO -  PID 18277 |     #12 mozilla::net::CacheEntry::InvokeAvailableCallback(mozilla::net::CacheEntry::Callback const&) /builds/worker/checkouts/gecko/netwerk/cache2/CacheEntry.cpp:892:29 (libxul.so+0x103845a)
[task 2021-01-11T22:56:07.690Z] 22:56:07     INFO -  PID 18277 |     #13 mozilla::net::CacheEntry::AvailableCallbackRunnable::Run() /builds/worker/checkouts/gecko/netwerk/cache2/CacheEntry.h:228:15 (libxul.so+0x1090b83)
[task 2021-01-11T22:56:07.690Z] 22:56:07     INFO -  PID 18277 |     #14 mozilla::RunnableTask::Run() /builds/worker/checkouts/gecko/xpcom/threads/TaskController.cpp:459:16 (libxul.so+0xb78272)
[task 2021-01-11T22:56:07.690Z] 22:56:07     INFO -  PID 18277 |     #15 mozilla::TaskController::DoExecuteNextTaskOnlyMainThreadInternal(mozilla::detail::BaseAutoLock<mozilla::Mutex&> const&) /builds/worker/checkouts/gecko/xpcom/threads/TaskController.cpp:739:26 (libxul.so+0xb761b0)
[task 2021-01-11T22:56:07.690Z] 22:56:07     INFO -  PID 18277 |     #16 mozilla::TaskController::ExecuteNextTaskOnlyMainThreadInternal(mozilla::detail::BaseAutoLock<mozilla::Mutex&> const&) /builds/worker/checkouts/gecko/xpcom/threads/TaskController.cpp:598:15 (libxul.so+0xb74e16)
[task 2021-01-11T22:56:07.690Z] 22:56:07     INFO -  PID 18277 |     #17 mozilla::TaskController::ProcessPendingMTTask(bool) /builds/worker/checkouts/gecko/xpcom/threads/TaskController.cpp:382:36 (libxul.so+0xb750b4)
[task 2021-01-11T22:56:07.690Z] 22:56:07     INFO -  PID 18277 |     #18 operator() /builds/worker/checkouts/gecko/xpcom/threads/TaskController.cpp:126:37 (libxul.so+0xb7b2ca)
[task 2021-01-11T22:56:07.690Z] 22:56:07     INFO -  PID 18277 |     #19 mozilla::detail::RunnableFunction<mozilla::TaskController::InitializeInternal()::$_4>::Run() /builds/worker/workspace/obj-build/dist/include/nsThreadUtils.h:534:5 (libxul.so+0xb7b2ca)
[task 2021-01-11T22:56:07.691Z] 22:56:07     INFO -  PID 18277 |     #20 nsThread::ProcessNextEvent(bool, bool*) /builds/worker/checkouts/gecko/xpcom/threads/nsThread.cpp:1200:14 (libxul.so+0xb8c2aa)
[task 2021-01-11T22:56:07.693Z] 22:56:07     INFO -  PID 18277 |     #21 NS_ProcessNextEvent(nsIThread*, bool) /builds/worker/checkouts/gecko/xpcom/threads/nsThreadUtils.cpp:548:10 (libxul.so+0xb91fe2)
[task 2021-01-11T22:56:07.693Z] 22:56:07     INFO -  PID 18277 |     #22 SpinEventLoopUntil<mozilla::ProcessFailureBehavior::ReportToCaller, (lambda at /builds/worker/checkouts/gecko/xpcom/threads/nsThreadManager.cpp:727:36)> /builds/worker/workspace/obj-build/dist/include/mozilla/SpinEventLoopUntil.h:93:25 (libxul.so+0xb91a62)
[task 2021-01-11T22:56:07.693Z] 22:56:07     INFO -  PID 18277 |     #23 nsThreadManager::SpinEventLoopUntilInternal(nsINestedEventLoopCondition*, bool) /builds/worker/checkouts/gecko/xpcom/threads/nsThreadManager.cpp:727:8 (libxul.so+0xb91a62)
[task 2021-01-11T22:56:07.694Z] 22:56:07     INFO -  PID 18277 |     #24 nsThreadManager::SpinEventLoopUntil(nsINestedEventLoopCondition*) /builds/worker/checkouts/gecko/xpcom/threads/nsThreadManager.cpp:706:10 (libxul.so+0xb918e7)
[task 2021-01-11T22:56:07.694Z] 22:56:07     INFO -  PID 18277 |     #25 NS_InvokeByIndex /builds/worker/checkouts/gecko/xpcom/reflect/xptcall/md/unix/xptcinvoke_asm_x86_64_unix.S:101 (libxul.so+0xbb3d35)
[task 2021-01-11T22:56:07.694Z] 22:56:07     INFO -  PID 18277 |     #26 XPC_WN_CallMethod(JSContext*, unsigned int, JS::Value*) /builds/worker/checkouts/gecko/js/xpconnect/src/XPCWrappedNativeJSOps.cpp:925:10 (libxul.so+0x1a69950)
[task 2021-01-11T22:56:07.695Z] 22:56:07     INFO -  PID 18277 |     #27 CallJSNative /builds/worker/checkouts/gecko/js/src/vm/Interpreter.cpp:503:13 (libxul.so+0x68754d9)
[task 2021-01-11T22:56:07.695Z] 22:56:07     INFO -  PID 18277 |     #28 js::InternalCallOrConstruct(JSContext*, JS::CallArgs const&, js::MaybeConstruct, js::CallReason) /builds/worker/checkouts/gecko/js/src/vm/Interpreter.cpp:594:12 (libxul.so+0x68754d9)
[task 2021-01-11T22:56:07.696Z] 22:56:07     INFO -  PID 18277 |     #29 InternalCall /builds/worker/checkouts/gecko/js/src/vm/Interpreter.cpp:647:10 (libxul.so+0x686aaae)
[task 2021-01-11T22:56:07.696Z] 22:56:07     INFO -  PID 18277 |     #30 CallFromStack /builds/worker/checkouts/gecko/js/src/vm/Interpreter.cpp:651:10 (libxul.so+0x686aaae)
[task 2021-01-11T22:56:07.697Z] 22:56:07     INFO -  PID 18277 |     #31 Interpret(JSContext*, js::RunState&) /builds/worker/checkouts/gecko/js/src/vm/Interpreter.cpp:3309:16 (libxul.so+0x686aaae)
[task 2021-01-11T22:56:07.697Z] 22:56:07     INFO -  PID 18277 |     #32 js::RunScript(JSContext*, js::RunState&) /builds/worker/checkouts/gecko/js/src/vm/Interpreter.cpp:473:13 (libxul.so+0x685d3dc)
[task 2021-01-11T22:56:07.698Z] 22:56:07     INFO -  PID 18277 |     #33 js::InternalCallOrConstruct(JSContext*, JS::CallArgs const&, js::MaybeConstruct, js::CallReason) /builds/worker/checkouts/gecko/js/src/vm/Interpreter.cpp:619:13 (libxul.so+0x6875d70)
[task 2021-01-11T22:56:07.699Z] 22:56:07     INFO -  PID 18277 |     #34 InternalCall /builds/worker/checkouts/gecko/js/src/vm/Interpreter.cpp:647:10 (libxul.so+0x687675e)
[task 2021-01-11T22:56:07.699Z] 22:56:07     INFO -  PID 18277 |     #35 js::CallFromStack(JSContext*, JS::CallArgs const&) /builds/worker/checkouts/gecko/js/src/vm/Interpreter.cpp:651:10 (libxul.so+0x687675e)
[task 2021-01-11T22:56:07.700Z] 22:56:07     INFO -  PID 18277 |     #36 js::jit::DoCallFallback(JSContext*, js::jit::BaselineFrame*, js::jit::ICCall_Fallback*, unsigned int, JS::Value*, JS::MutableHandle<JS::Value>) /builds/worker/checkouts/gecko/js/src/jit/BaselineIC.cpp:1841:10 (libxul.so+0x707ca65)
[task 2021-01-11T22:56:07.701Z] 22:56:07     INFO -  PID 18277 |     #37 <null> <null> (0x7faf00263ad8)
[task 2021-01-11T22:56:07.706Z] 22:56:07     INFO -  PID 18277 |     #38 Interpret(JSContext*, js::RunState&) /builds/worker/checkouts/gecko/js/src/vm/Interpreter.cpp:2231:17 (libxul.so+0x685e475)
[task 2021-01-11T22:56:07.706Z] 22:56:07     INFO -  PID 18277 |     #39 js::RunScript(JSContext*, js::RunState&) /builds/worker/checkouts/gecko/js/src/vm/Interpreter.cpp:473:13 (libxul.so+0x685d3dc)
[task 2021-01-11T22:56:07.706Z] 22:56:07     INFO -  PID 18277 |     #40 js::ExecuteKernel(JSContext*, JS::Handle<JSScript*>, JS::Handle<JSObject*>, JS::Handle<JS::Value>, js::AbstractFramePtr, JS::MutableHandle<JS::Value>) /builds/worker/checkouts/gecko/js/src/vm/Interpreter.cpp:839:13 (libxul.so+0x6877e8a)
[task 2021-01-11T22:56:07.707Z] 22:56:07     INFO -  PID 18277 |     #41 js::Execute(JSContext*, JS::Handle<JSScript*>, JS::Handle<JSObject*>, JS::MutableHandle<JS::Value>) /builds/worker/checkouts/gecko/js/src/vm/Interpreter.cpp:871:10 (libxul.so+0x687807b)
[task 2021-01-11T22:56:07.708Z] 22:56:07     INFO -  PID 18277 |     #42 EvaluateSourceBuffer<mozilla::Utf8Unit> /builds/worker/checkouts/gecko/js/src/vm/CompilationAndEvaluation.cpp:525:10 (libxul.so+0x69b8c54)
[task 2021-01-11T22:56:07.708Z] 22:56:07     INFO -  PID 18277 |     #43 JS::Evaluate(JSContext*, JS::ReadOnlyCompileOptions const&, JS::SourceText<mozilla::Utf8Unit>&, JS::MutableHandle<JS::Value>) /builds/worker/checkouts/gecko/js/src/vm/CompilationAndEvaluation.cpp:533:10 (libxul.so+0x69b8c54)
[task 2021-01-11T22:56:07.709Z] 22:56:07     INFO -  PID 18277 |     #44 ProcessArgs(mozilla::dom::AutoJSAPI&, char**, int, XPCShellDirProvider*) /builds/worker/checkouts/gecko/js/xpconnect/src/XPCShellImpl.cpp:961:11 (libxul.so+0x1a57211)
[task 2021-01-11T22:56:07.709Z] 22:56:07     INFO -  PID 18277 |     #45 XRE_XPCShellMain(int, char**, char**, XREShellData const*) /builds/worker/checkouts/gecko/js/xpconnect/src/XPCShellImpl.cpp:1347:14 (libxul.so+0x1a55c4b)
[task 2021-01-11T22:56:07.710Z] 22:56:07     INFO -  PID 18277 |     #46 mozilla::BootstrapImpl::XRE_XPCShellMain(int, char**, char**, XREShellData const*) /builds/worker/checkouts/gecko/toolkit/xre/Bootstrap.cpp:54:12 (libxul.so+0x674a1be)
[task 2021-01-11T22:56:07.711Z] 22:56:07     INFO -  PID 18277 |     #47 main /builds/worker/checkouts/gecko/js/xpconnect/shell/xpcshell.cpp:76:27 (xpcshell+0xc7400)
[task 2021-01-11T22:56:07.711Z] 22:56:07     INFO -  PID 18277 |   Previous write of size 8 at 0x7faf9bab9d08 by thread T11:
[task 2021-01-11T22:56:07.712Z] 22:56:07     INFO -  PID 18277 |     #0 swap /builds/worker/workspace/obj-build/dist/include/nsCOMPtr.h:822:10 (libxul.so+0xbbe528)
[task 2021-01-11T22:56:07.712Z] 22:56:07     INFO -  PID 18277 |     #1 XPCOMService_GetHttpActivityDistributor /builds/worker/workspace/obj-build/xpcom/build/Services.cpp:423:8 (libxul.so+0xbbe528)
[task 2021-01-11T22:56:07.713Z] 22:56:07     INFO -  PID 18277 |     #2 GetHttpActivityDistributor /builds/worker/workspace/obj-build/dist/include/mozilla/Services.h:453:55 (libxul.so+0x1287f8a)
[task 2021-01-11T22:56:07.713Z] 22:56:07     INFO -  PID 18277 |     #3 mozilla::net::nsHttpTransaction::Init(unsigned int, mozilla::net::nsHttpConnectionInfo*, mozilla::net::nsHttpRequestHead*, nsIInputStream*, unsigned long, bool, nsIEventTarget*, nsIInterfaceRequestor*, nsITransportEventSink*, unsigned long, mozilla::net::HttpTrafficCategory, nsIRequestContext*, unsigned int, unsigned int, bool, unsigned long, std::function<void (mozilla::net::TransactionObserverResult&&)>&&, std::function<nsresult (unsigned int, nsTSubstring<char> const&, nsTSubstring<char> const&, mozilla::net::HttpTransactionShell*)>&&, mozilla::net::HttpTransactionShell*, unsigned int) /builds/worker/checkouts/gecko/netwerk/protocol/http/nsHttpTransaction.cpp:292:26 (libxul.so+0x1287f8a)
[task 2021-01-11T22:56:07.713Z] 22:56:07     INFO -  PID 18277 |     #4 non-virtual thunk to mozilla::net::nsHttpTransaction::Init(unsigned int, mozilla::net::nsHttpConnectionInfo*, mozilla::net::nsHttpRequestHead*, nsIInputStream*, unsigned long, bool, nsIEventTarget*, nsIInterfaceRequestor*, nsITransportEventSink*, unsigned long, mozilla::net::HttpTrafficCategory, nsIRequestContext*, unsigned int, unsigned int, bool, unsigned long, std::function<void (mozilla::net::TransactionObserverResult&&)>&&, std::function<nsresult (unsigned int, nsTSubstring<char> const&, nsTSubstring<char> const&, mozilla::net::HttpTransactionShell*)>&&, mozilla::net::HttpTransactionShell*, unsigned int) /builds/worker/checkouts/gecko/netwerk/protocol/http/nsHttpTransaction.cpp (libxul.so+0x1289349)
[task 2021-01-11T22:56:07.714Z] 22:56:07     INFO -  PID 18277 |     #5 mozilla::net::TRRServiceChannel::SetupTransaction() /builds/worker/checkouts/gecko/netwerk/protocol/http/TRRServiceChannel.cpp:684:22 (libxul.so+0x11f0939)
[task 2021-01-11T22:56:07.715Z] 22:56:07     INFO -  PID 18277 |     #6 mozilla::net::TRRServiceChannel::Connect() /builds/worker/checkouts/gecko/netwerk/protocol/http/TRRServiceChannel.cpp:542:17 (libxul.so+0x11efd7d)
[task 2021-01-11T22:56:07.715Z] 22:56:07     INFO -  PID 18277 |     #7 mozilla::net::TRRServiceChannel::ContinueOnBeforeConnect() /builds/worker/checkouts/gecko/netwerk/protocol/http/TRRServiceChannel.cpp:536:10 (libxul.so+0x11ef84c)
[task 2021-01-11T22:56:07.716Z] 22:56:07     INFO -  PID 18277 |     #8 mozilla::net::TRRServiceChannel::BeginConnect() /builds/worker/checkouts/gecko/netwerk/protocol/http/TRRServiceChannel.cpp:502:8 (libxul.so+0x11ee7a8)
[task 2021-01-11T22:56:07.717Z] 22:56:07     INFO -  PID 18277 |     #9 mozilla::net::TRRServiceChannel::OnProxyAvailable(nsICancelable*, nsIChannel*, nsIProxyInfo*, nsresult) /builds/worker/checkouts/gecko/netwerk/protocol/http/TRRServiceChannel.cpp:337:10 (libxul.so+0x11eecd9)
[task 2021-01-11T22:56:07.718Z] 22:56:07     INFO -  PID 18277 |     #10 operator() /builds/worker/checkouts/gecko/netwerk/protocol/http/TRRServiceChannel.cpp:308:40 (libxul.so+0x1270395)
[task 2021-01-11T22:56:07.718Z] 22:56:07     INFO -  PID 18277 |     #11 mozilla::detail::RunnableFunction<mozilla::net::TRRServiceChannel::OnProxyAvailable(nsICancelable*, nsIChannel*, nsIProxyInfo*, nsresult)::$_3>::Run() /builds/worker/workspace/obj-build/dist/include/nsThreadUtils.h:534:5 (libxul.so+0x1270395)
[task 2021-01-11T22:56:07.718Z] 22:56:07     INFO -  PID 18277 |     #12 nsThread::ProcessNextEvent(bool, bool*) /builds/worker/checkouts/gecko/xpcom/threads/nsThread.cpp:1200:14 (libxul.so+0xb8c4ac)
[task 2021-01-11T22:56:07.719Z] 22:56:07     INFO -  PID 18277 |     #13 NS_ProcessNextEvent(nsIThread*, bool) /builds/worker/checkouts/gecko/xpcom/threads/nsThreadUtils.cpp:548:10 (libxul.so+0xb91fe2)
[task 2021-01-11T22:56:07.720Z] 22:56:07     INFO -  PID 18277 |     #14 mozilla::ipc::MessagePumpForNonMainThreads::Run(base::MessagePump::Delegate*) /builds/worker/checkouts/gecko/ipc/glue/MessagePump.cpp:332:5 (libxul.so+0x148e9b8)
[task 2021-01-11T22:56:07.727Z] 22:56:07     INFO -  PID 18277 |     #15 RunInternal /builds/worker/checkouts/gecko/ipc/chromium/src/base/message_loop.cc:334:10 (libxul.so+0x141922c)
[task 2021-01-11T22:56:07.727Z] 22:56:07     INFO -  PID 18277 |     #16 RunHandler /builds/worker/checkouts/gecko/ipc/chromium/src/base/message_loop.cc:327:3 (libxul.so+0x141922c)
[task 2021-01-11T22:56:07.728Z] 22:56:07     INFO -  PID 18277 |     #17 MessageLoop::Run() /builds/worker/checkouts/gecko/ipc/chromium/src/base/message_loop.cc:309:3 (libxul.so+0x141922c)
[task 2021-01-11T22:56:07.728Z] 22:56:07     INFO -  PID 18277 |     #18 nsThread::ThreadFunc(void*) /builds/worker/checkouts/gecko/xpcom/threads/nsThread.cpp:441:10 (libxul.so+0xb888e0)
[task 2021-01-11T22:56:07.729Z] 22:56:07     INFO -  PID 18277 |     #19 _pt_root /builds/worker/checkouts/gecko/nsprpub/pr/src/pthreads/ptthread.c:201:5 (libnspr4.so+0x4524b)
[task 2021-01-11T22:56:07.729Z] 22:56:07     INFO -  PID 18277 |   Location is global 'gHttpActivityDistributor' of size 8 at 0x7faf9bab9d08 (libxul.so+0x00000b7b7d08)
[task 2021-01-11T22:56:07.730Z] 22:56:07     INFO -  PID 18277 |   Mutex M457251100324614704 is already destroyed.
[task 2021-01-11T22:56:07.730Z] 22:56:07     INFO -  PID 18277 |   Thread T11 'TRR Background' (tid=18289, running) created by main thread at:
[task 2021-01-11T22:56:07.731Z] 22:56:07     INFO -  PID 18277 |     #0 pthread_create /builds/worker/fetches/llvm-project/llvm/projects/compiler-rt/lib/tsan/rtl/tsan_interceptors_posix.cpp:966:3 (xpcshell+0x5662b)
[task 2021-01-11T22:56:07.732Z] 22:56:07     INFO -  PID 18277 |     #1 _PR_CreateThread /builds/worker/checkouts/gecko/nsprpub/pr/src/pthreads/ptthread.c:458:14 (libnspr4.so+0x3c3f3)
[task 2021-01-11T22:56:07.732Z] 22:56:07     INFO -  PID 18277 |     #2 PR_CreateThread /builds/worker/checkouts/gecko/nsprpub/pr/src/pthreads/ptthread.c:533:12 (libnspr4.so+0x30d15)
[task 2021-01-11T22:56:07.733Z] 22:56:07     INFO -  PID 18277 |     #3 nsThread::Init(nsTSubstring<char> const&) /builds/worker/checkouts/gecko/xpcom/threads/nsThread.cpp:658:8 (libxul.so+0xb89e2f)
[task 2021-01-11T22:56:07.734Z] 22:56:07     INFO -  PID 18277 |     #4 nsThreadManager::NewNamedThread(nsTSubstring<char> const&, unsigned int, nsIThread**) /builds/worker/checkouts/gecko/xpcom/threads/nsThreadManager.cpp:641:12 (libxul.so+0xb913da)
[task 2021-01-11T22:56:07.734Z] 22:56:07     INFO -  PID 18277 |     #5 NS_NewNamedThread(nsTSubstring<char> const&, nsIThread**, already_AddRefed<nsIRunnable>, unsigned int) /builds/worker/checkouts/gecko/xpcom/threads/nsThreadUtils.cpp:169:57 (libxul.so+0xb989a7)
[task 2021-01-11T22:56:07.735Z] 22:56:07     INFO -  PID 18277 |     #6 NS_NewNamedThread<15> /builds/worker/workspace/obj-build/dist/include/nsThreadUtils.h:85:10 (libxul.so+0xdc70b3)
[task 2021-01-11T22:56:07.735Z] 22:56:07     INFO -  PID 18277 |     #7 mozilla::net::TRRService::Init() /builds/worker/checkouts/gecko/netwerk/dns/TRRService.cpp:185:9 (libxul.so+0xdc70b3)
[task 2021-01-11T22:56:07.736Z] 22:56:07     INFO -  PID 18277 |     #8 nsDNSService::Init() /builds/worker/checkouts/gecko/netwerk/dns/nsDNSService2.cpp:813:7 (libxul.so+0xdd6416)
[task 2021-01-11T22:56:07.737Z] 22:56:07     INFO -  PID 18277 |     #9 nsDNSService::GetSingleton() /builds/worker/checkouts/gecko/netwerk/dns/nsDNSService2.cpp:660:9 (libxul.so+0xdd5e9b)
[task 2021-01-11T22:56:07.737Z] 22:56:07     INFO -  PID 18277 |     #10 nsDNSService::GetXPCOMSingleton() /builds/worker/checkouts/gecko/netwerk/dns/nsDNSService2.cpp (libxul.so+0xdd5c00)
[task 2021-01-11T22:56:07.738Z] 22:56:07     INFO -  PID 18277 |     #11 mozilla::xpcom::CreateInstanceImpl(mozilla::xpcom::ModuleID, nsISupports*, nsID const&, void**) /builds/worker/workspace/obj-build/xpcom/components/StaticComponents.cpp:11671:36 (libxul.so+0xb5320d)
[task 2021-01-11T22:56:07.739Z] 22:56:07     INFO -  PID 18277 |     #12 mozilla::xpcom::StaticModule::CreateInstance(nsISupports*, nsID const&, void**) const /builds/worker/workspace/obj-build/xpcom/components/StaticComponents.cpp:12264:10 (libxul.so+0xb4e693)
[task 2021-01-11T22:56:07.739Z] 22:56:07     INFO -  PID 18277 |     #13 CreateInstance /builds/worker/checkouts/gecko/xpcom/components/nsComponentManager.cpp:176:46 (libxul.so+0xb6527e)
[task 2021-01-11T22:56:07.740Z] 22:56:07     INFO -  PID 18277 |     #14 nsComponentManagerImpl::GetServiceLocked(mozilla::Maybe<mozilla::MonitorAutoLock>&, (anonymous namespace)::EntryWrapper&, nsID const&, void**) /builds/worker/checkouts/gecko/xpcom/components/nsComponentManager.cpp:1282:17 (libxul.so+0xb6527e)
[task 2021-01-11T22:56:07.740Z] 22:56:07     INFO -  PID 18277 |     #15 nsComponentManagerImpl::GetServiceByContractID(char const*, nsID const&, void**) /builds/worker/checkouts/gecko/xpcom/components/nsComponentManager.cpp:1471:10 (libxul.so+0xb65f07)
[task 2021-01-11T22:56:07.741Z] 22:56:07     INFO -  PID 18277 |     #16 CallGetService(char const*, nsID const&, void**) /builds/worker/checkouts/gecko/xpcom/components/nsComponentManagerUtils.cpp:61:43 (libxul.so+0xb6867d)
[task 2021-01-11T22:56:07.742Z] 22:56:07     INFO -  PID 18277 |     #17 xpc::CIGSHelper(JSContext*, unsigned int, JS::Value*, bool) /builds/worker/checkouts/gecko/js/xpconnect/src/XPCJSID.cpp:585:10 (libxul.so+0x1a4ad8d)
[task 2021-01-11T22:56:07.742Z] 22:56:07     INFO -  PID 18277 |     #18 xpc::CID_GetService(JSContext*, unsigned int, JS::Value*) /builds/worker/checkouts/gecko/js/xpconnect/src/XPCJSID.cpp:610:10 (libxul.so+0x1a4aa37)
[task 2021-01-11T22:56:07.743Z] 22:56:07     INFO -  PID 18277 |     #19 CallJSNative /builds/worker/checkouts/gecko/js/src/vm/Interpreter.cpp:503:13 (libxul.so+0x68754d9)
[task 2021-01-11T22:56:07.744Z] 22:56:07     INFO -  PID 18277 |     #20 js::InternalCallOrConstruct(JSContext*, JS::CallArgs const&, js::MaybeConstruct, js::CallReason) /builds/worker/checkouts/gecko/js/src/vm/Interpreter.cpp:594:12 (libxul.so+0x68754d9)
[task 2021-01-11T22:56:07.744Z] 22:56:07     INFO -  PID 18277 |     #21 InternalCall /builds/worker/checkouts/gecko/js/src/vm/Interpreter.cpp:647:10 (libxul.so+0x686aaae)
[task 2021-01-11T22:56:07.745Z] 22:56:07     INFO -  PID 18277 |     #22 CallFromStack /builds/worker/checkouts/gecko/js/src/vm/Interpreter.cpp:651:10 (libxul.so+0x686aaae)
[task 2021-01-11T22:56:07.745Z] 22:56:07     INFO -  PID 18277 |     #23 Interpret(JSContext*, js::RunState&) /builds/worker/checkouts/gecko/js/src/vm/Interpreter.cpp:3309:16 (libxul.so+0x686aaae)
[task 2021-01-11T22:56:07.746Z] 22:56:07     INFO -  PID 18277 |     #24 js::RunScript(JSContext*, js::RunState&) /builds/worker/checkouts/gecko/js/src/vm/Interpreter.cpp:473:13 (libxul.so+0x685d3dc)
[task 2021-01-11T22:56:07.747Z] 22:56:07     INFO -  PID 18277 |     #25 js::ExecuteKernel(JSContext*, JS::Handle<JSScript*>, JS::Handle<JSObject*>, JS::Handle<JS::Value>, js::AbstractFramePtr, JS::MutableHandle<JS::Value>) /builds/worker/checkouts/gecko/js/src/vm/Interpreter.cpp:839:13 (libxul.so+0x6877e8a)
[task 2021-01-11T22:56:07.747Z] 22:56:07     INFO -  PID 18277 |     #26 js::Execute(JSContext*, JS::Handle<JSScript*>, JS::Handle<JSObject*>, JS::MutableHandle<JS::Value>) /builds/worker/checkouts/gecko/js/src/vm/Interpreter.cpp:871:10 (libxul.so+0x687807b)
[task 2021-01-11T22:56:07.748Z] 22:56:07     INFO -  PID 18277 |     #27 ExecuteScript(JSContext*, JS::Handle<JSObject*>, JS::Handle<JSScript*>, JS::MutableHandle<JS::Value>) /builds/worker/checkouts/gecko/js/src/vm/CompilationAndEvaluation.cpp:424:10 (libxul.so+0x69b8045)
[task 2021-01-11T22:56:07.748Z] 22:56:07     INFO -  PID 18277 |     #28 JS_ExecuteScript(JSContext*, JS::Handle<JSScript*>) /builds/worker/checkouts/gecko/js/src/vm/CompilationAndEvaluation.cpp:457:10 (libxul.so+0x69b81c2)
[task 2021-01-11T22:56:07.749Z] 22:56:07     INFO -  PID 18277 |     #29 Load(JSContext*, unsigned int, JS::Value*) /builds/worker/checkouts/gecko/js/xpconnect/src/XPCShellImpl.cpp:385:12 (libxul.so+0x1a74715)
[task 2021-01-11T22:56:07.749Z] 22:56:07     INFO -  PID 18277 |     #30 CallJSNative /builds/worker/checkouts/gecko/js/src/vm/Interpreter.cpp:503:13 (libxul.so+0x68754d9)
[task 2021-01-11T22:56:07.750Z] 22:56:07     INFO -  PID 18277 |     #31 js::InternalCallOrConstruct(JSContext*, JS::CallArgs const&, js::MaybeConstruct, js::CallReason) /builds/worker/checkouts/gecko/js/src/vm/Interpreter.cpp:594:12 (libxul.so+0x68754d9)
[task 2021-01-11T22:56:07.750Z] 22:56:07     INFO -  PID 18277 |     #32 InternalCall /builds/worker/checkouts/gecko/js/src/vm/Interpreter.cpp:647:10 (libxul.so+0x686aaae)
[task 2021-01-11T22:56:07.751Z] 22:56:07     INFO -  PID 18277 |     #33 CallFromStack /builds/worker/checkouts/gecko/js/src/vm/Interpreter.cpp:651:10 (libxul.so+0x686aaae)
[task 2021-01-11T22:56:07.752Z] 22:56:07     INFO -  PID 18277 |     #34 Interpret(JSContext*, js::RunState&) /builds/worker/checkouts/gecko/js/src/vm/Interpreter.cpp:3309:16 (libxul.so+0x686aaae)
[task 2021-01-11T22:56:07.752Z] 22:56:07     INFO -  PID 18277 |     #35 js::RunScript(JSContext*, js::RunState&) /builds/worker/checkouts/gecko/js/src/vm/Interpreter.cpp:473:13 (libxul.so+0x685d3dc)
[task 2021-01-11T22:56:07.753Z] 22:56:07     INFO -  PID 18277 |     #36 js::InternalCallOrConstruct(JSContext*, JS::CallArgs const&, js::MaybeConstruct, js::CallReason) /builds/worker/checkouts/gecko/js/src/vm/Interpreter.cpp:619:13 (libxul.so+0x6875d70)
[task 2021-01-11T22:56:07.753Z] 22:56:07     INFO -  PID 18277 |     #37 InternalCall /builds/worker/checkouts/gecko/js/src/vm/Interpreter.cpp:647:10 (libxul.so+0x687675e)
[task 2021-01-11T22:56:07.754Z] 22:56:07     INFO -  PID 18277 |     #38 js::CallFromStack(JSContext*, JS::CallArgs const&) /builds/worker/checkouts/gecko/js/src/vm/Interpreter.cpp:651:10 (libxul.so+0x687675e)
[task 2021-01-11T22:56:07.754Z] 22:56:07     INFO -  PID 18277 |     #39 js::jit::DoCallFallback(JSContext*, js::jit::BaselineFrame*, js::jit::ICCall_Fallback*, unsigned int, JS::Value*, JS::MutableHandle<JS::Value>) /builds/worker/checkouts/gecko/js/src/jit/BaselineIC.cpp:1841:10 (libxul.so+0x707ca65)
[task 2021-01-11T22:56:07.755Z] 22:56:07     INFO -  PID 18277 |     #40 <null> <null> (0x7faf00263ad8)
[task 2021-01-11T22:56:07.756Z] 22:56:07     INFO -  PID 18277 |     #41 Interpret(JSContext*, js::RunState&) /builds/worker/checkouts/gecko/js/src/vm/Interpreter.cpp:3348:40 (libxul.so+0x686af5b)
[task 2021-01-11T22:56:07.756Z] 22:56:07     INFO -  PID 18277 |     #42 js::RunScript(JSContext*, js::RunState&) /builds/worker/checkouts/gecko/js/src/vm/Interpreter.cpp:473:13 (libxul.so+0x685d3dc)
[task 2021-01-11T22:56:07.757Z] 22:56:07     INFO -  PID 18277 |     #43 js::ExecuteKernel(JSContext*, JS::Handle<JSScript*>, JS::Handle<JSObject*>, JS::Handle<JS::Value>, js::AbstractFramePtr, JS::MutableHandle<JS::Value>) /builds/worker/checkouts/gecko/js/src/vm/Interpreter.cpp:839:13 (libxul.so+0x6877e8a)
[task 2021-01-11T22:56:07.758Z] 22:56:07     INFO -  PID 18277 |     #44 js::Execute(JSContext*, JS::Handle<JSScript*>, JS::Handle<JSObject*>, JS::MutableHandle<JS::Value>) /builds/worker/checkouts/gecko/js/src/vm/Interpreter.cpp:871:10 (libxul.so+0x687807b)
[task 2021-01-11T22:56:07.758Z] 22:56:07     INFO -  PID 18277 |     #45 EvaluateSourceBuffer<mozilla::Utf8Unit> /builds/worker/checkouts/gecko/js/src/vm/CompilationAndEvaluation.cpp:525:10 (libxul.so+0x69b8c54)
[task 2021-01-11T22:56:07.759Z] 22:56:07     INFO -  PID 18277 |     #46 JS::Evaluate(JSContext*, JS::ReadOnlyCompileOptions const&, JS::SourceText<mozilla::Utf8Unit>&, JS::MutableHandle<JS::Value>) /builds/worker/checkouts/gecko/js/src/vm/CompilationAndEvaluation.cpp:533:10 (libxul.so+0x69b8c54)
[task 2021-01-11T22:56:07.759Z] 22:56:07     INFO -  PID 18277 |     #47 ProcessArgs(mozilla::dom::AutoJSAPI&, char**, int, XPCShellDirProvider*) /builds/worker/checkouts/gecko/js/xpconnect/src/XPCShellImpl.cpp:961:11 (libxul.so+0x1a57211)
[task 2021-01-11T22:56:07.760Z] 22:56:07     INFO -  PID 18277 |     #48 XRE_XPCShellMain(int, char**, char**, XREShellData const*) /builds/worker/checkouts/gecko/js/xpconnect/src/XPCShellImpl.cpp:1347:14 (libxul.so+0x1a55c4b)
[task 2021-01-11T22:56:07.760Z] 22:56:07     INFO -  PID 18277 |     #49 mozilla::BootstrapImpl::XRE_XPCShellMain(int, char**, char**, XREShellData const*) /builds/worker/checkouts/gecko/toolkit/xre/Bootstrap.cpp:54:12 (libxul.so+0x674a1be)
[task 2021-01-11T22:56:07.761Z] 22:56:07     INFO -  PID 18277 |     #50 main /builds/worker/checkouts/gecko/js/xpconnect/shell/xpcshell.cpp:76:27 (xpcshell+0xc7400)
[task 2021-01-11T22:56:07.762Z] 22:56:07     INFO -  PID 18277 | SUMMARY: ThreadSanitizer: data race /builds/worker/workspace/obj-build/xpcom/build/Services.cpp:421:8 in XPCOMService_GetHttpActivityDistributor
[task 2021-01-11T22:56:07.762Z] 22:56:07     INFO -  PID 18277 | ==================
[task 2021-01-11T22:56:07.763Z] 22:56:07     INFO -  <<<<<<<

Looks like gHttpActivityDistributor needs to be atomic. Not sure how to do that.

Blocks: tsan
Group: core-security → dom-core-security

We should probably just wrap it in a StaticDataMutex.

Assignee: nobody → a.beingessner

Consensus seems to be to fix this via Bug 1686616

Assignee: a.beingessner → nobody
Depends on: 1686616

It looks like HttpActivityDistributor was converted more than a year ago. Kris, does this mean we can close this bug now? Thanks.

Flags: needinfo?(kmaglione+bmo)

Yes. Though it would probably be a good idea to get rid of the Services.cpp entry just to be safe...

Status: NEW → RESOLVED
Closed: 2 years ago
Flags: needinfo?(kmaglione+bmo)
Resolution: --- → FIXED
Group: dom-core-security → core-security-release
Group: core-security-release
You need to log in before you can comment on or make changes to this bug.