Closed Bug 568460 Opened 15 years ago Closed 15 years ago

[HTML5] Crash [@ SelectorMatches ]

Categories

(Core :: DOM: HTML Parser, defect)

x86
Windows XP
defect
Not set
critical

Tracking

()

RESOLVED FIXED
Tracking Status
blocking2.0 --- final+

People

(Reporter: ria.klaassen, Unassigned)

References

()

Details

(Keywords: crash, regression)

Crash Data

Attachments

(1 file)

STR: - Set html5.enable to true - go to URL http://crash-stats.mozilla.com/report/index/bp-3a67ce8a-bf15-4f91-94a7-4e0f42100527 0 xul.dll SelectorMatches layout/style/nsCSSRuleProcessor.cpp:2076 1 xul.dll SelectorMatches layout/style/nsCSSRuleProcessor.cpp:1753 2 xul.dll SelectorMatchesTree layout/style/nsCSSRuleProcessor.cpp:2176 3 xul.dll ContentEnumFunc layout/style/nsCSSRuleProcessor.cpp:2228 4 xul.dll RuleHash::EnumerateAllRules layout/style/nsCSSRuleProcessor.cpp:675 5 xul.dll xul.dll@0x26ed3f 6 @0x8db048f No problem on Namoroko.
Keywords: crash
Works: ac1df371f376
Fails: 01af306025cb
Hrm. My tip Linux debug build doesn't seem to show the problem... :( Line 2076 there isn't something I would expect the html parser to affect, also. I wonder what's going on.
Crashes on 10.6 as well. http://crash-stats.mozilla.com/report/index/095b8045-c6be-4f0c-988f-8d2cd2100527 is pretty useless, but I got a report from Apples Crash reporter (I'll attach the full log next): Thread 0 Crashed: Dispatch queue: com.apple.main-thread 0 XUL 0x002e74b2 nsRuleNode::GetStyleData(nsStyleStructID, nsStyleContext*, int) + 18 1 XUL 0x002f83a3 nsStyleContext::GetStyleData(nsStyleStructID) + 83 2 XUL 0x002dff53 nsRuleNode::WalkRuleTree(nsStyleStructID, nsStyleContext*, nsRuleData*, nsCSSStruct*) + 1571 3 XUL 0x002e78d1 nsRuleNode::GetStyleData(nsStyleStructID, nsStyleContext*, int) + 1073 4 XUL 0x002f83a3 nsStyleContext::GetStyleData(nsStyleStructID) + 83 5 XUL 0x002dff53 nsRuleNode::WalkRuleTree(nsStyleStructID, nsStyleContext*, nsRuleData*, nsCSSStruct*) + 1571 6 XUL 0x002e78d1 nsRuleNode::GetStyleData(nsStyleStructID, nsStyleContext*, int) + 1073 7 XUL 0x002f83a3 nsStyleContext::GetStyleData(nsStyleStructID) + 83 8 XUL 0x002dff53 nsRuleNode::WalkRuleTree(nsStyleStructID, nsStyleContext*, nsRuleData*, nsCSSStruct*) + 1571
That looks like stack overflow. Henri was working on the deep trees the html5 parser can produce, I think.
Making the parser clip deep trees before they reach layout is bug 561874.
Depends on: 561874
Blocking 1.9.3 final+. Regression.
blocking2.0: ? → final+
Bug 561874 landed. Please verify if it fixed this once the nightlies have cycled.
Doesn't crash any more on OS X 10.6. http://hg.mozilla.org/mozilla-central/rev/6dbc5341b490 Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:1.9.3a5pre) Gecko/20100604 Minefield/3.7a5pre
Severity: normal → critical
Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.9.3a5pre) Gecko/20100604 Minefield/3.7a5pre Yes, it is fixed now. The page loads fine.
Status: NEW → RESOLVED
Closed: 15 years ago
Resolution: --- → FIXED
Crash Signature: [@ SelectorMatches ]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: