Closed
Bug 1349419
Opened 8 years ago
Closed 8 years ago
Crash in OOM | large | mozalloc_abort | mozalloc_handle_oom | moz_xmalloc | mozilla::MakeUnique<T>
Categories
(Core :: Networking, defect)
Tracking
()
RESOLVED
FIXED
mozilla55
People
(Reporter: RyanVM, Assigned: bagder)
References
Details
(Keywords: crash, Whiteboard: [necko-active])
Crash Data
Attachments
(1 file, 1 obsolete file)
1.70 KB,
patch
|
mcmanus
:
review+
bagder
:
feedback+
gchang
:
approval-mozilla-aurora+
ritu
:
approval-mozilla-esr52-
|
Details | Diff | Splinter Review |
This bug was filed from the Socorro interface and is
report bp-944cefe5-1caa-435c-b286-0089a2170319.
=============================================================
Comment 1•8 years ago
|
||
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)
Comment 2•8 years ago
|
||
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)
Assignee | ||
Comment 3•8 years ago
|
||
Something like this?
Assignee | ||
Updated•8 years ago
|
Whiteboard: [necko-active]
Comment 4•8 years ago
|
||
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+
Assignee | ||
Comment 5•8 years ago
|
||
Updated the commit message
Attachment #8850520 -
Attachment is obsolete: true
Attachment #8850896 -
Flags: review?(mcmanus)
Attachment #8850896 -
Flags: feedback+
Updated•8 years ago
|
Attachment #8850896 -
Flags: review?(mcmanus) → review+
Assignee | ||
Comment 6•8 years ago
|
||
Keywords: checkin-needed
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
Comment 8•8 years ago
|
||
backed out in https://treeherder.mozilla.org/#/jobs?repo=mozilla-inbound&revision=1e98eaf0f70f7ce12244ac5bf9293048b507bb23&filter-searchStr=Linux+opt+Mochitests+executed+by+TaskCluster+test-linux32%2Fopt-mochitest-browser-chrome-4+tc-M(bc4) it seems that one of this 3 checkins cause times like https://treeherder.mozilla.org/logviewer.html#?job_id=86621316&repo=mozilla-inbound and seems the tests fail as example on connecting -> https://public-artifacts.taskcluster.net/B3lwHCOzQTe1j9McYz1LLg/0/public/test_info//mozilla-test-fail-screenshot_DRpsBk.png
Flags: needinfo?(daniel)
Backout by cbook@mozilla.com:
https://hg.mozilla.org/integration/mozilla-inbound/rev/4ef4320830cd
Backed out changeset 9a714b38cd55
Assignee | ||
Comment 10•8 years ago
|
||
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)
Assignee | ||
Comment 11•8 years ago
|
||
The previous backout was due to problems with bug 1344467 and not this. Asking for a renewed attempt.
Keywords: checkin-needed
Comment 12•8 years ago
|
||
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
Comment 13•8 years ago
|
||
bugherder |
Status: ASSIGNED → RESOLVED
Closed: 8 years ago
status-firefox55:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla55
Reporter | ||
Comment 14•8 years ago
|
||
AFAICT, the affected code was introduced in bug 1298773. Please request Aurora approval on this when you get a chance.
Blocks: 1298773
status-firefox52:
--- → wontfix
status-firefox53:
--- → wontfix
status-firefox54:
--- → affected
status-firefox-esr45:
--- → wontfix
status-firefox-esr52:
--- → affected
Flags: needinfo?(daniel)
Assignee | ||
Comment 15•8 years ago
|
||
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 16•8 years ago
|
||
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+
Reporter | ||
Comment 17•8 years ago
|
||
bugherder uplift |
Reporter | ||
Updated•8 years ago
|
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.
Description
•