Closed Bug 1888538 Opened 2 years ago Closed 1 year ago

Intermittent SUMMARY: ThreadSanitizer: data race /builds/worker/checkouts/gecko/dom/indexedDB/DatabaseFileManager.h:92:45 in DatabaseVersion | single tracking bug

Categories

(Core :: Storage: IndexedDB, defect, P2)

defect

Tracking

()

RESOLVED FIXED
133 Branch
Tracking Status
firefox-esr115 --- unaffected
firefox-esr128 132+ fixed
firefox124 --- unaffected
firefox125 --- unaffected
firefox126 --- wontfix
firefox127 --- wontfix
firefox131 --- wontfix
firefox132 + fixed
firefox133 + fixed

People

(Reporter: intermittent-bug-filer, Assigned: janv)

References

(Regression)

Details

(5 keywords, Whiteboard: [adv-main132+r] [adv-esr128.4+r])

Attachments

(1 file)

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


[task 2024-03-28T17:29:54.560Z] 17:29:54     INFO - TEST-START | /IndexedDB/get-databases.any.worker.html
[task 2024-03-28T17:29:54.569Z] 17:29:54     INFO - Closing window 84f1d7af-cffb-4cd9-99e4-9b674d2d9ad9
[task 2024-03-28T17:29:56.101Z] 17:29:56     INFO - PID 985 | ==================
[task 2024-03-28T17:29:56.102Z] 17:29:56     INFO - PID 985 | WARNING: ThreadSanitizer: data race (pid=985)
[task 2024-03-28T17:29:56.102Z] 17:29:56     INFO - PID 985 |   Read of size 8 at 0x7b44001c7238 by thread T51:
[task 2024-03-28T17:29:56.103Z] 17:29:56     INFO - PID 985 |     #0 DatabaseVersion /builds/worker/checkouts/gecko/dom/indexedDB/DatabaseFileManager.h:92:45 (libxul.so+0x7394fa1) (BuildId: 54e2223d848206c9a60d4145f518c34379b21257)
[task 2024-03-28T17:29:56.114Z] 17:29:56     INFO - PID 985 |     #1 mozilla::dom::indexedDB::(anonymous namespace)::GetDatabasesOp::DoDirectoryWork() /builds/worker/checkouts/gecko/dom/indexedDB/ActorsParent.cpp:16856:39 (libxul.so+0x7394fa1)
[task 2024-03-28T17:29:56.115Z] 17:29:56     INFO - PID 985 |     #2 mozilla::dom::indexedDB::(anonymous namespace)::FactoryOp::Run() /builds/worker/checkouts/gecko/dom/indexedDB/ActorsParent.cpp:15224:7 (libxul.so+0x7393834) (BuildId: 54e2223d848206c9a60d4145f518c34379b21257)
[task 2024-03-28T17:29:56.115Z] 17:29:56     INFO - PID 985 |     #3 nsThread::ProcessNextEvent(bool, bool*) /builds/worker/checkouts/gecko/xpcom/threads/nsThread.cpp:1193:16 (libxul.so+0x31fc48e) (BuildId: 54e2223d848206c9a60d4145f518c34379b21257)
[task 2024-03-28T17:29:56.115Z] 17:29:56     INFO - PID 985 |     #4 NS_ProcessNextEvent(nsIThread*, bool) /builds/worker/checkouts/gecko/xpcom/threads/nsThreadUtils.cpp:480:10 (libxul.so+0x3202a24) (BuildId: 54e2223d848206c9a60d4145f518c34379b21257)
[task 2024-03-28T17:29:56.115Z] 17:29:56     INFO - PID 985 |     #5 mozilla::ipc::MessagePumpForNonMainThreads::Run(base::MessagePump::Delegate*) /builds/worker/checkouts/gecko/ipc/glue/MessagePump.cpp:330:5 (libxul.so+0x3d288c9) (BuildId: 54e2223d848206c9a60d4145f518c34379b21257)
[task 2024-03-28T17:29:56.115Z] 17:29:56     INFO - PID 985 |     #6 RunInternal /builds/worker/checkouts/gecko/ipc/chromium/src/base/message_loop.cc:370:10 (libxul.so+0x3c9cce8) (BuildId: 54e2223d848206c9a60d4145f518c34379b21257)
[task 2024-03-28T17:29:56.115Z] 17:29:56     INFO - PID 985 |     #7 RunHandler /builds/worker/checkouts/gecko/ipc/chromium/src/base/message_loop.cc:363:3 (libxul.so+0x3c9cce8)
[task 2024-03-28T17:29:56.115Z] 17:29:56     INFO - PID 985 |     #8 MessageLoop::Run() /builds/worker/checkouts/gecko/ipc/chromium/src/base/message_loop.cc:345:3 (libxul.so+0x3c9cce8)
[task 2024-03-28T17:29:56.115Z] 17:29:56     INFO - PID 985 |     #9 nsThread::ThreadFunc(void*) /builds/worker/checkouts/gecko/xpcom/threads/nsThread.cpp:370:10 (libxul.so+0x31f7d13) (BuildId: 54e2223d848206c9a60d4145f518c34379b21257)
[task 2024-03-28T17:29:56.115Z] 17:29:56     INFO - PID 985 |     #10 _pt_root /builds/worker/checkouts/gecko/nsprpub/pr/src/pthreads/ptthread.c:201:5 (libnspr4.so+0x4ba79) (BuildId: 5ff8753bd53e6cf1de315638d4bdb4339ff612d2)
[task 2024-03-28T17:29:56.115Z] 17:29:56     INFO - PID 985 |   Previous write of size 8 at 0x7b44001c7238 by thread T8:
<...>
[task 2024-03-28T17:29:56.156Z] 17:29:56     INFO - PID 985 |   Thread T8 'IPDL Background' (tid=1034, running) created by main thread at:
[task 2024-03-28T17:29:56.157Z] 17:29:56     INFO - PID 985 |     #0 pthread_create /builds/worker/fetches/llvm-project/compiler-rt/lib/tsan/rtl/tsan_interceptors_posix.cpp:1020:3 (firefox-bin+0xc5a0b) (BuildId: ed53e3fb906c260deefaa9b8dbd9f0320daf9f36)
[task 2024-03-28T17:29:56.157Z] 17:29:56     INFO - PID 985 |     #1 _PR_CreateThread /builds/worker/checkouts/gecko/nsprpub/pr/src/pthreads/ptthread.c:458:14 (libnspr4.so+0x42cee) (BuildId: 5ff8753bd53e6cf1de315638d4bdb4339ff612d2)
[task 2024-03-28T17:29:56.158Z] 17:29:56     INFO - PID 985 |     #2 PR_CreateThread /builds/worker/checkouts/gecko/nsprpub/pr/src/pthreads/ptthread.c:533:12 (libnspr4.so+0x37f84) (BuildId: 5ff8753bd53e6cf1de315638d4bdb4339ff612d2)
[task 2024-03-28T17:29:56.159Z] 17:29:56     INFO - PID 985 |     #3 nsThread::Init(nsTSubstring<char> const&) /builds/worker/checkouts/gecko/xpcom/threads/nsThread.cpp:620:20 (libxul.so+0x31f94b7) (BuildId: 54e2223d848206c9a60d4145f518c34379b21257)
[task 2024-03-28T17:29:56.160Z] 17:29:56     INFO - PID 985 |     #4 nsThreadManager::NewNamedThread(nsTSubstring<char> const&, nsIThreadManager::ThreadCreationOptions, nsIThread**) /builds/worker/checkouts/gecko/xpcom/threads/nsThreadManager.cpp:598:22 (libxul.so+0x320155d) (BuildId: 54e2223d848206c9a60d4145f518c34379b21257)
[task 2024-03-28T17:29:56.161Z] 17:29:56     INFO - PID 985 |     #5 NS_NewNamedThread(nsTSubstring<char> const&, nsIThread**, already_AddRefed<nsIRunnable>, nsIThreadManager::ThreadCreationOptions) /builds/worker/checkouts/gecko/xpcom/threads/nsThreadUtils.cpp:176:57 (libxul.so+0x320a213) (BuildId: 54e2223d848206c9a60d4145f518c34379b21257)
[task 2024-03-28T17:29:56.162Z] 17:29:56     INFO - PID 985 |     #6 NS_NewNamedThread<16UL> /builds/worker/checkouts/gecko/xpcom/threads/nsThreadUtils.h:76:10 (libxul.so+0x3ce3cdc) (BuildId: 54e2223d848206c9a60d4145f518c34379b21257)
[task 2024-03-28T17:29:56.162Z] 17:29:56     INFO - PID 985 |     #7 CreateBackgroundThread /builds/worker/checkouts/gecko/ipc/glue/BackgroundImpl.cpp:879:7 (libxul.so+0x3ce3cdc)
[task 2024-03-28T17:29:56.163Z] 17:29:56     INFO - PID 985 |     #8 (anonymous namespace)::ParentImpl::AllocStarter(mozilla::dom::ContentParent*, mozilla::ipc::Endpoint<mozilla::ipc::PBackgroundStarterParent>&&, bool) /builds/worker/checkouts/gecko/ipc/glue/BackgroundImpl.cpp:811:30 (libxul.so+0x3ce3cdc)
[task 2024-03-28T17:29:56.164Z] 17:29:56     INFO - PID 985 |     #9 Startup /builds/worker/checkouts/gecko/ipc/glue/BackgroundImpl.cpp:1154:5 (libxul.so+0x3ce40c6) (BuildId: 54e2223d848206c9a60d4145f518c34379b21257)
[task 2024-03-28T17:29:56.164Z] 17:29:56     INFO - PID 985 |     #10 mozilla::ipc::BackgroundChild::Startup() /builds/worker/checkouts/gecko/ipc/glue/BackgroundImpl.cpp:677:35 (libxul.so+0x3ce40c6)
[task 2024-03-28T17:29:56.165Z] 17:29:56     INFO - PID 985 |     #11 mozilla::dom::ContentParent::StartUp() /builds/worker/checkouts/gecko/dom/ipc/ContentParent.cpp:674:3 (libxul.so+0x758b285) (BuildId: 54e2223d848206c9a60d4145f518c34379b21257)
[task 2024-03-28T17:29:56.166Z] 17:29:56     INFO - PID 985 |     #12 nsLayoutStatics::Initialize() /builds/worker/checkouts/gecko/layout/build/nsLayoutStatics.cpp:143:3 (libxul.so+0x860eb46) (BuildId: 54e2223d848206c9a60d4145f518c34379b21257)
[task 2024-03-28T17:29:56.166Z] 17:29:56     INFO - PID 985 |     #13 nsLayoutModuleInitialize() /builds/worker/checkouts/gecko/layout/build/nsLayoutModule.cpp:101:7 (libxul.so+0x860ea74) (BuildId: 54e2223d848206c9a60d4145f518c34379b21257)
[task 2024-03-28T17:29:56.167Z] 17:29:56     INFO - PID 985 |     #14 nsComponentManagerImpl::Init() /builds/worker/checkouts/gecko/xpcom/components/nsComponentManager.cpp:387:5 (libxul.so+0x31c3d6f) (BuildId: 54e2223d848206c9a60d4145f518c34379b21257)
[task 2024-03-28T17:29:56.167Z] 17:29:56     INFO - PID 985 |     #15 NS_InitXPCOM /builds/worker/checkouts/gecko/xpcom/build/XPCOMInit.cpp:446:51 (libxul.so+0x3239cda) (BuildId: 54e2223d848206c9a60d4145f518c34379b21257)
[task 2024-03-28T17:29:56.168Z] 17:29:56     INFO - PID 985 |     #16 ScopedXPCOMStartup::Initialize(bool) /builds/worker/checkouts/gecko/toolkit/xre/nsAppRunner.cpp:1993:8 (libxul.so+0x9c8daf3) (BuildId: 54e2223d848206c9a60d4145f518c34379b21257)
[task 2024-03-28T17:29:56.169Z] 17:29:56     INFO - PID 985 |     #17 XREMain::XRE_main(int, char**, mozilla::BootstrapConfig const&) /builds/worker/checkouts/gecko/toolkit/xre/nsAppRunner.cpp:5954:22 (libxul.so+0x9c99aab) (BuildId: 54e2223d848206c9a60d4145f518c34379b21257)
[task 2024-03-28T17:29:56.169Z] 17:29:56     INFO - PID 985 |     #18 XRE_main(int, char**, mozilla::BootstrapConfig const&) /builds/worker/checkouts/gecko/toolkit/xre/nsAppRunner.cpp:6015:21 (libxul.so+0x9c9a171) (BuildId: 54e2223d848206c9a60d4145f518c34379b21257)
[task 2024-03-28T17:29:56.170Z] 17:29:56     INFO - PID 985 |     #19 mozilla::BootstrapImpl::XRE_main(int, char**, mozilla::BootstrapConfig const&) /builds/worker/checkouts/gecko/toolkit/xre/Bootstrap.cpp:45:12 (libxul.so+0x9ca91c2) (BuildId: 54e2223d848206c9a60d4145f518c34379b21257)
[task 2024-03-28T17:29:56.171Z] 17:29:56     INFO - PID 985 |     #20 do_main /builds/worker/checkouts/gecko/browser/app/nsBrowserApp.cpp:227:22 (firefox-bin+0x14ea50) (BuildId: ed53e3fb906c260deefaa9b8dbd9f0320daf9f36)
[task 2024-03-28T17:29:56.171Z] 17:29:56     INFO - PID 985 |     #21 main /builds/worker/checkouts/gecko/browser/app/nsBrowserApp.cpp:445:16 (firefox-bin+0x14ea50)
[task 2024-03-28T17:29:56.172Z] 17:29:56     INFO - PID 985 | SUMMARY: ThreadSanitizer: data race /builds/worker/checkouts/gecko/dom/indexedDB/DatabaseFileManager.h:92:45 in DatabaseVersion
[task 2024-03-28T17:29:56.172Z] 17:29:56     INFO - PID 985 | ==================
[task 2024-03-28T17:29:56.173Z] 17:29:56     INFO - PID 985 | Exiting due to channel error.
[task 2024-03-28T17:29:56.186Z] 17:29:56     INFO - IOError on command, setting status to CRASH
[task 2024-03-28T17:29:56.187Z] 17:29:56     INFO - PID 985 | Crash Annotation GraphicsCriticalError: |[C0][GFX1-]: CompositorBridgeChild receives IPC close with reason=AbnormalShutdown (t=54.3934) Exiting due to channel error.
[task 2024-03-28T17:29:56.188Z] 17:29:56     INFO - PID 985 | Exiting due to channel error.
[task 2024-03-28T17:29:56.188Z] 17:29:56     INFO - PID 985 | Crash Annotation GraphicsCriticalError: |[C0][GFX1-]: CompositorBridgeChild receives IPC close with reason=AbnormalShutdown (t=57.0136) Crash Annotation GraphicsCriticalError: |[C0][GFX1-]: CompositorBridgeChild receives IPC close with reason=AbnormalShutdown (t=59.067) Exiting due to channel error.
[task 2024-03-28T17:29:56.189Z] 17:29:56     INFO - PID 985 | Exiting due to channel error.
[task 2024-03-28T17:29:56.190Z] 17:29:56     INFO - TEST-UNEXPECTED-CRASH | /IndexedDB/get-databases.any.worker.html | expected OK
[task 2024-03-28T17:29:56.191Z] 17:29:56     INFO - TEST-INFO took 1619ms
[task 2024-03-28T17:29:57.200Z] 17:29:57     INFO - PID 985 | Crash Annotation GraphicsCriticalError: |[C0][GFX1-]: CompositorBridgeChild receives IPC close with reason=AbnormalShutdown (t=59.1082)
[task 2024-03-28T17:29:57.202Z] 17:29:57     INFO - Browser exited with return code -6
[task 2024-03-28T17:29:57.204Z] 17:29:57     INFO - Closing logging queue
[task 2024-03-28T17:29:57.204Z] 17:29:57     INFO - queue closed
[task 2024-03-28T17:29:57.216Z] 17:29:57     INFO - INFO | runtests.py | TSan using symbolizer at /builds/worker/workspace/build/application/firefox/llvm-symbolizer
[task 2024-03-28T17:29:57.217Z] 17:29:57     INFO - Application command: /builds/worker/workspace/build/application/firefox/firefox --marionette about:blank -profile /tmp/tmpji8dr2yh
[task 2024-03-28T17:29:57.227Z] 17:29:57     INFO - PID 988 | ATTENTION: default value of option mesa_glthread overridden by environment.
[task 2024-03-28T17:29:57.228Z] 17:29:57     INFO - PID 988 | 1711646918292	Marionette	INFO	Marionette enabled
[task 2024-03-28T17:29:57.229Z] 17:29:57     INFO - PID 988 | ATTENTION: default value of option mesa_glthread overridden by environment.
[task 2024-03-28T17:29:57.230Z] 17:29:57     INFO - PID 988 | 1711646919180	Marionette	INFO	Listening on port 37364
[task 2024-03-28T17:29:57.231Z] 17:29:57     INFO - PID 988 | console.error: ({})
[task 2024-03-28T17:29:57.232Z] 17:29:57     INFO - PID 988 | [ERROR error_support::handling] suggest-unexpected: Error from Remote Settings: Error parsing URL: relative URL with a cannot-be-a-base base
[task 2024-03-28T17:29:57.232Z] 17:29:57     INFO - PID 988 | console.error: URLBar - QuickSuggest.SuggestBackendRust: "Ingest error: Error from Remote Settings: Error parsing URL: relative URL with a cannot-be-a-base base"
[task 2024-03-28T17:29:57.233Z] 17:29:57     INFO - Starting runner
[task 2024-03-28T17:29:58.963Z] 17:29:58     INFO - TEST-START | /IndexedDB/get-databases.any.html
Group: core-security → dom-core-security
Keywords: csectype-race

This looks like a race on DatabaseFileManager::mDatabaseVersion, which is an integer.

Keywords: sec-moderate

It looks like that field was added in bug 934640, so I'll mark the regression.

Flags: needinfo?(jvarga)
Keywords: regression
Regressed by: 934640
Assignee: nobody → jvarga
Severity: -- → S3
Status: NEW → ASSIGNED
Flags: needinfo?(jvarga)
Priority: -- → P2

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

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

See Also: → 1900394
Depends on: 1914599
Status: ASSIGNED → RESOLVED
Closed: 1 year ago
Resolution: --- → FIXED
Target Milestone: --- → 133 Branch
QA Whiteboard: [post-critsmash-triage]
Flags: qe-verify-
Whiteboard: [adv-main132+r] [adv-esr128.4+r]
Group: core-security-release
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: