chakra-core / chakra-core/ChakraCore

ReportFatalException1

Open
#6,624 2 comments 0 reactions 0 assignees View on GitHub
By Design ES Spec Conformance
Dominant language
JavaScript
Stars
9.3k
Forks
1.2k
PR merge metrics
No merged PRs in 30d

Description

# Enviroment
ubuntu18
# poc
```
function AsmModule(stdlib) {
'use asm';
var m1 = stdlib.fround;
function f1() {
var x = m1(1.5);
var y = 1;
y = ~~~~x;
return ~~~x;
}
return f1;
}
var global = { Math: Math };
var asmModule = AsmModule(global);
AsmModule(268435456);
print(asmModule());
print(asmModule());

```
# callstack
```
[#0] 0x555555d59fac → DebugBreak()
[#1] 0x555555d59fac → ReportFatalException(context=, exceptionCode=, reasonCode=, scenario=)
[#2] 0x555555d5a3a7 → OutOfMemory_unrecoverable_error()
[#3] 0x555557ef6673 → Js::Exception::RaiseIfScriptActive(scriptContext=0x0, kind=0x0, returnAddress=0x0)
[#4] 0x555555d5a929 → Js::Throw::OutOfMemory()
[#5] 0x5555565a9a01 → Js::InterpreterStackFrame::ProcessLinkFailedAsmJsModule(this=)
[#6] 0x5555565a7d18 → Js::InterpreterStackFrame::ProcessAsmJsModule(this=)
[#7] 0x5555565685b9 → Js::InterpreterStackFrame::Process(this=)

```

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.