Closed Bug 1636147 Opened 4 years ago Closed 4 years ago

RuntimeService::CrashIfHanging reports dead workers as active

Categories

(Core :: DOM: Workers, defect, P2)

defect

Tracking

()

RESOLVED FIXED
mozilla78
Tracking Status
firefox78 --- fixed

People

(Reporter: ytausky, Assigned: ytausky)

References

(Blocks 1 open bug)

Details

Attachments

(1 file)

As described here, RuntimeService::CrashIfHanging is reporting workers whose status is Dead as active, causing a lot of crash reports wrongly attributed to hanging workers.

Assignee: nobody → ytausky
Blocks: 1435343
Severity: -- → S4

RuntimeService::CrashIfHanging uses RuntimeService's registry
to determine which workers are still active. This approach is
flawed because the registry is updated on the main thread, so if
the main thread is stuck somewhere, dead workers could be reported
as active.
This commit adds an additional check: if dispatching a Runnable
to a worker fails, it assumes that the worker is dead. This way
main thread hangs would not be reported as worker hangs.

Priority: -- → P2
Pushed by bugmail@asutherland.org:
https://hg.mozilla.org/integration/autoland/rev/e63c8298618e
Don't report dead workers as active r=dom-workers-and-storage-reviewers,sg,asuth
Status: NEW → RESOLVED
Closed: 4 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla78

Comment on attachment 9146492 [details]
Bug 1636147 - Don't report dead workers as active r=#dom-workers-and-storage-reviewers

Beta/Release Uplift Approval Request

  • User impact if declined: None, this patch only influences the way a shutdown hang is reported to us.
  • Is this code covered by automated tests?: No
  • Has the fix been verified in Nightly?: Yes
  • Needs manual test from QE?: No
  • If yes, steps to reproduce:
  • List of other uplifts needed: None
  • Risk to taking this patch: Low
  • Why is the change risky/not risky? (and alternatives if risky): This patch shouldn't be risky because it only touches code that gets executed once it's certain that we're going to crash.
  • String changes made/needed:
Attachment #9146492 - Flags: approval-mozilla-beta?

Comment on attachment 9146492 [details]
Bug 1636147 - Don't report dead workers as active r=#dom-workers-and-storage-reviewers

This is a P2/S4 bug, there is no end user benefit to uplifting this patch in 77. Since we are ending the beta cycle, the patch will be in 78 beta 1 in less than 2 weeks, so I don't think that there is a compelling reason to uplift it in our last beta, sorry.

Attachment #9146492 - Flags: approval-mozilla-beta? → approval-mozilla-beta-
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: