chakra-core / chakra-core/ChakraCore

Assertion failure at lib/Backend/BackwardPass.cpp:8667

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

Description

The debug build crashes due to assertion failure at lib/Backend/BackwardPass.cpp:8667.
```
let var_0 = [`function foo() {}`];
(function (){
let var_1 = 0;
for (let var_2 of var_0) {
while (true) {
let var_3 = var_2[0];
if (var_3.match(/\s/)) {
try {
[x] = [];
} finally {
new var_3();
}
return {};
}
}
}
return var_1;
})();
```

Commit: ca58245
Build Option: None
OS: Ubuntu 18.04.1 LTS
Arch: x86_64

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the debug-build crash with the provided JavaScript snippet on commit ca58245, then inspect the assertion at lib/Backend/BackwardPass.cpp:8667. Trace the backward-pass state leading to the assertion and determine why this input reaches it. Done means the reproduction no longer crashes while preserving the engine's expected behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp, javascript
Domain
compilers
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.