Closed
Bug 1391577
Opened 7 years ago
Closed 7 years ago
stylo: Crash in mozalloc_abort | abort | style::invalidation::element::invalidator::TreeStyleInvalidator<T>::process_invalidation<T>
Categories
(Core :: CSS Parsing and Computation, defect, P1)
Tracking
()
VERIFIED
FIXED
mozilla57
Tracking | Status | |
---|---|---|
firefox-esr52 | --- | unaffected |
firefox55 | --- | unaffected |
firefox56 | --- | fixed |
firefox57 | --- | fixed |
People
(Reporter: bbouvier, Assigned: emilio)
References
(Blocks 2 open bugs, )
Details
(Keywords: crash, regression)
Crash Data
Attachments
(3 files, 1 obsolete file)
(deleted),
text/plain
|
Details | |
(deleted),
text/x-review-board-request
|
heycam
:
review+
|
Details |
(deleted),
patch
|
lizzard
:
approval-mozilla-beta+
|
Details | Diff | Splinter Review |
This bug was filed from the Socorro interface and is
report bp-cf74c5f1-b522-4842-b227-c27870170818.
=============================================================
I've got an insta crash on the following website, always with the same backtrace it seems: http://velvetyne.fr/
It's a panic in rust, looks like a signature from Stylo code.
Please let me know if you need more information.
Comment 1•7 years ago
|
||
I can reproduce it. Chris, this might be interesting to you!
Flags: needinfo?(cpeterson)
Keywords: regression
Comment 2•7 years ago
|
||
Thanks. I can reliably reproduce this crash on Windows by loading http://velvetyne.fr/. If I disable Stylo, then the website loads without crashing.
Emilio, is this crash related to your "better-style-invalidation" changes in https://hg.mozilla.org/mozilla-central/rev/bdc22078e9f8?
Blocks: stylo-pref-study
URL: http://velvetyne.fr/
status-firefox55:
--- → unaffected
status-firefox56:
--- → affected
status-firefox-esr52:
--- → unaffected
Flags: needinfo?(cpeterson) → needinfo?(emilio+bugs)
OS: Linux → All
Priority: -- → P1
Summary: Crash in mozalloc_abort | abort | style::invalidation::element::invalidator::TreeStyleInvalidator<T>::process_invalidation<T> → stylo: Crash in mozalloc_abort | abort | style::invalidation::element::invalidator::TreeStyleInvalidator<T>::process_invalidation<T>
Assignee | ||
Comment 3•7 years ago
|
||
Awesome, so this is the "Someone messed up selector parsing" assertion, thanks for finding a repro!
Assignee: nobody → emilio+bugs
Flags: needinfo?(emilio+bugs)
Assignee | ||
Comment 4•7 years ago
|
||
This was regressed by https://github.com/servo/servo/pull/17439 (bug 1373800)
Comment hidden (mozreview-request) |
Comment hidden (mozreview-request) |
Updated•7 years ago
|
Blocks: stylo-site-issues, stylo-crash-reports
Comment 7•7 years ago
|
||
mozreview-review |
Comment on attachment 8898918 [details]
style: Skip state pseudo-classes when finding a pseudo-element.
https://reviewboard.mozilla.org/r/170252/#review175612
::: servo/components/style/invalidation/element/invalidator.rs:603
(Diff revision 1)
> .iter_raw_parse_order_from(next_combinator_offset - 1)
> - .next()
> - .unwrap();
> + .flat_map(|component| {
> + match *component {
Code might be clearer if the previous structure is kept, and you insert this before the .next():
.skip_while(|c| matches!(c, Component::NonTSPseudoClass(..))
?
Attachment #8898918 -
Flags: review?(cam) → review+
Comment 8•7 years ago
|
||
mozreview-review |
Comment on attachment 8898919 [details]
Bug 1391577: Crashtest.
https://reviewboard.mozilla.org/r/170254/#review175614
Attachment #8898919 -
Flags: review?(cam) → review+
Assignee | ||
Comment 9•7 years ago
|
||
(In reply to Cameron McCormack (:heycam) from comment #7)
> Comment on attachment 8898918 [details]
> style: Skip state pseudo-classes when finding a pseudo-element.
>
> https://reviewboard.mozilla.org/r/170252/#review175612
>
> ::: servo/components/style/invalidation/element/invalidator.rs:603
> (Diff revision 1)
> > .iter_raw_parse_order_from(next_combinator_offset - 1)
> > - .next()
> > - .unwrap();
> > + .flat_map(|component| {
> > + match *component {
>
> Code might be clearer if the previous structure is kept, and you insert this
> before the .next():
>
> .skip_while(|c| matches!(c, Component::NonTSPseudoClass(..))
>
> ?
Agreed :)
Comment hidden (mozreview-request) |
Assignee | ||
Updated•7 years ago
|
Attachment #8898918 -
Attachment is obsolete: true
Assignee | ||
Comment 11•7 years ago
|
||
Comment 12•7 years ago
|
||
Pushed by ecoal95@gmail.com:
https://hg.mozilla.org/integration/autoland/rev/b45d12e72a83
Crashtest. r=heycam
Comment 13•7 years ago
|
||
bugherder |
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla57
Comment 14•7 years ago
|
||
In favor of beta 56 dogfooding, please create an uplift request to beta. Thanks.
Flags: needinfo?(emilio+bugs)
Assignee | ||
Comment 15•7 years ago
|
||
Approval Request Comment
[Feature/Bug causing the regression]: bug 1373800
[User impact if declined]: Crashes with stylo enabled
[Is this code covered by automated tests?]: Yes
[Has the fix been verified in Nightly?]: Yes
[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?]: Not risky
[Why is the change risky/not risky?]: Fairly trivial and hard to reach case.
[String changes made/needed]: none
Flags: needinfo?(emilio+bugs)
Attachment #8899474 -
Flags: approval-mozilla-beta?
Comment on attachment 8899474 [details] [diff] [review]
Patch for uplift.
Crash fix for stylo issue, includes a new test. Let's uplift for 56 beta 5.
Attachment #8899474 -
Flags: approval-mozilla-beta? → approval-mozilla-beta+
Comment 17•7 years ago
|
||
bugherder uplift |
https://hg.mozilla.org/releases/mozilla-beta/rev/c4306d552f7a
https://hg.mozilla.org/releases/mozilla-beta/rev/2df535c417bc
Flags: in-testsuite+
Comment 18•7 years ago
|
||
(In reply to Emilio Cobos Álvarez [:emilio] from comment #15)
> [Is this code covered by automated tests?]: Yes
> [Has the fix been verified in Nightly?]: Yes
> [Needs manual test from QE? If yes, steps to reproduce]: No
Setting qe-verify- based on Emilio's assessment on manual testing needs and the fact that this fix has automated coverage.
Flags: qe-verify-
Comment 19•7 years ago
|
||
http://velvetyne.fr/ does not crash anymore. Nightly 57 x64 20170822100529 @ Debian Testing.
Status: RESOLVED → VERIFIED
You need to log in
before you can comment on or make changes to this bug.
Description
•