ChakraCore
ChakraCore copied to clipboard
ASSERTION Failure: "(index < functionBody->GetProfiledArrayCallSiteCount())" in ChakraCore/lib/Runtime/Language/DynamicProfileInfo.cpp
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
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.