Very frequent Android non-e10s dom/serviceworkers/test/test_self_update_worker.html | application crashed [@ RefPtr<mozilla::dom::(anonymous namespace)::AllowWindowInteractionHandler>::operator->() const + 0x2c] when Gecko 68 merges to Beta on 2019-05-07
Categories
(Core :: DOM: Service Workers, defect, P1)
Tracking
()
Tracking | Status | |
---|---|---|
firefox-esr60 | --- | unaffected |
firefox66 | --- | unaffected |
firefox67 | --- | unaffected |
firefox67.0.1 | --- | unaffected |
firefox68 | + | fixed |
firefox69 | --- | fixed |
People
(Reporter: dluca, Assigned: perry)
References
Details
Crash Data
Attachments
(1 file)
47 bytes,
text/x-phabricator-request
|
jcristau
:
approval-mozilla-beta+
|
Details | Review |
Central as beta simulation:
https://treeherder.mozilla.org/#/jobs?repo=try&resultStatus=testfailed%2Cbusted%2Cexception&revision=3597979ddc1bd3db4fae1575eecc83090459f6b5&selectedJob=245342624
Failure log:
https://treeherder.mozilla.org/logviewer.html#/jobs?job_id=245342624&repo=try&lineNumber=1461
Failure:
dom/serviceworkers/test/test_self_update_worker.html | application crashed [@ RefPtr<mozilla::dom::(anonymous namespace)::AllowWindowInteractionHandler>::operator->() const + 0x2c]
Comment 2•6 years ago
|
||
I don't know how this is failing in the "central as beta" simulation but that seems bad so please take a look, Perry :)
Assignee | ||
Comment 3•6 years ago
|
||
Based on the treeherder log:
- The crash occurs after a test completes (likely during shutdown)
- The stack trace shows the crash occurs during a timer callback
- The crash (i.e. stack frame 0) is due to a pointer dereference, where the pointer is nulled during shutdown
So, it seems like a race condition that can be prevented by either clearing the timer at the right time (or performing a null-check on the pointer).
Assignee | ||
Comment 4•6 years ago
|
||
![]() |
||
Updated•6 years ago
|
![]() |
||
Updated•6 years ago
|
Updated•6 years ago
|
Comment 5•6 years ago
|
||
Central as early beta sim: https://treeherder.mozilla.org/#/jobs?repo=try&revision=515741fed29ee61d5181d8b87fbf3274333b017f&searchStr=%2823%29
This fix seems to solve the current issue.
![]() |
||
Comment 7•6 years ago
|
||
Updated•6 years ago
|
Comment 10•6 years ago
|
||
Comment 11•6 years ago
|
||
bugherder |
Assignee | ||
Comment 13•6 years ago
|
||
Comment on attachment 9064157 [details]
Bug 1550059 - Clear ServiceWorker(Registration)Infos on shutdown. r?asuth
Beta/Release Uplift Approval Request
- User impact if declined: Intermittent crash
- Is this code covered by automated tests?: Yes
- Has the fix been verified in Nightly?: No
- 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): The patch isn't doing anything except cleaning things up that aren't expected to be used anymore after a certain point in the shutdown process.
- String changes made/needed:
Comment hidden (Intermittent Failures Robot) |
Comment 15•6 years ago
|
||
Comment on attachment 9064157 [details]
Bug 1550059 - Clear ServiceWorker(Registration)Infos on shutdown. r?asuth
serviceworker cleanup on shutdown, approved for 68.0b8
Comment 16•6 years ago
|
||
bugherder uplift |
Comment hidden (Intermittent Failures Robot) |
Description
•