Closed Bug 1435958 Opened 7 years ago Closed 7 years ago

QuotaManager blocks the worker shutdown

Categories

(Core :: Storage: Quota Manager, defect, P2)

58 Branch
defect

Tracking

()

RESOLVED DUPLICATE of bug 1411908

People

(Reporter: baku, Unassigned)

Details

Crash Data

https://crash-stats.mozilla.com/report/index/b702d8a5-2331-4f6e-bc9e-5e84c0180206#allthreads here QuotaManager receives the xpcom-shutdown notification and it blocks the main-thread. workerinternals::RuntimeService doesn't receive the same notification and after a timeout, it crashes. https://crash-stats.mozilla.com/report/index/27c652d6-9da8-40c0-ad21-dc3c60180206#allthreads here a similar issue.
Note that, soon, worker shutdown should start when xpcom-will-shutdown is received, but the current QM code, can block other component shutdown as well.
Flags: needinfo?(jvarga)
Blocks: 1435343
Priority: -- → P2
Blocks: 1437575
Blocks: 1405290
https://crash-stats.mozilla.com/report/index/9d01210c-783d-4805-87d9-6c4ed0180206#allthreads is blocked by Quota's Manager::ShutdownAll() in thread 16. This is going to wait for existing contexts/IO operations to Cancel and complete. I suppose it's possible for those to take a while (profile on a network?), though it's unclear how long before the Worker timeout causes a forced crash.
Blocks: 1448637
"perf" key word?
Andrea, how different is bug 1411908 from this one? Maybe duping this one?
Flags: needinfo?(amarchesini)
Yes, it is.
Status: NEW → RESOLVED
Closed: 7 years ago
Flags: needinfo?(amarchesini)
Resolution: --- → DUPLICATE
Crash Signature: [@ mozilla::dom::workerinternals::RuntimeService::CrashIfHanging ]

We are working on fixing quota manager shutdown hangs. See for example bug 1540668 and bug 1539750.

Flags: needinfo?(jvarga)
You need to log in before you can comment on or make changes to this bug.