Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
anbu1024 opened this issue Apr 20, 2022 · 1 comment

Comments

@anbu1024
Copy link

commit

41ad58a

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
@ppenzin
Copy link
Member

ppenzin commented May 27, 2022

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants