Closed
Bug 1418810
Opened 8 years ago
Closed 8 years ago
Crash in OOM | large | NS_ABORT_OOM | mozilla::net::nsSimpleURI::SetPathQueryRefEscaped
Categories
(Core :: Networking, defect, P2)
Tracking
()
RESOLVED
FIXED
mozilla59
| Tracking | Status | |
|---|---|---|
| firefox-esr52 | --- | unaffected |
| firefox57 | --- | wontfix |
| firefox58 | --- | fixed |
| firefox59 | --- | fixed |
People
(Reporter: philipp, Assigned: valentin)
References
Details
(Keywords: crash, regression, Whiteboard: [necko-triaged])
Crash Data
Attachments
(1 file)
|
1.07 KB,
patch
|
mayhemer
:
review+
gchang
:
approval-mozilla-beta+
|
Details | Diff | Splinter Review |
This bug was filed from the Socorro interface and is
report bp-f72383be-eb2f-4c54-a8c3-8c7e60171119.
=============================================================
Top 10 frames of crashing thread:
0 xul.dll NS_ABORT_OOM xpcom/base/nsDebugImpl.cpp:620
1 xul.dll mozilla::net::nsSimpleURI::SetPathQueryRefEscaped netwerk/base/nsSimpleURI.cpp:472
2 xul.dll mozilla::net::nsSimpleURI::SetSpec netwerk/base/nsSimpleURI.cpp:309
3 xul.dll nsDataHandler::NewURI netwerk/protocol/data/nsDataHandler.cpp:100
4 xul.dll mozilla::net::nsIOService::NewURI netwerk/base/nsIOService.cpp:697
5 xul.dll NS_NewURI netwerk/base/nsNetUtil.cpp:1782
6 xul.dll NS_NewURI netwerk/base/nsNetUtil.cpp:1795
7 xul.dll NS_NewURI netwerk/base/nsNetUtil.cpp:1815
8 xul.dll nsImageLoadingContent::StringToURI dom/base/nsImageLoadingContent.cpp:1265
9 xul.dll nsImageLoadingContent::LoadImage dom/base/nsImageLoadingContent.cpp:883
=============================================================
crash reports with this signature are newly showing up on fennec in version 57 & on firefox desktop since 58.
Comment 1•8 years ago
|
||
This should be a fallible assignment at https://dxr.mozilla.org/mozilla-central/rev/b056526be38e96b3e381b7e90cd8254ad1d96d9d/netwerk/base/nsSimpleURI.cpp#472
Priority: -- → P2
Whiteboard: [necko-triaged]
| Assignee | ||
Updated•8 years ago
|
Assignee: nobody → valentin.gosu
| Assignee | ||
Comment 2•8 years ago
|
||
MozReview-Commit-ID: LU1RbkUIBZz
Attachment #8930604 -
Flags: review?(honzab.moz)
Comment 3•8 years ago
|
||
Comment on attachment 8930604 [details] [diff] [review]
Use fallible assign to prevent OOM
Review of attachment 8930604 [details] [diff] [review]:
-----------------------------------------------------------------
This is good, but question is what happens when we hit this error, have you tried?
Attachment #8930604 -
Flags: review?(honzab.moz) → review+
| Assignee | ||
Comment 4•8 years ago
|
||
Really hard to make it OOM precisely in that place.
I can run a script that creates a lot of huge URIs, but I don't have a reproducible test.
Keywords: checkin-needed
Pushed by ryanvm@gmail.com:
https://hg.mozilla.org/integration/mozilla-inbound/rev/4873b451e40f
Use fallible assign to prevent OOM. r=mayhemer
Keywords: checkin-needed
Comment 6•8 years ago
|
||
| bugherder | ||
Status: NEW → RESOLVED
Closed: 8 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla59
Comment 7•8 years ago
|
||
(In reply to Valentin Gosu [:valentin] from comment #4)
> Really hard to make it OOM precisely in that place.
> I can run a script that creates a lot of huge URIs, but I don't have a
> reproducible test.
You can just return an error all the time or instrument properly, catch in a debugger and switch to return an error.
Comment 8•8 years ago
|
||
Not sure the crash volume on 57 warrants keeping it on the radar for possible dot release inclusion, but a Beta approval request would probably be a good idea.
Flags: needinfo?(valentin.gosu)
| Assignee | ||
Comment 9•8 years ago
|
||
Comment on attachment 8930604 [details] [diff] [review]
Use fallible assign to prevent OOM
Approval Request Comment
[Feature/Bug causing the regression]:
Unknown.
[User impact if declined]:
OOM
[Is this code covered by automated tests?]:
No
[Has the fix been verified in Nightly?]:
Yes
[Needs manual test from QE? If yes, steps to reproduce]:
No. It is difficult to reproduce by manual testing.
[List of other uplifts needed for the feature/fix]:
none
[Is the change risky?]:
No.
[Why is the change risky/not risky?]:
It just makes an allocation fallible, and returns an error otherwise.
[String changes made/needed]:
none.
Flags: needinfo?(valentin.gosu)
Attachment #8930604 -
Flags: approval-mozilla-beta?
Comment 10•8 years ago
|
||
Comment on attachment 8930604 [details] [diff] [review]
Use fallible assign to prevent OOM
Fix a crash. Beta58+.
Attachment #8930604 -
Flags: approval-mozilla-beta? → approval-mozilla-beta+
Comment 11•8 years ago
|
||
| bugherder uplift | ||
Updated•8 years ago
|
You need to log in
before you can comment on or make changes to this bug.
Description
•