Closed Bug 1380431 Opened 7 years ago Closed 7 years ago

DrawTargetCairo::Snapshot crash in gfxCriticalNote message

Categories

(Core :: Graphics, defect, P1)

52 Branch
defect

Tracking

()

RESOLVED FIXED
mozilla56
Tracking Status
firefox-esr52 --- wontfix
firefox54 --- wontfix
firefox55 --- wontfix
firefox56 --- fixed

People

(Reporter: lsalzman, Assigned: lsalzman)

References

Details

(Keywords: crash, regression, Whiteboard: [gfx-noted])

Crash Data

User Story

See this crash report: https://crash-stats.mozilla.com/report/index/deb6bdf5-81e3-4609-a983-e07ed0170706

Inside DrawTargetCairo::Snapshot(), when we're doing the gfxCriticalNote message, the mSurface is null, so when cairo_surface_status tries to access it, it goes kaboom. We need to check if it is null or not before we do that to prevent this.

Attachments

(1 file)

Attachment #8885853 - Flags: review?(mchang) → review+
Pushed by lsalzman@mozilla.com:
https://hg.mozilla.org/integration/mozilla-inbound/rev/bf8fee7089b4
fix DrawTargetCairo::Snapshot error note to check for surface before accessing status. r=mchang
https://hg.mozilla.org/mozilla-central/rev/bf8fee7089b4
Status: ASSIGNED → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla56
Doesn't look frequent enough to warrant backport consideration, but feel free to change the status back to affected and nominate for approval if you feel otherwise.
Crash Signature: [@ mozilla::gfx::DrawTargetCairo::Snapshot ]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: