chakra-core / chakra-core/ChakraCore

ASSERTION 441828: (ChakraCore/lib/Backend/GlobOptArrays.cpp, line 1267)

Open
#6,945 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
9.3k
Forks
1.2k
PR merge metrics
No merged PRs in 30d

Description

ChakraCore version:
commit c3ead3f

Build cmd:
```shell
./build.sh --debug --static
```

Test case:
```js
function foo()
{
const arr = new Uint32Array(128);

let end = 9;

for (let i = 0; i < end; i = i + 10) {

function bar() {}

switch (arr) {
case bar:
break;
default:
let j = 5;
while (j != 4) {
arr[j] = -2918866880;
j--;
}
break;
}
const x = arr[i];
}
}

for(let i=0; i<1024; i++)
{
foo();
}
```

Execute
```shell
./ch ./test.js
```

Error msg:
```
ASSERTION 441828: (ChakraCore/lib/Backend/GlobOptArrays.cpp, line 1267) added || failedToUpdateCompatibleUpperBoundCheck
Failure: (added || failedToUpdateCompatibleUpperBoundCheck)
Illegal instruction (core dumped)
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.