chakra-core / chakra-core/ChakraCore

ASSERTION 444087: (ChakraCore/lib/Backend/LinearScan.cpp, line 3412)

Open
#6,946 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()
{
function bar(arg) {
switch (bar) {
case arg:
break;
default:
let i = 65537;
while (i == i) {
i += "1";
i--;
}
break;
}
}
const m = 0;
const n = bar(m);
const z = n || 9223372036854775806;
return z;
}

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

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

Error msg:
```
ASSERTION 444087: (ChakraCore/lib/Backend/LinearScan.cpp, line 3412) lifetime->start < instr->GetNumber() && lifetime->end >= instr->GetNumber()
Failure: (lifetime->start < instr->GetNumber() && lifetime->end >= instr->GetNumber())
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.