Closed Bug 1328566 Opened 7 years ago Closed 4 years ago

Crash [@ OOM | large | NS_ABORT_OOM | AppendASCIItoUTF16 | mozilla::dom::NodeBinding::get_nodeValue ]

Categories

(Core :: DOM: Core & HTML, defect, P3)

defect

Tracking

()

RESOLVED WORKSFORME
Tracking Status
firefox51 - wontfix
firefox52 - wontfix
firefox53 - affected

People

(Reporter: cbook, Unassigned)

References

()

Details

(Keywords: crash)

Crash Data

[Tracking Requested - why for this release]:

Opt Crash/OOM found by bughunter 

Eric, could you take a look at this, thanks!
Flags: needinfo?(erahm)
This is DOM, not XPCOM. If we intend to prevent this kind of OOM the DOM code needs to use fallible string APIs.
Component: XPCOM → DOM: Core & HTML
Crash Signature: [@ OOM | large | NS_ABORT_OOM | AppendASCIItoUTF16 | mozilla::dom::NodeBinding::get_nodeValue ]
FWIW, this does not look very common. I only see about 30 crashes across all versions.
If we wanted to make that operation fallible we'd have to make nsINode::GetNodeValue [1] return an error, the generated dom binding side would need to propagate an exception, and then all the implementations of GetNodeValueInternal would have to switch over to fallible string conversions.

Just checking out that page in my 64-bit Linux build destroys browser performance, so it's clearly doing bad things but reproducing the OOM will be hard do to the size. Loading in a 32-bit build would probably reproduce easily.

[1] http://searchfox.org/mozilla-central/rev/82ebc0c5ea45477ef4a4bfb3bbff35069bd18cee/dom/base/nsINode.h#1780
Flags: needinfo?(erahm)
I wonder how bad it would be to return empty string in this case. Not correct sure, but at least wouldn't crash.
Throwing exception from .nodeValue isn't really right either, per spec.

But where are we crashing exactly? Are we perhaps doing some dummy memory copy?
Track 51- as the volume of crash is low.
NI John to take a look, thanks!
Flags: needinfo?(jdai)
Keep NI for me, I'll take a look.
Not a huge volume, wontfix for 51.
It would be nice to get a fix here but there are only 10 crashes on release with this signature.... It doesn't seem useful for relman to track this. If anyone lands a patch please feel free to request uplift as far as you think makes sense.
Too late for firefox 52, mass-wontfix.
Flags: needinfo?(jdai)
Priority: -- → P3

Closing because no crashes reported for 12 weeks.

Status: NEW → RESOLVED
Closed: 4 years ago
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.