ChakraCore icon indicating copy to clipboard operation
ChakraCore copied to clipboard

ASSERTION Failure: "(index < functionBody->GetProfiledArrayCallSiteCount())" in ChakraCore/lib/Runtime/Language/DynamicProfileInfo.cpp

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(f) {
    WScript.Attach(f);
}

async function bar() {
    for (let i = 0; i < 1; [0,1][0]--) {
        await foo(bar);
    }
}

bar();

assert log

ASSERTION 2406829: (ChakraCore/lib/Runtime/Language/DynamicProfileInfo.cpp, line 1255) index < functionBody->GetProfiledArrayCallSiteCount()
 Failure: (index < functionBody->GetProfiledArrayCallSiteCount())
Illegal instruction

anbu1024 avatar Apr 20 '22 13:04 anbu1024

I can prepro this on master using the build script only - direct CMake build does not exhibit the behavior. It also reproduces on 1.12 branch. This also WScript, which isn't normally high priority, but I think we need to bump this a bit to investigate build discrepancy between two different ways of building it.

ppenzin avatar May 27 '22 04:05 ppenzin