Closed Bug 1455366 Opened 7 years ago Closed 7 years ago

Crash in style::gecko::data::PerDocumentStyleData::new

Categories

(Core :: CSS Parsing and Computation, defect, P2)

57 Branch
All
Windows
defect

Tracking

()

RESOLVED INVALID
Tracking Status
firefox-esr52 --- unaffected
firefox-esr60 --- wontfix
firefox59 --- wontfix
firefox60 --- wontfix
firefox61 --- wontfix

People

(Reporter: philipp, Unassigned)

Details

(Keywords: crash, csectype-wildptr, sec-high)

Crash Data

Attachments

(1 file)

This bug was filed from the Socorro interface and is report bp-4515185d-62a8-47a1-a5a2-3af4b0180417. ============================================================= Top 10 frames of crashing thread: 0 @0x1af7f010 1 xul.dll style::gecko::data::PerDocumentStyleData::new servo/components/style/gecko/data.rs:124 2 xul.dll geckoservo::glue::Servo_StyleSet_Init servo/ports/geckolib/glue.rs:2593 3 xul.dll mozilla::ServoStyleSet::Init layout/style/ServoStyleSet.cpp:137 4 xul.dll mozilla::PresShell::Init layout/base/PresShell.cpp:956 5 xul.dll nsDocument::CreateShell dom/base/nsDocument.cpp:3943 6 xul.dll nsDocumentViewer::InitPresentationStuff layout/base/nsDocumentViewer.cpp:691 7 xul.dll nsDocumentViewer::InitInternal layout/base/nsDocumentViewer.cpp:946 8 xul.dll nsDocumentViewer::Init layout/base/nsDocumentViewer.cpp:666 9 xul.dll nsDocShell::SetupNewViewer docshell/base/nsDocShell.cpp:9114 ============================================================= this crash signature is appearing on windows in firefox 57 and upwards.
Any ideas, Emilio?
Group: core-security → layout-core-security
Flags: needinfo?(emilio)
Huh, not really... The stacks there make sense afaict, and the code in there is somewhat simple. Maybe a garbage pres-context pointer?
Flags: needinfo?(emilio)
But we call a method on prescontext before the servo stuff. I would have expected a crash there if prescontext is dead.
Right, generally speaking at that point should be fresh. We basically just created it and called AttachShell on it to tie it to the pres shell... I'm not aware of anything around there that could make it dead. We also access the nsIDocument pointer (to get the compat mode), but it's not clear to me how it could be dead either.
Priority: -- → P2
Fwiw, many (but not all) of these are startup crashes, e.g. bp-ce79204a-2d6d-4834-8af8-7d8d50180419
Attached file chkimg log
I grabbed all the crashes from the last 3 months (there were 18 of them) and ran them through chkimg. All except one exhibited mismatches around the crashing instruction. The one that didn't (191afda0-d2a1-4b64-b97d-9c8330180828) had jumped off to some random place, and so it's possible that there was some corruption in the stack frame above that wasn't captured in the minidump (since only bytes around the IP at the time of the crash are captured).
So if all the crashes in 3 months show instructions being trashed, that would tend to point to making this invalid, since the codespace shouldn't be writable. Seems oddly high, but not impossible. It'd be amusing to run a study of validating all code and comparing errors/time running (though rarely-used code might be paged out/in or dropped (reload from executable when needed), so that could skew the results). Also compare to the number of corruptions found in reports (have automated processing flag corrupted dumps) If we think there might be some real crashes hiding here, we could mark it stalled (and maybe sec-other it) until we find a real crash we can look at with this signature
Flags: needinfo?(cam)
Keywords: regression
(In reply to Randell Jesup [:jesup] from comment #7) > Also compare to the number > of corruptions found in reports (have automated processing flag corrupted > dumps) Hopefully automated processing will come soon (in bug 1274628, which you've seen). > If we think there might be some real crashes hiding here, we could mark it > stalled (and maybe sec-other it) until we find a real crash we can look at > with this signature I don't think this at the moment. I'm inclined to just close the bug.
Flags: needinfo?(cam)
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → INVALID
Group: layout-core-security
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: