Closed Bug 505059 Opened 15 years ago Closed 15 years ago

[FIX]Crash [@ CSSLoaderImpl::LoadSheet(SheetLoadData*, StyleSheetState) ]

Categories

(Core :: CSS Parsing and Computation, defect)

1.9.1 Branch
x86
Windows XP
defect
Not set
critical

Tracking

()

RESOLVED FIXED
Tracking Status
status1.9.2 --- .4-fixed

People

(Reporter: morac, Assigned: bzbarsky)

References

Details

(Keywords: crash)

Crash Data

Attachments

(2 files)

My network connection was down (I disabled the wireless network card on my laptop) and any attempt to install the attached addon resulted in a crash.  The add-on did not install.  Another add-on installed without issue.

Once I enabled the network, everything was fine.

http://crash-stats.mozilla.com/report/index/7b9dfade-be82-4efa-a264-bdcfc2090718
dbaron, can you figure this out based on the stack trace?
Whiteboard: [needs stack evaluated for usefulness - style]
The above could perhaps happen if someone calls into the stylesheet service from far enough into shutdown that the layout module has already shut down...  or something.
This is actually a fairly frequent crash (300 per week), so I'm not going to mark it as INCO just yet.
Whiteboard: [needs stack evaluated for usefulness - style] → [needs breakpad help; see dependency]
Depends on: 524256
Filed bug 524256 in the hope of getting better stack traces.
Whiteboard: [needs breakpad help; see dependency] → [waiting for new reports to appear on crash-stats]
Whiteboard: [waiting for new reports to appear on crash-stats] → [needs breakpad help; see dependency]
3.7a1pre stacks are good now.  It's definitely happening during shutdown:

http://crash-stats.mozilla.com/report/index/180ab197-098b-48a2-b378-5ab9e2091113

bz, does this help more?
Whiteboard: [needs breakpad help; see dependency]
Sounds like what Boris said in comment 2.  A JS stack might be interesting.
Yeah, just having some idea of what js is running would be good...

I wonder what some of these extensions are.

That said, maybe we should just bulletproof things against this eventuality (e.g. null-check in the stylesheet service) and be done with it?
Or keep the layout module alive if someone's holding a ref to the stylesheet service... we do that for DOM nodes already, iirc.
Keeping the layout module alive sounds fine.
Hmm.  Then again, after xpcom-shutdown we'll have a null security manager here.  I think we should probably just bulletproof the cssloader or stylesheet service and be done with it.
Nevermind comment 10; I was misreading code.
Attached patch FixSplinter Review
Attachment #413026 - Flags: review?(dbaron)
Assignee: nobody → bzbarsky
Summary: Crash [@ CSSLoaderImpl::LoadSheet(SheetLoadData*, StyleSheetState) ] → [FIX]Crash [@ CSSLoaderImpl::LoadSheet(SheetLoadData*, StyleSheetState) ]
Pushed http://hg.mozilla.org/mozilla-central/rev/9e225083676f

I'd want to bake this for a bit before landing on 1.9.2, assuming we do that at all.
Status: NEW → RESOLVED
Closed: 15 years ago
Resolution: --- → FIXED
Looks as if a few users on Windows and Mac hit this crash in 3.6 B5 -> http://tinyurl.com/yd6e3ra.
Comment on attachment 413026 [details] [diff] [review]
Fix

I guess we've baked this enough to take on branch at this point, yeah.
Attachment #413026 - Flags: approval1.9.2.1?
Comment on attachment 413026 [details] [diff] [review]
Fix

We should take this for 1.9.2.3
Attachment #413026 - Flags: approval1.9.2.3?
Attachment #413026 - Flags: approval1.9.2.2?
Attachment #413026 - Flags: approval1.9.2.2-
Attachment #413026 - Flags: approval1.9.2.3?
Attachment #413026 - Flags: approval1.9.2.3?
Comment on attachment 413026 [details] [diff] [review]
Fix

Approved for 1.9.2.4, a=dveditz for release-drivers
Attachment #413026 - Flags: approval1.9.2.4? → approval1.9.2.4+
This reads a lot like a top crasher with no way to verify it. We never had a reproduction scenario for this, did we, we just fixed the underlying issue?
Crash Signature: [@ CSSLoaderImpl::LoadSheet(SheetLoadData*, StyleSheetState) ]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: