chakra-core / chakra-core/ChakraCore

[Bug]: Asssertion Failure (!ThreadContext::IsOnStack(value) || (allowStackVar && allowStackVarOnDisabledStackNestedFunc && StackScriptFunction::IsBoxed(value))) in /lib/Runtime/Language/InterpreterStackFrame.cpp, line 7928)

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

Description

### ChakraCore Version

13358c622f6cf7ce3d2512a170513fc5cb6021cd

### Steps to reproduce

### Build
```
./build.sh --static --debug --sanitize=address --no-jit
```
### Run
```
ch ./poc.js -200000
```

### Proof of concept

```js
eval ` multi
${ 1 + 3.14e+1 , 2 + .4_5e6_7 } git ${ 1 + 3.14e+1 , 3 + .4_5e6_7 }

line ` . filter ( function ( a ) { return eval ` "hello" ${ 1 + 3.14e+1 , 2 + .4_5e6_7 }
hello
${ 1 + 3.14e+1 , console -- > 0x1ABCDEFabcdef } uh oh ` . filter ( ( ... a ) => { return void import ( { d : ( a = void import ( " " ) , a = void import ( { d : ( a = 1 , a = void import ( ( x , y ) => { var x , y = { 0o7632157312 : 2 } , z ; } ) ) } ) ) } ) && typeof console [ " y " ] ; } ) . e ; } ) ;
```

### Exception or Error

```text
ASSERTION : (/home/user/repo/ChakraCore/lib/Runtime/Language/InterpreterStackFrame.cpp, line 7928) !ThreadContext::IsOnStack(value) || (allowStackVar && allowStackVarOnDisabledStackNestedFunc && StackScriptFunction::IsBoxed(value))
Failure: (!ThreadContext::IsOnStack(value) || (allowStackVar && allowStackVarOnDisabledStackNestedFunc && StackScriptFunction::IsBoxed(value)))
Illegal instruction
```

### Additional Context

_No response_

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.