Open
Bug 1458209
Opened 7 years ago
Updated 4 years ago
Off-thread XDR decoding can report spurious OOMs
Categories
(Core :: JavaScript Engine, enhancement, P3)
Core
JavaScript Engine
Tracking
()
NEW
People
(Reporter: jandem, Unassigned)
References
(Blocks 1 open bug)
Details
See bug 1452114 and bug 1457475.
If XDR decoding fails with one of the TranscodeResults here: https://searchfox.org/mozilla-central/rev/8837610b6c999451435695e800f38d4acbc0a644/js/src/jsapi.h#6018-6025
Then we report an OOM here (and in the multi-scripts-decode version): https://searchfox.org/mozilla-central/rev/08df4e6e11284186d477d7e5b0ae48483ecc979c/js/src/vm/HelperThreads.cpp#1669-1675 (That MOZ_DIAGNOSTIC_ASSERT is a MOZ_ASSERT now, bug 1457475.)
It would be great if we could add a JS shell function to corrupt a cache entry's XDR version number or something, so we could write tests for this.
Reporter | ||
Comment 1•7 years ago
|
||
I can't needinfo nbp so I'll CC + assign.
Assignee: nobody → nicolas.b.pierron
Status: NEW → ASSIGNED
Updated•7 years ago
|
Priority: -- → P1
Updated•7 years ago
|
Assignee: nicolas.b.pierron → nobody
Status: ASSIGNED → NEW
Flags: needinfo?(nicolas.b.pierron)
Updated•7 years ago
|
status-firefox61:
--- → fix-optional
status-firefox62:
--- → affected
Flags: needinfo?(nicolas.b.pierron)
Updated•7 years ago
|
Flags: needinfo?(nicolas.b.pierron)
Updated•6 years ago
|
Comment 2•6 years ago
|
||
Argh.
Assignee: nobody → jorendorff
Flags: needinfo?(nicolas.b.pierron) → needinfo?(jorendorff)
Comment 3•6 years ago
|
||
This code is odd:
https://searchfox.org/mozilla-central/rev/1ce4e8a5601da8e744ca6eda69e782318afab54d/js/src/vm/HelperThreads.cpp#1859-1861
Raising errors doesn't do anything particularly useful... I guess when `parseTask->errors` has more than 1 element, we expect all but 0 or 1 of them to be warnings? Hmm.
Comment 4•6 years ago
|
||
Bug 1498277 is related.
Comment 5•6 years ago
|
||
I don't actually have time to work on this immediately. It's small but not that small. Next release, I hope.
Comment 6•6 years ago
|
||
Punting again.
Updated•6 years ago
|
Wontfix for 64. Jason, given that this has had a few wontfixes, should we still be calling it P1? Or should we bring more help in for this issue?
Updated•4 years ago
|
Updated•4 years ago
|
You need to log in
before you can comment on or make changes to this bug.
Description
•