Closed Bug 1333082 Opened 7 years ago Closed 7 years ago

Crash in mozilla::dom::workers::ServiceWorkerRegistrationInfo::TransitionInstallingToWaiting

Categories

(Core :: DOM: Service Workers, defect)

x86
Windows XP
defect
Not set
critical

Tracking

()

RESOLVED FIXED
mozilla54
Tracking Status
firefox-esr45 --- wontfix
firefox50 --- wontfix
firefox51 --- wontfix
firefox52 --- fixed
firefox53 --- fixed
firefox54 --- fixed

People

(Reporter: bkelly, Assigned: bkelly)

References

Details

(Keywords: crash)

Crash Data

Attachments

(1 file)

This bug was filed from the Socorro interface and is 
report bp-e2eef747-f0dd-48c1-b2f8-156282170123.
=============================================================

It appears ServiceWorkerUpdateJob::ContinueAfterInstallEvent() is getting called when mRegistration is nullptr.  I don't see how this could be happening, but lets try to protect against it and assert it doesn't happen.
Somehow we are triggering a FailUpdate() call and then also still calling ContinueAfterInstallEvent().  This makes us try to continue on a nullptr mRegistration.  I can't find which path triggers this, but lets try not to crash here and add an assertion.
Attachment #8829466 - Flags: review?(bugmail)
Attachment #8829466 - Flags: review?(bugmail) → review+
Pushed by bkelly@mozilla.com:
https://hg.mozilla.org/integration/mozilla-inbound/rev/323cb4def9fd
Handle nullptr mRegistration in ServiceWorkerUpdateJob::ContinueAfterInstallEvent(). r=asuth
Comment on attachment 8829466 [details] [diff] [review]
Handle nullptr mRegistration in ServiceWorkerUpdateJob::ContinueAfterInstallEvent(). r=asuth

Approval Request Comment
[Feature/Bug causing the regression]: Service workers
[User impact if declined]: Low frequency crashes.  This patch will mitigate some of the crashes and help narrow down the problem.
[Is this code covered by automated tests?]: We have extensive tests, but they don't trigger this condition.
[Has the fix been verified in Nightly?]: We do not have steps to reproduce, so we can't manually verify.
[Needs manual test from QE? If yes, steps to reproduce]: No
[List of other uplifts needed for the feature/fix]: None
[Is the change risky?]: Minimal risk
[Why is the change risky/not risky?]: It only adds a nullptr check and a diagnostic assertion.  The chance of a regression is very low.
[String changes made/needed]:
Attachment #8829466 - Flags: approval-mozilla-beta?
Attachment #8829466 - Flags: approval-mozilla-aurora?
https://hg.mozilla.org/mozilla-central/rev/323cb4def9fd
Status: ASSIGNED → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla54
Comment on attachment 8829466 [details] [diff] [review]
Handle nullptr mRegistration in ServiceWorkerUpdateJob::ContinueAfterInstallEvent(). r=asuth

service worker crash fix, aurora53+, beta52+
Attachment #8829466 - Flags: approval-mozilla-beta?
Attachment #8829466 - Flags: approval-mozilla-beta+
Attachment #8829466 - Flags: approval-mozilla-aurora?
Attachment #8829466 - Flags: approval-mozilla-aurora+
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: