ChakraCore icon indicating copy to clipboard operation
ChakraCore copied to clipboard

ASSERTION Failure: "reg < this->GetConstantCount()" in ChakraCore/lib/Runtime/./Base/FunctionBody.h, line 2977

Open anbu1024 opened this issue 3 years ago • 1 comments

commit

41ad58a9eebf8d52a83424c8fccfaacdb14105ec

Build platform

Ubuntu 20.04

Build steps

./build.sh --debug

poc

function foo() {
    (function () {
        function bar(
            a = 1, 
            b = function () {
                    return a;
            }
        )
        {
            var arguments = 3;
        }
    }());
}

WScript.Attach(foo);

assert log

ASSERTION 2397793: (ChakraCore/lib/Runtime/./Base/FunctionBody.h, line 2977) reg < this->GetConstantCount()
 Failure: (reg < this->GetConstantCount())
Illegal instruction

anbu1024 avatar Mar 09 '22 12:03 anbu1024

I can reproduce this, though this is a debugger mode test and it fails only in debug mode.

ppenzin avatar Mar 26 '22 00:03 ppenzin