chakra-core / chakra-core/ChakraCore

ASSERTION Failure "Js reentrancy error" in ChakraCore/lib/Common/Exceptions/Throw.cpp, line 103

Open
#6,806 1 comment 0 reactions 0 assignees View on GitHub
Needs Triage
Dominant language
JavaScript
Stars
9.3k
Forks
1.2k
PR merge metrics
No merged PRs in 30d

Description

```
commit : 41ad58a
Engine version : ch version 1.13.0.0-beta
Build platform : Ubuntu 18.04
Clang version : 6.0.0
Build steps : ./build.sh --sanitize=address --static -j -d
```
POC
```
cat efe25658e8db4c358a13283eec7f6e85.js
------------------------------------------------
function main() {
function v0(v1, v2) {
main();
const v7 = new Int16Array(44915);

for (let v10 = 0; v10 < 1337; v10++) {
v7[v10] = 1337;
v7[v10] = v2;
}
}

const v12 = new Promise(v0);
}
```
Assert Log
```
./ch efe25658e8db4c358a13283eec7f6e85.js
-------------------------------------------------
ASSERTION 3893: (ChakraCore-master/lib/Common/Exceptions/Throw.cpp, line 103) Js reentrancy error!!
Failure: (false)
Illegal instruction
```

Hi, Richard, could you please help check this issue?

@rhuanjl

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.