Last Comment Bug 725072 - IonMonkey: Crash [@ js::ion::LAllocation::isTagged]
: IonMonkey: Crash [@ js::ion::LAllocation::isTagged]
Status: RESOLVED FIXED
: crash, testcase
Product: Core
Classification: Components
Component: JavaScript Engine (show other bugs)
: Other Branch
: x86_64 Linux
: -- major (vote)
: ---
Assigned To: general
:
Mentors:
Depends on:
Blocks: langfuzz IonFuzz
  Show dependency treegraph
 
Reported: 2012-02-07 13:24 PST by Christian Holler (:decoder)
Modified: 2012-02-17 14:27 PST (History)
5 users (show)
See Also:
Crash Signature:
QA Whiteboard:
Iteration: ---
Points: ---
Has Regression Range: ---
Has STR: ---


Attachments

Description Christian Holler (:decoder) 2012-02-07 13:24:54 PST
The following testcase crashes on ionmonkey revision d66c148e0756 (run with --ion -n -m), tested on 64 bit:


var AG_CONST = 0.6072529350;
function FIXED(X) {
  return X * 65536.0;
}
var Angles = [ FIXED(45.0), FIXED(26.565), FIXED(14.0362), FIXED(), ];
function cordicsincos() {
    var Y;
    var CurrAngle;
    var Step;
    X = FIXED(AG_CONST);
    CurrAngle = 0;
    for (Step = 0; Step < 12; Step++) {
        if (X  > CurrAngle) {
            NewX = X - (Y >> Step);
            CurrAngle += Angles[Step];
            CurrAngle -= Angles[Step];
        }
    }
}
function cordic( runs ) {
  for ( var i = 0 ; i < runs ; i++ ) {
    actual = cordicsincos();
  }
}
cordic(25000);
Comment 1 David Anderson [:dvander] 2012-02-17 14:27:35 PST
This was fixed with another commit a few days ago: http://hg.mozilla.org/projects/ionmonkey/rev/dc65aacb0f4d

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