LSNG: Convert most of MOZ_ASSERT to MOZ_DIAGNOSTIC_ASSERT
Categories
(Core :: Storage: localStorage & sessionStorage, task, P3)
Tracking
()
People
(Reporter: janv, Unassigned)
References
(Blocks 1 open bug)
Details
Crash Data
Attachments
(5 files)
MOZ_ASSERT is only defined in debug builds. All the automatic tests run in debug builds, but there are obviously corner cases which are not covered by our tests. So the only chance how to better identify these corner cases is to have assertions in optimized Nightly builds which are used daily by many users.
It adds some overhead, but I think we don't have any other options.
This is primarly intended to identify remaining deadlocks and shutdown hangs.
Reporter | ||
Updated•6 years ago
|
Reporter | ||
Comment 1•6 years ago
|
||
Reporter | ||
Updated•6 years ago
|
Reporter | ||
Comment 2•6 years ago
|
||
Reporter | ||
Comment 3•6 years ago
|
||
Basically, all MOZ_ASSERT should be converted to MOZ_DIAGNOSTIC_ASSERT, except the ones for thread checks.
Also, all #ifdef DEBUG should be converted to #ifdef MOZ_DIAGNOSTIC_ASSERT_ENABLED, except the ones for NS_WARNING or LS_WARNING.
Comment 5•6 years ago
|
||
bugherder |
Updated•6 years ago
|
Updated•6 years ago
|
Reporter | ||
Comment 7•6 years ago
|
||
Ok this was expected to happen, sorry for the trouble.
We obtained really good data and now we can fix remaining bugs.
Reporter | ||
Updated•6 years ago
|
Reporter | ||
Comment 8•6 years ago
|
||
Reporter | ||
Comment 9•6 years ago
|
||
Reporter | ||
Comment 10•6 years ago
|
||
Reporter | ||
Comment 11•6 years ago
|
||
Reporter | ||
Comment 12•6 years ago
|
||
I plan to land only one part/patch a day.
Reporter | ||
Updated•6 years ago
|
Comment 13•6 years ago
|
||
Comment 14•6 years ago
|
||
bugherder |
Comment 15•6 years ago
|
||
Reporter | ||
Comment 16•6 years ago
|
||
So, the incorrect usage is still stored in some usage files. We need to change the "cookie" of the usage file so all usage files get recalculated value.
Comment 17•6 years ago
|
||
There are 13 crashes with signature 'mozilla::dom::(anonymous namespace)::QuotaClient::InitOrigin' and 4 with 'mozilla::dom::`anonymous namespace'::QuotaClient::InitOrigin'.
For all these crashes the moz_crash_reason is: MOZ_RELEASE_ASSERT(usage >= 0).
Reporter | ||
Comment 18•6 years ago
|
||
Yeah, the patch has been backed out.
Comment 19•6 years ago
|
||
Jan, next time can you please ask sheriffs to back out the crashing patch from central directly? That way we avoid an extra unnecessary crashy build. Thanks :)
Reporter | ||
Comment 20•6 years ago
|
||
There were no issues on my local machine and all the tests passed on try. I needed to verify with bigger audience.
Sorry about that.
Comment 21•6 years ago
|
||
Backout of part 1: https://hg.mozilla.org/mozilla-central/rev/3dcc6eec59f4
Updated•6 years ago
|
Comment 22•6 years ago
|
||
Comment 23•6 years ago
|
||
bugherder |
Comment 24•6 years ago
|
||
Reporter | ||
Updated•6 years ago
|
Comment 25•6 years ago
|
||
bugherder |
Comment 26•6 years ago
|
||
There are 8 crashes with signatures 'mozilla::dom::(anonymous namespace)::Snapshot::RecvCheckpoint' and 'mozilla::dom::`anonymous namespace'::Snapshot::RecvCheckpoint'.
They all hit the assertion: MOZ_RELEASE_ASSERT(mPeakUsage >= mUsage).
Comment 27•6 years ago
|
||
Comment 28•6 years ago
|
||
bugherder |
Comment 29•6 years ago
|
||
Comment 30•6 years ago
|
||
bugherder |
Comment 31•6 years ago
|
||
Comment 32•6 years ago
|
||
bugherder |
Comment 33•6 years ago
|
||
Setting checkin-needed-beta to get the latest backout (from comment 32) grafted to 68 to stop crashing DevEdition builds.
Comment 34•6 years ago
|
||
bugherder uplift |
Updated•6 years ago
|
Comment 35•5 years ago
|
||
Comment 36•5 years ago
|
||
bugherder |
Comment 37•5 years ago
|
||
Comment 38•5 years ago
|
||
bugherder |
Comment 39•5 years ago
|
||
Comment 40•5 years ago
|
||
bugherder |
Reporter | ||
Comment 41•5 years ago
|
||
Julien, do we also want to uplift patches from comment 36, comment 38 and comment 40 ?
All those crashes will automatically stop once early beta ends, not sure if it will happen in beta 9.
Comment 42•5 years ago
|
||
https://hg.mozilla.org/releases/mozilla-beta/rev/8a44e86052bb5439b6f71ee0c616ba2f6251a655
https://hg.mozilla.org/releases/mozilla-beta/rev/8814bb1352784e68fc0944c17104d308166a93b7
https://hg.mozilla.org/releases/mozilla-beta/rev/927b23f07645dd3f1ff4b63d8cf477bec77b9e22
Reporter | ||
Updated•5 years ago
|
Reporter | ||
Comment 44•5 years ago
|
||
Yes, the ultimate goal is to have most of the assertions defined as diagnostic asserts, but it's not a high priority right now.
Comment 45•4 years ago
|
||
The leave-open keyword is there and there is no activity for 6 months.
:jstutte, maybe it's time to close this bug?
Comment 47•4 years ago
|
||
Closing because no crashes reported for 12 weeks.
Updated•4 years ago
|
Description
•