Crash in mozilla::dom::cache::db::`anonymous namespace''::Migrate

RESOLVED FIXED in Firefox 53

Status

()

defect
--
critical
RESOLVED FIXED
2 years ago
4 months ago

People

(Reporter: ting, Assigned: bkelly)

Tracking

(Blocks 1 bug, {crash})

Trunk
mozilla54
Unspecified
Windows 10
Points:
---
Dependency tree / graph

Firefox Tracking Flags

(firefox52 unaffected, firefox-esr52 unaffected, firefox53 fixed, firefox54 fixed)

Details

(crash signature)

Attachments

(1 attachment)

This bug was filed from the Socorro interface and is 
report bp-a375191c-347c-4083-94f6-ca65d2170221.
=============================================================
Top #8 of Aurora 20170219004014 on Windows, 15 crashes from 3 installations.
Flags: needinfo?(bkelly)
This reflects profiles being shared between nightly and aurora with incompatible cache schema versions.  We could switch this back to a MOZ_ASSERT() since we also catch this condition and refuse to open storage.

Do you mind trying this?
Flags: needinfo?(bkelly) → needinfo?(janus926)
Actually, I'm just going to go ahead and do this.
Assignee: nobody → bkelly
Status: NEW → ASSIGNED
Flags: needinfo?(janus926)
Lets not crash release builds if they get a cache schema version mismatch.  Our runtime checking will handle this.
Attachment #8839483 - Flags: review?(bugmail)
This only affects nightly/aurora because its a MOZ_DIAGNOSTIC_ASSERT.
Attachment #8839483 - Flags: review?(bugmail) → review+
Pushed by bkelly@mozilla.com:
https://hg.mozilla.org/integration/mozilla-inbound/rev/3ebff6b4a913
Relax Cache API schema version assertion since mismatches can happen in release profiles. r=asuth
Comment on attachment 8839483 [details] [diff] [review]
Relax Cache API schema version assertion since mismatches can happen in release profiles. r=asuth

Approval Request Comment
[Feature/Bug causing the regression]: Bug 1328686 converted a MOZ_ASSERT() into a MOZ_DIAGNOSTIC_ASSERT().
[User impact if declined]: Crashes when a user shared a profile across firefox channels with different Cache API schema versions.  Normally we just refuse to open the storage system instead of crashing.
[Is this code covered by automated tests?]: This kind of version mismatch is not tested as far as I know.
[Has the fix been verified in Nightly?]: No.  The schema version mismatch is really only triggered on aurora when it opens a profile that was upgraded to nightly.
[Needs manual test from QE? If yes, steps to reproduce]: No
[List of other uplifts needed for the feature/fix]: No
[Is the change risky?]: No risk.
[Why is the change risky/not risky?]: The patch simply converts a MOZ_DIAGNOSTIC_ASSERT() back to a MOZ_ASSERT().  We had this exact code for a long time before bug 1328686 changed it recently.
[String changes made/needed]: None
Attachment #8839483 - Flags: approval-mozilla-aurora?
Blocks: 1328686
https://hg.mozilla.org/mozilla-central/rev/3ebff6b4a913
Status: ASSIGNED → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla54
Comment on attachment 8839483 [details] [diff] [review]
Relax Cache API schema version assertion since mismatches can happen in release profiles. r=asuth

Fix a crash. Aurora53+.
Attachment #8839483 - Flags: approval-mozilla-aurora? → approval-mozilla-aurora+
Crash Signature: [@ mozilla::dom::cache::db::`anonymous namespace''::Migrate] → [@ mozilla::dom::cache::db::`anonymous namespace''::Migrate] [@ mozilla::dom::cache::db::CreateOrMigrateSchema ]
Component: DOM → DOM: Core & HTML
You need to log in before you can comment on or make changes to this bug.