chakra-core / chakra-core/ChakraCore

FatalInternalError in ReparseAsmJsModule

Open
#6,472 3 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

POC:
```javascript
function Module() {
'use asm';

function f() {
}

return f;
}

function recur() {
try {
recur();
} catch (e) {
Module(1);
}
}

recur();
```

ch version: `ch version 1.12.0.0-beta`, git hash `33db8efd9f02cd528a7305391d7d10765a2e85f3`

Stack dump:
```
#0 DBG_DebugBreak () at /home/yongheng/ChakraCore/pal/src/arch/i386/debugbreak.S:18
#1 0x00007ffff26f1c31 in DebugBreak () at /home/yongheng/ChakraCore/pal/src/debug/debug.cpp:408
#2 0x00007ffff2d5f279 in ReportFatalException (context=0x0, exceptionCode=0x80004005,
reasonCode=Fatal_Internal_Error, scenario=0x2)
at /home/yongheng/ChakraCore/lib/Common/Exceptions/ReportError.cpp:20
#3 0x00007ffff2d5f84d in Js::Throw::FatalInternalError (hr=0x80004005)
at /home/yongheng/ChakraCore/lib/Common/Exceptions/Throw.cpp:72
#4 0x00007ffff37893e8 in Js::JavascriptFunction::ReparseAsmJsModule (functionRef=0x7fffff814020)
at /home/yongheng/ChakraCore/lib/Runtime/Library/JavascriptFunction.cpp:1716
#5 0x00007ffff336bfb0 in Js::InterpreterStackFrame::ProcessLinkFailedAsmJsModule (this=0x7fffff8146c0)
at /home/yongheng/ChakraCore/lib/Runtime/Language/InterpreterStackFrame.cpp:2926
#6 0x00007ffff336ab41 in Js::InterpreterStackFrame::ProcessAsmJsModule (this=0x7fffff8146c0)
at /home/yongheng/ChakraCore/lib/Runtime/Language/InterpreterStackFrame.cpp:2672
#7 0x00007ffff3347aae in Js::InterpreterStackFrame::Process (this=0x7fffff8146c0)
at /home/yongheng/ChakraCore/lib/Runtime/Language/InterpreterStackFrame.cpp:3463
#8 0x00007ffff334678b in Js::InterpreterStackFrame::InterpreterHelper (function=0x7ffff7ef6730, args=...,
returnAddress=0x7ffff7e50f92, addressOfReturnAddress=0x7fffff814bf8, asmJsReturn=0x0)
at /home/yongheng/ChakraCore/lib/Runtime/Language/InterpreterStackFrame.cpp:2165
#9 0x00007ffff3345858 in Js::InterpreterStackFrame::InterpreterThunk (layout=0x7fffff814c10)
at /home/yongheng/ChakraCore/lib/Runtime/Language/InterpreterStackFrame.cpp:1845
#10 0x00007ffff7e50f92 in ?? ()
#11 0x00007fffff814c30 in ?? ()
#12 0x00007ffff3a9851e in amd64_CallFunction ()
at /home/yongheng/ChakraCore/lib/Runtime/Library/amd64/JavascriptFunctionA.S:100
```

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.