Crash in [@ mozilla::dom::cache::Context::OnQuotaInit]
Categories
(Core :: Storage: Cache API, defect, P2)
Tracking
()
Tracking | Status | |
---|---|---|
firefox-esr115 | --- | unaffected |
firefox121 | --- | wontfix |
firefox122 | --- | fixed |
firefox123 | --- | fixed |
People
(Reporter: mccr8, Assigned: hsingh)
References
(Regression)
Details
(Keywords: crash, regression)
Crash Data
Attachments
(1 file)
Crash report: https://crash-stats.mozilla.org/report/index/b5248e4c-c819-49cf-b37d-9d7a60231206
MOZ_CRASH Reason: MOZ_DIAGNOSTIC_ASSERT(mCipherKeyManager)
Top 10 frames of crashing thread:
0 xul.dll mozilla::dom::cache::Context::OnQuotaInit dom/cache/Context.cpp:1031
1 xul.dll mozilla::dom::cache::Context::QuotaInitRunnable::Run dom/cache/Context.cpp:463
2 xul.dll nsThread::ProcessNextEvent xpcom/threads/nsThread.cpp:1192
2 xul.dll NS_ProcessNextEvent xpcom/threads/nsThreadUtils.cpp:480
3 xul.dll mozilla::ipc::MessagePumpForNonMainThreads::Run ipc/glue/MessagePump.cpp:330
4 xul.dll MessageLoop::RunInternal ipc/chromium/src/base/message_loop.cc:370
4 xul.dll MessageLoop::RunHandler ipc/chromium/src/base/message_loop.cc:363
5 xul.dll MessageLoop::Run ipc/chromium/src/base/message_loop.cc:345
5 xul.dll nsThread::ThreadFunc xpcom/threads/nsThread.cpp:370
6 nss3.dll _PR_NativeRunThread nsprpub/pr/src/threads/combined/pruthr.c:399
Assignee | ||
Updated•1 year ago
|
Assignee | ||
Comment 1•1 year ago
|
||
Seems like we should only be asserting for mCipherKeyManager being non-null when aRV is not an error here: https://hg.mozilla.org/mozilla-central/file/30004166d9f2cc3399da68e8762c35b1b886c0dc/dom/cache/Context.cpp#l1031
Assignee | ||
Updated•1 year ago
|
Assignee | ||
Comment 3•1 year ago
|
||
QuotaInitRunnable is invoked by Context to set up cache directory. This is not always successful as it could be
interrupted by shutdown or other filesystem issues. In case of error, it's possible that mCipherKeyManager is
not initialized by the time it ran into error. QuotaInitRunnable will transition to 'complete' state in both success
and failure scenario and it would call into Context::onQuotaInit. So, we shouldn't assert for mCipherKeyManager in there
as it was not initialized and Context gets dropped there (in case of an error) so it's not needed in that case as well.
Updated•1 year ago
|
Comment 5•1 year ago
|
||
Backed out changeset f47f48be162a (Bug 1869087) for causing crashes in StorageControllerTest CLOSED TREE
Log: https://treeherder.mozilla.org/logviewer?job_id=439901962&repo=autoland&lineNumber=17325
Backout: https://hg.mozilla.org/integration/autoland/rev/6f6ca39797ce4479c06ce891d7dae607b819e5a6
Assignee | ||
Updated•1 year ago
|
Comment 7•1 year ago
|
||
Backed out for causing multiple Quota related failures
Assignee | ||
Updated•1 year ago
|
Updated•1 year ago
|
Comment 9•1 year ago
|
||
bugherder |
Assignee | ||
Updated•1 year ago
|
Assignee | ||
Comment 10•1 year ago
|
||
Resolving this as fixed since the linked bug got fixed and landed.
Updated•1 year ago
|
Updated•1 year ago
|
Description
•