Closed Bug 1461034 Opened 7 years ago Closed 7 years ago

Assertion failure: cx_->isExceptionPending(), at js/src/frontend/BytecodeCompiler.cpp:588

Categories

(Core :: JavaScript Engine, defect)

x86_64
Linux
defect
Not set
critical

Tracking

()

RESOLVED FIXED
mozilla62
Tracking Status
firefox-esr52 --- unaffected
firefox-esr60 --- unaffected
firefox60 --- unaffected
firefox61 --- wontfix
firefox62 --- fixed

People

(Reporter: gkw, Assigned: jandem)

References

Details

(4 keywords, Whiteboard: [jsbugmon:update])

Attachments

(2 files)

The following testcase crashes on mozilla-central revision 4303d49c5393 (build with --enable-debug, run with --fuzzing-safe --no-threads --no-baseline --no-ion): oomTest(function(){s[-1]}) Backtrace: #0 0x000055d46d3a3e05 in AutoAssertReportedException::~AutoAssertReportedException (this=0x7ffd781f33f0, __in_chrg=<optimized out>) at js/src/frontend/BytecodeCompiler.cpp:588 #1 0x000055d46d39f7b5 in js::frontend::CompileLazyFunction (cx=<optimized out>, lazy=..., lazy@entry=..., chars=<optimized out>, length=length@entry=9) at js/src/frontend/BytecodeCompiler.cpp:745 #2 0x000055d46d089570 in JSFunction::createScriptForLazilyInterpretedFunction (cx=<optimized out>, fun=...) at js/src/vm/JSFunction.cpp:1626 #3 0x000055d46c97179c in JSFunction::getOrCreateScript (cx=<optimized out>, fun=...) at js/src/vm/JSFunction.h:528 #4 0x000055d46caa0c11 in js::InternalCallOrConstruct (cx=<optimized out>, cx@entry=0x7f9940817000, args=..., construct=construct@entry=js::NO_CONSTRUCT) at js/src/vm/Interpreter.cpp:470 /snip For detailed crash information, see attachment.
autobisectjs shows this is probably related to the following changeset: The first bad revision is: changeset: https://hg.mozilla.org/mozilla-central/rev/ce42829bf948 user: Jan de Mooij date: Thu May 03 16:17:09 2018 +0200 summary: Bug 1458198 - Assert the frontend reported an exception if it fails to compile a script. r=jorendorff Jan, is bug 1458198 a likely regressor?
Blocks: 1458198
Flags: needinfo?(jdemooij)
The OOM trap: when you improve our OOM testing/asserts and then get to fix all the issues that come up...
Attached patch PatchSplinter Review
We reported OOM correctly but then we incorrectly called recoverFromOutOfMemory.
Assignee: nobody → jdemooij
Status: NEW → ASSIGNED
Flags: needinfo?(jdemooij)
Attachment #8975256 - Flags: review?(jcoppeard)
Attachment #8975256 - Flags: review?(jcoppeard) → review+
Pushed by jandemooij@gmail.com: https://hg.mozilla.org/integration/mozilla-inbound/rev/0d1f6fbcc3a1 Don't clear an OOM exception in FoldElement. r=jonco
Status: ASSIGNED → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla62
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: