chakra-core / ChakraCore

ChakraCore is an open source Javascript engine with a C API.
MIT License
9.13k stars 1.2k forks source link

ASSERTION: (ChakraCore/lib/Backend/BackwardPass.cpp, line 582) blockSucc->GetDataUseCount() != 0 #6951

Open anbu1024 opened 1 year ago

anbu1024 commented 1 year ago

ChakraCore version: commit c3ead3f

Build cmd:

./build.sh --debug --static

Test case:

function foo() {
    try {
        try {
            for (let i = 0; i < 1; i++) {
                try {
                    function bar() {
                        const ret = Reflect.ownKeys();
                    }
                    const x = new bar();
                }
                finally {
                    break;
                }
            }
        } 
        finally {
        }
    } 
    catch(e) {
    }
}

i = 0;
while (i<1024)
{
    foo();
    i++;
}

Execute

./ch ./test.js

Error msg:

ASSERTION 2675347: (ChakraCore/lib/Backend/BackwardPass.cpp, line 582) blockSucc->GetDataUseCount() != 0
 Failure: (blockSucc->GetDataUseCount() != 0)
Illegal instruction (core dumped)
InternalHigh commented 1 year ago

Why do you try to find bugs in dead projects?