Closed Bug 1349419 Opened 7 years ago Closed 7 years ago

Crash in OOM | large | mozalloc_abort | mozalloc_handle_oom | moz_xmalloc | mozilla::MakeUnique<T>

Categories

(Core :: Networking, defect)

x86
Windows 10
defect
Not set
critical

Tracking

()

RESOLVED FIXED
mozilla55
Tracking Status
firefox-esr45 --- wontfix
firefox52 --- wontfix
firefox-esr52 --- wontfix
firefox53 --- wontfix
firefox54 --- fixed
firefox55 --- fixed

People

(Reporter: RyanVM, Assigned: bagder)

References

Details

(Keywords: crash, Whiteboard: [necko-active])

Crash Data

Attachments

(1 file, 1 obsolete file)

This bug was filed from the Socorro interface and is 
report bp-944cefe5-1caa-435c-b286-0089a2170319.
=============================================================
We probably want a fallible memory alloc here and throw JS exception while OOM.
https://hg.mozilla.org/mozilla-central/annotate/e1576dd8bd9d/netwerk/base/ArrayBufferInputStream.cpp#l39
Flags: needinfo?(josh)
Yes, and we should delay setting mBufferLength until the buffer has been successfully allocated or we could end up trying to read from a null buffer.
Flags: needinfo?(josh)
Something like this?
Assignee: nobody → daniel
Status: NEW → ASSIGNED
Attachment #8850520 - Flags: feedback?(josh)
Whiteboard: [necko-active]
Comment on attachment 8850520 [details] [diff] [review]
0001-Bug-1349419-do-fallible-memory-alloc-and-return-fail.patch

Review of attachment 8850520 [details] [diff] [review]:
-----------------------------------------------------------------

Yep!
Attachment #8850520 - Flags: feedback?(josh) → feedback+
Updated the commit message
Attachment #8850520 - Attachment is obsolete: true
Attachment #8850896 - Flags: review?(mcmanus)
Attachment #8850896 - Flags: feedback+
Attachment #8850896 - Flags: review?(mcmanus) → review+
Pushed by cbook@mozilla.com:
https://hg.mozilla.org/integration/mozilla-inbound/rev/9a714b38cd55
do fallible memory alloc and return failure, r=mcmanus
Keywords: checkin-needed
Based on the output, I think we can say that this patch was probably *not* the reason for the breakage. The other two changes are related to that format parsing so they are the ones I suspect. Or perhaps the test itself. I'm digging into this.
Flags: needinfo?(daniel)
The previous backout was due to problems with bug 1344467 and not this. Asking for a renewed attempt.
Keywords: checkin-needed
Pushed by ryanvm@gmail.com:
https://hg.mozilla.org/integration/mozilla-inbound/rev/3d6fd421ac74
Do fallible memory alloc and return failure to avoid OOM crash. r=mcmanus
Keywords: checkin-needed
https://hg.mozilla.org/mozilla-central/rev/3d6fd421ac74
Status: ASSIGNED → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla55
AFAICT, the affected code was introduced in bug 1298773. Please request Aurora approval on this when you get a chance.
Comment on attachment 8850896 [details] [diff] [review]
v2-0001-Bug-1349419-do-fallible-memory-alloc-and-return-f.patch

Approval Request Comment
[Feature/Bug causing the regression]: 1349419
[User impact if declined]: bug remains
[Is this code covered by automated tests?]: no
[Has the fix been verified in Nightly?]: yes (based on crash-stats)
[Needs manual test from QE? If yes, steps to reproduce]: not sure how to repro!
[List of other uplifts needed for the feature/fix]: none
[Is the change risky?]: no
[Why is the change risky/not risky?]: tiny change
[String changes made/needed]: none
Flags: needinfo?(daniel)
Attachment #8850896 - Flags: approval-mozilla-aurora?
Comment on attachment 8850896 [details] [diff] [review]
v2-0001-Bug-1349419-do-fallible-memory-alloc-and-return-f.patch

Fix a crash. Aurora54+.
Attachment #8850896 - Flags: approval-mozilla-aurora? → approval-mozilla-aurora+
Attachment #8850896 - Flags: approval-mozilla-esr52?
Comment on attachment 8850896 [details] [diff] [review]
v2-0001-Bug-1349419-do-fallible-memory-alloc-and-return-f.patch

I don't see any instances of this crash on ESR52 in the past month or so. Let's not uplift this.
Attachment #8850896 - Flags: approval-mozilla-esr52? → approval-mozilla-esr52-
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: