Closed Bug 1332798 Opened 6 years ago Closed 6 years ago

Crash in <name omitted> | mozilla::widget::RectTextureImage::BeginUpdate

Categories

(Core :: Widget: Cocoa, defect)

Unspecified
macOS
defect
Not set
critical

Tracking

()

RESOLVED FIXED
mozilla54
Performance Impact fixed
a11y-review fixed
Webcompat Priority fixed
Tracking Status
relnote-firefox --- fixed
thunderbird_esr91 fixed fixed
thunderbird_esr102 fixed fixed
firefox51 --- wontfix
firefox52 --- fixed
firefox53 --- fixed
firefox-esr102 fixed fixed
firefox54 --- fixed
firefox111 fixed fixed
firefox112 fixed fixed
firefox113 fixed fixed

People

(Reporter: MatsPalmgren_bugz, Assigned: mtseng)

Details

(Keywords: crash)

Crash Data

Attachments

(1 file)

This bug was filed from the Socorro interface and is 
report bp-0b3cb402-547b-40cc-8a02-63ebc2170120.
=============================================================

Looks like a null-pointer crash in RectTextureImage::BeginUpdate:
https://hg.mozilla.org/releases/mozilla-release/annotate/8612c3320053/widget/cocoa/RectTextureImage.mm#l56

The MacIOSurface::CreateIOSurface may return nullptr.
Flags: needinfo?(mtseng)
Yes, submitted a patch to fix this.
Assignee: nobody → mtseng
Flags: needinfo?(mtseng)
Comment on attachment 8829348 [details]
Bug 1332798 - Add null check after CreateIOSurface.

https://reviewboard.mozilla.org/r/106466/#review108250
Attachment #8829348 - Flags: review?(mstange) → review+
Pushed by mtseng@mozilla.com:
https://hg.mozilla.org/integration/mozilla-inbound/rev/6b8e2061312f
Add null check after CreateIOSurface. r=mstange
https://hg.mozilla.org/mozilla-central/rev/6b8e2061312f
Status: NEW → RESOLVED
Closed: 6 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla54
AFAICT, this crash goes back a ways. Please request Aurora/Beta approval on this patch when you get a chance.
Flags: needinfo?(mtseng)
Comment on attachment 8829348 [details]
Bug 1332798 - Add null check after CreateIOSurface.

Approval Request Comment
[Feature/Bug causing the regression]:
[User impact if declined]: Firefox will crash sometimes.
[Is this code covered by automated tests?]:
[Has the fix been verified in Nightly?]:
[Needs manual test from QE? If yes, steps to reproduce]: 
[List of other uplifts needed for the feature/fix]:
[Is the change risky?]: No.
[Why is the change risky/not risky?]: It just added a null check.
[String changes made/needed]: none
Flags: needinfo?(mtseng)
Attachment #8829348 - Flags: approval-mozilla-beta?
Attachment #8829348 - Flags: approval-mozilla-aurora?
Comment on attachment 8829348 [details]
Bug 1332798 - Add null check after CreateIOSurface.

We will take this patch to fix the crash. Aurora53+. And, in the future, please fill the whole uplift request template.
Attachment #8829348 - Flags: approval-mozilla-aurora? → approval-mozilla-aurora+
Comment on attachment 8829348 [details]
Bug 1332798 - Add null check after CreateIOSurface.

crash fix for beta52
Attachment #8829348 - Flags: approval-mozilla-beta? → approval-mozilla-beta+
You need to log in before you can comment on or make changes to this bug.