Closed
Bug 945754
Opened 11 years ago
Closed 11 years ago
Assertion failure: !cx->isExceptionPending(), at ../vm/Interpreter.cpp:3468 due to OOM
Categories
(Core :: JavaScript Engine, defect)
Tracking
()
RESOLVED
FIXED
mozilla28
People
(Reporter: decoder, Assigned: decoder)
References
(Blocks 1 open bug)
Details
(Keywords: assertion, testcase)
Attachments
(1 file, 1 obsolete file)
877 bytes,
patch
|
bhackett1024
:
review+
|
Details | Diff | Splinter Review |
I'm hitting the mentioned assertion during fuzzing and tracked it down to the function EnsureTrackPropertyTypes together with jandem. He suggested that this function should propagate the OOM condition, so I made a small patch to do that. It passes all jit-tests but I'm not exactly sure about the first return. Is it right to return true in this function if the inference is not running at all?
Attachment #8341744 -
Flags: review?(bhackett1024)
Comment 1•11 years ago
|
||
Comment on attachment 8341744 [details] [diff] [review] js-ti-oom.patch Review of attachment 8341744 [details] [diff] [review]: ----------------------------------------------------------------- ::: js/src/jsinferinlines.h @@ +429,5 @@ > > if (obj->hasSingletonType()) { > AutoEnterAnalysis enter(cx); > if (obj->hasLazyType() && !obj->getType(cx)) { > cx->compartment()->types.setPendingNukeTypes(cx); Generally, TI stuff isn't meant to be fallible because it can just setPendingNukeTypes and let execution proceed as normal. This is no longer strictly necessary but is still nice for clean APIs and so forth, e.g. this patch is missing edits to about 10 calls to EnsureTrackPropertyTypes that now do not check their return value. Instead of changing the interface to EnsureTrackPropertyTypes, can you just add a cx->clearPendingException() call here?
Attachment #8341744 -
Flags: review?(bhackett1024)
Assignee | ||
Comment 2•11 years ago
|
||
Like this? Also fixes the assert for me.
Assignee: general → choller
Attachment #8341744 -
Attachment is obsolete: true
Status: NEW → ASSIGNED
Attachment #8341773 -
Flags: review?(bhackett1024)
Updated•11 years ago
|
Attachment #8341773 -
Flags: review?(bhackett1024) → review+
Assignee | ||
Comment 3•11 years ago
|
||
https://hg.mozilla.org/integration/mozilla-inbound/rev/8a7ed8362caa
Comment 4•11 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/8a7ed8362caa
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla28
You need to log in
before you can comment on or make changes to this bug.
Description
•