Closed Bug 2028622 Opened 6 months ago Closed 18 days ago

Crash in [@ style::stylist::scope_root_candidates]

Categories

(Core :: CSS Parsing and Computation, defect)

Unspecified
Android
defect

Tracking

()

RESOLVED FIXED
159 Branch
Tracking Status
firefox159 --- fixed

People

(Reporter: planetman1125, Assigned: dshin, NeedInfo)

References

(Blocks 1 open bug)

Details

Attachments

(1 file)

Crash report: https://crash-stats.mozilla.org/report/index/e6e9a730-235f-45e5-b7e4-45c210260401

Reason:

SIGSEGV / SEGV_ACCERR

Top 10 frames:

0  libxul.so  style::stylist::scope_root_candidates  servo/components/style/stylist.rs:0
1  libxul.so  style::stylist::scope_root_candidates  servo/components/style/stylist.rs:2941
2  libxul.so  style::stylist::scope_root_candidates  servo/components/style/stylist.rs:2941
3  libxul.so  style::stylist::scope_root_candidates  servo/components/style/stylist.rs:2941
4  libxul.so  style::stylist::scope_root_candidates  servo/components/style/stylist.rs:2941
5  libxul.so  style::stylist::scope_root_candidates  servo/components/style/stylist.rs:2941
6  libxul.so  style::stylist::scope_root_candidates  servo/components/style/stylist.rs:2941
7  libxul.so  style::stylist::scope_root_candidates  servo/components/style/stylist.rs:2941
8  libxul.so  style::stylist::scope_root_candidates  servo/components/style/stylist.rs:2941
9  libxul.so  style::stylist::scope_root_candidates  servo/components/style/stylist.rs:2941

The severity field is not set for this bug.
:royang, could you have a look please?

For more information, please visit BugBot documentation.

Flags: needinfo?(royang)

Move to GV to take a look, since this is libxul related.

Flags: needinfo?(royang)
Product: Firefox for Android → GeckoView

Moving to Core since this is a libxul issue.

Product: GeckoView → Core

The Bugbug bot thinks this bug should belong to the 'Core::CSS Parsing and Computation' component, and is moving the bug to that component. Please correct in case you think the bot is wrong.

Component: General → CSS Parsing and Computation

Looks like scope_root_candidates() is infinitely recursing. (Could there somehow be a condition that is its own parent?)

Severity: -- → S3

(@scope related, re-linking. "Scope" feels overloaded these days...)
... huh, that is weird. Would be really curious what led to this...

Blocks: @scope
No longer blocks: css-tree-scoped-names
Flags: needinfo?(dshin)

Hah, yeah.... too many scopes, thanks for correcting that.

Knowing nothing about this code, I wondered if we should add a check for condition_ref.parent == id before recursing, or something like that? Maybe with an assertion, and see if the fuzzers can find a way to hit it.

Assignee: nobody → dshin
Status: NEW → ASSIGNED
Pushed by dshin@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/254e1f5db2de https://hg.mozilla.org/integration/autoland/rev/69b41893fe38 Graceful handling of @scope rule overflow/infinite recursion. r=firefox-style-system-reviewers,emilio
Status: ASSIGNED → RESOLVED
Closed: 18 days ago
Resolution: --- → FIXED
Target Milestone: --- → 159 Branch
QA Whiteboard: [qa-triage-done-c160/b159]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: