Skip to content

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

@James-yaoshenglong

Description

@James-yaoshenglong

ChakraCore Version

13358c6

Steps to reproduce

Build

./build.sh --static --debug --sanitize=address --no-jit

Run

ch ./poc.js -200000

Proof of concept

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

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions