Bug: Intermittent SUMMARY: ThreadSanitizer: data race /builds/worker/checkouts/gecko/storage/mozStorageConnection.cpp:1046:13 in setClosedState
Status: REOPENED
Priority: P5
Created: 2020-12-04 05:49:40+00:00
Resolved: 2025-03-03 06:38:33+00:00

**Filed by:** apavel [at] mozilla.com
**Parsed log:** https://treeherder.mozilla.org/logviewer?job_id=323535280&repo=mozilla-central
**Full log:** https://firefox-ci-tc.services.mozilla.com/api/queue/v1/task/DScStKKoSuCvnMGaA9dMeg/runs/0/artifacts/public/logs/live_backing.log

---
```
[task 2020-12-04T04:09:37.935Z] 04:09:37     INFO - TEST-START | browser/components/pocket/test/unit/browser_pocket_pktTelemetry.js
[task 2020-12-04T04:09:38.052Z] 04:09:38     INFO - GECKO(1991) | MEMORY STAT | vsize 130551177MB | residentFast 2101MB
[task 2020-12-04T04:09:38.052Z] 04:09:38     INFO - TEST-OK | browser/components/pocket/test/unit/browser_pocket_pktTelemetry.js | took 118ms
[task 2020-12-04T04:09:38.148Z] 04:09:38     INFO - checking window state
[task 2020-12-04T04:09:39.651Z] 04:09:39     INFO - GECKO(1991) | ==================
[task 2020-12-04T04:09:39.651Z] 04:09:39     INFO - GECKO(1991) | WARNING: ThreadSanitizer: data race (pid=1991)
[task 2020-12-04T04:09:39.652Z] 04:09:39     INFO - GECKO(1991) |   Write of size 8 at 0x7b40001e8158 by thread T60 (mutexes: write M218560096737591584):
[task 2020-12-04T04:09:39.652Z] 04:09:39     INFO - GECKO(1991) |     #0 setClosedState /builds/worker/checkouts/gecko/storage/mozStorageConnection.cpp:1046:13 (libxul.so+0x1a89342)
[task 2020-12-04T04:09:39.652Z] 04:09:39     INFO - GECKO(1991) |     #1 mozilla::storage::Connection::synchronousClose() /builds/worker/checkouts/gecko/storage/mozStorageConnection.cpp:1398:17 (libxul.so+0x1a89342)
[task 2020-12-04T04:09:39.653Z] 04:09:39     INFO - GECKO(1991) |     #2 mozilla::storage::Connection::Close() /builds/worker/checkouts/gecko/storage/mozStorageConnection.cpp:1359:10 (libxul.so+0x1a8c63a)
[task 2020-12-04T04:09:39.653Z] 04:09:39     INFO - GECKO(1991) |     #3 Close /builds/worker/checkouts/gecko/dom/indexedDB/ActorsParent.cpp:7494:3 (libxul.so+0x44890f4)
[task 2020-12-04T04:09:39.653Z] 04:09:39     INFO - GECKO(1991) |     #4 mozilla::dom::indexedDB::(anonymous namespace)::ConnectionPool::CloseConnectionRunnable::Run() /builds/worker/checkouts/gecko/dom/indexedDB/ActorsParent.cpp:8997:34 (libxul.so+0x44890f4)
[task 2020-12-04T04:09:39.654Z] 04:09:39     INFO - GECKO(1991) |     #5 nsThread::ProcessNextEvent(bool, bool*) /builds/worker/checkouts/gecko/xpcom/threads/nsThread.cpp:1196:14 (libxul.so+0xb8578d)
[task 2020-12-04T04:09:39.655Z] 04:09:39     INFO - GECKO(1991) |     #6 NS_ProcessNextEvent(nsIThread*, bool) /builds/worker/checkouts/gecko/xpcom/threads/nsThreadUtils.cpp:521:10 (libxul.so+0xb8b242)
[task 2020-12-04T04:09:39.655Z] 04:09:39     INFO - GECKO(1991) |     #7 SpinEventLoopUntil<mozilla::ProcessFailureBehavior::ReportToCaller, (lambda at /builds/worker/checkouts/gecko/dom/indexedDB/ActorsParent.cpp:9174:44)> /builds/worker/workspace/obj-build/dist/include/mozilla/SpinEventLoopUntil.h:93:25 (libxul.so+0x448beeb)
[task 2020-12-04T04:09:39.655Z] 04:09:39     INFO - GECKO(1991) |     #8 mozilla::dom::indexedDB::(anonymous namespace)::ConnectionPool::ThreadRunnable::Run() /builds/worker/checkouts/gecko/dom/indexedDB/ActorsParent.cpp:9174:25 (libxul.so+0x448beeb)
[task 2020-12-04T04:09:39.656Z] 04:09:39     INFO - GECKO(1991) |     #9 nsThread::ProcessNextEvent(bool, bool*) /builds/worker/checkouts/gecko/xpcom/threads/nsThread.cpp:1196:14 (libxul.so+0xb8578d)
[task 2020-12-04T04:09:39.656Z] 04:09:39     INFO - GECKO(1991) |     #10 NS_ProcessNextEvent(nsIThread*, bool) /builds/worker/checkouts/gecko/xpcom/threads/nsThreadUtils.cpp:521:10 (libxul.so+0xb8b242)
[task 2020-12-04T04:09:39.656Z] 04:09:39     INFO - GECKO(1991) |     #11 mozilla::ipc::MessagePumpForNonMainThreads::Run(base::MessagePump::Delegate*) /builds/worker/checkouts/gecko/ipc/glue/MessagePump.cpp:302:20 (libxul.so+0x1479b5e)
[task 2020-12-04T04:09:39.656Z] 04:09:39     INFO - GECKO(1991) |     #12 RunInternal /builds/worker/checkouts/gecko/ipc/chromium/src/base/message_loop.cc:334:10 (libxul.so+0x1404d1c)
[task 2020-12-04T04:09:39.656Z] 04:09:39     INFO - GECKO(1991) |     #13 RunHandler /builds/worker/checkouts/gecko/ipc/chromium/src/base/message_loop.cc:327:3 (libxul.so+0x1404d1c)
[task 2020-12-04T04:09:39.658Z] 04:09:39     INFO - GECKO(1991) |     #14 MessageLoop::Run() /builds/worker/checkouts/gecko/ipc/chromium/src/base/message_loop.cc:309:3 (libxul.so+0x1404d1c)
[task 2020-12-04T04:09:39.658Z] 04:09:39     INFO - GECKO(1991) |     #15 nsThread::ThreadFunc(void*) /builds/worker/checkouts/gecko/xpcom/threads/nsThread.cpp:441:10 (libxul.so+0xb81bf0)
[task 2020-12-04T04:09:39.658Z] 04:09:39     INFO - GECKO(1991) |     #16 _pt_root /builds/worker/checkouts/gecko/nsprpub/pr/src/pthreads/ptthread.c:201:5 (libnspr4.so+0x4500b)
[task 2020-12-04T04:09:39.658Z] 04:09:39     INFO - GECKO(1991) |   Previous read of size 8 at 0x7b40001e8158 by main thread:
[task 2020-12-04T04:09:39.658Z] 04:09:39     INFO - GECKO(1991) |     #0 connectionReady /builds/worker/checkouts/gecko/storage/mozStorageConnection.h:239:42 (libxul.so+0x1aa4fa1)
[task 2020-12-04T04:09:39.658Z] 04:09:39     INFO - GECKO(1991) |     #1 mozilla::storage::Service::minimizeMemory() /builds/worker/checkouts/gecko/storage/mozStorageService.cpp:267:16 (libxul.so+0x1aa4fa1)
[task 2020-12-04T04:09:39.662Z] 04:09:39     INFO - GECKO(1991) |     #2 mozilla::storage::Service::Observe(nsISupports*, char const*, char16_t const*) /builds/worker/checkouts/gecko/storage/mozStorageService.cpp:673:5 (libxul.so+0x1aa61b5)
[task 2020-12-04T04:09:39.662Z] 04:09:39     INFO - GECKO(1991) |     #3 non-virtual thunk to mozilla::storage::Service::Observe(nsISupports*, char const*, char16_t const*) /builds/worker/checkouts/gecko/storage/mozStorageService.cpp (libxul.so+0x1aa6212)
[task 2020-12-04T04:09:39.662Z] 04:09:39     INFO - GECKO(1991) |     #4 nsObserverList::NotifyObservers(nsISupports*, char const*, char16_t const*) /builds/worker/checkouts/gecko/xpcom/ds/nsObserverList.cpp:70:19 (libxul.so+0xaeb153)
[task 2020-12-04T04:09:39.662Z] 04:09:39     INFO - GECKO(1991) |     #5 nsObserverService::NotifyObservers(nsISupports*, char const*, char16_t const*) /builds/worker/checkouts/gecko/xpcom/ds/nsObserverService.cpp:287:19 (libxul.so+0xaede8a)
[task 2020-12-04T04:09:39.662Z] 04:09:39     INFO - GECKO(1991) |     #6 NS_InvokeByIndex /builds/worker/checkouts/gecko/xpcom/reflect/xptcall/md/unix/xptcinvoke_asm_x86_64_unix.S:101 (libxul.so+0xbabc65)
[task 2020-12-04T04:09:39.662Z] 04:09:39     INFO - GECKO(1991) |     #7 XPC_WN_CallMethod(JSContext*, unsigned int, JS::Value*) /builds/worker/checkouts/gecko/js/xpconnect/src/XPCWrappedNativeJSOps.cpp:925:10 (libxul.so+0x1a4dc10)
[task 2020-12-04T04:09:39.662Z] 04:09:39     INFO - GECKO(1991) |     #8 CallJSNative /builds/worker/checkouts/gecko/js/src/vm/Interpreter.cpp:507:13 (libxul.so+0x681e989)
[task 2020-12-04T04:09:39.662Z] 04:09:39     INFO - GECKO(1991) |     #9 js::InternalCallOrConstruct(JSContext*, JS::CallArgs const&, js::MaybeConstruct, js::CallReason) /builds/worker/checkouts/gecko/js/src/vm/Interpreter.cpp:598:12 (libxul.so+0x681e989)
[task 2020-12-04T04:09:39.663Z] 04:09:39     INFO - GECKO(1991) |     #10 InternalCall /builds/worker/checkouts/gecko/js/src/vm/Interpreter.cpp:651:10 (libxul.so+0x6813dfa)
[task 2020-12-04T04:09:39.663Z] 04:09:39     INFO - GECKO(1991) |     #11 CallFromStack /builds/worker/checkouts/gecko/js/src/vm/Interpreter.cpp:655:10 (libxul.so+0x6813dfa)
[task 2020-12-04T04:09:39.663Z] 04:09:39     INFO - GECKO(1991) |     #12 Interpret(JSContext*, js::RunState&) /builds/worker/checkouts/gecko/js/src/vm/Interpreter.cpp:3301:16 (libxul.so+0x6813dfa)
[task 2020-12-04T04:09:39.663Z] 04:09:39     INFO - GECKO(1991) |     #13 js::RunScript(JSContext*, js::RunState&) /builds/worker/checkouts/gecko/js/src/vm/Interpreter.cpp:477:13 (libxul.so+0x680691c)
[task 2020-12-04T04:09:39.663Z] 04:09:39     INFO - GECKO(1991) |     #14 js::InternalCallOrConstruct(JSContext*, JS::CallArgs const&, js::MaybeConstruct, js::CallReason) /builds/worker/checkouts/gecko/js/src/vm/Interpreter.cpp:623:13 (libxul.so+0x681f220)
[task 2020-12-04T04:09:39.663Z] 04:09:39     INFO - GECKO(1991) |     #15 InternalCall /builds/worker/checkouts/gecko/js/src/vm/Interpreter.cpp:651:10 (libxul.so+0x681fda6)
[task 2020-12-04T04:09:39.663Z] 04:09:39     INFO - GECKO(1991) |     #16 js::Call(JSContext*, JS::Handle<JS::Value>, JS::Handle<JS::Value>, js::AnyInvokeArgs const&, JS::MutableHandle<JS::Value>, js::CallReason) /builds/worker/checkouts/gecko/js/src/vm/Interpreter.cpp:668:8 (libxul.so+0x681fda6)
[task 2020-12-04T04:09:39.663Z] 04:09:39     INFO - GECKO(1991) |     #17 Call /builds/worker/checkouts/gecko/js/src/vm/Interpreter.h:105:10 (libxul.so+0x69d99ed)
[task 2020-12-04T04:09:39.667Z] 04:09:39     INFO - GECKO(1991) |     #18 PromiseReactionJob(JSContext*, unsigned int, JS::Value*) /builds/worker/checkouts/gecko/js/src/builtin/Promise.cpp:1904:10 (libxul.so+0x69d99ed)
[task 2020-12-04T04:09:39.667Z] 04:09:39     INFO - GECKO(1991) |     #19 CallJSNative /builds/worker/checkouts/gecko/js/src/vm/Interpreter.cpp:507:13 (libxul.so+0x681e989)
[task 2020-12-04T04:09:39.667Z] 04:09:39     INFO - GECKO(1991) |     #20 js::InternalCallOrConstruct(JSContext*, JS::CallArgs const&, js::MaybeConstruct, js::CallReason) /builds/worker/checkouts/gecko/js/src/vm/Interpreter.cpp:598:12 (libxul.so+0x681e989)
[task 2020-12-04T04:09:39.667Z] 04:09:39     INFO - GECKO(1991) |     #21 InternalCall /builds/worker/checkouts/gecko/js/src/vm/Interpreter.cpp:651:10 (libxul.so+0x681fda6)
[task 2020-12-04T04:09:39.667Z] 04:09:39     INFO - GECKO(1991) |     #22 js::Call(JSContext*, JS::Handle<JS::Value>, JS::Handle<JS::Value>, js::AnyInvokeArgs const&, JS::MutableHandle<JS::Value>, js::CallReason) /builds/worker/checkouts/gecko/js/src/vm/Interpreter.cpp:668:8 (libxul.so+0x681fda6)
[task 2020-12-04T04:09:39.667Z] 04:09:39     INFO - GECKO(1991) |     #23 JS::Call(JSContext*, JS::Handle<JS::Value>, JS::Handle<JS::Value>, JS::HandleValueArray const&, JS::MutableHandle<JS::Value>) /builds/worker/checkouts/gecko/js/src/jsapi.cpp:2831:10 (libxul.so+0x6ce1dde)
[task 2020-12-04T04:09:39.668Z] 04:09:39     INFO - GECKO(1991) |     #24 mozilla::dom::PromiseJobCallback::Call(mozilla::dom::BindingCallContext&, JS::Handle<JS::Value>, mozilla::ErrorResult&) /builds/worker/workspace/obj-build/dom/bindings/PromiseBinding.cpp:31:8 (libxul.so+0x2a8e70b)
[task 2020-12-04T04:09:39.668Z] 04:09:39     INFO - GECKO(1991) |     #25 Call /builds/worker/workspace/obj-build/dist/include/mozilla/dom/PromiseBinding.h:90:12 (libxul.so+0xa92c4e)
[task 2020-12-04T04:09:39.668Z] 04:09:39     INFO - GECKO(1991) |     #26 Call /builds/worker/workspace/obj-build/dist/include/mozilla/dom/PromiseBinding.h:103:12 (libxul.so+0xa92c4e)
[task 2020-12-04T04:09:39.668Z] 04:09:39     INFO - GECKO(1991) |     #27 mozilla::PromiseJobRunnable::Run(mozilla::AutoSlowOperation&) /builds/worker/checkouts/gecko/xpcom/base/CycleCollectedJSContext.cpp:211:18 (libxul.so+0xa92c4e)
[task 2020-12-04T04:09:39.668Z] 04:09:39     INFO - GECKO(1991) |     #28 mozilla::CycleCollectedJSContext::PerformMicroTaskCheckPoint(bool) /builds/worker/checkouts/gecko/xpcom/base/CycleCollectedJSContext.cpp:644:17 (libxul.so+0xa7f651)
[task 2020-12-04T04:09:39.670Z] 04:09:39     INFO - GECKO(1991) |     #29 mozilla::CycleCollectedJSContext::AfterProcessTask(unsigned int) /builds/worker/checkouts/gecko/xpcom/base/CycleCollectedJSContext.cpp:461:3 (libxul.so+0xa7ffd7)
[task 2020-12-04T04:09:39.670Z] 04:09:39     INFO - GECKO(1991) |     #30 XPCJSContext::AfterProcessTask(unsigned int) /builds/worker/checkouts/gecko/js/xpconnect/src/XPCJSContext.cpp:1458:28 (libxul.so+0x1a17685)
[task 2020-12-04T04:09:39.670Z] 04:09:39     INFO - GECKO(1991) |     #31 nsThread::ProcessNextEvent(bool, bool*) /builds/worker/checkouts/gecko/xpcom/threads/nsThread.cpp:1232:24 (libxul.so+0xb85ac1)
[task 2020-12-04T04:09:39.670Z] 04:09:39     INFO - GECKO(1991) |     #32 NS_ProcessNextEvent(nsIThread*, bool) /builds/worker/checkouts/gecko/xpcom/threads/nsThreadUtils.cpp:521:10 (libxul.so+0xb8b242)
[task 2020-12-04T04:09:39.670Z] 04:09:39     INFO - GECKO(1991) |     #33 mozilla::ipc::MessagePump::Run(base::MessagePump::Delegate*) /builds/worker/checkouts/gecko/ipc/glue/MessagePump.cpp:87:21 (libxul.so+0x1478fcd)
[task 2020-12-04T04:09:39.674Z] 04:09:39     INFO - GECKO(1991) |     #34 RunInternal /builds/worker/checkouts/gecko/ipc/chromium/src/base/message_loop.cc:334:10 (libxul.so+0x1404d1c)
[task 2020-12-04T04:09:39.674Z] 04:09:39     INFO - GECKO(1991) |     #35 RunHandler /builds/worker/checkouts/gecko/ipc/chromium/src/base/message_loop.cc:327:3 (libxul.so+0x1404d1c)
[task 2020-12-04T04:09:39.674Z] 04:09:39     INFO - GECKO(1991) |     #36 MessageLoop::Run() /builds/worker/checkouts/gecko/ipc/chromium/src/base/message_loop.cc:309:3 (libxul.so+0x1404d1c)
[task 2020-12-04T04:09:39.675Z] 04:09:39     INFO - GECKO(1991) |     #37 nsBaseAppShell::Run() /builds/worker/checkouts/gecko/widget/nsBaseAppShell.cpp:137:27 (libxul.so+0x4aa0b03)
[task 2020-12-04T04:09:39.675Z] 04:09:39     INFO - GECKO(1991) |     #38 nsAppStartup::Run() /builds/worker/checkouts/gecko/toolkit/components/startup/nsAppStartup.cpp:271:30 (libxul.so+0x65d22e8)
[task 2020-12-04T04:09:39.675Z] 04:09:39     INFO - GECKO(1991) |     #39 XREMain::XRE_mainRun() /builds/worker/checkouts/gecko/toolkit/xre/nsAppRunner.cpp:5109:22 (libxul.so+0x66e8d95)
[task 2020-12-04T04:09:39.675Z] 04:09:39     INFO - GECKO(1991) |     #40 XREMain::XRE_main(int, char**, mozilla::BootstrapConfig const&) /builds/worker/checkouts/gecko/toolkit/xre/nsAppRunner.cpp:5301:8 (libxul.so+0x66e9b58)
[task 2020-12-04T04:09:39.675Z] 04:09:39     INFO - GECKO(1991) |     #41 XRE_main(int, char**, mozilla::BootstrapConfig const&) /builds/worker/checkouts/gecko/toolkit/xre/nsAppRunner.cpp:5360:21 (libxul.so+0x66e9ee4)
[task 2020-12-04T04:09:39.675Z] 04:09:39     INFO - GECKO(1991) |     #42 mozilla::BootstrapImpl::XRE_main(int, char**, mozilla::BootstrapConfig const&) /builds/worker/checkouts/gecko/toolkit/xre/Bootstrap.cpp:45:12 (libxul.so+0x66f4142)
[task 2020-12-04T04:09:39.675Z] 04:09:39     INFO - GECKO(1991) |     #43 do_main /builds/worker/checkouts/gecko/browser/app/nsBrowserApp.cpp:219:22 (firefox+0xc7c70)
[task 2020-12-04T04:09:39.679Z] 04:09:39     INFO - GECKO(1991) |     #44 main /builds/worker/checkouts/gecko/browser/app/nsBrowserApp.cpp:337:16 (firefox+0xc7c70)
[task 2020-12-04T04:09:39.679Z] 04:09:39     INFO - GECKO(1991) |   Location is heap block of size 248 at 0x7b40001e8100 allocated by thread T60:
[task 2020-12-04T04:09:39.680Z] 04:09:39     INFO - GECKO(1991) |     #0 malloc /builds/worker/fetches/llvm-project/llvm/projects/compiler-rt/lib/tsan/rtl/tsan_interceptors_posix.cpp:652:5 (firefox+0x54e6c)
[task 2020-12-04T04:09:39.680Z] 04:09:39     INFO - GECKO(1991) |     #1 moz_xmalloc /builds/worker/checkouts/gecko/memory/mozalloc/mozalloc.cpp:52:15 (firefox+0xcef48)
[task 2020-12-04T04:09:39.680Z] 04:09:39     INFO - GECKO(1991) |     #2 operator new /builds/worker/workspace/obj-build/dist/include/mozilla/cxxalloc.h:33:10 (libxul.so+0x1aa5c4f)
[task 2020-12-04T04:09:39.680Z] 04:09:39     INFO - GECKO(1991) |     #3 mozilla::storage::Service::OpenDatabaseWithFileURL(nsIFileURL*, nsTSubstring<char> const&, mozIStorageConnection**) /builds/worker/checkouts/gecko/storage/mozStorageService.cpp:624:28 (libxul.so+0x1aa5c4f)
[task 2020-12-04T04:09:39.680Z] 04:09:39     INFO - GECKO(1991) |     #4 __invoke_impl<nsresult, nsresult (mozIStorageService::*const &)(nsIFileURL *, const nsTSubstring<char> &, mozIStorageConnection **), mozIStorageService &, nsIFileURL *, const nsTAutoStringN<char, 64> &, nsGetterAddRefs<mozIStorageConnection> > /builds/worker/fetches/clang/bin/../lib/gcc/x86_64-unknown-linux-gnu/7.4.0/../../../../include/c++/7.4.0/bits/invoke.h:66:14 (libxul.so+0x44938d0)
[task 2020-12-04T04:09:39.680Z] 04:09:39     INFO - GECKO(1991) |     #5 __invoke<nsresult (mozIStorageService::*const &)(nsIFileURL *, const nsTSubstring<char> &, mozIStorageConnection **), mozIStorageService &, nsIFileURL *, const nsTAutoStringN<char, 64> &, nsGetterAddRefs<mozIStorageConnection> > /builds/worker/fetches/clang/bin/../lib/gcc/x86_64-unknown-linux-gnu/7.4.0/../../../../include/c++/7.4.0/bits/invoke.h:95:14 (libxul.so+0x44938d0)
[task 2020-12-04T04:09:39.680Z] 04:09:39     INFO - GECKO(1991) |     #6 operator()<mozIStorageService &, nsIFileURL *, const nsTAutoStringN<char, 64> &, nsGetterAddRefs<mozIStorageConnection> > /builds/worker/fetches/clang/bin/../lib/gcc/x86_64-unknown-linux-gnu/7.4.0/../../../../include/c++/7.4.0/functional:175:11 (libxul.so+0x44938d0)
[task 2020-12-04T04:09:39.690Z] 04:09:39     INFO - GECKO(1991) |     #7 ToResultInvokeInternal<nsCOMPtr<mozIStorageConnection>, (lambda at /builds/worker/workspace/obj-build/dist/include/mozilla/ResultExtensions.h:121:14), std::_Mem_fn<nsresult (mozIStorageService::*)(nsIFileURL *, const nsTSubstring<char> &, mozIStorageConnection **)>, mozIStorageService &, nsIFileURL *, const nsTAutoStringN<char, 64> &> /builds/worker/workspace/obj-build/dist/include/mozilla/ResultExtensions.h:78:17 (libxul.so+0x44938d0)
[task 2020-12-04T04:09:39.690Z] 04:09:39     INFO - GECKO(1991) |     #8 ToResultInvokeSelector<nsCOMPtr<mozIStorageConnection>, std::_Mem_fn<nsresult (mozIStorageService::*)(nsIFileURL *, const nsTSubstring<char> &, mozIStorageConnection **)>, mozIStorageService &, nsIFileURL *&&, const nsTAutoStringN<char, 64> &> /builds/worker/workspace/obj-build/dist/include/mozilla/ResultExtensions.h:120:10 (libxul.so+0x44938d0)
[task 2020-12-04T04:09:39.690Z] 04:09:39     INFO - GECKO(1991) |     #9 ToResultInvoke<nsCOMPtr<mozIStorageConnection>, std::_Mem_fn<nsresult (mozIStorageService::*)(nsIFileURL *, const nsTSubstring<char> &, mozIStorageConnection **)>, mozIStorageService &, nsIFileURL *, const nsTAutoStringN<char, 64> &> /builds/worker/workspace/obj-build/dist/include/mozilla/ResultExtensions.h:155:10 (libxul.so+0x44938d0)
[task 2020-12-04T04:09:39.691Z] 04:09:39     INFO - GECKO(1991) |     #10 mozilla::dom::indexedDB::(anonymous namespace)::OpenDatabase(mozIStorageService&, nsIFileURL&, unsigned int) /builds/worker/checkouts/gecko/dom/indexedDB/ActorsParent.cpp:751:3 (libxul.so+0x44938d0)
[task 2020-12-04T04:09:39.691Z] 04:09:39     INFO - GECKO(1991) |     #11 mozilla::dom::indexedDB::(anonymous namespace)::OpenDatabaseAndHandleBusy(mozIStorageService&, nsIFileURL&, unsigned int) /builds/worker/checkouts/gecko/dom/indexedDB/ActorsParent.cpp:768:3 (libxul.so+0x4492e15)
[task 2020-12-04T04:09:39.691Z] 04:09:39     INFO - GECKO(1991) |     #12 mozilla::dom::indexedDB::(anonymous namespace)::GetStorageConnection(nsIFile&, long, unsigned int, mozilla::Maybe<mozilla::dom::quota::DummyCipherStrategy::KeyType> const&) /builds/worker/checkouts/gecko/dom/indexedDB/ActorsParent.cpp:1122:3 (libxul.so+0x449249e)
[task 2020-12-04T04:09:39.691Z] 04:09:39     INFO - GECKO(1991) |     #13 GetStorageConnection /builds/worker/checkouts/gecko/dom/indexedDB/ActorsParent.cpp:1149:10 (libxul.so+0x4491a41)
[task 2020-12-04T04:09:39.691Z] 04:09:39     INFO - GECKO(1991) |     #14 GetOrCreateConnection /builds/worker/checkouts/gecko/dom/indexedDB/ActorsParent.cpp:8149:3 (libxul.so+0x4491a41)
[task 2020-12-04T04:09:39.692Z] 04:09:39     INFO - GECKO(1991) |     #15 EnsureConnection /builds/worker/checkouts/gecko/dom/indexedDB/ActorsParent.cpp:9814:5 (libxul.so+0x4491a41)
[task 2020-12-04T04:09:39.693Z] 04:09:39     INFO - GECKO(1991) |     #16 mozilla::dom::indexedDB::(anonymous namespace)::TransactionDatabaseOperationBase::RunOnConnectionThread() /builds/worker/checkouts/gecko/dom/indexedDB/ActorsParent.cpp:17841:28 (libxul.so+0x4491a41)
[task 2020-12-04T04:09:39.693Z] 04:09:39     INFO - GECKO(1991) |     #17 mozilla::dom::indexedDB::(anonymous namespace)::TransactionDatabaseOperationBase::Run() /builds/worker/checkouts/gecko/dom/indexedDB/ActorsParent.cpp:18032:7 (libxul.so+0x4490dae)
[task 2020-12-04T04:09:39.694Z] 04:09:39     INFO - GECKO(1991) |     #18 nsThread::ProcessNextEvent(bool, bool*) /builds/worker/checkouts/gecko/xpcom/threads/nsThread.cpp:1196:14 (libxul.so+0xb8578d)
[task 2020-12-04T04:09:39.694Z] 04:09:39     INFO - GECKO(1991) |     #19 NS_ProcessNextEvent(nsIThread*, bool) /builds/worker/checkouts/gecko/xpcom/threads/nsThreadUtils.cpp:521:10 (libxul.so+0xb8b242)
[task 2020-12-04T04:09:39.695Z] 04:09:39     INFO - GECKO(1991) |     #20 SpinEventLoopUntil<mozilla::ProcessFailureBehavior::ReportToCaller, (lambda at /builds/worker/checkouts/gecko/dom/indexedDB/ActorsParent.cpp:9174:44)> /builds/worker/workspace/obj-build/dist/include/mozilla/SpinEventLoopUntil.h:93:25 (libxul.so+0x448beeb)
[task 2020-12-04T04:09:39.695Z] 04:09:39     INFO - GECKO(1991) |     #21 mozilla::dom::indexedDB::(anonymous namespace)::ConnectionPool::ThreadRunnable::Run() /builds/worker/checkouts/gecko/dom/indexedDB/ActorsParent.cpp:9174:25 (libxul.so+0x448beeb)
[task 2020-12-04T04:09:39.695Z] 04:09:39     INFO - GECKO(1991) |     #22 nsThread::ProcessNextEvent(bool, bool*) /builds/worker/checkouts/gecko/xpcom/threads/nsThread.cpp:1196:14 (libxul.so+0xb8578d)
[task 2020-12-04T04:09:39.695Z] 04:09:39     INFO - GECKO(1991) |     #23 NS_ProcessNextEvent(nsIThread*, bool) /builds/worker/checkouts/gecko/xpcom/threads/nsThreadUtils.cpp:521:10 (libxul.so+0xb8b242)
[task 2020-12-04T04:09:39.699Z] 04:09:39     INFO - GECKO(1991) |     #24 mozilla::ipc::MessagePumpForNonMainThreads::Run(base::MessagePump::Delegate*) /builds/worker/checkouts/gecko/ipc/glue/MessagePump.cpp:302:20 (libxul.so+0x1479b5e)
[task 2020-12-04T04:09:39.700Z] 04:09:39     INFO - GECKO(1991) |     #25 RunInternal /builds/worker/checkouts/gecko/ipc/chromium/src/base/message_loop.cc:334:10 (libxul.so+0x1404d1c)
[task 2020-12-04T04:09:39.700Z] 04:09:39     INFO - GECKO(1991) |     #26 RunHandler /builds/worker/checkouts/gecko/ipc/chromium/src/base/message_loop.cc:327:3 (libxul.so+0x1404d1c)
[task 2020-12-04T04:09:39.700Z] 04:09:39     INFO - GECKO(1991) |     #27 MessageLoop::Run() /builds/worker/checkouts/gecko/ipc/chromium/src/base/message_loop.cc:309:3 (libxul.so+0x1404d1c)
[task 2020-12-04T04:09:39.701Z] 04:09:39     INFO - GECKO(1991) |     #28 nsThread::ThreadFunc(void*) /builds/worker/checkouts/gecko/xpcom/threads/nsThread.cpp:441:10 (libxul.so+0xb81bf0)
[task 2020-12-04T04:09:39.702Z] 04:09:39     INFO - GECKO(1991) |     #29 _pt_root /builds/worker/checkouts/gecko/nsprpub/pr/src/pthreads/ptthread.c:201:5 (libnspr4.so+0x4500b)
[task 2020-12-04T04:09:39.702Z] 04:09:39     INFO - GECKO(1991) |   Mutex M218560096737591584 is already destroyed.
[task 2020-12-04T04:09:39.702Z] 04:09:39     INFO - GECKO(1991) |   Thread T60 'IndexedDB #4' (tid=2133, running) created by thread T20 at:
[task 2020-12-04T04:09:39.703Z] 04:09:39     INFO - GECKO(1991) |     #0 pthread_create /builds/worker/fetches/llvm-project/llvm/projects/compiler-rt/lib/tsan/rtl/tsan_interceptors_posix.cpp:966:3 (firefox+0x5669b)
[task 2020-12-04T04:09:39.703Z] 04:09:39     INFO - GECKO(1991) |     #1 _PR_CreateThread /builds/worker/checkouts/gecko/nsprpub/pr/src/pthreads/ptthread.c:458:14 (libnspr4.so+0x3c203)
[task 2020-12-04T04:09:39.703Z] 04:09:39     INFO - GECKO(1991) |     #2 PR_CreateThread /builds/worker/checkouts/gecko/nsprpub/pr/src/pthreads/ptthread.c:533:12 (libnspr4.so+0x30b52)
[task 2020-12-04T04:09:39.706Z] 04:09:39     INFO - GECKO(1991) |     #3 nsThread::Init(nsTSubstring<char> const&) /builds/worker/checkouts/gecko/xpcom/threads/nsThread.cpp:658:8 (libxul.so+0xb8313f)
[task 2020-12-04T04:09:39.707Z] 04:09:39     INFO - GECKO(1991) |     #4 nsThreadManager::NewNamedThread(nsTSubstring<char> const&, unsigned int, nsIThread**) /builds/worker/checkouts/gecko/xpcom/threads/nsThreadManager.cpp:641:12 (libxul.so+0xb8a64a)
[task 2020-12-04T04:09:39.707Z] 04:09:39     INFO - GECKO(1991) |     #5 NS_NewNamedThread(nsTSubstring<char> const&, nsIThread**, already_AddRefed<nsIRunnable>, unsigned int) /builds/worker/checkouts/gecko/xpcom/threads/nsThreadUtils.cpp:169:57 (libxul.so+0xb91a27)
[task 2020-12-04T04:09:39.708Z] 04:09:39     INFO - GECKO(1991) |     #6 NS_NewNamedThread(nsTSubstring<char> const&, nsIThread**, nsIRunnable*, unsigned int) /builds/worker/checkouts/gecko/xpcom/threads/nsThreadUtils.cpp:160:10 (libxul.so+0xb8cf83)
[task 2020-12-04T04:09:39.708Z] 04:09:39     INFO - GECKO(1991) |     #7 mozilla::dom::indexedDB::(anonymous namespace)::ConnectionPool::ScheduleTransaction(mozilla::dom::indexedDB::(anonymous namespace)::ConnectionPool::TransactionInfo&, bool) /builds/worker/checkouts/gecko/dom/indexedDB/ActorsParent.cpp:8547:23 (libxul.so+0x448b004)
[task 2020-12-04T04:09:39.708Z] 04:09:39     INFO - GECKO(1991) |     #8 Start /builds/worker/checkouts/gecko/dom/indexedDB/ActorsParent.cpp:8245:15 (libxul.so+0x4490457)
[task 2020-12-04T04:09:39.709Z] 04:09:39     INFO - GECKO(1991) |     #9 mozilla::dom::indexedDB::(anonymous namespace)::TransactionDatabaseOperationBase::StartOnConnectionPool(nsID const&, nsTSubstring<char> const&, long, nsTArray<nsTString<char16_t> > const&, bool) /builds/worker/checkouts/gecko/dom/indexedDB/ActorsParent.cpp:17807:27 (libxul.so+0x4490457)
[task 2020-12-04T04:09:39.709Z] 04:09:39     INFO - GECKO(1991) |     #10 mozilla::dom::indexedDB::(anonymous namespace)::OpenDatabaseOp::DispatchToWorkThread() /builds/worker/checkouts/gecko/dom/indexedDB/ActorsParent.cpp:16917:45 (libxul.so+0x447a028)
[task 2020-12-04T04:09:39.710Z] 04:09:39     INFO - GECKO(1991) |     #11 mozilla::dom::indexedDB::(anonymous namespace)::FactoryOp::Run() /builds/worker/checkouts/gecko/dom/indexedDB/ActorsParent.cpp:16158:7 (libxul.so+0x4474b8c)
[task 2020-12-04T04:09:39.712Z] 04:09:39     INFO - GECKO(1991) |     #12 CallCallback /builds/worker/checkouts/gecko/dom/indexedDB/ActorsParent.cpp:9680:13 (libxul.so+0x4487f81)
[task 2020-12-04T04:09:39.712Z] 04:09:39     INFO - GECKO(1991) |     #13 mozilla::dom::indexedDB::(anonymous namespace)::WaitForTransactionsHelper::MaybeWaitForFileHandles() /builds/worker/checkouts/gecko/dom/indexedDB/ActorsParent.cpp:9669:3 (libxul.so+0x4487f81)
[task 2020-12-04T04:09:39.713Z] 04:09:39     INFO - GECKO(1991) |     #14 mozilla::dom::indexedDB::(anonymous namespace)::WaitForTransactionsHelper::Run() /builds/worker/fetches/clang/bin/../lib/gcc/x86_64-unknown-linux-gnu/7.4.0/../../../../include/c++/7.4.0/bits/atomic_base.h (libxul.so+0x44878c7)
[task 2020-12-04T04:09:39.713Z] 04:09:39     INFO - GECKO(1991) |     #15 WaitForDatabasesToComplete /builds/worker/checkouts/gecko/dom/indexedDB/ActorsParent.cpp:8325:26 (libxul.so+0x4487a30)
[task 2020-12-04T04:09:39.713Z] 04:09:39     INFO - GECKO(1991) |     #16 MaybeWaitForTransactions /builds/worker/checkouts/gecko/dom/indexedDB/ActorsParent.cpp:9646:21 (libxul.so+0x4487a30)
[task 2020-12-04T04:09:39.714Z] 04:09:39     INFO - GECKO(1991) |     #17 mozilla::dom::indexedDB::(anonymous namespace)::WaitForTransactionsHelper::Run() /builds/worker/checkouts/gecko/dom/indexedDB/ActorsParent.cpp:9692:7 (libxul.so+0x4487a30)
[task 2020-12-04T04:09:39.714Z] 04:09:39     INFO - GECKO(1991) |     #18 WaitForTransactions /builds/worker/checkouts/gecko/dom/indexedDB/ActorsParent.cpp:9635:19 (libxul.so+0x4479ab1)
[task 2020-12-04T04:09:39.714Z] 04:09:39     INFO - GECKO(1991) |     #19 WaitForTransactions /builds/worker/checkouts/gecko/dom/indexedDB/ActorsParent.cpp:15796:11 (libxul.so+0x4479ab1)
[task 2020-12-04T04:09:39.717Z] 04:09:39     INFO - GECKO(1991) |     #20 mozilla::dom::indexedDB::(anonymous namespace)::OpenDatabaseOp::BeginVersionChange() /builds/worker/checkouts/gecko/dom/indexedDB/ActorsParent.cpp:16855:5 (libxul.so+0x4479ab1)
[task 2020-12-04T04:09:39.718Z] 04:09:39     INFO - GECKO(1991) |     #21 mozilla::dom::indexedDB::(anonymous namespace)::FactoryOp::Run() /builds/worker/checkouts/gecko/dom/indexedDB/ActorsParent.cpp:16154:7 (libxul.so+0x4474a99)
[task 2020-12-04T04:09:39.718Z] 04:09:39     INFO - GECKO(1991) |     #22 nsThread::ProcessNextEvent(bool, bool*) /builds/worker/checkouts/gecko/xpcom/threads/nsThread.cpp:1196:14 (libxul.so+0xb8578d)
[task 2020-12-04T04:09:39.718Z] 04:09:39     INFO - GECKO(1991) |     #23 NS_ProcessNextEvent(nsIThread*, bool) /builds/worker/checkouts/gecko/xpcom/threads/nsThreadUtils.cpp:521:10 (libxul.so+0xb8b242)
[task 2020-12-04T04:09:39.719Z] 04:09:39     INFO - GECKO(1991) |     #24 mozilla::ipc::MessagePumpForNonMainThreads::Run(base::MessagePump::Delegate*) /builds/worker/checkouts/gecko/ipc/glue/MessagePump.cpp:332:5 (libxul.so+0x1479bc8)
[task 2020-12-04T04:09:39.720Z] 04:09:39     INFO - GECKO(1991) |     #25 RunInternal /builds/worker/checkouts/gecko/ipc/chromium/src/base/message_loop.cc:334:10 (libxul.so+0x1404d1c)
[task 2020-12-04T04:09:39.720Z] 04:09:39     INFO - GECKO(1991) |     #26 RunHandler /builds/worker/checkouts/gecko/ipc/chromium/src/base/message_loop.cc:327:3 (libxul.so+0x1404d1c)
[task 2020-12-04T04:09:39.720Z] 04:09:39     INFO - GECKO(1991) |     #27 MessageLoop::Run() /builds/worker/checkouts/gecko/ipc/chromium/src/base/message_loop.cc:309:3 (libxul.so+0x1404d1c)
[task 2020-12-04T04:09:39.721Z] 04:09:39     INFO - GECKO(1991) |     #28 nsThread::ThreadFunc(void*) /builds/worker/checkouts/gecko/xpcom/threads/nsThread.cpp:441:10 (libxul.so+0xb81bf0)
[task 2020-12-04T04:09:39.721Z] 04:09:39     INFO - GECKO(1991) |     #29 _pt_root /builds/worker/checkouts/gecko/nsprpub/pr/src/pthreads/ptthread.c:201:5 (libnspr4.so+0x4500b)
[task 2020-12-04T04:09:39.726Z] 04:09:39     INFO - GECKO(1991) | SUMMARY: ThreadSanitizer: data race /builds/worker/checkouts/gecko/storage/mozStorageConnection.cpp:1046:13 in setClosedState
[task 2020-12-04T04:09:39.726Z] 04:09:39     INFO - GECKO(1991) | ==================
[task 2020-12-04T04:09:39.754Z] 04:09:39     INFO - GECKO(1991) | Exiting due to channel error.
[task 2020-12-04T04:09:39.755Z] 04:09:39     INFO - GECKO(1991) | Exiting due to channel error.
[task 2020-12-04T04:09:39.755Z] 04:09:39     INFO - GECKO(1991) | Exiting due to channel error.
[task 2020-12-04T04:09:39.755Z] 04:09:39     INFO - GECKO(1991) | Exiting due to channel error.
[task 2020-12-04T04:09:40.808Z] 04:09:40     INFO - TEST-INFO | Main app process: killed by SIGIOT
[task 2020-12-04T04:09:40.808Z] 04:09:40     INFO - Buffered messages finished
[task 2020-12-04T04:09:40.809Z] 04:09:40    ERROR - TEST-UNEXPECTED-FAIL | Last test finished | application terminated with exit code -6
[task 2020-12-04T04:09:40.809Z] 04:09:40     INFO - runtests.py | Application ran for: 0:00:27.170954
[task 2020-12-04T04:09:40.809Z] 04:09:40     INFO - zombiecheck | Reading PID log: /tmp/tmp000nUUpidlog
[task 2020-12-04T04:09:40.809Z] 04:09:40     INFO - ==> process 1991 launched child process 2006
[task 2020-12-04T04:09:40.809Z] 04:09:40     INFO - ==> process 1991 launched child process 2059
[task 2020-12-04T04:09:40.810Z] 04:09:40     INFO - ==> process 1991 launched child process 2084
[task 2020-12-04T04:09:40.810Z] 04:09:40     INFO - ==> process 1991 launched child process 2142
[task 2020-12-04T04:09:40.810Z] 04:09:40     INFO - ==> process 1991 launched child process 2174
[task 2020-12-04T04:09:40.810Z] 04:09:40     INFO - zombiecheck | Checking for orphan process with PID: 2174
[task 2020-12-04T04:09:40.810Z] 04:09:40     INFO - zombiecheck | Checking for orphan process with PID: 2059
[task 2020-12-04T04:09:40.811Z] 04:09:40     INFO - zombiecheck | Checking for orphan process with PID: 2084
[task 2020-12-04T04:09:40.811Z] 04:09:40     INFO - zombiecheck | Checking for orphan process with PID: 2142
[task 2020-12-04T04:09:40.811Z] 04:09:40     INFO - zombiecheck | Checking for orphan process with PID: 2006
[task 2020-12-04T04:09:40.811Z] 04:09:40     INFO - Stopping web server
[task 2020-12-04T04:09:40.828Z] 04:09:40     INFO - Stopping web socket server
[task 2020-12-04T04:09:40.849Z] 04:09:40     INFO - Stopping ssltunnel
[task 2020-12-04T04:09:40.869Z] 04:09:40  WARNING - leakcheck | refcount logging is off, so leaks can't be detected!
[task 2020-12-04T04:09:40.869Z] 04:09:40     INFO - runtests.py | Running tests: end.
[task 2020-12-04T04:09:40.889Z] 04:09:40     INFO - Buffered messages finished
[task 2020-12-04T04:09:40.889Z] 04:09:40     INFO - Running manifest: dom/u2f/tests/browser/browser.ini
[task 2020-12-04T04:09:40.905Z] 04:09:40     INFO -  Setting pipeline to PAUSED ...
[task 2020-12-04T04:09:40.905Z] 04:09:40     INFO -  Pipeline is PREROLLING ...
[task 2020-12-04T04:09:40.906Z] 04:09:40     INFO -  Pipeline is PREROLLED ...
[task 2020-12-04T04:09:40.906Z] 04:09:40     INFO -  Setting pipeline to PLAYING ...
[task 2020-12-04T04:09:40.906Z] 04:09:40     INFO -  New clock: GstSystemClock
[task 2020-12-04T04:09:40.942Z] 04:09:40     INFO -  Got EOS from element "pipeline0".
[task 2020-12-04T04:09:40.942Z] 04:09:40     INFO -  Execution ended after 0:00:00.033411978
[task 2020-12-04T04:09:40.942Z] 04:09:40     INFO -  Setting pipeline to PAUSED ...
[task 2020-12-04T04:09:40.942Z] 04:09:40     INFO -  Setting pipeline to READY ...
[task 2020-12-04T04:09:40.942Z] 04:09:40     INFO -  (gst-launch-1.0:2211): GStreamer-CRITICAL **: 04:09:40.939: gst_object_unref: assertion '((GObject *) object)->ref_count > 0' failed
[task 2020-12-04T04:09:40.942Z] 04:09:40     INFO -  Setting pipeline to NULL ...
[task 2020-12-04T04:09:40.942Z] 04:09:40     INFO -  Freeing pipeline ...
[task 2020-12-04T04:09:40.970Z] 04:09:40     INFO - INFO | runtests.py | TSan using symbolizer at /builds/worker/workspace/build/application/firefox/llvm-symbolizer
[task 2020-12-04T04:09:41.307Z] 04:09:41     INFO - PID 2218 | pk12util: PKCS12 IMPORT SUCCESSFUL
[task 2020-12-04T04:09:41.712Z] 04:09:41     INFO - Increasing default timeout to 120 seconds
[task 2020-12-04T04:09:41.712Z] 04:09:41     INFO - INFO | runtests.py | TSan using symbolizer at /builds/worker/workspace/build/application/firefox/llvm-symbolizer
[task 2020-12-04T04:09:41.712Z] 04:09:41     INFO - INFO | runtests.py | TSan using symbolizer at /builds/worker/workspace/build/application/firefox/llvm-symbolizer
[task 2020-12-04T04:09:41.715Z] 04:09:41     INFO - MochitestServer : launching [u'/builds/worker/workspace/build/tests/bin/xpcshell', '-g', '/builds/worker/workspace/build/application/firefox', '-f', '/builds/worker/workspace/build/tests/bin/components/httpd.js', '-e', "const _PROFILE_PATH = '/tmp/tmpiEqCU1.mozrunner'; const _SERVER_PORT = '8888'; const _SERVER_ADDR = '127.0.0.1'; const _TEST_PREFIX = undefined; const _DISPLAY_RESULTS = false;", '-f', '/builds/worker/workspace/build/tests/mochitest/server.js']
[task 2020-12-04T04:09:41.716Z] 04:09:41     INFO - runtests.py | Server pid: 2230
[task 2020-12-04T04:09:41.719Z] 04:09:41     INFO - runtests.py | Websocket server pid: 2233
[task 2020-12-04T04:09:41.719Z] 04:09:41     INFO - INFO | runtests.py | TSan using symbolizer at /builds/worker/workspace/build/application/firefox/llvm-symbolizer
[task 2020-12-04T04:09:41.726Z] 04:09:41     INFO - runtests.py | SSL tunnel pid: 2236
[task 2020-12-04T04:09:42.277Z] 04:09:42     INFO - runtests.py | Running with scheme: http
[task 2020-12-04T04:09:42.277Z] 04:09:42     INFO - runtests.py | Running with e10s: True
[task 2020-12-04T04:09:42.277Z] 04:09:42     INFO - runtests.py | Running with fission: False
[task 2020-12-04T04:09:42.277Z] 04:09:42     INFO - runtests.py | Running with cross-origin iframes: False
[task 2020-12-04T04:09:42.279Z] 04:09:42     INFO - runtests.py | Running with serviceworker_e10s: True
[task 2020-12-04T04:09:42.279Z] 04:09:42     INFO - runtests.py | Running with socketprocess_e10s: False
[task 2020-12-04T04:09:42.279Z] 04:09:42     INFO - runtests.py | Running tests: start.
[task 2020-12-04T04:09:42.279Z] 04:09:42     INFO - 
[task 2020-12-04T04:09:42.294Z] 04:09:42     INFO - Application command: /builds/worker/workspace/build/application/firefox/firefox -marionette -foreground -profile /tmp/tmpiEqCU1.mozrunner
[task 2020-12-04T04:09:42.296Z] 04:09:42     INFO - runtests.py | Application pid: 2255```