Closed Bug 1692120 Opened 1 year ago Closed 1 year ago

Intermittent SUMMARY: ThreadSanitizer: data race /builds/worker/checkouts/gecko/netwerk/base/nsSocketTransport2.cpp:2578:7 in GetSelfAddr

Categories

(Core :: Networking, defect, P1)

defect

Tracking

()

RESOLVED FIXED
87 Branch
Tracking Status
firefox-esr78 --- unaffected
firefox85 --- unaffected
firefox86 --- unaffected
firefox87 --- fixed

People

(Reporter: bogdan_tara, Assigned: kershaw)

References

(Blocks 1 open bug, Regression)

Details

(Keywords: csectype-race, regression, sec-moderate, Whiteboard: [necko-triaged][post-critsmash-triage])

Attachments

(1 file)

https://treeherder.mozilla.org/logviewer?job_id=329578004&repo=autoland&lineNumber=2587

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

[task 2021-02-11T02:30:53.610Z] 02:30:53     INFO - TEST-START | dom/media/mediacontrol/tests/browser/browser_media_control_non_eligible_media.js
[task 2021-02-11T02:30:57.173Z] 02:30:57     INFO -  JavaScript error: /builds/worker/workspace/build/tests/bin/components/httpd.js, line 2963: NS_ERROR_UNEXPECTED: Component returned failure code: 0x8000ffff (NS_ERROR_UNEXPECTED) [nsIBinaryOutputStream.writeByteArray]
[task 2021-02-11T02:31:14.161Z] 02:31:14     INFO - GECKO(1900) | JavaScript error: resource://gre/actors/AudioPlaybackParent.jsm, line 20: TypeError: can't access property "audioPlaybackStarted", browser is null
[task 2021-02-11T02:31:18.281Z] 02:31:18     INFO -  JavaScript error: /builds/worker/workspace/build/tests/bin/components/httpd.js, line 2963: NS_ERROR_UNEXPECTED: Component returned failure code: 0x8000ffff (NS_ERROR_UNEXPECTED) [nsIBinaryOutputStream.writeByteArray]
[task 2021-02-11T02:31:18.591Z] 02:31:18     INFO -  JavaScript error: /builds/worker/workspace/build/tests/bin/components/httpd.js, line 2963: NS_ERROR_UNEXPECTED: Component returned failure code: 0x8000ffff (NS_ERROR_UNEXPECTED) [nsIBinaryOutputStream.writeByteArray]
[task 2021-02-11T02:31:20.278Z] 02:31:20     INFO - GECKO(1900) | JavaScript error: resource://gre/actors/AudioPlaybackParent.jsm, line 20: TypeError: can't access property "audioPlaybackStarted", browser is null
[task 2021-02-11T02:31:34.136Z] 02:31:34     INFO -  JavaScript error: /builds/worker/workspace/build/tests/bin/components/httpd.js, line 2963: NS_ERROR_UNEXPECTED: Component returned failure code: 0x8000ffff (NS_ERROR_UNEXPECTED) [nsIBinaryOutputStream.writeByteArray]
[task 2021-02-11T02:31:40.136Z] 02:31:40     INFO - GECKO(1900) | JavaScript error: resource://gre/actors/AudioPlaybackParent.jsm, line 24: TypeError: can't access property "audioPlaybackStopped", browser is null
[task 2021-02-11T02:31:45.486Z] 02:31:45     INFO - GECKO(1900) | ==================
[task 2021-02-11T02:31:45.486Z] 02:31:45     INFO - GECKO(1900) | WARNING: ThreadSanitizer: data race (pid=1900)
[task 2021-02-11T02:31:45.486Z] 02:31:45     INFO - GECKO(1900) |   Read of size 4 at 0x7b5c00205908 by main thread:
[task 2021-02-11T02:31:45.486Z] 02:31:45     INFO - GECKO(1900) |     #0 GetSelfAddr /builds/worker/checkouts/gecko/netwerk/base/nsSocketTransport2.cpp:2578:7 (libxul.so+0xd5e28c)
[task 2021-02-11T02:31:45.486Z] 02:31:45     INFO - GECKO(1900) |     #1 non-virtual thunk to mozilla::net::nsSocketTransport::GetSelfAddr(mozilla::net::NetAddr*) /builds/worker/checkouts/gecko/netwerk/base/nsSocketTransport2.cpp (libxul.so+0xd5e28c)
[task 2021-02-11T02:31:45.486Z] 02:31:45     INFO - GECKO(1900) |     #2 mozilla::net::nsHttpChannel::OnTransportStatus(nsITransport*, nsresult, long, long) /builds/worker/checkouts/gecko/netwerk/protocol/http/nsHttpChannel.cpp:8360:26 (libxul.so+0x127b0b4)
[task 2021-02-11T02:31:45.486Z] 02:31:45     INFO - GECKO(1900) |     #3 non-virtual thunk to mozilla::net::nsHttpChannel::OnTransportStatus(nsITransport*, nsresult, long, long) /builds/worker/checkouts/gecko/netwerk/protocol/http/nsHttpChannel.cpp (libxul.so+0x127c03b)
[task 2021-02-11T02:31:45.486Z] 02:31:45     INFO - GECKO(1900) |     #4 nsTransportStatusEvent::Run() /builds/worker/checkouts/gecko/netwerk/base/nsTransportUtils.cpp:68:20 (libxul.so+0xd96a30)
[task 2021-02-11T02:31:45.486Z] 02:31:45     INFO - GECKO(1900) |     #5 mozilla::RunnableTask::Run() /builds/worker/checkouts/gecko/xpcom/threads/TaskController.cpp:472:16 (libxul.so+0xba7fc2)
[task 2021-02-11T02:31:45.486Z] 02:31:45     INFO - GECKO(1900) |     #6 mozilla::TaskController::DoExecuteNextTaskOnlyMainThreadInternal(mozilla::detail::BaseAutoLock<mozilla::Mutex&> const&) /builds/worker/checkouts/gecko/xpcom/threads/TaskController.cpp:753:26 (libxul.so+0xba5ec8)
[task 2021-02-11T02:31:45.486Z] 02:31:45     INFO - GECKO(1900) |     #7 mozilla::TaskController::ExecuteNextTaskOnlyMainThreadInternal(mozilla::detail::BaseAutoLock<mozilla::Mutex&> const&) /builds/worker/checkouts/gecko/xpcom/threads/TaskController.cpp:611:15 (libxul.so+0xba4846)
[task 2021-02-11T02:31:45.486Z] 02:31:45     INFO - GECKO(1900) |     #8 mozilla::TaskController::ProcessPendingMTTask(bool) /builds/worker/checkouts/gecko/xpcom/threads/TaskController.cpp:395:36 (libxul.so+0xba4ae4)
[task 2021-02-11T02:31:45.489Z] 02:31:45     INFO - GECKO(1900) |     #9 operator() /builds/worker/checkouts/gecko/xpcom/threads/TaskController.cpp:133:37 (libxul.so+0xbaafb7)
[task 2021-02-11T02:31:45.489Z] 02:31:45     INFO - GECKO(1900) |     #10 mozilla::detail::RunnableFunction<mozilla::TaskController::InitializeInternal()::$_3>::Run() /builds/worker/checkouts/gecko/xpcom/threads/nsThreadUtils.h:534:5 (libxul.so+0xbaafb7)
[task 2021-02-11T02:31:45.489Z] 02:31:45     INFO - GECKO(1900) |     #11 nsThread::ProcessNextEvent(bool, bool*) /builds/worker/checkouts/gecko/xpcom/threads/nsThread.cpp:1158:16 (libxul.so+0xbbbe36)
[task 2021-02-11T02:31:45.489Z] 02:31:45     INFO - GECKO(1900) |     #12 NS_ProcessNextEvent(nsIThread*, bool) /builds/worker/checkouts/gecko/xpcom/threads/nsThreadUtils.cpp:548:10 (libxul.so+0xbc1e52)
[task 2021-02-11T02:31:45.489Z] 02:31:45     INFO - GECKO(1900) |     #13 mozilla::ipc::MessagePump::Run(base::MessagePump::Delegate*) /builds/worker/checkouts/gecko/ipc/glue/MessagePump.cpp:87:21 (libxul.so+0x14b67ed)
[task 2021-02-11T02:31:45.489Z] 02:31:45     INFO - GECKO(1900) |     #14 RunInternal /builds/worker/checkouts/gecko/ipc/chromium/src/base/message_loop.cc:335:10 (libxul.so+0x144159c)
[task 2021-02-11T02:31:45.489Z] 02:31:45     INFO - GECKO(1900) |     #15 RunHandler /builds/worker/checkouts/gecko/ipc/chromium/src/base/message_loop.cc:328:3 (libxul.so+0x144159c)
[task 2021-02-11T02:31:45.489Z] 02:31:45     INFO - GECKO(1900) |     #16 MessageLoop::Run() /builds/worker/checkouts/gecko/ipc/chromium/src/base/message_loop.cc:310:3 (libxul.so+0x144159c)
[task 2021-02-11T02:31:45.489Z] 02:31:45     INFO - GECKO(1900) |     #17 nsBaseAppShell::Run() /builds/worker/checkouts/gecko/widget/nsBaseAppShell.cpp:137:27 (libxul.so+0x4b80906)
[task 2021-02-11T02:31:45.489Z] 02:31:45     INFO - GECKO(1900) |     #18 nsAppStartup::Run() /builds/worker/checkouts/gecko/toolkit/components/startup/nsAppStartup.cpp:271:30 (libxul.so+0x66f53c8)
[task 2021-02-11T02:31:45.491Z] 02:31:45     INFO - GECKO(1900) |     #19 XREMain::XRE_mainRun() /builds/worker/checkouts/gecko/toolkit/xre/nsAppRunner.cpp:5246:22 (libxul.so+0x680fcbf)
[task 2021-02-11T02:31:45.491Z] 02:31:45     INFO - GECKO(1900) |     #20 XREMain::XRE_main(int, char**, mozilla::BootstrapConfig const&) /builds/worker/checkouts/gecko/toolkit/xre/nsAppRunner.cpp:5438:8 (libxul.so+0x6810be8)
[task 2021-02-11T02:31:45.491Z] 02:31:45     INFO - GECKO(1900) |     #21 XRE_main(int, char**, mozilla::BootstrapConfig const&) /builds/worker/checkouts/gecko/toolkit/xre/nsAppRunner.cpp:5501:21 (libxul.so+0x6811064)
[task 2021-02-11T02:31:45.491Z] 02:31:45     INFO - GECKO(1900) |     #22 mozilla::BootstrapImpl::XRE_main(int, char**, mozilla::BootstrapConfig const&) /builds/worker/checkouts/gecko/toolkit/xre/Bootstrap.cpp:45:12 (libxul.so+0x681b702)
[task 2021-02-11T02:31:45.491Z] 02:31:45     INFO - GECKO(1900) |     #23 do_main /builds/worker/checkouts/gecko/browser/app/nsBrowserApp.cpp:220:22 (firefox+0xc7c70)
[task 2021-02-11T02:31:45.493Z] 02:31:45     INFO - GECKO(1900) |     #24 main /builds/worker/checkouts/gecko/browser/app/nsBrowserApp.cpp:344:16 (firefox+0xc7c70)
[task 2021-02-11T02:31:45.493Z] 02:31:45     INFO - GECKO(1900) |   Previous write of size 4 at 0x7b5c00205908 by thread T6:
[task 2021-02-11T02:31:45.494Z] 02:31:45     INFO - GECKO(1900) |     #0 OnMsgInputClosed /builds/worker/checkouts/gecko/netwerk/base/nsSocketTransport2.cpp:1820:16 (libxul.so+0xd5325f)
[task 2021-02-11T02:31:45.494Z] 02:31:45     INFO - GECKO(1900) |     #1 mozilla::net::nsSocketTransport::OnInputClosed(nsresult) /builds/worker/checkouts/gecko/netwerk/base/nsSocketTransport2.h:406:7 (libxul.so+0xd5325f)
[task 2021-02-11T02:31:45.494Z] 02:31:45     INFO - GECKO(1900) |     #2 mozilla::net::nsSocketInputStream::CloseWithStatus(nsresult) /builds/worker/checkouts/gecko/netwerk/base/nsSocketTransport2.cpp:443:34 (libxul.so+0xd539f9)
[task 2021-02-11T02:31:45.494Z] 02:31:45     INFO - GECKO(1900) |     #3 mozilla::net::nsSocketInputStream::Close() /builds/worker/checkouts/gecko/netwerk/base/nsSocketTransport2.cpp:306:39 (libxul.so+0xd529a3)
[task 2021-02-11T02:31:45.494Z] 02:31:45     INFO - GECKO(1900) |     #4 mozilla::net::nsSocketInputStream::Release() /builds/worker/checkouts/gecko/netwerk/base/nsSocketTransport2.cpp:301:29 (libxul.so+0xd5287f)
[task 2021-02-11T02:31:45.495Z] 02:31:45     INFO - GECKO(1900) |     #5 assign_assuming_AddRef /builds/worker/workspace/obj-build/dist/include/nsCOMPtr.h:377:7 (libxul.so+0x114f73a)
[task 2021-02-11T02:31:45.495Z] 02:31:45     INFO - GECKO(1900) |     #6 assign_assuming_AddRef /builds/worker/workspace/obj-build/dist/include/nsCOMPtr.h:400:20 (libxul.so+0x114f73a)
[task 2021-02-11T02:31:45.495Z] 02:31:45     INFO - GECKO(1900) |     #7 operator= /builds/worker/workspace/obj-build/dist/include/nsCOMPtr.h:696:5 (libxul.so+0x114f73a)
[task 2021-02-11T02:31:45.496Z] 02:31:45     INFO - GECKO(1900) |     #8 mozilla::net::HalfOpenSocket::Abandon() /builds/worker/checkouts/gecko/netwerk/protocol/http/HalfOpenSocket.cpp:399:15 (libxul.so+0x114f73a)
[task 2021-02-11T02:31:45.496Z] 02:31:45     INFO - GECKO(1900) |     #9 mozilla::net::PendingTransactionInfo::AbandonHalfOpenAndForgetActiveConn() /builds/worker/checkouts/gecko/netwerk/protocol/http/PendingTransactionInfo.cpp:103:11 (libxul.so+0x121147f)
[task 2021-02-11T02:31:45.497Z] 02:31:45     INFO - GECKO(1900) |     #10 mozilla::net::ConnectionEntry::RemoveTransFromPendingQ(mozilla::net::nsHttpTransaction*) /builds/worker/checkouts/gecko/netwerk/protocol/http/ConnectionEntry.cpp:888:21 (libxul.so+0x1152616)
[task 2021-02-11T02:31:45.497Z] 02:31:45     INFO - GECKO(1900) |     #11 mozilla::net::nsHttpConnectionMgr::OnMsgCancelTransaction(int, mozilla::net::ARefBase*) /builds/worker/checkouts/gecko/netwerk/protocol/http/nsHttpConnectionMgr.cpp:2070:21 (libxul.so+0x1295c75)
[task 2021-02-11T02:31:45.497Z] 02:31:45     INFO - GECKO(1900) |     #12 operator()<int &, RefPtr<mozilla::net::ARefBase> &> /builds/worker/workspace/obj-build/dist/include/mozilla/RefPtr.h:330:14 (libxul.so+0x12a69f2)
[task 2021-02-11T02:31:45.505Z] 02:31:45     INFO - GECKO(1900) |     #13 mozilla::net::ConnEvent::Run() /builds/worker/checkouts/gecko/netwerk/protocol/http/nsHttpConnectionMgr.cpp:203:5 (libxul.so+0x12a69f2)
[task 2021-02-11T02:31:45.506Z] 02:31:45     INFO - GECKO(1900) |     #14 nsThread::ProcessNextEvent(bool, bool*) /builds/worker/checkouts/gecko/xpcom/threads/nsThread.cpp:1152:16 (libxul.so+0xbbc10b)
[task 2021-02-11T02:31:45.506Z] 02:31:45     INFO - GECKO(1900) |     #15 NS_ProcessNextEvent(nsIThread*, bool) /builds/worker/checkouts/gecko/xpcom/threads/nsThreadUtils.cpp:548:10 (libxul.so+0xbc1e52)
[task 2021-02-11T02:31:45.506Z] 02:31:45     INFO - GECKO(1900) |     #16 mozilla::net::nsSocketTransportService::Run() /builds/worker/checkouts/gecko/netwerk/base/nsSocketTransportService2.cpp:1196:11 (libxul.so+0xd66c47)
[task 2021-02-11T02:31:45.506Z] 02:31:45     INFO - GECKO(1900) |     #17 non-virtual thunk to mozilla::net::nsSocketTransportService::Run() /builds/worker/checkouts/gecko/netwerk/base/nsSocketTransportService2.cpp (libxul.so+0xd68109)
[task 2021-02-11T02:31:45.506Z] 02:31:45     INFO - GECKO(1900) |     #18 nsThread::ProcessNextEvent(bool, bool*) /builds/worker/checkouts/gecko/xpcom/threads/nsThread.cpp:1152:16 (libxul.so+0xbbc10b)
[task 2021-02-11T02:31:45.507Z] 02:31:45     INFO - GECKO(1900) |     #19 NS_ProcessNextEvent(nsIThread*, bool) /builds/worker/checkouts/gecko/xpcom/threads/nsThreadUtils.cpp:548:10 (libxul.so+0xbc1e52)
[task 2021-02-11T02:31:45.507Z] 02:31:45     INFO - GECKO(1900) |     #20 mozilla::ipc::MessagePumpForNonMainThreads::Run(base::MessagePump::Delegate*) /builds/worker/checkouts/gecko/ipc/glue/MessagePump.cpp:302:20 (libxul.so+0x14b737e)
[task 2021-02-11T02:31:45.507Z] 02:31:45     INFO - GECKO(1900) |     #21 RunInternal /builds/worker/checkouts/gecko/ipc/chromium/src/base/message_loop.cc:335:10 (libxul.so+0x144159c)
[task 2021-02-11T02:31:45.507Z] 02:31:45     INFO - GECKO(1900) |     #22 RunHandler /builds/worker/checkouts/gecko/ipc/chromium/src/base/message_loop.cc:328:3 (libxul.so+0x144159c)
[task 2021-02-11T02:31:45.507Z] 02:31:45     INFO - GECKO(1900) |     #23 MessageLoop::Run() /builds/worker/checkouts/gecko/ipc/chromium/src/base/message_loop.cc:310:3 (libxul.so+0x144159c)
[task 2021-02-11T02:31:45.509Z] 02:31:45     INFO - GECKO(1900) |     #24 nsThread::ThreadFunc(void*) /builds/worker/checkouts/gecko/xpcom/threads/nsThread.cpp:391:10 (libxul.so+0xbb85c8)
[task 2021-02-11T02:31:45.509Z] 02:31:45     INFO - GECKO(1900) |     #25 _pt_root /builds/worker/checkouts/gecko/nsprpub/pr/src/pthreads/ptthread.c:201:5 (libnspr4.so+0x4524b)
[task 2021-02-11T02:31:45.510Z] 02:31:45     INFO - GECKO(1900) |   Location is heap block of size 776 at 0x7b5c00205900 allocated by thread T6:
[task 2021-02-11T02:31:45.513Z] 02:31:45     INFO - GECKO(1900) |     #0 malloc /builds/worker/fetches/llvm-project/llvm/projects/compiler-rt/lib/tsan/rtl/tsan_interceptors_posix.cpp:652:5 (firefox+0x54e5c)
[task 2021-02-11T02:31:45.514Z] 02:31:45     INFO - GECKO(1900) |     #1 moz_xmalloc /builds/worker/checkouts/gecko/memory/mozalloc/mozalloc.cpp:52:15 (firefox+0xc9b1b)
[task 2021-02-11T02:31:45.514Z] 02:31:45     INFO - GECKO(1900) |     #2 operator new /builds/worker/workspace/obj-build/dist/include/mozilla/cxxalloc.h:33:10 (libxul.so+0xd65f49)
[task 2021-02-11T02:31:45.515Z] 02:31:45     INFO - GECKO(1900) |     #3 mozilla::net::nsSocketTransportService::CreateRoutedTransport(nsTArray<nsTString<char> > const&, nsTSubstring<char> const&, int, nsTSubstring<char> const&, int, nsIProxyInfo*, nsISocketTransport**) /builds/worker/checkouts/gecko/netwerk/base/nsSocketTransportService2.cpp:959:37 (libxul.so+0xd65f49)
[task 2021-02-11T02:31:45.515Z] 02:31:45     INFO - GECKO(1900) |     #4 mozilla::net::HalfOpenSocket::SetupStreams(nsISocketTransport**, nsIAsyncInputStream**, nsIAsyncOutputStream**, bool) /builds/worker/checkouts/gecko/netwerk/protocol/http/HalfOpenSocket.cpp:127:21 (libxul.so+0x1154f68)
[task 2021-02-11T02:31:45.516Z] 02:31:45     INFO - GECKO(1900) |     #5 mozilla::net::HalfOpenSocket::SetupPrimaryStreams() /builds/worker/checkouts/gecko/netwerk/protocol/http/HalfOpenSocket.cpp:288:8 (libxul.so+0x1155e55)
[task 2021-02-11T02:31:45.516Z] 02:31:45     INFO - GECKO(1900) |     #6 mozilla::net::nsHttpConnectionMgr::CreateTransport(mozilla::net::ConnectionEntry*, mozilla::net::nsAHttpTransaction*, unsigned int, bool, bool, bool, bool, mozilla::net::PendingTransactionInfo*) /builds/worker/checkouts/gecko/netwerk/protocol/http/nsHttpConnectionMgr.cpp:1734:23 (libxul.so+0x129c30c)
[task 2021-02-11T02:31:45.517Z] 02:31:45     INFO - GECKO(1900) |     #7 mozilla::net::nsHttpConnectionMgr::MakeNewConnection(mozilla::net::ConnectionEntry*, mozilla::net::PendingTransactionInfo*) /builds/worker/checkouts/gecko/netwerk/protocol/http/nsHttpConnectionMgr.cpp:1235:7 (libxul.so+0x129c0ac)
[task 2021-02-11T02:31:45.517Z] 02:31:45     INFO - GECKO(1900) |     #8 mozilla::net::nsHttpConnectionMgr::TryDispatchTransaction(mozilla::net::ConnectionEntry*, bool, mozilla::net::PendingTransactionInfo*) /builds/worker/checkouts/gecko/netwerk/protocol/http/nsHttpConnectionMgr.cpp:1397:19 (libxul.so+0x129a1ac)
[task 2021-02-11T02:31:45.522Z] 02:31:45     INFO - GECKO(1900) |     #9 mozilla::net::nsHttpConnectionMgr::ProcessNewTransaction(mozilla::net::nsHttpTransaction*) /builds/worker/checkouts/gecko/netwerk/protocol/http/nsHttpConnectionMgr.cpp:1671:10 (libxul.so+0x129d23c)
[task 2021-02-11T02:31:45.523Z] 02:31:45     INFO - GECKO(1900) |     #10 mozilla::net::nsHttpConnectionMgr::OnMsgNewTransaction(int, mozilla::net::ARefBase*) /builds/worker/checkouts/gecko/netwerk/protocol/http/nsHttpConnectionMgr.cpp:1974:17 (libxul.so+0x129507e)
[task 2021-02-11T02:31:45.524Z] 02:31:45     INFO - GECKO(1900) |     #11 operator()<int &, RefPtr<mozilla::net::ARefBase> &> /builds/worker/workspace/obj-build/dist/include/mozilla/RefPtr.h:330:14 (libxul.so+0x12a69f2)
[task 2021-02-11T02:31:45.524Z] 02:31:45     INFO - GECKO(1900) |     #12 mozilla::net::ConnEvent::Run() /builds/worker/checkouts/gecko/netwerk/protocol/http/nsHttpConnectionMgr.cpp:203:5 (libxul.so+0x12a69f2)
[task 2021-02-11T02:31:45.525Z] 02:31:45     INFO - GECKO(1900) |     #13 nsThread::ProcessNextEvent(bool, bool*) /builds/worker/checkouts/gecko/xpcom/threads/nsThread.cpp:1152:16 (libxul.so+0xbbc10b)
[task 2021-02-11T02:31:45.525Z] 02:31:45     INFO - GECKO(1900) |     #14 NS_ProcessNextEvent(nsIThread*, bool) /builds/worker/checkouts/gecko/xpcom/threads/nsThreadUtils.cpp:548:10 (libxul.so+0xbc1e52)
[task 2021-02-11T02:31:45.527Z] 02:31:45     INFO - GECKO(1900) |     #15 mozilla::net::nsSocketTransportService::Run() /builds/worker/checkouts/gecko/netwerk/base/nsSocketTransportService2.cpp:1196:11 (libxul.so+0xd66c47)
[task 2021-02-11T02:31:45.527Z] 02:31:45     INFO - GECKO(1900) |     #16 non-virtual thunk to mozilla::net::nsSocketTransportService::Run() /builds/worker/checkouts/gecko/netwerk/base/nsSocketTransportService2.cpp (libxul.so+0xd68109)
[task 2021-02-11T02:31:45.528Z] 02:31:45     INFO - GECKO(1900) |     #17 nsThread::ProcessNextEvent(bool, bool*) /builds/worker/checkouts/gecko/xpcom/threads/nsThread.cpp:1152:16 (libxul.so+0xbbc10b)
[task 2021-02-11T02:31:45.528Z] 02:31:45     INFO - GECKO(1900) |     #18 NS_ProcessNextEvent(nsIThread*, bool) /builds/worker/checkouts/gecko/xpcom/threads/nsThreadUtils.cpp:548:10 (libxul.so+0xbc1e52)
[task 2021-02-11T02:31:45.529Z] 02:31:45     INFO - GECKO(1900) |     #19 mozilla::ipc::MessagePumpForNonMainThreads::Run(base::MessagePump::Delegate*) /builds/worker/checkouts/gecko/ipc/glue/MessagePump.cpp:302:20 (libxul.so+0x14b737e)
[task 2021-02-11T02:31:45.529Z] 02:31:45     INFO - GECKO(1900) |     #20 RunInternal /builds/worker/checkouts/gecko/ipc/chromium/src/base/message_loop.cc:335:10 (libxul.so+0x144159c)
[task 2021-02-11T02:31:45.530Z] 02:31:45     INFO - GECKO(1900) |     #21 RunHandler /builds/worker/checkouts/gecko/ipc/chromium/src/base/message_loop.cc:328:3 (libxul.so+0x144159c)
[task 2021-02-11T02:31:45.530Z] 02:31:45     INFO - GECKO(1900) |     #22 MessageLoop::Run() /builds/worker/checkouts/gecko/ipc/chromium/src/base/message_loop.cc:310:3 (libxul.so+0x144159c)
[task 2021-02-11T02:31:45.530Z] 02:31:45     INFO - GECKO(1900) |     #23 nsThread::ThreadFunc(void*) /builds/worker/checkouts/gecko/xpcom/threads/nsThread.cpp:391:10 (libxul.so+0xbb85c8)
[task 2021-02-11T02:31:45.530Z] 02:31:45     INFO - GECKO(1900) |     #24 _pt_root /builds/worker/checkouts/gecko/nsprpub/pr/src/pthreads/ptthread.c:201:5 (libnspr4.so+0x4524b)
[task 2021-02-11T02:31:45.531Z] 02:31:45     INFO - GECKO(1900) |   Thread T6 'Socket Thread' (tid=1912, running) created by main thread at:
[task 2021-02-11T02:31:45.531Z] 02:31:45     INFO - GECKO(1900) |     #0 pthread_create /builds/worker/fetches/llvm-project/llvm/projects/compiler-rt/lib/tsan/rtl/tsan_interceptors_posix.cpp:966:3 (firefox+0x5668b)
[task 2021-02-11T02:31:45.532Z] 02:31:45     INFO - GECKO(1900) |     #1 _PR_CreateThread /builds/worker/checkouts/gecko/nsprpub/pr/src/pthreads/ptthread.c:458:14 (libnspr4.so+0x3c3f3)
[task 2021-02-11T02:31:45.532Z] 02:31:45     INFO - GECKO(1900) |     #2 PR_CreateThread /builds/worker/checkouts/gecko/nsprpub/pr/src/pthreads/ptthread.c:533:12 (libnspr4.so+0x30d15)
[task 2021-02-11T02:31:45.532Z] 02:31:45     INFO - GECKO(1900) |     #3 nsThread::Init(nsTSubstring<char> const&) /builds/worker/checkouts/gecko/xpcom/threads/nsThread.cpp:609:18 (libxul.so+0xbb9ab8)
[task 2021-02-11T02:31:45.533Z] 02:31:45     INFO - GECKO(1900) |     #4 nsThreadManager::NewNamedThread(nsTSubstring<char> const&, unsigned int, nsIThread**) /builds/worker/checkouts/gecko/xpcom/threads/nsThreadManager.cpp:641:12 (libxul.so+0xbc124a)
[task 2021-02-11T02:31:45.534Z] 02:31:45     INFO - GECKO(1900) |     #5 NS_NewNamedThread(nsTSubstring<char> const&, nsIThread**, already_AddRefed<nsIRunnable>, unsigned int) /builds/worker/checkouts/gecko/xpcom/threads/nsThreadUtils.cpp:169:57 (libxul.so+0xbc8837)
[task 2021-02-11T02:31:45.534Z] 02:31:45     INFO - GECKO(1900) |     #6 NS_NewNamedThread<14> /builds/worker/workspace/obj-build/dist/include/nsThreadUtils.h:85:10 (libxul.so+0xd6535f)
[task 2021-02-11T02:31:45.534Z] 02:31:45     INFO - GECKO(1900) |     #7 mozilla::net::nsSocketTransportService::Init() /builds/worker/checkouts/gecko/netwerk/base/nsSocketTransportService2.cpp:769:7 (libxul.so+0xd6535f)
[task 2021-02-11T02:31:45.535Z] 02:31:45     INFO - GECKO(1900) |     #8 mozilla::xpcom::CreateInstanceImpl(mozilla::xpcom::ModuleID, nsISupports*, nsID const&, void**) /builds/worker/workspace/obj-build/xpcom/components/StaticComponents.cpp:9157:7 (libxul.so+0xb830ac)
[task 2021-02-11T02:31:45.536Z] 02:31:45     INFO - GECKO(1900) |     #9 mozilla::xpcom::StaticModule::CreateInstance(nsISupports*, nsID const&, void**) const /builds/worker/workspace/obj-build/xpcom/components/StaticComponents.cpp:12363:10 (libxul.so+0xb7cca3)
[task 2021-02-11T02:31:45.536Z] 02:31:45     INFO - GECKO(1900) |     #10 CreateInstance /builds/worker/checkouts/gecko/xpcom/components/nsComponentManager.cpp:176:46 (libxul.so+0xb94371)
[task 2021-02-11T02:31:45.536Z] 02:31:45     INFO - GECKO(1900) |     #11 nsComponentManagerImpl::GetServiceLocked(mozilla::Maybe<mozilla::MonitorAutoLock>&, (anonymous namespace)::EntryWrapper&, nsID const&, void**) /builds/worker/checkouts/gecko/xpcom/components/nsComponentManager.cpp:1283:17 (libxul.so+0xb94371)
[task 2021-02-11T02:31:45.537Z] 02:31:45     INFO - GECKO(1900) |     #12 nsComponentManagerImpl::GetServiceByContractID(char const*, nsID const&, void**) /builds/worker/checkouts/gecko/xpcom/components/nsComponentManager.cpp:1472:10 (libxul.so+0xb94ff7)
[task 2021-02-11T02:31:45.538Z] 02:31:45     INFO - GECKO(1900) |     #13 CallGetService /builds/worker/checkouts/gecko/xpcom/components/nsComponentManagerUtils.cpp:61:43 (libxul.so+0xb97d8d)
[task 2021-02-11T02:31:45.538Z] 02:31:45     INFO - GECKO(1900) |     #14 nsGetServiceByContractIDWithError::operator()(nsID const&, void**) const /builds/worker/checkouts/gecko/xpcom/components/nsComponentManagerUtils.cpp:253:21 (libxul.so+0xb97d8d)
[task 2021-02-11T02:31:45.539Z] 02:31:45     INFO - GECKO(1900) |     #15 nsCOMPtr_base::assign_from_gs_contractid_with_error(nsGetServiceByContractIDWithError const&, nsID const&) /builds/worker/checkouts/gecko/xpcom/base/nsCOMPtr.cpp:91:7 (libxul.so+0xad6237)
[task 2021-02-11T02:31:45.539Z] 02:31:45     INFO - GECKO(1900) |     #16 operator= /builds/worker/workspace/obj-build/dist/include/nsCOMPtr.h:774:5 (libxul.so+0xd0ad11)
[task 2021-02-11T02:31:45.539Z] 02:31:45     INFO - GECKO(1900) |     #17 InitializeSocketTransportService /builds/worker/checkouts/gecko/netwerk/base/nsIOService.cpp:436:29 (libxul.so+0xd0ad11)
[task 2021-02-11T02:31:45.540Z] 02:31:45     INFO - GECKO(1900) |     #18 mozilla::net::nsIOService::SetOffline(bool) /builds/worker/checkouts/gecko/netwerk/base/nsIOService.cpp:1306:7 (libxul.so+0xd0ad11)
[task 2021-02-11T02:31:45.541Z] 02:31:45     INFO - GECKO(1900) |     #19 mozilla::net::nsIOService::Init() /builds/worker/checkouts/gecko/netwerk/base/nsIOService.cpp:319:3 (libxul.so+0xd09fae)
[task 2021-02-11T02:31:45.541Z] 02:31:45     INFO - GECKO(1900) |     #20 mozilla::net::nsIOService::GetInstance() /builds/worker/checkouts/gecko/netwerk/base/nsIOService.cpp:493:9 (libxul.so+0xd0bad1)
[task 2021-02-11T02:31:45.541Z] 02:31:45     INFO - GECKO(1900) |     #21 mozilla::xpcom::CreateInstanceImpl(mozilla::xpcom::ModuleID, nsISupports*, nsID const&, void**) /builds/worker/workspace/obj-build/xpcom/components/StaticComponents.cpp:12082:48 (libxul.so+0xb8245f)
[task 2021-02-11T02:31:45.542Z] 02:31:45     INFO - GECKO(1900) |     #22 mozilla::xpcom::StaticModule::CreateInstance(nsISupports*, nsID const&, void**) const /builds/worker/workspace/obj-build/xpcom/components/StaticComponents.cpp:12363:10 (libxul.so+0xb7cca3)
[task 2021-02-11T02:31:45.542Z] 02:31:45     INFO - GECKO(1900) |     #23 CreateInstance /builds/worker/checkouts/gecko/xpcom/components/nsComponentManager.cpp:176:46 (libxul.so+0xb94371)
[task 2021-02-11T02:31:45.543Z] 02:31:45     INFO - GECKO(1900) |     #24 nsComponentManagerImpl::GetServiceLocked(mozilla::Maybe<mozilla::MonitorAutoLock>&, (anonymous namespace)::EntryWrapper&, nsID const&, void**) /builds/worker/checkouts/gecko/xpcom/components/nsComponentManager.cpp:1283:17 (libxul.so+0xb94371)
[task 2021-02-11T02:31:45.543Z] 02:31:45     INFO - GECKO(1900) |     #25 nsComponentManagerImpl::GetServiceByContractID(char const*, nsID const&, void**) /builds/worker/checkouts/gecko/xpcom/components/nsComponentManager.cpp:1472:10 (libxul.so+0xb94ff7)
[task 2021-02-11T02:31:45.543Z] 02:31:45     INFO - GECKO(1900) |     #26 CallGetService(char const*, nsID const&, void**) /builds/worker/checkouts/gecko/xpcom/components/nsComponentManagerUtils.cpp:61:43 (libxul.so+0xb9789d)
[task 2021-02-11T02:31:45.545Z] 02:31:45     INFO - GECKO(1900) |     #27 CallGetService<nsIIOService> /builds/worker/workspace/obj-build/dist/include/nsServiceManagerUtils.h:52:10 (libxul.so+0x1be43f3)
[task 2021-02-11T02:31:45.545Z] 02:31:45     INFO - GECKO(1900) |     #28 nsScriptSecurityManager::Init() /builds/worker/checkouts/gecko/caps/nsScriptSecurityManager.cpp:1420:17 (libxul.so+0x1be43f3)
[task 2021-02-11T02:31:45.545Z] 02:31:45     INFO - GECKO(1900) |     #29 nsScriptSecurityManager::InitStatics() /builds/worker/checkouts/gecko/caps/nsScriptSecurityManager.cpp:1481:28 (libxul.so+0x1be49e1)
[task 2021-02-11T02:31:45.546Z] 02:31:45     INFO - GECKO(1900) |     #30 nsXPConnect::InitStatics() /builds/worker/checkouts/gecko/js/xpconnect/src/nsXPConnect.cpp:153:3 (libxul.so+0x1aa72b3)
[task 2021-02-11T02:31:45.546Z] 02:31:45     INFO - GECKO(1900) |     #31 xpcModuleCtor() /builds/worker/checkouts/gecko/js/xpconnect/src/XPCModule.cpp:11:3 (libxul.so+0x1a7b242)
[task 2021-02-11T02:31:45.547Z] 02:31:45     INFO - GECKO(1900) |     #32 nsLayoutModuleInitialize() /builds/worker/checkouts/gecko/layout/build/nsLayoutModule.cpp:100:7 (libxul.so+0x536f487)
[task 2021-02-11T02:31:45.547Z] 02:31:45     INFO - GECKO(1900) |     #33 nsComponentManagerImpl::Init() /builds/worker/checkouts/gecko/xpcom/components/nsComponentManager.cpp:408:5 (libxul.so+0xb8fc61)
[task 2021-02-11T02:31:45.548Z] 02:31:45     INFO - GECKO(1900) |     #34 NS_InitXPCOM /builds/worker/checkouts/gecko/xpcom/build/XPCOMInit.cpp:445:51 (libxul.so+0xbf63fa)
[task 2021-02-11T02:31:45.548Z] 02:31:45     INFO - GECKO(1900) |     #35 ScopedXPCOMStartup::Initialize(bool) /builds/worker/checkouts/gecko/toolkit/xre/nsAppRunner.cpp:1689:8 (libxul.so+0x680652d)
[task 2021-02-11T02:31:45.548Z] 02:31:45     INFO - GECKO(1900) |     #36 XREMain::XRE_main(int, char**, mozilla::BootstrapConfig const&) /builds/worker/checkouts/gecko/toolkit/xre/nsAppRunner.cpp:5434:22 (libxul.so+0x6810bd8)
[task 2021-02-11T02:31:45.549Z] 02:31:45     INFO - GECKO(1900) |     #37 XRE_main(int, char**, mozilla::BootstrapConfig const&) /builds/worker/checkouts/gecko/toolkit/xre/nsAppRunner.cpp:5501:21 (libxul.so+0x6811064)
[task 2021-02-11T02:31:45.550Z] 02:31:45     INFO - GECKO(1900) |     #38 mozilla::BootstrapImpl::XRE_main(int, char**, mozilla::BootstrapConfig const&) /builds/worker/checkouts/gecko/toolkit/xre/Bootstrap.cpp:45:12 (libxul.so+0x681b702)
[task 2021-02-11T02:31:45.550Z] 02:31:45     INFO - GECKO(1900) |     #39 do_main /builds/worker/checkouts/gecko/browser/app/nsBrowserApp.cpp:220:22 (firefox+0xc7c70)
[task 2021-02-11T02:31:45.550Z] 02:31:45     INFO - GECKO(1900) |     #40 main /builds/worker/checkouts/gecko/browser/app/nsBrowserApp.cpp:344:16 (firefox+0xc7c70)
[task 2021-02-11T02:31:45.550Z] 02:31:45     INFO - GECKO(1900) | SUMMARY: ThreadSanitizer: data race /builds/worker/checkouts/gecko/netwerk/base/nsSocketTransport2.cpp:2578:7 in GetSelfAddr
[task 2021-02-11T02:31:45.551Z] 02:31:45     INFO - GECKO(1900) | ==================
[task 2021-02-11T02:31:45.587Z] 02:31:45     INFO - GECKO(1900) | Exiting due to channel error.
[task 2021-02-11T02:31:45.589Z] 02:31:45     INFO - GECKO(1900) | Exiting due to channel error.
[task 2021-02-11T02:31:45.592Z] 02:31:45     INFO - GECKO(1900) | Exiting due to channel error.
[task 2021-02-11T02:31:45.592Z] 02:31:45     INFO - GECKO(1900) | Exiting due to channel error.
[task 2021-02-11T02:31:45.592Z] 02:31:45     INFO - GECKO(1900) | Crash Annotation GraphicsCriticalError: |[C0][GFX1-]: Receive IPC close with reason=AbnormalShutdown (t=186.016) Exiting due to channel error.
[task 2021-02-11T02:31:45.594Z] 02:31:45     INFO - GECKO(1900) | Crash Annotation GraphicsCriticalError: |[C0][GFX1-]: Receive IPC close with reason=AbnormalShutdown (t=191.242) Crash Annotation GraphicsCriticalError: |[C0][GFX1-]: Receive IPC close with reason=AbnormalShutdown (t=199.144) Exiting due to channel error.
[task 2021-02-11T02:31:45.629Z] 02:31:45     INFO - GECKO(1900) | Crash Annotation GraphicsCriticalError: |[C0][GFX1-]: Receive IPC close with reason=AbnormalShutdown (t=199.922)
[task 2021-02-11T02:31:45.630Z] 02:31:45     INFO - GECKO(1900) | ###!!! [Child][RunMessage] Error: Channel error: cannot send/recv
[task 2021-02-11T02:31:46.704Z] 02:31:46     INFO - TEST-INFO | Main app process: killed by SIGIOT
[task 2021-02-11T02:31:46.705Z] 02:31:46     INFO - Buffered messages logged at 02:30:53
[task 2021-02-11T02:31:46.705Z] 02:31:46     INFO - Entering test bound setupTestingPref
[task 2021-02-11T02:31:46.705Z] 02:31:46     INFO - Leaving test bound setupTestingPref
[task 2021-02-11T02:31:46.705Z] 02:31:46     INFO - Entering test bound testNonAudibleMediaCantActivateControllerButAudibleMediaCan
[task 2021-02-11T02:31:46.705Z] 02:31:46     INFO - open new tab with non eligible media elements
[task 2021-02-11T02:31:46.705Z] 02:31:46     INFO - Buffered messages logged at 02:30:55
[task 2021-02-11T02:31:46.706Z] 02:31:46     INFO - Console message: [JavaScript Error: "The character encoding of the HTML document was not declared. The document will render with garbled text in some browser configurations if the document contains characters from outside the US-ASCII range. The character encoding of the page must be declared in the document or in the transfer protocol." {file: "https://example.com/browser/dom/media/mediacontrol/tests/browser/file_non_eligible_media.html" line: 0}]
[task 2021-02-11T02:31:46.707Z] 02:31:46     INFO - Buffered messages logged at 02:30:58
[task 2021-02-11T02:31:46.707Z] 02:31:46     INFO - although media is playing but it won't activate controller
[task 2021-02-11T02:31:46.707Z] 02:31:46     INFO - start non eligible media muted
[task 2021-02-11T02:31:46.707Z] 02:31:46     INFO - TEST-PASS | dom/media/mediacontrol/tests/browser/browser_media_control_non_eligible_media.js | true == true - 
[task 2021-02-11T02:31:46.708Z] 02:31:46     INFO - Buffered messages logged at 02:31:13
[task 2021-02-11T02:31:46.708Z] 02:31:46     INFO - TEST-PASS | dom/media/mediacontrol/tests/browser/browser_media_control_non_eligible_media.js | controller is still inactive - 
[task 2021-02-11T02:31:46.709Z] 02:31:46     INFO - make element muted audible would activate controller
[task 2021-02-11T02:31:46.710Z] 02:31:46     INFO - handle event=activated
...
Blocks: tsan
Group: core-security → network-core-security

This looks like a race on mCondition. It looks like the line where the main thread read is happening was added in bug 1685942.

Flags: needinfo?(kershaw)
Regressed by: 1685942
Has Regression Range: --- → yes

Set release status flags based on info from the regressing bug 1685942

Assignee: nobody → kershaw
Severity: -- → S3
Flags: needinfo?(kershaw)
Priority: -- → P1
Whiteboard: [necko-triaged]
Group: network-core-security → core-security-release
Status: NEW → RESOLVED
Closed: 1 year ago
Resolution: --- → FIXED
Target Milestone: --- → 87 Branch
Flags: qe-verify-
Whiteboard: [necko-triaged] → [necko-triaged][post-critsmash-triage]
Group: core-security-release
You need to log in before you can comment on or make changes to this bug.