Last Comment Bug 1305739 - Assertion failure: cx->isExceptionPending() runing testcase from bug 1269755 with --ion-eager
: Assertion failure: cx->isExceptionPending() runing testcase from bug 1269755 ...
Status: NEW
:
Product: Core
Classification: Components
Component: JavaScript Engine: JIT (show other bugs)
: unspecified
: x86_64 Linux
: P3 normal (vote)
: ---
Assigned To: Nobody; OK to take it and work on it
:
: Hannes Verschore [:h4writer]
Mentors:
Depends on:
Blocks: 912928
  Show dependency treegraph
 
Reported: 2016-09-27 08:45 PDT by Jon Coppeard (:jonco)
Modified: 2016-10-10 03:26 PDT (History)
0 users
See Also:
Crash Signature:
(edit)
QA Whiteboard:
Iteration: ---
Points: ---
Has Regression Range: ---
Has STR: ---


Attachments

Description User image Jon Coppeard (:jonco) 2016-09-27 08:45:28 PDT
The following testcase fails when run with: --ion-eager --ion-offthread-compile=off

oomTest(function() { eval(`
   for (y = 0; y < 3; y++ ) {
    SignedRightShift(y );
  }
function Mask( b, n ) {
  b = ToUint32BitString( b );
  b = b.substring( b.length - n );
  b = "0" + b;
}
function ToUint32BitString( n ) {
  var b = "";
  for ( var p = 0; p < 29; p++ ) {
      b += "0";
  }
  return b;
}
function SignedRightShift(a ) {
  a = Mask( a, 5 );
}
`)});

For some reason it seems to depend on the path of the testcase, with an longer absolute path failing every time, but a relative path not:

~/clone/dev/js/src$ ./optdebug-build/shell --ion-eager --ion-offthread-compile=off testcase.js
~/clone/dev/js/src$ ./optdebug-build/shell --ion-eager --ion-offthread-compile=off /home/jon/clone/dev/js/src/testcase.js
Assertion failure: cx->isExceptionPending() (Thunk execution failed but no exception was raised - missing call to js::ReportOutOfMemory()?), at /home/jon/clone/dev/js/src/builtin/TestingFunctions.cpp:1373
Segmentation fault (core dumped)

Note You need to log in before you can comment on or make changes to this bug.