issue_owner_repo
listlengths 2
2
| issue_body
stringlengths 0
261k
⌀ | issue_title
stringlengths 1
925
| issue_comments_url
stringlengths 56
81
| issue_comments_count
int64 0
2.5k
| issue_created_at
stringlengths 20
20
| issue_updated_at
stringlengths 20
20
| issue_html_url
stringlengths 37
62
| issue_github_id
int64 387k
2.46B
| issue_number
int64 1
127k
|
---|---|---|---|---|---|---|---|---|---|
[
"chakra-core",
"ChakraCore"
] |
The debug build of Chakacore crashes.
PoC:
```
function testReconfigureAsAccessorProperty(f) {
var length = 2;
Object.defineProperty(f, 'length', {
get: function () {
return length;
},
set: function (v) {
length = v;
}
});
}
(function testSetOnInstance() {
function f() {}
delete f.length;
testReconfigureAsAccessorProperty(f);
Object.defineProperty(Function.prototype, 'length', {
writable: true
});
f.length = 123;
print(f.length); // It should print 123; but print 0
})();
```
Version= `e79d68a` on master branch
OS=Ubuntu 16.04.6
Arch=x86_64
|
ASSERTION failure in ChakraCore/lib/Runtime/Language/CacheOperators.cpp, line 178
|
https://api.github.com/repos/chakra-core/ChakraCore/issues/6271/comments
| 1 |
2019-09-09T18:14:16Z
|
2019-10-04T17:31:58Z
|
https://github.com/chakra-core/ChakraCore/issues/6271
| 491,247,880 | 6,271 |
[
"chakra-core",
"ChakraCore"
] |
The debug build of Chakacore crashes.
PoC:
```
(function testSetOnInstance() {
function f() {}
delete f.name;
Object.defineProperty(Function.prototype, 'name', {
writable: true
});
f.name = 123;
print(f.name) // It should print 123; but print nothing
}());
```
Version=v1.11.12
OS=Ubuntu 16.04.6
Arch=x86_64
|
ASSERTION failure in ChakraCore/lib/Runtime/Types/PathTypeHandler.cpp, line 3830
|
https://api.github.com/repos/chakra-core/ChakraCore/issues/6270/comments
| 0 |
2019-09-09T18:07:37Z
|
2019-09-09T18:07:37Z
|
https://github.com/chakra-core/ChakraCore/issues/6270
| 491,244,817 | 6,270 |
[
"chakra-core",
"ChakraCore"
] |
The debug build of Chakacore crashes.
PoC:
```
const x = "const x";
this.x = 20;
delete this.x;
x += "const x";
x = "but we can write";
print(x) // It should print "const x" but print "but we can write"
```
This PoC leads to be able to write const variable 'x'.
Version=v1.11.12
OS=Ubuntu 16.04.6
Arch=x86_64
|
ASSERTION failure in ChakraCore/lib/Runtime/Language/InlineCache.inl, line 244
|
https://api.github.com/repos/chakra-core/ChakraCore/issues/6269/comments
| 0 |
2019-09-09T18:02:50Z
|
2019-09-09T18:02:50Z
|
https://github.com/chakra-core/ChakraCore/issues/6269
| 491,242,559 | 6,269 |
[
"chakra-core",
"ChakraCore"
] |
The debug build of Chakacore crashes.
PoC:
```
class X {
constructor() {
Object.defineProperty(this, "prop1", {
configurable: true,
writable: false,
value: 1
});
}
f1() {
super.prop1 = 2;
}
}
var x = new X();
(() => x.f1())();
print(x.prop1) // It should be 1; but print 2
print(Object.getOwnPropertyDescriptor(x, 'prop1').writable)
```
This PoC leads to be able to write read-only property 'prop1'.
Version=v1.11.12
OS=Ubuntu 16.04.6
Arch=x86_64
|
ASSERTION failure in ChakraCore/lib/Runtime/Language/CacheOperator.inl, line 367
|
https://api.github.com/repos/chakra-core/ChakraCore/issues/6268/comments
| 0 |
2019-09-09T17:53:09Z
|
2019-09-09T17:53:09Z
|
https://github.com/chakra-core/ChakraCore/issues/6268
| 491,238,025 | 6,268 |
[
"chakra-core",
"ChakraCore"
] |
I am working on implementing support of the ECMAScript 2015 static modules in a .NET library ([JavaScript Engine Switcher](https://github.com/Taritsyn/JavaScriptEngineSwitcher) project). I've already read the [API documentation](https://github.com/microsoft/ChakraCore/wiki/JavaScript-Runtime-%28JSRT%29-Reference) and [“Steps needed for es6 modules embedding ChakraCore”](https://github.com/Microsoft/ChakraCore/issues/4324) discussion.
But I have not found anywhere information about how to get the result of module evaluation. Suppose there is the following code of root module:
```js
import * as geometry from './geometry/geometry.js';
new geometry.Square(15).area;
```
The expected result of evaluating this module is a numerical value equal to `225`, but the [`JsModuleEvaluation`](https://github.com/microsoft/ChakraCore/wiki/JsModuleEvaluation) method always returns `undefined`.
To make it easier for you to find the reason for this behavior, I created a [.NET Core console application](https://github.com/Taritsyn/TestChakraCoreEsModules).
|
The `JsModuleEvaluation` method always returns a result equal to `undefined`
|
https://api.github.com/repos/chakra-core/ChakraCore/issues/6266/comments
| 4 |
2019-09-05T18:11:12Z
|
2020-03-25T09:04:11Z
|
https://github.com/chakra-core/ChakraCore/issues/6266
| 489,920,381 | 6,266 |
[
"chakra-core",
"ChakraCore"
] |
os:ubuntu 16.04 x64
build: debug & release
poc:
var v0 = "can't";
var v2 = "get";
var v3 = "no";
var v4 = "Satisfaction";
var v7 = "in";
while((v2.length) < (200000)){
{
(v12) = v2;
(v2) = (v2) + (" ZOMBIE");
}
}
var v8 = new RegExp((((((((((((('^(?:') + (v3)) + ('|')) + (v0)) + ('|')) + (v4)) + ('|')) + (v12)) + ('|')) + (v2)) + ('|')) + (v7)) + (')'));
|
crash due to invalid memory access at ChakraCore/lib/Common/Memory/PageAllocator.h:731
|
https://api.github.com/repos/chakra-core/ChakraCore/issues/6263/comments
| 0 |
2019-09-02T02:36:24Z
|
2019-09-02T02:36:24Z
|
https://github.com/chakra-core/ChakraCore/issues/6263
| 487,967,220 | 6,263 |
[
"chakra-core",
"ChakraCore"
] |
Consider implementing top-level await, stage 3: https://github.com/tc39/proposal-top-level-await
I had misgivings about this, but it seems to have picked up traction recently and is already stage 3 so I doubt it's going anywhere, regardless of what I think of it. 😛
|
Implement Top-Level Await (Stage 3 proposal)
|
https://api.github.com/repos/chakra-core/ChakraCore/issues/6262/comments
| 7 |
2019-09-01T05:52:24Z
|
2020-12-18T15:45:36Z
|
https://github.com/chakra-core/ChakraCore/issues/6262
| 487,845,697 | 6,262 |
[
"chakra-core",
"ChakraCore"
] |
Module execution of ES modules is based on post-order execution up the graph (with circular deduping).
The Edge behaviour is incorrectly implementing a _reverse post-order execution_.
The simple example of this is the following:
```html
<script>order=[]</script>
<script type="module">
import '/a.js';
import '/b.js';
console.log(order);
</script>
```
where `a.js` contains `order.push('a')` and `b.js` similarly.
where edge will execute `b` and then `a`, instead of `a` and then `b`!
The fix should be simple (one loop can just be reversed somewhere), but this is a really important bug to fix as many projects will write code like the following:
```js
import 'polyfill';
import 'stuff-that-needs-polyfill';
```
and without these guaranatees those code paths break down.
I would highly recommend marking this as an urgent priority.
|
Modules executing in reverse post-order
|
https://api.github.com/repos/chakra-core/ChakraCore/issues/6261/comments
| 7 |
2019-08-31T15:19:15Z
|
2019-10-09T22:43:34Z
|
https://github.com/chakra-core/ChakraCore/issues/6261
| 487,780,403 | 6,261 |
[
"chakra-core",
"ChakraCore"
] |
Alignment hint to `v128` stores appears to affect the array index into which values get stored:
```
$ cat align.wat
(module
(import "dummy" "memory" (memory 1))
(func
(export "store_i32")
(param $index i32)
(param $value i32)
(i32.store align=4 (get_local $index) (get_local $value))
)
(func
(export "store_v128")
(param $index i32)
(param $value i32)
(v128.store align=4 (get_local $index) (i32x4.splat (get_local $value)))
)
)
$ cat run.js
const memObj = new WebAssembly.Memory({initial:1});
const module = new WebAssembly.Module(readbuffer('align.wasm'));
const instance = new WebAssembly.Instance(module, { "dummy" : { "memory" : memObj } }).exports;
let uint8_data = new Uint8Array (memObj.buffer);
print(uint8_data[0]);
instance["store_i32"](1, 0xFFFFFFFF);
print(uint8_data[0]);
instance["store_v128"](1, 0xFFFFFFFF);
print(uint8_data[0]);
$ wat2wasm --enable-simd align.wat -o align.wasm
$ ch -wasmsimd run.js
0
0
255
```
The second store should not write anything to index 0 as alignment hint, per Wasm spec, should not affect semantics of operation (can only affect its speed).
|
[Wasm SIMD] alignment affects memory index
|
https://api.github.com/repos/chakra-core/ChakraCore/issues/6259/comments
| 0 |
2019-08-30T23:44:57Z
|
2019-09-19T19:34:54Z
|
https://github.com/chakra-core/ChakraCore/issues/6259
| 487,704,810 | 6,259 |
[
"chakra-core",
"ChakraCore"
] |
Looks like `v128` memory accesses require alignment no greater than 4, the following would fail with `align=8` or `align=16` added to `v128.load` instruction.
```
$ cat load.wat
(module
(import "dummy" "memory" (memory 1))
(func (export "test_load")
(result i32)
(i32x4.extract_lane 1 (v128.load offset=0 (i32.const 0)))
)
)
$ cat run.js
const INITIAL_SIZE = 1;
const memObj = new WebAssembly.Memory({initial:INITIAL_SIZE});
const module = new WebAssembly.Module(readbuffer('load.wasm'));
const instance = new WebAssembly.Instance(module, { "dummy" : { "memory" : memObj } }).exports;
var arr = new Int32Array (memObj.buffer);
arr[0] = 1;
arr[1] = 2;
arr[2] = 3;
arr[3] = 4;
arr[4] = 5;
arr[5] = 6;
arr[6] = 7;
arr[7] = 8;
print(instance["test_load"]());
$ wat2wasm --enable-simd load.wat -o load.wasm
$ ch -wasmsimd run.js
CompileError: function test_load[0] at offset 64/68 (0x40/0x44): alignment must not be larger than natural
at Global code (/home/ppenzin/bugs/v128_alignment/run.js:16:1)
```
This is caused by using ArrayBufferView for a 4-byte type , and was introduced in 3d31f2316bfb444e932d76e0433b63deaf5f3f2f.
It felt wrong to add an ArrayBufferView for simd values (as they cannot be accessed via ArrayBuffer), I have a solution in my PR, but there might be better ways to do it.
|
[Wasm SIMD] wrong natural alignment for v128
|
https://api.github.com/repos/chakra-core/ChakraCore/issues/6258/comments
| 0 |
2019-08-30T23:44:44Z
|
2019-09-19T19:34:54Z
|
https://github.com/chakra-core/ChakraCore/issues/6258
| 487,704,782 | 6,258 |
[
"chakra-core",
"ChakraCore"
] |
The [documentation indicates](https://github.com/microsoft/ChakraCore/blob/c0ae3d327654e4390d9c250eb62cc81b6c47492e/lib/Jsrt/ChakraCore.h#L772) that `scriptLoadCallback` is optional (set to null if not required) for `JsParseSerialized`. This parameter is [actually checked against null](https://github.com/microsoft/ChakraCore/blob/833c7f5b862f6b56386ecff6278db64d0cdc451e/lib/Jsrt/Jsrt.cpp#L3978) and `ErrorNullArgument` is returned if it is.
Is the documentation or the code incorrect? I'm happy to fix either.
|
JsParseSerialized Argument Documentation Disagreement
|
https://api.github.com/repos/chakra-core/ChakraCore/issues/6256/comments
| 1 |
2019-08-26T21:55:07Z
|
2022-06-16T18:31:21Z
|
https://github.com/chakra-core/ChakraCore/issues/6256
| 485,472,450 | 6,256 |
[
"chakra-core",
"ChakraCore"
] |
### version info
- Microsoft Edge 44.18963.1000.0
- Microsoft EdgeHTML 18.18963
### problem
In the console, if I use `await` the console generate error `Expected ';'` and refuses to run the line.
### how to re-produce
In the console.
```js
var f = async () => { setTimeout(() => { console.log('foo'); }, 1000); };
await f(); // generates "Expected ';'" error message
```
|
using `await` throws incorrect error
|
https://api.github.com/repos/chakra-core/ChakraCore/issues/6255/comments
| 2 |
2019-08-23T15:44:13Z
|
2019-09-06T11:16:31Z
|
https://github.com/chakra-core/ChakraCore/issues/6255
| 484,596,001 | 6,255 |
[
"chakra-core",
"ChakraCore"
] |
The latest version of Edge appears to have a nondeterministic branching bug.
**Background**
I have a single-page JavaScript app that works in Chrome and used to work in Edge (was working for me in July), but it is now hitting an apparent timing bug in the latest version of Edge. I'm on this version of Edge:
Microsoft Edge 44.17763.1.0
Microsoft EdgeHTML 18.17763
**Bug**
I've isolated the problem down to some simple (and expected-to-be-deterministic) string-parsing code. Basically, the code (see gist linked below) parses a line of comma-separated values, allowing values to be enclosed in quotation marks (e.g. so the values can be strings that include commas).
Now, the code itself isn't super important. What's important is that the code should produce the same result every time it runs. However, if I run this code on the exact same input in a loop, sometimes a branch will be unexpectedly taken (!!!), resulting in incorrect parsing, thus breaking my app. Note that if I turn on F12 developer tools and put a breakpoint on the unexpected branch, the issue _does not_ occur (i.e. the debugger seems to change the timing/prevent the bug from manifesting).
I have only observed this bug on Edge and I suspect it only affects the latest version of Edge (since I never hit this bug until recently and I use Edge for development). I can reproduce the bug on multiple machines (all on the latest revision of Windows 10).
**Repro**
Here is a gist that reproduces the bug (on the latest Edge only, of course):
https://gist.github.com/jaredkrinke/a1a219ed1466423e927504297d27819e
The HTML page contains all of the code. Reload the page several times and you should hit the bug (it should say "Failed after X iterations" on Edge, but it always says "Successful after 1000 iterations" on other browsers--i.e. the bug only impacts Edge).
|
Nondeterministic JavaScript bug in latest version of Microsoft Edge
|
https://api.github.com/repos/chakra-core/ChakraCore/issues/6252/comments
| 3 |
2019-08-17T00:20:12Z
|
2019-09-19T19:46:44Z
|
https://github.com/chakra-core/ChakraCore/issues/6252
| 481,826,611 | 6,252 |
[
"chakra-core",
"ChakraCore"
] |
Following code triggers many ubsan errors.
```
v3[3] = new Error(v3.constructor, v3[28605.91087]);
delete v3[undefined];
var v1 = ";e" ? v3 : v1({ v2:undefined, v1:false });
v1[0] = new Date(true);
delete v3[true];
this.v1(v3.replace);
function v3(v1, ...v0) {
for (v2 = v1 + v1; v3.search ? "N=sR" : { }; { v2:v2 } ? v2 : v2) {
this.v3([ v2 ], ...v0);
}
v3.push(v1.prototype, v3[17064]);
var v0 = function (v1) {
}
};
```
Compile option: `--static --sanitize=undefined --test-build`
OS: Ubuntu 18.04.1 LTS
Arch: x86_64
ASAN report.
```
ChakraCore/lib/Common/Codex/Utf8Codex.h:156:5: runtime error: load of value 4294967294, which is not a valid value for type 'utf8::DecodeOptions'
SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior ChakraCore/lib/Common/Codex/Utf8Codex.h:156:5 in
ChakraCore/pal/src/cruntime/wchar.cpp:1264:58: runtime error: load of misaligned address 0x6210000060a2 for type 'const size_t' (aka 'const unsigned long'), which requires 8 byte alignment
0x6210000060a2: note: pointer points here
ff ff 00 00 73 00 65 00 61 00 72 00 63 00 68 00 00 00 be be be be be be be be 76 00 33 00 2e 00
^
SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior ChakraCore/pal/src/cruntime/wchar.cpp:1264:58 in
ChakraCore/lib/Runtime/ByteCode/ByteCodeWriter.cpp:1093:96: runtime error: reference binding to misaligned address 0x7fffffffab23 for type 'Js::InlineCacheIndex' (aka 'unsigned int'), which requires 4 byte alignment
0x7fffffffab23: note: pointer points here
00 03 ff 0b 00 00 00 00 00 00 80 fa f1 ff 7f 00 00 2d 00 00 00 00 00 00 00 69 2d 38 eb 08 ea df
^
SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior ChakraCore/lib/Runtime/ByteCode/ByteCodeWriter.cpp:1093:96 in
ChakraCore/lib/Runtime/ByteCode/ByteCodeWriter.cpp:1748:88: runtime error: reference binding to misaligned address 0x7fffffffb6c1 for type 'typename LayoutSizePolicy<SmallLayout>::PropertyIdIndexType' (aka 'unsigned short'), which requires 2 byte alignment
0x7fffffffb6c1: note: pointer points here
6a 87 be 01 6b c7 73 55 55 00 00 69 2d 38 eb 08 ea df 9d 10 b7 ff ff ff 7f 00 00 b9 83 98 64 55
^
SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior ChakraCore/lib/Runtime/ByteCode/ByteCodeWriter.cpp:1748:88 in
ChakraCore/lib/Backend/InterpreterThunkEmitter.h:114:9: runtime error: store to misaligned address 0x7ffff1f6003d for type 'unsigned long', which requires 8 byte alignment
0x7ffff1f6003d: note: pointer points here
24 10 48 b8 00 00 00 00 00 00 00 00 ff e2 cc cc cc cc cc cc cc cc cc cc cc cc cc cc cc cc cc cc
^
SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior ChakraCore/lib/Backend/InterpreterThunkEmitter.h:114:9 in
ChakraCore/lib/Backend/InterpreterThunkEmitter.h:114:9: runtime error: store to misaligned address 0x7ffff1f60027 for type 'unsigned int', which requires 4 byte alignment
0x7ffff1f60027: note: pointer points here
c1 48 81 f9 00 00 00 00 76 09 48 c7 c1 00 00 00 00 cd 29 48 8d 7c 24 10 48 b8 c0 c5 20 65 55 55
^
SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior ChakraCore/lib/Backend/InterpreterThunkEmitter.h:114:9 in
ChakraCore/lib/Backend/InterpreterThunkEmitter.h:114:9: runtime error: store to misaligned address 0x7ffff1f6004b for type 'int', which requires 4 byte alignment
0x7ffff1f6004b: note: pointer points here
cc ff d0 e9 00 00 00 00 cc cc cc cc cc cc cc cc cc cc cc cc cc cc cc cc cc cc cc cc cc cc cc cc
^
SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior ChakraCore/lib/Backend/InterpreterThunkEmitter.h:114:9 in
ChakraCore/lib/Runtime/Library/JavascriptString.cpp:373:13: runtime error: store to misaligned address 0x7ffff21ad3de for type 'uint32' (aka 'unsigned int'), which requires 4 byte alignment
0x7ffff21ad3de: note: pointer points here
00 00 00 00 00 00 00 00 28 00 29 00 20 00 7b 00 20 00 5b 00 6e 00 61 00 74 00 69 00 76 00 65 00
^
SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior ChakraCore/lib/Runtime/Library/JavascriptString.cpp:373:13 in
ChakraCore/lib/Runtime/Library/JavascriptString.cpp:377:13: runtime error: store to misaligned address 0x7ffff21ad3da for type 'uint32' (aka 'unsigned int'), which requires 4 byte alignment
0x7ffff21ad3da: note: pointer points here
00 00 00 00 00 00 00 00 6f 00 6e 00 28 00 29 00 20 00 7b 00 20 00 5b 00 6e 00 61 00 74 00 69 00
^
SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior ChakraCore/lib/Runtime/Library/JavascriptString.cpp:377:13 in
ChakraCore/lib/Runtime/Library/JavascriptString.cpp:381:13: runtime error: store to misaligned address 0x7ffff21ad3d6 for type 'uint32' (aka 'unsigned int'), which requires 4 byte alignment
0x7ffff21ad3d6: note: pointer points here
00 00 00 00 00 00 00 00 74 00 69 00 6f 00 6e 00 28 00 29 00 20 00 7b 00 20 00 5b 00 6e 00 61 00
^
SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior ChakraCore/lib/Runtime/Library/JavascriptString.cpp:381:13 in
ChakraCore/lib/Runtime/Library/JavascriptString.cpp:385:13: runtime error: store to misaligned address 0x7ffff21ad3d2 for type 'uint32' (aka 'unsigned int'), which requires 4 byte alignment
0x7ffff21ad3d2: note: pointer points here
00 00 00 00 00 00 00 00 6e 00 63 00 74 00 69 00 6f 00 6e 00 28 00 29 00 20 00 7b 00 20 00 5b 00
^
SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior ChakraCore/lib/Runtime/Library/JavascriptString.cpp:385:13 in
ChakraCore/lib/Runtime/Library/JavascriptError.cpp:531:27: runtime error: nan is outside the range of representable values of type 'int'
SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior ChakraCore/lib/Runtime/Library/JavascriptError.cpp:531:27 in
ChakraCore/lib/Runtime/Language/DynamicProfileInfo.cpp:147:30: runtime error: member call on misaligned address 0x7ffff1f89202 for type 'BVFixed', which requires 8 byte alignment
0x7ffff1f89202: note: pointer points here
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
^
SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior ChakraCore/lib/Runtime/Language/DynamicProfileInfo.cpp:147:30 in
ChakraCore/lib/Common/DataStructures/FixedBitVector.cpp:35:10: runtime error: member call on misaligned address 0x7ffff1f89202 for type 'BVFixed *', which requires 8 byte alignment
0x7ffff1f89202: note: pointer points here
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
^
SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior ChakraCore/lib/Common/DataStructures/FixedBitVector.cpp:35:10 in
ChakraCore/lib/Runtime/Language/DynamicProfileInfo.cpp:151:34: runtime error: member call on misaligned address 0x7ffff1f89202 for type 'BVFixed', which requires 8 byte alignment
0x7ffff1f89202: note: pointer points here
00 00 00 00 02 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
^
SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior ChakraCore/lib/Runtime/Language/DynamicProfileInfo.cpp:151:34 in
ChakraCore/lib/Common/DataStructures/FixedBitVector.h:234:15: runtime error: member call on misaligned address 0x7ffff1f89202 for type 'BVFixed *', which requires 8 byte alignment
0x7ffff1f89202: note: pointer points here
00 00 00 00 02 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
^
SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior ChakraCore/lib/Common/DataStructures/FixedBitVector.h:234:15 in
ChakraCore/lib/Common/DataStructures/FixedBitVector.cpp:122:10: runtime error: member call on misaligned address 0x7ffff1f89202 for type 'const BVFixed *', which requires 8 byte alignment
0x7ffff1f89202: note: pointer points here
00 00 00 00 02 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
^
SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior ChakraCore/lib/Common/DataStructures/FixedBitVector.cpp:122:10 in
ChakraCore/lib/Common/DataStructures/FixedBitVector.h:279:9: runtime error: member call on misaligned address 0x7ffff1f8920a for type 'BVUnitT<unsigned long>', which requires 8 byte alignment
0x7ffff1f8920a: note: pointer points here
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
^
SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior ChakraCore/lib/Common/DataStructures/FixedBitVector.h:279:9 in
ChakraCore/lib/Common/DataStructures/UnitBitVector.h:431:10: runtime error: member call on misaligned address 0x7ffff1f8920a for type 'BVUnitT<unsigned long> *', which requires 8 byte alignment
0x7ffff1f8920a: note: pointer points here
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
^
SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior ChakraCore/lib/Common/DataStructures/UnitBitVector.h:431:10 in
ChakraCore/lib/Common/DataStructures/FixedBitVector.h:279:9: runtime error: member call on misaligned address 0x7ffff1f8920a for type 'BVUnitT<unsigned long>', which requires 8 byte alignment
0x7ffff1f8920a: note: pointer points here
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
^
SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior ChakraCore/lib/Common/DataStructures/FixedBitVector.h:279:9 in
ChakraCore/lib/Common/DataStructures/UnitBitVector.h:441:10: runtime error: member call on misaligned address 0x7ffff1f8920a for type 'BVUnitT<unsigned long> *', which requires 8 byte alignment
0x7ffff1f8920a: note: pointer points here
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
^
SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior ChakraCore/lib/Common/DataStructures/UnitBitVector.h:441:10 in
ChakraCore/lib/Runtime/Language/DynamicProfileInfo.cpp:181:13: runtime error: member access within misaligned address 0x7ffff1f891df for type 'Js::FldInfo', which requires 2 byte alignment
0x7ffff1f891df: note: pointer points here
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
^
SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior ChakraCore/lib/Runtime/Language/DynamicProfileInfo.cpp:181:13 in
ChakraCore/lib/Runtime/Language/DynamicProfileInfo.cpp:181:24: runtime error: store to misaligned address 0x7ffff1f891e1 for type 'Js::FldInfoFlags', which requires 2 byte alignment
0x7ffff1f891e1: note: pointer points here
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
^
SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior ChakraCore/lib/Runtime/Language/DynamicProfileInfo.cpp:181:24 in
ChakraCore/lib/Runtime/Language/DynamicProfileInfo.cpp:182:13: runtime error: member access within misaligned address 0x7ffff1f891df for type 'Js::FldInfo', which requires 2 byte alignment
0x7ffff1f891df: note: pointer points here
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
^
SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior ChakraCore/lib/Runtime/Language/DynamicProfileInfo.cpp:182:13 in
ChakraCore/lib/Runtime/Language/DynamicProfileInfo.cpp:183:13: runtime error: member access within misaligned address 0x7ffff1f891df for type 'Js::FldInfo', which requires 2 byte alignment
0x7ffff1f891df: note: pointer points here
00 00 00 00 09 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
^
SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior ChakraCore/lib/Runtime/Language/DynamicProfileInfo.cpp:183:13 in
ChakraCore/lib/Runtime/Language/DynamicProfileInfo.cpp:1384:53: runtime error: member call on misaligned address 0x7ffff1f891ff for type 'ValueType', which requires 2 byte alignment
0x7ffff1f891ff: note: pointer points here
09 00 00 80 09 00 00 02 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
^
SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior ChakraCore/lib/Runtime/Language/DynamicProfileInfo.cpp:1384:53 in
ChakraCore/lib/Runtime/Language/ValueType.cpp:1098:22: runtime error: member call on misaligned address 0x7ffff1f891ff for type 'const ValueType *', which requires 2 byte alignment
0x7ffff1f891ff: note: pointer points here
09 00 00 80 09 00 00 02 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
^
SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior ChakraCore/lib/Runtime/Language/ValueType.cpp:1098:22 in
ChakraCore/lib/Runtime/./Language/ValueType.h:352:36: runtime error: member call on misaligned address 0x7ffff1f891ff for type 'const ValueType *', which requires 2 byte alignment
0x7ffff1f891ff: note: pointer points here
09 00 00 80 09 00 00 02 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
^
SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior ChakraCore/lib/Runtime/./Language/ValueType.h:352:36 in
ChakraCore/lib/Runtime/./Language/ValueType.h:357:15: runtime error: member call on misaligned address 0x7ffff1f891ff for type 'ValueType', which requires 2 byte alignment
0x7ffff1f891ff: note: pointer points here
09 00 00 80 09 00 00 02 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
^
SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior ChakraCore/lib/Runtime/./Language/ValueType.h:357:15 in
ChakraCore/lib/Runtime/Language/ValueType.cpp:1416:17: runtime error: member call on misaligned address 0x7ffff1f891ff for type 'const ValueType *', which requires 2 byte alignment
0x7ffff1f891ff: note: pointer points here
09 00 00 80 09 00 00 02 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
^
SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior ChakraCore/lib/Runtime/Language/ValueType.cpp:1416:17 in
ChakraCore/lib/Runtime/Language/ValueType.cpp:1418:12: runtime error: load of misaligned address 0x7ffff1f891ff for type 'const typename WriteBarrierFieldTypeTraits<Bits>::Type' (aka 'const ValueType::Bits'), which requires 2 byte alignment
0x7ffff1f891ff: note: pointer points here
09 00 00 80 09 00 00 02 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
^
SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior ChakraCore/lib/Runtime/Language/ValueType.cpp:1418:12 in
ChakraCore/lib/Runtime/./Language/ValueType.h:360:28: runtime error: load of misaligned address 0x7ffff1f891ff for type 'const typename WriteBarrierFieldTypeTraits<Bits>::Type' (aka 'const ValueType::Bits'), which requires 2 byte alignment
0x7ffff1f891ff: note: pointer points here
09 00 00 80 09 00 00 02 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
^
SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior ChakraCore/lib/Runtime/./Language/ValueType.h:360:28 in
ChakraCore/lib/Runtime/Language/DynamicProfileInfo.cpp:1262:33: runtime error: member access within misaligned address 0x7ffff1f891fb for type 'Js::FldInfo', which requires 2 byte alignment
0x7ffff1f891fb: note: pointer points here
09 00 00 80 09 00 00 80 0b 00 00 02 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
^
SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior ChakraCore/lib/Runtime/Language/DynamicProfileInfo.cpp:1262:33 in
ChakraCore/lib/Runtime/Language/DynamicProfileInfo.cpp:1262:56: runtime error: load of misaligned address 0x7ffff1f891fd for type 'Js::FldInfoFlags', which requires 2 byte alignment
0x7ffff1f891fd: note: pointer points here
00 80 09 00 00 80 0b 00 00 02 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
^
SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior ChakraCore/lib/Runtime/Language/DynamicProfileInfo.cpp:1262:56 in
ChakraCore/lib/Runtime/Language/DynamicProfileInfo.cpp:1268:9: runtime error: member access within misaligned address 0x7ffff1f891fb for type 'Js::FldInfo', which requires 2 byte alignment
0x7ffff1f891fb: note: pointer points here
09 00 00 80 09 00 00 80 0b 00 00 02 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
^
SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior ChakraCore/lib/Runtime/Language/DynamicProfileInfo.cpp:1268:9 in
ChakraCore/lib/Runtime/Language/DynamicProfileInfo.cpp:1268:32: runtime error: store to misaligned address 0x7ffff1f891fd for type 'Js::FldInfoFlags', which requires 2 byte alignment
0x7ffff1f891fd: note: pointer points here
00 80 09 00 00 80 0b 00 00 02 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
^
SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior ChakraCore/lib/Runtime/Language/DynamicProfileInfo.cpp:1268:32 in
ChakraCore/lib/Runtime/Language/DynamicProfileInfo.cpp:1286:13: runtime error: member access within misaligned address 0x7ffff1f891fb for type 'Js::FldInfo', which requires 2 byte alignment
0x7ffff1f891fb: note: pointer points here
09 00 00 80 09 00 41 80 0b 00 00 02 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
^
SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior ChakraCore/lib/Runtime/Language/DynamicProfileInfo.cpp:1286:13 in
ChakraCore/lib/Runtime/Language/DynamicProfileInfo.cpp:1288:17: runtime error: member access within misaligned address 0x7ffff1f891fb for type 'Js::FldInfo', which requires 2 byte alignment
0x7ffff1f891fb: note: pointer points here
09 00 00 80 09 00 41 80 0b 00 00 02 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
^
SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior ChakraCore/lib/Runtime/Language/DynamicProfileInfo.cpp:1288:17 in
ChakraCore/lib/Runtime/Language/DynamicProfileInfo.cpp:1290:17: runtime error: member access within misaligned address 0x7ffff1f891fb for type 'Js::FldInfo', which requires 2 byte alignment
0x7ffff1f891fb: note: pointer points here
09 00 00 80 09 00 41 80 0b 00 00 02 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
^
SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior ChakraCore/lib/Runtime/Language/DynamicProfileInfo.cpp:1290:17 in
ChakraCore/lib/Runtime/Language/DynamicProfileInfo.cpp:1265:48: runtime error: member access within misaligned address 0x7ffff1f891f3 for type 'Js::FldInfo', which requires 2 byte alignment
0x7ffff1f891f3: note: pointer points here
09 00 00 80 09 00 00 80 09 00 00 80 09 00 41 7f 0b 00 00 02 00 00 00 00 00 00 00 00 00 00 00 00
^
SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior ChakraCore/lib/Runtime/Language/DynamicProfileInfo.cpp:1265:48 in
ChakraCore/lib/Runtime/Language/DynamicProfileInfo.cpp:1265:81: runtime error: member call on misaligned address 0x7ffff1f891f3 for type 'ValueType', which requires 2 byte alignment
0x7ffff1f891f3: note: pointer points here
09 00 00 80 09 00 00 80 09 00 00 80 09 00 41 7f 0b 00 00 02 00 00 00 00 00 00 00 00 00 00 00 00
^
SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior ChakraCore/lib/Runtime/Language/DynamicProfileInfo.cpp:1265:81 in
ChakraCore/lib/Runtime/Language/ValueType.cpp:1044:22: runtime error: member call on misaligned address 0x7ffff1f891f3 for type 'const ValueType *', which requires 2 byte alignment
0x7ffff1f891f3: note: pointer points here
09 00 00 80 09 00 00 80 09 00 00 80 09 00 41 7f 0b 00 00 02 00 00 00 00 00 00 00 00 00 00 00 00
^
SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior ChakraCore/lib/Runtime/Language/ValueType.cpp:1044:22 in
ChakraCore/lib/Runtime/Language/ValueType.cpp:1046:22: runtime error: load of misaligned address 0x7ffff1f891f3 for type 'const typename WriteBarrierFieldTypeTraits<Bits>::Type' (aka 'const ValueType::Bits'), which requires 2 byte alignment
0x7ffff1f891f3: note: pointer points here
09 00 00 80 09 00 00 80 09 00 00 80 09 00 41 7f 0b 00 00 02 00 00 00 00 00 00 00 00 00 00 00 00
^
SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior ChakraCore/lib/Runtime/Language/ValueType.cpp:1046:22 in
ChakraCore/lib/Runtime/Language/ValueType.cpp:1049:18: runtime error: load of misaligned address 0x7ffff1f891f3 for type 'const typename WriteBarrierFieldTypeTraits<Bits>::Type' (aka 'const ValueType::Bits'), which requires 2 byte alignment
0x7ffff1f891f3: note: pointer points here
09 00 00 80 09 00 00 80 09 00 00 80 09 00 41 7f 0b 00 00 02 00 00 00 00 00 00 00 00 00 00 00 00
^
SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior ChakraCore/lib/Runtime/Language/ValueType.cpp:1049:18 in
ChakraCore/lib/Runtime/Language/ValueType.cpp:118:17: runtime error: member call on misaligned address 0x7ffff1f891f3 for type 'const ValueType *', which requires 2 byte alignment
0x7ffff1f891f3: note: pointer points here
09 00 00 80 09 00 00 80 09 00 00 80 09 00 41 7f 0b 00 00 02 00 00 00 00 00 00 00 00 00 00 00 00
^
SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior ChakraCore/lib/Runtime/Language/ValueType.cpp:118:17 in
ChakraCore/lib/Runtime/Language/ValueType.cpp:123:17: runtime error: member call on misaligned address 0x7ffff1f891f3 for type 'const ValueType *', which requires 2 byte alignment
0x7ffff1f891f3: note: pointer points here
09 00 00 80 09 00 00 80 09 00 00 80 09 00 41 7f 0b 00 00 02 00 00 00 00 00 00 00 00 00 00 00 00
^
SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior ChakraCore/lib/Runtime/Language/ValueType.cpp:123:17 in
ChakraCore/lib/Runtime/Language/ValueType.cpp:126:15: runtime error: load of misaligned address 0x7ffff1f891f3 for type 'const typename WriteBarrierFieldTypeTraits<Bits>::Type' (aka 'const ValueType::Bits'), which requires 2 byte alignment
0x7ffff1f891f3: note: pointer points here
09 00 00 80 09 00 00 80 09 00 00 80 09 00 41 7f 0b 00 00 02 00 00 00 00 00 00 00 00 00 00 00 00
^
SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior ChakraCore/lib/Runtime/Language/ValueType.cpp:126:15 in
ChakraCore/lib/Runtime/Language/ValueType.cpp:535:17: runtime error: member call on misaligned address 0x7ffff1f891f3 for type 'const ValueType *', which requires 2 byte alignment
0x7ffff1f891f3: note: pointer points here
09 00 00 80 09 00 00 80 09 00 00 80 09 00 41 7f 0b 00 00 02 00 00 00 00 00 00 00 00 00 00 00 00
^
SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior ChakraCore/lib/Runtime/Language/ValueType.cpp:535:17 in
ChakraCore/lib/Runtime/Language/ValueType.cpp:190:17: runtime error: member call on misaligned address 0x7ffff1f891f3 for type 'const ValueType *', which requires 2 byte alignment
0x7ffff1f891f3: note: pointer points here
09 00 00 80 09 00 00 80 09 00 00 80 09 00 41 7f 0b 00 00 02 00 00 00 00 00 00 00 00 00 00 00 00
^
SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior ChakraCore/lib/Runtime/Language/ValueType.cpp:190:17 in
ChakraCore/lib/Runtime/Language/DynamicProfileInfo.cpp:1265:13: runtime error: member access within misaligned address 0x7ffff1f891f3 for type 'Js::FldInfo', which requires 2 byte alignment
0x7ffff1f891f3: note: pointer points here
09 00 00 80 09 00 00 80 09 00 00 80 09 00 41 7f 0b 00 00 02 00 00 00 00 00 00 00 00 00 00 00 00
^
SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior ChakraCore/lib/Runtime/Language/DynamicProfileInfo.cpp:1265:13 in
ChakraCore/lib/Runtime/Language/ValueType.cpp:196:17: runtime error: member call on misaligned address 0x7ffff1f891f7 for type 'const ValueType *', which requires 2 byte alignment
0x7ffff1f891f7: note: pointer points here
19 01 41 7f 09 00 00 80 09 00 41 7f 0b 00 00 02 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
^
SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior ChakraCore/lib/Runtime/Language/ValueType.cpp:196:17 in
ChakraCore/lib/Runtime/Language/ValueType.cpp:181:17: runtime error: member call on misaligned address 0x7ffff1f891f7 for type 'const ValueType *', which requires 2 byte alignment
0x7ffff1f891f7: note: pointer points here
19 01 41 7f 09 00 00 80 09 00 41 7f 0b 00 00 02 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
^
SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior ChakraCore/lib/Runtime/Language/ValueType.cpp:181:17 in
ChakraCore/lib/Runtime/Language/ValueType.cpp:129:17: runtime error: member call on misaligned address 0x7ffff1f891f7 for type 'const ValueType *', which requires 2 byte alignment
0x7ffff1f891f7: note: pointer points here
19 01 41 7f 09 00 00 80 09 00 41 7f 0b 00 00 02 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
^
SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior ChakraCore/lib/Runtime/Language/ValueType.cpp:129:17 in
ChakraCore/lib/Runtime/Language/ValueType.cpp:132:13: runtime error: load of misaligned address 0x7ffff1f891f7 for type 'const typename WriteBarrierFieldTypeTraits<Bits>::Type' (aka 'const ValueType::Bits'), which requires 2 byte alignment
0x7ffff1f891f7: note: pointer points here
19 01 41 7f 09 00 00 80 09 00 41 7f 0b 00 00 02 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
^
SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior ChakraCore/lib/Runtime/Language/ValueType.cpp:132:13 in
ChakraCore/lib/Runtime/./Library/JavascriptNumber.h:69:48: runtime error: nan is outside the range of representable values of type 'int'
SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior ChakraCore/lib/Runtime/./Library/JavascriptNumber.h:69:48 in
ChakraCore/lib/Runtime/Library/JavascriptNumber.cpp:122:46: runtime error: nan is outside the range of representable values of type 'unsigned int'
SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior ChakraCore/lib/Runtime/Library/JavascriptNumber.cpp:122:46 in
ChakraCore/lib/Runtime/ByteCode/ByteCodeSerializer.cpp:2779:18: runtime error: load of misaligned address 0x55556835eda9 for type 'int', which requires 4 byte alignment
0x55556835eda9: note: pointer points here
4b 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 40 00 fe 12 03 00 fe b1 8b fe b1 8b
^
SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior ChakraCore/lib/Runtime/ByteCode/ByteCodeSerializer.cpp:2779:18 in
ChakraCore/lib/Runtime/ByteCode/ByteCodeSerializer.cpp:332:9: runtime error: store to misaligned address 0x7ffff1fa9752 for type 'int', which requires 4 byte alignment
0x7ffff1fa9752: note: pointer points here
01 00 02 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 01 00
^
SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior ChakraCore/lib/Runtime/ByteCode/ByteCodeSerializer.cpp:332:9 in
ChakraCore/lib/Runtime/ByteCode/ByteCodeSerializer.cpp:4621:86: runtime error: load of misaligned address 0x555568360a52 for type 'int', which requires 4 byte alignment
0x555568360a52: note: pointer points here
00 00 00 00 91 01 00 00 90 01 00 00 8e 01 00 00 8f 01 00 00 30 00 00 00 03 04 00 00 00 00 00 00
^
SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior ChakraCore/lib/Runtime/ByteCode/ByteCodeSerializer.cpp:4621:86 in
ChakraCore/lib/Runtime/ByteCode/ByteCodeReader.cpp:159:24: runtime error: load of misaligned address 0x555568360445 for type 'uint16' (aka 'unsigned short'), which requires 2 byte alignment
0x555568360445: note: pointer points here
22 21 08 01 51 01 21 61 22 1a 09 76 22 21 0a 01 51 01 21 61 22 1a 0b 76 22 21 0c 01 51 01 21 61
^
SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior ChakraCore/lib/Runtime/ByteCode/ByteCodeReader.cpp:159:24 in
ChakraCore/lib/Runtime/Library/JavascriptNumber.cpp:102:33: runtime error: 9.0072e+15 is outside the range of representable values of type 'int'
SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior ChakraCore/lib/Runtime/Library/JavascriptNumber.cpp:102:33 in
ChakraCore/lib/Runtime/ByteCode/ByteCodeSerializer.cpp:2843:18: runtime error: load of misaligned address 0x555568361f3a for type 'double', which requires 8 byte alignment
0x555568361f3a: note: pointer points here
01 01 00 04 ff ff ff ff ff ff 3f 43 05 fe 3c 03 01 01 fe 90 01 4f 0c 4f 0d 4f 0e 4f 0f 4f 10 47
^
SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior ChakraCore/lib/Runtime/ByteCode/ByteCodeSerializer.cpp:2843:18 in
ChakraCore/lib/Runtime/./Library/JavascriptNumber.h:69:48: runtime error: nan is outside the range of representable values of type 'int'
SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior ChakraCore/lib/Runtime/./Library/JavascriptNumber.h:69:48 in
ChakraCore/lib/Runtime/Language/ValueType.cpp:746:23: runtime error: member call on misaligned address 0x7ffff1f891f3 for type 'const ValueType *', which requires 2 byte alignment
0x7ffff1f891f3: note: pointer points here
09 00 00 80 19 01 41 7f 09 01 41 7f 09 00 41 7e 7b 04 00 02 00 00 00 00 00 00 00 00 00 00 00 00
^
SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior ChakraCore/lib/Runtime/Language/ValueType.cpp:746:23 in
ChakraCore/lib/Runtime/Language/ValueType.cpp:749:12: runtime error: member access within misaligned address 0x7ffff1f891f3 for type 'const ValueType::(anonymous struct at ChakraCore/lib/Runtime/./Language/ValueType.h:79:9)', which requires 2 byte alignment
0x7ffff1f891f3: note: pointer points here
09 00 00 80 19 01 41 7f 09 01 41 7f 09 00 41 7e 7b 04 00 02 00 00 00 00 00 00 00 00 00 00 00 00
^
SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior ChakraCore/lib/Runtime/Language/ValueType.cpp:749:12
```
|
Ubsan errors
|
https://api.github.com/repos/chakra-core/ChakraCore/issues/6250/comments
| 1 |
2019-08-16T17:46:59Z
|
2019-12-02T03:26:52Z
|
https://github.com/chakra-core/ChakraCore/issues/6250
| 481,716,084 | 6,250 |
[
"chakra-core",
"ChakraCore"
] |
Following code can trigger memory leak bug.
```
typeof new Promise(Intl.DateTimeFormat,null);
typeof new Promise(Intl.DateTimeFormat,null);
typeof new Promise(Intl.DateTimeFormat,null);
typeof new Promise(Intl.DateTimeFormat,null);
typeof new Promise(Intl.DateTimeFormat,null);
typeof new Promise(Intl.DateTimeFormat,null);
typeof new Promise(Intl.DateTimeFormat,null);
typeof new Promise(Intl.DateTimeFormat,null);
typeof Intl.DateTimeFormat();
```
ASAN report:
```
=================================================================
==41022==ERROR: LeakSanitizer: detected memory leaks
Direct leak of 32 byte(s) in 4 object(s) allocated from:
#0 0x55bf22ed9b30 in malloc (ChakraCore/out/Test/ch+0x47ab30)
#1 0x55bf231a2788 in char* Memory::HeapAllocator::AllocT<false>(unsigned long) ChakraCore/lib/Common/Memory/HeapAllocator.cpp:86:30
#2 0x55bf244b119c in Memory::HeapAllocator::Alloc(unsigned long) ChakraCore/lib/Common/Memory/HeapAllocator.h:153:16
#3 0x55bf244b119c in Memory::HeapAllocator::AllocZero(unsigned long) ChakraCore/lib/Common/Memory/HeapAllocator.h:171
#4 0x55bf244b119c in void* operator new<Memory::HeapAllocator>(unsigned long, Memory::HeapAllocator*, char* (Memory::HeapAllocator::*)(unsigned long)) ChakraCore/lib/Common/DataStructures/../Memory/Allocator.h:486
#5 0x55bf244b119c in NativeCodeGenerator::CodeGen(Memory::PageAllocatorBase<Memory::VirtualAllocWrapper, Memory::SegmentBase<Memory::VirtualAllocWrapper>, Memory::PageSegmentBase<Memory::VirtualAllocWrapper> >*, CodeGenWorkItem*, bool) ChakraCore/lib/Backend/NativeCodeGenerator.cpp:1137
#6 0x55bf244b3d4d in NativeCodeGenerator::Process(JsUtil::Job*, JsUtil::ParallelThreadData*) ChakraCore/lib/Backend/NativeCodeGenerator.cpp:1867:30
#7 0x55bf244ef74b in JsUtil::BackgroundJobProcessor::Process(JsUtil::Job*, JsUtil::ParallelThreadData*) ChakraCore/lib/Common/Common/Jobs.cpp:1037:36
#8 0x55bf244efb50 in JsUtil::BackgroundJobProcessor::Run(JsUtil::ParallelThreadData*) ChakraCore/lib/Common/Common/Jobs.cpp:1135:44
#9 0x55bf244eb761 in JsUtil::BackgroundJobProcessor::StaticThreadProc(void*) ChakraCore/lib/Common/Common/Jobs.cpp:1319:20
#10 0x55bf22ffcae8 in CorUnix::CPalThread::ThreadEntry(void*) ChakraCore/pal/src/thread/pal_thread.cpp:1605:16
#11 0x55bf22ee775e in __asan::AsanThread::ThreadStart(unsigned long, __sanitizer::atomic_uintptr_t*) (ChakraCore/out/Test/ch+0x48875e)
SUMMARY: AddressSanitizer: 32 byte(s) leaked in 4 allocation(s).
```
OS: Ubuntu 18.04.1 LTS
Arch: x86_64
Options: --static --test-build --sanitize=address
|
memory leak from ChakraCore/lib/Common/Memory/HeapAllocator.cpp
|
https://api.github.com/repos/chakra-core/ChakraCore/issues/6249/comments
| 0 |
2019-08-16T11:34:05Z
|
2019-08-16T11:34:05Z
|
https://github.com/chakra-core/ChakraCore/issues/6249
| 481,568,907 | 6,249 |
[
"chakra-core",
"ChakraCore"
] |
Following code can trigger this issue.
("Illegal instruction " at ChakraCore/lib/Common/CommonPal.h:160)
```
let v2 = "Nm" && [ ];
let v0 = v3 == false;
delete v3.replace;
this.v3(true);
function v3(...v1) {
for (v0 = v2.slice([ 10061.13653 ], [ ]); v1[3] += [ "vR", v1 ]; v3[0] >>>= [ null ]) {
}
v2.search = v3 && [ ];
this.v3([ v3, 10846.32615 ], v2.constructor);
for (v3 = v0.replace() ? v1(v0.prototype, [ "jaQH", v0 ]) : false; v3 != ")b4="; [ ] !== v3) {
}
}
v0.test();
v2[true] = new Date(v1.constructor);
```
And when ch is built with `--static --sanitize=address,undefined` option it triggers undefined behaviours.
OS: Ubuntu 18.04.1 LTS
Arch: x86_64
|
"Illegal instruction " at ChakraCore/lib/Common/CommonPal.h:160
|
https://api.github.com/repos/chakra-core/ChakraCore/issues/6248/comments
| 0 |
2019-08-15T18:54:09Z
|
2019-08-16T09:25:09Z
|
https://github.com/chakra-core/ChakraCore/issues/6248
| 481,287,921 | 6,248 |
[
"chakra-core",
"ChakraCore"
] |
the following js can trigger a null pointer in Parser::BindPidRefsInScope
````
(function a() {
a = function a(a=function(a){}){}
function a(){
var a = "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa";
}
});
````
|
null pointer in Parser::BindPidRefsInScope
|
https://api.github.com/repos/chakra-core/ChakraCore/issues/6239/comments
| 0 |
2019-08-08T08:38:54Z
|
2019-08-13T20:55:35Z
|
https://github.com/chakra-core/ChakraCore/issues/6239
| 478,328,793 | 6,239 |
[
"chakra-core",
"ChakraCore"
] |
the following code can trigger an assertion failure in Js::IntlEngineInterfaceExtensionObject::EntryIntl_LocaleCompare
````
function opt(arr, s) {
arr[0] = 1.1;
if (s !== null) {
let tmp = 'a'.localeCompare(s);
}
arr[0] = 2.3023e-320;
}
function main() {
let arr = [1.1];
for (let i = 0; i < 100; i++) {
'a'.localeCompare('x', []);
opt(arr, null);
try {
{
main(main, {toString: () => {
throw 1;
}});
}
} catch (e) {
}
}
opt(arr, {toString: () => {
arr[0] = {};
}});
print(arr);
}
main();
````
|
assertion failure in Js::IntlEngineInterfaceExtensionObject::EntryIntl_LocaleCompare
|
https://api.github.com/repos/chakra-core/ChakraCore/issues/6238/comments
| 0 |
2019-08-08T02:29:10Z
|
2019-08-08T02:29:10Z
|
https://github.com/chakra-core/ChakraCore/issues/6238
| 478,219,465 | 6,238 |
[
"chakra-core",
"ChakraCore"
] |
````
function foo() {
function boo() {
print(typeof a);
}
eval("function a(){} boo(a);");
}
for (let i=0; i<1000;i++){
print(i);
foo();
}
````
|
assertion failure in Js::VarTo<Js::UnscopablesWrapperObject>
|
https://api.github.com/repos/chakra-core/ChakraCore/issues/6237/comments
| 0 |
2019-08-08T02:18:16Z
|
2019-08-09T18:41:33Z
|
https://github.com/chakra-core/ChakraCore/issues/6237
| 478,217,020 | 6,237 |
[
"chakra-core",
"ChakraCore"
] |
````
function Module() {
'use asm';
function f() {
}
return f;
}
function recur() {
try {
recur();
} catch (e) {
Module(123456);
}
}
recur();
````
|
assertion failure in Js::JavascriptFunction::ReparseAsmJsModule
|
https://api.github.com/repos/chakra-core/ChakraCore/issues/6236/comments
| 1 |
2019-08-08T02:14:54Z
|
2019-10-17T21:06:10Z
|
https://github.com/chakra-core/ChakraCore/issues/6236
| 478,216,279 | 6,236 |
[
"chakra-core",
"ChakraCore"
] |
the following poc can trigger an accertion failure in IRBuilder::DoClosureRegCheck
````
(function f() {
let a,b,c,d,e,g,h;
with (function (){ f=0x123456; }) f();
}())
````
|
assertion failure in IRBuilder::DoClosureRegCheck
|
https://api.github.com/repos/chakra-core/ChakraCore/issues/6235/comments
| 0 |
2019-08-08T02:11:34Z
|
2019-08-08T02:11:49Z
|
https://github.com/chakra-core/ChakraCore/issues/6235
| 478,215,579 | 6,235 |
[
"chakra-core",
"ChakraCore"
] |
Dynamic import has now reached Stage 4:
https://github.com/tc39/ecma262/pull/1482
It should thus be enabled by default (sans experimental flags).
|
Enable dynamic import without experimental flag
|
https://api.github.com/repos/chakra-core/ChakraCore/issues/6231/comments
| 0 |
2019-08-03T00:29:55Z
|
2019-08-05T22:15:31Z
|
https://github.com/chakra-core/ChakraCore/issues/6231
| 476,396,999 | 6,231 |
[
"chakra-core",
"ChakraCore"
] |
The following poc can trigger a null pointer dereference:
```js
var v1 = (class extends (function() {arguments.callee;}){});
var v2 = RegExp.prototype.constructor;
Reflect.construct(v1, [], v2);
```
|
Null pointer dereference in Js::InterpreterStackFrame::OP_ProfileCallCommon
|
https://api.github.com/repos/chakra-core/ChakraCore/issues/6228/comments
| 0 |
2019-08-01T07:34:47Z
|
2019-08-05T17:26:38Z
|
https://github.com/chakra-core/ChakraCore/issues/6228
| 475,522,225 | 6,228 |
[
"chakra-core",
"ChakraCore"
] |
Build Option: --debug
Chakra: 1.12.0.0-beta
OS: Ubuntu 18.04.1 LTS
Arch: x86_64
**#./ch poc.js**
**ERROR INFO:**
ASSERTION 3538: (ChakraCore/lib/Common/DataStructures/BaseDictionary.h, line 946) op != Insert_Add
Failure: (op != Insert_Add)
Illegal instruction (core dumped)
**POC:**
if((typeof "Hello, World!") === ("object")){
WScript.Echo(true);
}else {
WScript.Echo(false);
}
WScript.Echo((typeof Math.PI) === ("string"));
function v0(v1, v2, v3){
if((v1) !== (v2)){
if((typeof WScript) !== ("undefined")){
WScript.Echo(((((v3) + (": ")) + (v1)) + (" = ")) + (v2));
}else {
print(((((v3) + (": ")) + (v1)) + (" = ")) + (v2));
}
}
}
try{
v0(({}));
}catch(v1){
}
async function v1(){
return await v0(10);
}
WScript.Attach((function (){
v0();
v1();
}));
let v2 = (function (v1, v2){
'use asm';
function v3(){
+ 4294967295;
return + + (- 1) | (0);
}
return v3;
})(({}), ({}));
if(! v1(- 1, v0)){
v2();
}
|
"Illegal instruction" at ChakraCore/lib/Common/DataStructures/BaseDictionary.h
|
https://api.github.com/repos/chakra-core/ChakraCore/issues/6222/comments
| 0 |
2019-07-30T08:57:58Z
|
2019-08-05T07:33:33Z
|
https://github.com/chakra-core/ChakraCore/issues/6222
| 474,459,872 | 6,222 |
[
"chakra-core",
"ChakraCore"
] |
Build Option: --debug
Chakra: 1.12.0.0-beta
OS: Ubuntu 18.04.1 LTS
Arch: x86_64
**#./ch poc.js**
**ERROR INFO:**
ASSERTION 3196: (ChakraCore/lib/Runtime/Language/JavascriptOperators.cpp, line 11165) !VarIs<RecyclableObject>(instance) ? TRUE : ((RecyclableObject*)instance)->GetScriptContext()->GetLibrary() == library
Failure: (!VarIs<RecyclableObject>(instance) ? 1 : ((RecyclableObject*)instance)->GetScriptContext()->GetLibrary() == library)
Illegal instruction (core dumped)
**POC:**
var v0 = WScript.LoadScript('function test(x) { return Object.preventExtensions(x) }', 'samethread');
function v1(v1, v2, v3){
var v4 = v1.substring(v2, v3);
WScript.Echo((('"') + (v4)) + ('", length:'), v4.length);
}
(v0.a) = 59929;
v1("replace", v0, 3);
var v2 = ('!') + ('E5j)');
v1(/\u0170/iu, 0x0171, '\u0171');
for((v3) = 0;(v3) < (7);v3++){
{
v3--;
}
}
(function (){
v2;
v1;
}).apply(({}));
|
"Illegal instruction" at ChakraCore/lib/Runtime/Language/JavascriptOperators.cpp
|
https://api.github.com/repos/chakra-core/ChakraCore/issues/6221/comments
| 0 |
2019-07-30T08:41:40Z
|
2019-08-01T15:56:32Z
|
https://github.com/chakra-core/ChakraCore/issues/6221
| 474,452,070 | 6,221 |
[
"chakra-core",
"ChakraCore"
] |
Build Option: --debug
Chakra: 1.12.0.0-beta
OS: Ubuntu 18.04.1 LTS
Arch: x86_64
**#./ch poc.js**
**ERROR INFO:**
ASSERTION 2340: (ChakraCore/lib/Runtime/Library/ArrayBuffer.cpp, line 563) newLen < MaxArrayBufferLength
Failure: (newLen < MaxArrayBufferLength)
Illegal instruction (core dumped)
**POC:**
function v0(v1){
var v2 = new Int32Array([]);
return new Float64Array(v2.buffer)[0];
}
function v1(){
let v1 = [];
for(let v2 = 0;(v2) < (10000);v2++){
v0.call(({}), v1);
}
v0.call(v1, v1);
print(v1);
}
(v1.prototype.toRadix) = v0;
function v2(v1, v2, v3){
return v1.slice(v2, v3);
}
var v3 = new ArrayBuffer(0x7fffffff);
for(v4 in v1){
if(('caller') > (! 65537)){
break ;
}
if(('caller') > (! 65537)){
break ;
}
}
v0((function (){
(v4[6]) = "6";
v1(" ", 6, v4[6]);
}));
var v5 = new v2(v3);
|
"Illegal instruction" at ChakraCore/lib/Runtime/Library/ArrayBuffer.cpp
|
https://api.github.com/repos/chakra-core/ChakraCore/issues/6220/comments
| 0 |
2019-07-30T08:17:52Z
|
2019-08-05T07:34:07Z
|
https://github.com/chakra-core/ChakraCore/issues/6220
| 474,441,044 | 6,220 |
[
"chakra-core",
"ChakraCore"
] |
Build Option: --debug
Chakra: 1.12.0.0-beta
OS: Ubuntu 18.04.1 LTS
Arch: x86_64
#./ch poc.js
**ERROR INFO:**
ASSERTION 17128: (ChakraCore/lib/Runtime/Language/JavascriptOperators.cpp, line 9086) VarIs<TypedArrayBase>(obj)
Failure: (VarIs<TypedArrayBase>(obj))
Illegal instruction (core dumped)
**POC:**
var v0 = new Array(- 2664941844011450000, 7899446760907481000);
(v0["4294967296"]) = 102;
(v0) = new Proxy(v0, ({}));
Object.defineProperty(v0, "length", ({value : 2, writable : false}));
WScript.Echo("119");
let v1 = 0xab;
var v2 = new Uint8Array([]);
(v0[(v1) - (1)]) = "last";
|
"Illegal instruction" at ChakraCore/lib/Runtime/Language/JavascriptOperators.cpp
|
https://api.github.com/repos/chakra-core/ChakraCore/issues/6219/comments
| 0 |
2019-07-30T06:15:16Z
|
2019-08-01T15:54:36Z
|
https://github.com/chakra-core/ChakraCore/issues/6219
| 474,393,338 | 6,219 |
[
"chakra-core",
"ChakraCore"
] |
Hello,
I'm not sure if this is the correct place to raise the issue, if not could you guide me to the correct place?
I'm trying host Chakra and JScript9 JavaScript from VBA, however I'm currently having some problems with JsCreateContext() function:
```
Private Declare PtrSafe Function IECreateRuntime Lib "jscript9.dll" Alias "JsCreateRuntime" (ByVal jsRuntimeAttributes As Integer, ByVal jsRuntimeVersion As Long, ByVal JsThreadServiceCallback As LongPtr, ByVal jsRuntimeHandle As LongPtr) As Long
Private Declare PtrSafe Function IECreateContext Lib "jscript9.dll" Alias "JsCreateContext" (ByVal jsRuntimeHandle As LongPtr, ByVal IDebugApplication As LongPtr, ByVal jsContextRef As LongPtr) As Long
Private Declare PtrSafe Function IESetCurrentContext Lib "jscript9.dll" Alias "JsSetCurrentContext" (ByVal jsContextRef As LongPtr) As Long
Private Declare PtrSafe Function IEGetGlobalObject Lib "jscript9.dll" Alias "JsGetGlobalObject" (ByVal jsGlobalValueRef As LongPtr) As Long
'...
Private Function initVersion(version As String) As String
'Versions = ["IE","Edge"]
Dim hGlobal As LongPtr, sError As String, retl As Long
Select Case pVersion
Case "IE"
pHModule = LoadLibrary(DLL_JScript)
If pHModule <> 0 Then
'Create the javascript runtime... pRuntime is a global VARIANT variable at the moment
retl = IECreateRuntime(0, -1, 0, VarPtr(pRuntime))
If retl = S_OK Then
'Create an execution context
Dim ctxt As LongPtr
retl = IECreateContext(VarPtr(pRuntime), 0, VarPtr(ctxt))
'...
```
> Note: I am getting the same errors with Chakra that I'm getting with JScript9
[The full source can be found here](https://github.com/sancarn/VBA-STD-Library/blob/master/src/WIP/stdRuntimeJS.cls#L217)
The current issue is that IECreateRuntime (or internally JsCreateRuntime) is returning `65547` which I think is `JsErrorHeapEnumInProgress` (correct me if I am wrong), but I'm certainly not doing an enumeration of the heap... So is VBA internally doing heap enumerations? In which case is there a way around this? I've wondered whether I could get around this using [`HeapCreate()`](https://docs.microsoft.com/en-us/windows/win32/api/heapapi/nf-heapapi-heapcreate) and trying to create the runtime within that?
I have another theory that it may be because VBA (or EB) itself is the scripting language used in it's host, so it may be that the 2 runtimes are interfering with one another somehow?
Any ideas would be much appreciated!
|
Having trouble hosting from VBA
|
https://api.github.com/repos/chakra-core/ChakraCore/issues/6218/comments
| 1 |
2019-07-27T12:18:24Z
|
2023-10-12T10:09:49Z
|
https://github.com/chakra-core/ChakraCore/issues/6218
| 473,632,803 | 6,218 |
[
"chakra-core",
"ChakraCore"
] |
OS: Ubuntu 16.04
arch:x86-64
build:debug
poc:
var v1 = "2017-11-10T14:09:00.000Z";
for((v3) = 0;(v3) < (25);++v3){
(v1) += v1;
}
print(((v3) + (": ")) + (v1));
ASSERTION 128720: (~/ChakraCore/lib/Jsrt/JsrtInternal.h, line 226) Unexpected non-engine exception.
Failure: (false)
Illegal instruction (core dumped)
|
ASSERTION Failure at ChakraCore/lib/Jsrt/JsrtInternal.h, line 226
|
https://api.github.com/repos/chakra-core/ChakraCore/issues/6212/comments
| 0 |
2019-07-25T07:36:25Z
|
2019-07-25T07:36:25Z
|
https://github.com/chakra-core/ChakraCore/issues/6212
| 472,711,483 | 6,212 |
[
"chakra-core",
"ChakraCore"
] |
Hello friends! I want to embed ChakraCore into my project.
But it's undesirable to use chakra's dll. Can I build chakra as static library(or libraries) without dll?
P.S. Chakra is better than v8, thank you Microsoft!
|
ChakraCore static library
|
https://api.github.com/repos/chakra-core/ChakraCore/issues/6209/comments
| 2 |
2019-07-22T19:35:02Z
|
2019-08-04T04:51:14Z
|
https://github.com/chakra-core/ChakraCore/issues/6209
| 471,276,236 | 6,209 |
[
"chakra-core",
"ChakraCore"
] |
the following poc can trigger a null pointer dereference.
````
function f() {
try {
throw 1;
} catch ({a = f.__proto__.__proto__=a}) {
}
}
f();
````
|
null pointer dereference in Js::RecyclableObject::GetType
|
https://api.github.com/repos/chakra-core/ChakraCore/issues/6204/comments
| 0 |
2019-07-17T05:37:18Z
|
2019-07-17T05:37:18Z
|
https://github.com/chakra-core/ChakraCore/issues/6204
| 468,995,373 | 6,204 |
[
"chakra-core",
"ChakraCore"
] |
the following poc can trigger a bull pointer dereference.
````
async function trigger(a=class b{
[a = class b{
[await 0](){}
}](){}
}) {
}
trigger();
````
|
null pointer dereference in Js::RecyclableObject::GetType
|
https://api.github.com/repos/chakra-core/ChakraCore/issues/6203/comments
| 0 |
2019-07-17T05:35:15Z
|
2019-08-01T19:53:34Z
|
https://github.com/chakra-core/ChakraCore/issues/6203
| 468,994,822 | 6,203 |
[
"chakra-core",
"ChakraCore"
] |
the callApplyId of function foo didn't get profiled.
````
function f(){}
function foo(){
f.call();
foo.call(0x1)++;
}
foo();
````
|
callApplyId didn't get profiled
|
https://api.github.com/repos/chakra-core/ChakraCore/issues/6202/comments
| 0 |
2019-07-17T05:28:08Z
|
2019-08-05T17:26:35Z
|
https://github.com/chakra-core/ChakraCore/issues/6202
| 468,992,972 | 6,202 |
[
"chakra-core",
"ChakraCore"
] |
Build Option: --debug
Chakra: 1.12.0.0-beta
OS: Ubuntu 18.04.1 LTS
Arch: x86_64
#./ch poc.js
ERROR INFO:
ASSERTION 20581: (ChakraCore/lib/Runtime/Library/IntlEngineInterfaceExtensionObject.cpp, line 391) propertyValue && VarIs<T>(propertyValue)
Failure: (propertyValue && VarIs<T>(propertyValue))
Illegal instruction (core dumped)
PoC:
new Array(0x100).fill(1234.5678);
function v0(v1, v2){
(v1[0]) = 1.1;
if((v2) !== (null)){
let v3 = 'a'.localeCompare(v2);
}
(v1[0]) = 2.3023e-320;
}
function v1(){
try{
v1();
}catch(v1){
v0(1);
}
}
try{
v1();
}catch(v1){
v0(1);
}
|
"Illegal instruction" at ChakraCore/lib/Runtime/Library/IntlEngineInterfaceExtensionObject.cpp
|
https://api.github.com/repos/chakra-core/ChakraCore/issues/6200/comments
| 0 |
2019-07-11T02:22:58Z
|
2019-08-05T07:34:29Z
|
https://github.com/chakra-core/ChakraCore/issues/6200
| 466,622,733 | 6,200 |
[
"chakra-core",
"ChakraCore"
] |
OS: Ubuntu 16.04
arch:x86-64
build:debug
poc:
var v0 = 2000000000;
var v1 = "";
for(var v2 = 1;(v2) < (v0);v2++){
v1 += " ";
}
ASSERTION 107996: (~/ChakraCore/lib/Common/Memory/PageAllocator.cpp, line 491) vpresult != FALSE
Failure: (vpresult != 0)
Illegal instruction (core dumped)
|
ASSERTION failure at ChakraCore/lib/Common/Memory/PageAllocator.cpp, line 491
|
https://api.github.com/repos/chakra-core/ChakraCore/issues/6197/comments
| 0 |
2019-07-10T08:17:38Z
|
2019-07-19T01:01:29Z
|
https://github.com/chakra-core/ChakraCore/issues/6197
| 466,167,566 | 6,197 |
[
"chakra-core",
"ChakraCore"
] |
script source:
````
var class2type = {},
core_toString = class2type.toString,
objArr = "Boolean Number String Function Array Date RegExp Object Error".split(" ");
for(var i = 0; i < objArr.length ;i++){
class2type["[object " + objArr[i] + "]"] = objArr[i].toLowerCase();
}
var jQueryT = {
isFunction: function (obj) {
return jQueryT.type(obj) === "function";
},
isArray: Array.isArray || function (obj) {
return jQueryT.type(obj) === "array";
},
isWindow: function (obj) {
return obj != null && obj == obj.window;
},
type: function (obj) {
if (obj == null) {
return String(obj);
}
return typeof obj === "object" || typeof obj === "function" ?
class2type[core_toString.call(obj)] || "object" :
typeof obj;
},
isPlainObject: function (obj) {
var key;
if (!obj || jQueryT.type(obj) !== "object" || obj.nodeType || jQueryT.isWindow(obj)) {
return false;
}
try {
if (obj.constructor &&
!core_hasOwn.call(obj, "constructor") &&
!core_hasOwn.call(obj.constructor.prototype, "isPrototypeOf")) {
return false;
}
} catch (e) {
return false;
}
if (jQueryT.support.ownLast) {
for (key in obj) {
return core_hasOwn.call(obj, key);
}
}
for (key in obj) { }
return key === undefined || core_hasOwn.call(obj, key);
}
}
jQueryT.extend = function () {
var options, name, src, copy, copyIsArray, clone,
target = arguments[0] || {},
i = 1,
length = arguments.length,
deep = false;
if (typeof target === "boolean") {
deep = target;
target = arguments[1] || {};
i = 2;
}
if (typeof target !== "object" && !jQueryT.isFunction(target)) {
target = {};
}
if (length === i) {
target = this;
--i;
}
for (; i < length; i++) {
if ((options = arguments[i]) != null) {
for (name in options) {
src = target[name];
copy = options[name];
if (target === copy) {
continue;
}
if (deep && copy && (jQueryT.isPlainObject(copy) || (copyIsArray = jQueryT.isArray(copy)))) {
if (copyIsArray) {
copyIsArray = false;
clone = src && jQueryT.isArray(src) ? src : [];
} else {
clone = src && jQueryT.isPlainObject(src) ? src : {};
}
target[name] = jQueryT.extend(deep, clone, copy);
} else if (copy !== undefined) {
target[name] = copy;
}
}
}
}
return target;
};
jQueryT.bs = function (r) {
function t(r, t) {
var e = h.indexOf(r.charAt(t));
if (-1 === e) throw "Cannot decode encrypt";
return e
}
function e(r, t) {
var e = r.charCodeAt(t);
if (e > 255) throw "INVALID_CHARACTER_ERR: DOM Exception 5";
return e
}
var n = "=",
h = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
return {
decode: function (r) {
var e, h, a = 0,
c = r.length,
o = [];
if (r = String(r), 0 === c) return r;
if (c % 4 != 0) throw "Cannot decode base";
for (r.charAt(c - 1) === n && (a = 1, r.charAt(c - 2) === n && (a = 2), c -= 4), e = 0; e < c; e += 4) h = t(r, e) << 18 | t(r, e + 1) << 12 | t(r, e + 2) << 6 | t(r, e + 3), o.push(String.fromCharCode(h >> 16, h >> 8 & 255, 255 & h));
switch (a) {
case 1:
h = t(r, e) << 18 | t(r, e + 1) << 12 | t(r, e + 2) << 6, o.push(String.fromCharCode(h >> 16, h >> 8 & 255));
break;
case 2:
h = t(r, e) << 18 | t(r, e + 1) << 12, o.push(String.fromCharCode(h >> 16))
}
return o.join("")
},
encode: function (r) {
if (1 !== arguments.length) throw "SyntaxError: exactly one argument required";
var t, a, c = [],
o = (r = String(r)).length - r.length % 3;
if (0 === r.length) return r;
for (t = 0; t < o; t += 3) a = e(r, t) << 16 | e(r, t + 1) << 8 | e(r, t + 2), c.push(h.charAt(a >> 18)), c.push(h.charAt(a >> 12 & 63)), c.push(h.charAt(a >> 6 & 63)), c.push(h.charAt(63 & a));
switch (r.length - o) {
case 1:
a = e(r, t) << 16, c.push(h.charAt(a >> 18) + h.charAt(a >> 12 & 63) + n + n);
break;
case 2:
a = e(r, t) << 16 | e(r, t + 1) << 8, c.push(h.charAt(a >> 18) + h.charAt(a >> 12 & 63) + h.charAt(a >> 6 & 63) + n)
}
return c.join("")
},
VERSION: "1.0"
}
}(jQueryT);
````
use ChakraCore can find jQueryT.bs.encode ,but when call object function. Happen "ParseExceptionObject" .
|
chakraCore can not call script function
|
https://api.github.com/repos/chakra-core/ChakraCore/issues/6195/comments
| 6 |
2019-07-09T10:57:18Z
|
2020-03-25T08:57:52Z
|
https://github.com/chakra-core/ChakraCore/issues/6195
| 465,713,770 | 6,195 |
[
"chakra-core",
"ChakraCore"
] |
The following code will trigger an assertion failure:
```
function main() {
const v1 = [0x1337,0x1337,0x1337,0x1337,0x1337];
function v10(v11,v12,v13) {
return 1;
}
const v9 = [0x1330, 0x1330, 0x1330];
const v14 = {get:v10};
const v16 = new Proxy(v9,v14);
const v18 = [0x1338];
const v19 = v18.__proto__;
for (let v5 = 0; v5 < 2; v5++) {
const v6 = v1.fround;
v19.__proto__ = v16;
}
console.log(v19.__proto__);
}
main();
```
```
(/home/ChakraCore/lib/Runtime/./Language/InlineCache.h, line 471) *propertyValue == slowPathValue || (VarIs<RootObjectBase>(propertyObject) && *propertyValue == rootObjectValue) || (slowPathValue == requestContext->GetLibrary()->GetNull() && requestContext->GetThreadContext()->IsDisableImplicitCall() && propertyObject->GetType()->IsExternal())
Failure: (*propertyValue == slowPathValue || (VarIs<RootObjectBase>(propertyObject) && *propertyValue == rootObjectValue) || (slowPathValue == requestContext->GetLibrary()->GetNull() && requestContext->GetThreadContext()->IsDisableImplicitCall() && propertyObject->GetType()->IsExternal()))
```
It seems to fetch from the wrong cache.
|
Assertion failure at lib/Runtime/Language/InlineCache.h:471
|
https://api.github.com/repos/chakra-core/ChakraCore/issues/6191/comments
| 0 |
2019-07-01T21:46:49Z
|
2019-07-01T21:55:36Z
|
https://github.com/chakra-core/ChakraCore/issues/6191
| 462,925,803 | 6,191 |
[
"chakra-core",
"ChakraCore"
] |
There is inconsistency error between keymap and keyset
This is PoC.
```
var key1 = {};
var key2 = {};
var map = new WeakMap();
map.set(key1, 1);
map.delete(Object.assign(key2, key1));
```
OS: Ubuntu 18.04
Arch: x86_64
Chakracore: Latest, Debug build
|
Assertion Failure in lib/Runtime/Library/JavascriptWeakMap.cpp:330
|
https://api.github.com/repos/chakra-core/ChakraCore/issues/6186/comments
| 0 |
2019-06-27T19:42:18Z
|
2019-07-29T20:25:32Z
|
https://github.com/chakra-core/ChakraCore/issues/6186
| 461,714,413 | 6,186 |
[
"chakra-core",
"ChakraCore"
] |
Consider the following program:
```
(module
(func (export "run")
(param i32)
(unreachable)
(tee_local 0)
(drop)
)
)
```
which we can embed in a script as follows:
```js
var debug = debug || (arg => console.log('-->', arg));
let buffer = new Uint8Array([ 0,97,115,109,1,0,0,0,1,5,1,96,1,127,0,3,2,1,0,7,7,1,3,114,117,110,0,0,10,8,1,6,0,0,34,0,26,11 ]);
let m = new WebAssembly.Instance(new WebAssembly.Module(buffer));
debug(m.exports.run());
```
With `ch version 1.11.9.0` I get a compile-time error:
```
$ ch chissue.js
CompileError: function run[0] at offset 36/38 (0x24/0x26): Can't tee_local unreachable values
at Global code (.../chissue.js:6:1)
```
whereas `sm`,`v8`, or `jsc` all throw a run-time error:
```
$ sm chissue.js
chissue.js line 5 > WebAssembly.Module:33:1 RuntimeError: unreachable executed
Stack:
@chissue.js line 5 > WebAssembly.Module:wasm-function[0]:0x21
@chissue.js:6:17
$ v8 chissue.js
wasm-function[0]:1: RuntimeError: unreachable
RuntimeError: unreachable
at wasm-function[0]:0x21
at chissue.js:6:17
$ jsc chissue.js
Exception: Error: Unreachable code should not be executed (evaluating 'm.exports.run()')
<?>.wasm-function[0]@[wasm code]
wasm-stub@[wasm code]
run@[native code]
global [email protected]:6:20
```
The weird thing is that Chakra's compile-time check seems to be limited to `tee_local` 😮
If we do variations that, e.g.,
- uses `set_local` instead (chissue2) or
- combines `drop` and `i32const` (chissue3)
the programs pass compile-time validation and throws a run-time error like the other 3 engines.
Variation 1 (chissue2):
```
(module
(func (export "run")
(param i32)
(unreachable)
(set_local 0)
)
)
```
```js
var debug = debug || (arg => console.log('-->', arg));
let buffer = new Uint8Array([ 0,97,115,109,1,0,0,0,1,5,1,96,1,127,0,3,2,1,0,7,7,1,3,114,117,110,0,0,10,7,1,5,0,0,33,0,11 ]);
let m = new WebAssembly.Instance(new WebAssembly.Module(buffer));
debug(m.exports.run());
```
```
$ ch chissue2.js
RuntimeError: Unreachable Code
at Global code (.../chissue2.js:6:1)
```
Variation 2 (chissue3):
```
(module
(func (export "run")
(param i32)
(unreachable)
(drop)
(i32.const 0)
(set_local 0)
)
)
```
```js
var debug = debug || (arg => console.log('-->', arg));
let buffer = new Uint8Array([ 0,97,115,109,1,0,0,0,1,5,1,96,1,127,0,3,2,1,0,7,7,1,3,114,117,110,0,0,10,10,1,8,0,0,26,65,0,33,0,11 ]);
let m = new WebAssembly.Instance(new WebAssembly.Module(buffer));
debug(m.exports.run());
```
```
$ ch chissue3.js
RuntimeError: Unreachable Code
at Global code (.../chissue3.js:6:1)
```
|
[WebAssembly] Compile-time rejection of unreachable tee_local
|
https://api.github.com/repos/chakra-core/ChakraCore/issues/6185/comments
| 4 |
2019-06-27T09:06:05Z
|
2019-10-15T22:40:55Z
|
https://github.com/chakra-core/ChakraCore/issues/6185
| 461,408,818 | 6,185 |
[
"chakra-core",
"ChakraCore"
] |
From line 561.
Failure: (IsUninitialized() || IsLikelyInt() || isForLoopBackEdgeCompensation)
ChakraCore: Latest, Debug build
OS: Ubuntu 18.04
Arch: x86_64
This is PoC.
```
var HashMap = function () {
var DEFAULT_SIZE = 16;
function calculateCapacity(x) {
if (x >= 1 << 30) {
return 1 << 30;
}
if (DEFAULT_SIZE == 0) {
return 16;
}
x = x - 1;
DEFAULT_SIZE |= x >> 1;
x |= x >> 2;
x |= 2100000 * DEFAULT_SIZE / (x * DEFAULT_SIZE) >> 4;
x |= x >> 8;
x |= x >> 16;
return x + 1;
}
function computeHashCode(key) {
switch (typeof key) {
case "undefined":
return 0;
case "object":
if (!key) {
return 0;
}
case "function":
return key.hashCode();
case "boolean":
return key | 0;
case "number":
if ((key | 0) == Math.max("function".charCodeAt(key))) {
return key;
}
key = "" + key;
// Compute string hash of the double. It's the best we can do.
case "string":
var h = 0;
var len = key.length;
for (var index = 0; index < len; index++) {
h = (key * h | "b1".trimRight().indexOf("boolean".valueOf())) + key.charCodeAt(index) | 0;
}
return h;
default:
throw new Error("Internal error: Bad JavaScript value type");
}
}
function equals(a, b) {
if (typeof a != typeof b) {
return false;
}
switch (typeof a) {
case "object":
if (!a) {
return !b;
}
case String.prototype.charAt.call("object", a) + "=".substr(a):
switch (typeof b) {
case "object":
case "function":
return a.equals(b);
default:
return false;
}
default:
return a == b;
}
}
function Entry(key, hash, value) {
this._key = key;
equals(key, 0);
this._origKeyHash = hash;
this._next = null;
}
Entry.prototype = {
clone: function () {
var result = new Entry(this._key, this._hash, this._value);
if (this._next) {
result._next = this._next.clone();
}
return result;
},
toString: function () {
return this._key + "=" + this._value;
},
get key() {
return this._key;
},
get value() {
return this._value;
}
};
function AbstractMapIterator(map) {
this._associatedMap = map;
this._expectedModCount = map._modCount;
this._futureEntry = null;
this._currentEntry = null;
this._prevEntry = null;
this._position = 0;
}
AbstractMapIterator.prototype = {
hasNext: function () {
if (this._futureEntry) {
return true;
}
while (this._position < this._associatedMap._elementData.length) {
if (!this._associatedMap._elementData[this._position]) {
this._position++;
} else {
return true;
}
}
return false;
},
_checkConcurrentMod: function () {
if (this._expectedModCount != this._associatedMap._modCount) {
throw new Error("Concurrent HashMap modification detected");
}
},
_makeNext: function () {
this._checkConcurrentMod();
if (!this.hasNext()) {
throw new Error("No such element");
}
if (!this._futureEntry) {
this._currentEntry = this._associatedMap._elementData[this._position++];
this._futureEntry = this._currentEntry._next;
this._prevEntry = null;
return;
}
if (this._currentEntry) {
this._prevEntry = this._currentEntry;
}
this._currentEntry = this._futureEntry;
this._futureEntry = this._futureEntry._next;
},
remove: function () {
this._checkConcurrentMod();
if (!this._currentEntry) {
throw new Error("Illegal state");
}
if (!this._prevEntry) {
var index = this._currentEntry._origKeyHash & this._associatedMap._elementData.length - 1;
this._associatedMap._elementData[index] = this._associatedMap._elementData[index]._next;
} else {
this._prevEntry._next = this._currentEntry._next;
}
this._currentEntry = null;
this._expectedModCount++;
this._associatedMap._modCount++;
this._associatedMap._elementCount--;
}
};
function EntryIterator(map) {
AbstractMapIterator.call(this, map);
}
EntryIterator.prototype = {
next: function () {
this._makeNext();
return this._currentEntry;
}
};
EntryIterator.prototype.__proto__ = AbstractMapIterator.prototype;
function KeyIterator(map) {
AbstractMapIterator.call(this, map);
}
KeyIterator.prototype = {
next: function () {
this._makeNext();
return this._currentEntry._key;
}
};
KeyIterator.prototype.__proto__ = AbstractMapIterator.prototype;
function ValueIterator(map) {
AbstractMapIterator.call(this, map);
}
ValueIterator.prototype = {
next: function () {
this._makeNext();
return this._currentEntry._value;
}
};
ValueIterator.prototype.__proto__ = AbstractMapIterator.prototype;
function EntrySet(map) {
this._associatedMap = map;
}
EntrySet.prototype = {
size: function () {
return this._associatedMap._elementCount;
},
clear: function () {
this._associatedMap.clear();
},
remove: function (object) {
var entry = this._associatedMap._getEntry(object.key);
if (!entry) {
return false;
}
if (!equals(entry._value, object.value)) {
return false;
}
this._associatedMap._removeEntry(entry);
return true;
},
contains: function (object) {
var entry = this._associatedMap._getEntry(object.key);
if (!entry) {
return false;
}
return equals(entry._value, object.value);
},
iterator: function () {
return new EntryIterator(this._associatedMap);
}
};
function KeySet(map) {
this._associatedMap = map;
}
KeySet.prototype = {
contains: function (object) {
return this._associatedMap.contains(object);
},
size: function () {
return this._associatedMap._elementCount;
},
clear: function () {
this._associatedMap.clear();
},
remove: function (key) {
return !!this._associatedMap.remove(key);
},
iterator: function () {
return new KeyIterator(this._associatedMap);
}
};
function HashMap(capacity, loadFactor) {
if (capacity == null) {
capacity = DEFAULT_SIZE;
}
if (loadFactor == null) {
loadFactor = 0.75;
}
if (capacity < 0) {
throw new Error("Invalid argument to HashMap constructor: capacity is negative");
}
if (loadFactor <= 0) {
throw new Error("Invalid argument to HashMap constructor: loadFactor is not positive");
}
this._capacity = calculateCapacity(capacity);
this._elementCount = 0;
this._elementData = new Array(this.capacity);
this._loadFactor = loadFactor;
this._modCount = 0;
this._computeThreshold();
}
HashMap.prototype = {
_computeThreshold: function () {
this._threshold = this._elementData.length * this._loadFactor | 0;
},
_findKeyEntry: function (key, index, keyHash) {
var entry = this._elementData[index];
while (entry && (entry._origKeyHash != keyHash || !equals(key, entry._key))) {
entry = entry._next;
}
return entry;
},
put: function (key, value) {
var hash = computeHashCode(key);
var index = hash & this._elementData.length - 1;
var entry = this._findKeyEntry(key, index, hash);
if (!entry) {
this._modCount++;
entry = this._createHashedEntry(key, index, hash);
if (++this._elementCount > this._threshold) {
this._rehash();
}
}
var result = entry._value;
entry._value = value;
return result;
},
_createHashedEntry: function (key, index, hash) {
var entry = new Entry(key, hash, null);
entry._next = this._elementData[index];
this._elementData[index] = entry;
return entry;
},
_rehash: function (capacity) {
if (capacity == null) {
capacity = this._elementData.length;
}
var length = calculateCapacity(!capacity ? 1 : capacity << 1);
var newData = new Array(length);
for (var i = 0; i < this._elementData.length; ++i) {
var entry = this._elementData[i];
this._elementData[i] = null;
while (entry) {
var index = entry._origKeyHash & length - 1;
var next = entry._next;
entry._next = newData[index];
newData[index] = entry;
entry = next;
}
}
this._elementData = newData;
this._computeThreshold();
},
};
return HashMap;
}();
var map = new HashMap();
var COUNT = 50000;
for (var i = 0; i < COUNT; ++i) {
map.put(i, 42);
}
```
|
Assertion Failuer at ChakraCore/lib/Backend/ValueInfo.cpp
|
https://api.github.com/repos/chakra-core/ChakraCore/issues/6182/comments
| 0 |
2019-06-26T23:00:31Z
|
2019-07-01T21:55:52Z
|
https://github.com/chakra-core/ChakraCore/issues/6182
| 461,217,835 | 6,182 |
[
"chakra-core",
"ChakraCore"
] |
Assert Error in ChakraCore/lib/Backend/BackwardPass.cpp (line 8838)
this is PoC code.
```
function test0() {
var __es_v0 = RegExp.prototype.exec.call(/(baa){3,4}/, String.prototype.toString.call("c2"));
var func2 = function () {
test0();
};
var c = 2147483647;
while (func2.call(c++, c++)) {}
}
test0();
```
ChakraCore: Latest, Debug build
OS: Ubuntu 18.04.2
Arch: x86_64
|
Assertion Error (ByteCode Updward Exposed Used Mismatch)
|
https://api.github.com/repos/chakra-core/ChakraCore/issues/6181/comments
| 1 |
2019-06-26T22:49:55Z
|
2021-03-27T10:37:09Z
|
https://github.com/chakra-core/ChakraCore/issues/6181
| 461,214,946 | 6,181 |
[
"chakra-core",
"ChakraCore"
] |
Debug build of ChakraCore shows assertion failure from the following code
ChakraCore/lib/Runtime/Library/JavascriptArray.cpp, line 5779) length <= JavascriptArray::MaxArrayLength Failure: (length <= JavascriptArray::MaxArrayLength)
I think the boundary number check has some error.
This is the PoC.
```
var ua = new Uint32Array(0x10);
ua.__proto__ = new Array(0xffffffff);
++ua.length;
ua.reverse();
```
ChakraCore: Latest, Debug build
OS: Ubuntu 18.04.2
Arch: x86_64
|
Assertion Failure in JavascriptArray
|
https://api.github.com/repos/chakra-core/ChakraCore/issues/6179/comments
| 0 |
2019-06-25T17:11:57Z
|
2019-07-02T03:16:50Z
|
https://github.com/chakra-core/ChakraCore/issues/6179
| 460,542,006 | 6,179 |
[
"chakra-core",
"ChakraCore"
] |
Hi,
JsGetAndClearExceptionWithMetadata() crashes due to assertion failure
at lib\Runtime\Library\JavascriptExceptionMetadata.cpp:146
reproducible code:
```
int main()
{
JsRuntimeHandle runtime;
JsContextRef context;
JsValueRef result;
JsErrorCode jserr;
unsigned currentSourceContext = 0;
std::wstring script = LR"***(
undefname("領収書");
)***";
JsCreateRuntime(JsRuntimeAttributeNone, nullptr, &runtime);
JsCreateContext(runtime, &context);
JsSetCurrentContext(context);
jserr = JsRunScript(script.c_str(), currentSourceContext++, L"", &result);
if(jserr!=0){
JsValueRef metadata;
JsGetAndClearExceptionWithMetadata(&metadata); // assertion failure!
}
JsSetCurrentContext(JS_INVALID_REFERENCE);
JsDisposeRuntime(runtime);
return 0;
}
```
Build: x64 Debug
OS: Win10 64
|
Assertion failure at lib\Runtime\Library\JavascriptExceptionMetadata.cpp:146
|
https://api.github.com/repos/chakra-core/ChakraCore/issues/6178/comments
| 3 |
2019-06-25T05:00:24Z
|
2019-07-17T04:10:10Z
|
https://github.com/chakra-core/ChakraCore/issues/6178
| 460,210,121 | 6,178 |
[
"chakra-core",
"ChakraCore"
] |
Per https://github.com/microsoft/ChakraCore/releases/tag/v1.11.10, v1.11.10 has been released. However, https://aka.ms/chakracore/version still returns `1_11_9`.
Please update this resource accordingly (ideally automated as part of the release process), since tools such as jsvu depend on this.
@zenparsing
jsvu issue: https://github.com/GoogleChromeLabs/jsvu/issues/71
|
Update https://aka.ms/chakracore/version per v1.11.10 release
|
https://api.github.com/repos/chakra-core/ChakraCore/issues/6175/comments
| 2 |
2019-06-24T08:37:50Z
|
2019-06-24T16:14:13Z
|
https://github.com/chakra-core/ChakraCore/issues/6175
| 459,762,581 | 6,175 |
[
"chakra-core",
"ChakraCore"
] |
The implementation of ‘TypedArray.prototype.fill’ in the engine is not correct. According to Ecma-262 standard, it should get the value of 'p1' firstly, and then calculate the start and end index to fill the value at corresponding items. But the actual order of implementation is reversed. The following code demonstrate our guess. The proxy ‘get’ function doesn’t run at all. JS engines like v8 & spidermonkey have different output.
The code:
```
let array = new Uint32Array(5);
let arg1 = [1, 2, 3];
let start = {
valueOf: () => {
return 5;
}
};
let end = {
valueOf: () => {
return -3;
}
};
let p1 = new Proxy(arg1, {
get: function(oTarget, sKey) {
if (sKey.toString() == 'valueOf') {
print('call valueOf');
arg1[0] = 0;
}
return Reflect.get(oTarget, sKey);
}
});
arr2 = Uint32Array.prototype.fill.call(array, p1, start, end);
print(arg1);
```
The output:
1,2,3
BT group
2019.06.24
|
Wrong Realization of TypedArray.prototype.fill
|
https://api.github.com/repos/chakra-core/ChakraCore/issues/6174/comments
| 1 |
2019-06-24T04:45:03Z
|
2019-06-27T18:29:06Z
|
https://github.com/chakra-core/ChakraCore/issues/6174
| 459,685,194 | 6,174 |
[
"chakra-core",
"ChakraCore"
] |
Running code in ch version 1.11.9.0, the output is different from other js engines.
code:
```
let val = 10;
let handler_1 = {
get: function(oTarget, sKey) {
if (sKey.toString() == 'length') {
print("in get length");
val = 1;
}
return Reflect.get(oTarget, sKey);
},
};
let p_1 = new Proxy({}, handler_1);
var newStr = String.prototype.toLocaleLowerCase.call({}, p_1);
print("BT_FLAG");
print(val);
```
Output of sm, v8, jsc:
```
in get length
BT_FLAG
1
```
Output of ch:
```
BT_FLAG
10
```
In the specification(https://tc39.github.io/ecma402/#sec-canonicalizelocalelist), Get(locales, “length”) shows that we can use Proxy to trap 'get length',
BT group
2019.6.24
|
Wrong Realization of String.prototype.toLocaleLowerCase
|
https://api.github.com/repos/chakra-core/ChakraCore/issues/6173/comments
| 0 |
2019-06-24T02:12:04Z
|
2019-07-01T21:56:30Z
|
https://github.com/chakra-core/ChakraCore/issues/6173
| 459,655,793 | 6,173 |
[
"chakra-core",
"ChakraCore"
] |
For example, in the following snippet:
```
<style>
#foo {
unsupportedPropertyName: 100%; /* works */
}
@keyframes foo {
100% {
height: 100%; /* works */
}
}
@keyframes bar {
100% {
unsupportedPropertyName: 100%; /* doesn't work */
}
}
</style>
<script>
var cssRules = document.styleSheets[0].cssRules;
alert(cssRules[0].cssText);
alert(cssRules[1].cssText);
alert(cssRules[2].cssText);
</script>
```
The third logging command will error.
|
Reading cssText off of a @keyframes cssRule errors with a "Member not found" message
|
https://api.github.com/repos/chakra-core/ChakraCore/issues/6165/comments
| 4 |
2019-06-17T17:09:19Z
|
2019-06-17T19:08:40Z
|
https://github.com/chakra-core/ChakraCore/issues/6165
| 457,045,450 | 6,165 |
[
"chakra-core",
"ChakraCore"
] |
```js
async function f() {
let p = Promise.resolve(0);
Object.defineProperty(p, 'constructor', {
get: function() {
print(`Constructor property accessed`);
return Promise;
}
});
await p;
}
f();
```
```
#### ch
Constructor property accessed
Constructor property accessed
#### XS
Constructor property accessed
Constructor property accessed
#### v8
Constructor property accessed
#### sm
Constructor property accessed
```
|
Await should get the promise's constructor property only once
|
https://api.github.com/repos/chakra-core/ChakraCore/issues/6162/comments
| 0 |
2019-06-13T19:09:41Z
|
2019-06-14T17:12:52Z
|
https://github.com/chakra-core/ChakraCore/issues/6162
| 455,907,169 | 6,162 |
[
"chakra-core",
"ChakraCore"
] |
Upon calling `JsStopDebugging()` on shutdown with a debugger attached, I was hitting (what seemed to be) a segfault somewhere inside `ChakraCore.dll`. After compiling the engine from `master` with debug symbols, I tracked down the location of the crash to the `AssertOrFailFast` call here:
* https://github.com/microsoft/ChakraCore/blob/master/lib/Runtime/Debug/DebugContext.cpp#L359
Seems to be something to do with internal handling of generators in the debugger. As far as I can tell I'm shutting down properly, so there doesn't seem to be anything I can do to work around the issue. For now I've reverted to ChakraCore 1.11.8 which doesn't appear to have this issue.
|
Calling JsStopDebugging() hits failfast in DebugContext.cpp
|
https://api.github.com/repos/chakra-core/ChakraCore/issues/6160/comments
| 0 |
2019-06-13T15:28:42Z
|
2020-06-09T03:07:40Z
|
https://github.com/chakra-core/ChakraCore/issues/6160
| 455,808,533 | 6,160 |
[
"chakra-core",
"ChakraCore"
] |
I am learning about the bailout mechanism. I find that if the object, like JavaScriptNativeIntArray, is accessed twice in JITted code, and there is no operation that can change the type of object between these two accesses, then for the optimization purpose, the BailOnNotNativeIntArray code will only execute once.
Is there an option that can turn on all the checks in JITted code?
|
Is there an option that can turn on all the checks in jit?
|
https://api.github.com/repos/chakra-core/ChakraCore/issues/6152/comments
| 6 |
2019-06-10T07:16:19Z
|
2020-03-26T10:25:55Z
|
https://github.com/chakra-core/ChakraCore/issues/6152
| 454,030,905 | 6,152 |
[
"chakra-core",
"ChakraCore"
] |
The class fields proposal is Stage 3 and seems to be implemented in at least V8 (Node 12, Chrome 74):
https://github.com/tc39/proposal-class-fields
It'd be awesome to have these in CC, I currently enjoy fields thanks to TypeScript, but would be awesome to be able to use them in vanilla JS too. I thought there was already an issue tracking this, but I couldn't find anything after several searches, so I'm posting a ticket now.
|
Implement class fields Stage 3 proposal
|
https://api.github.com/repos/chakra-core/ChakraCore/issues/6136/comments
| 4 |
2019-05-31T17:43:35Z
|
2019-06-30T22:47:35Z
|
https://github.com/chakra-core/ChakraCore/issues/6136
| 450,909,585 | 6,136 |
[
"chakra-core",
"ChakraCore"
] |
Simple ch based repro, the below triggers a nullptr de-reference:
```js
WScript.RegisterModuleSource("start", 'import "testXXXXa";');
WScript.RegisterModuleSource("A", 'import Default from "testXXXXb";');
WScript.RegisterModuleSource("B", 'export function notDefault () {}');
WScript.LoadScriptFile("start", "module");
```
This is an error I introduced almost a year ago without realising it whilst fixing a different issue - sorry.
If a child module (not the top parent) imports the default export from a module that is not its parent and does not have a default export this error is not detected properly and results in a nullptr de-reference instead of an error message.
I will also open a PR to fix this.
|
nullptr deref for non-existant default import
|
https://api.github.com/repos/chakra-core/ChakraCore/issues/6133/comments
| 0 |
2019-05-25T20:30:15Z
|
2019-05-30T20:16:36Z
|
https://github.com/chakra-core/ChakraCore/issues/6133
| 448,499,978 | 6,133 |
[
"chakra-core",
"ChakraCore"
] |
```
function f1(a,b,c) {
function f2() {
let p1 = new Proxy({},Object);
Object.assign(p1,"rightContext",{set:v=>v});
}
f2(0,0,f2);
new Promise(f1);
}
f1(0,0,f1);
for (let t = 0; t < 1000; t++){
f1(0,0,f1);
}
```
platforms: linux, macos (no windows).
versions: head(21/5/2019) and release(21/5/2019).
|
null pointer with Js::JavascriptProxy::DefineOwnPropertyDescriptor
|
https://api.github.com/repos/chakra-core/ChakraCore/issues/6129/comments
| 2 |
2019-05-21T18:46:13Z
|
2019-06-05T18:45:00Z
|
https://github.com/chakra-core/ChakraCore/issues/6129
| 446,769,339 | 6,129 |
[
"chakra-core",
"ChakraCore"
] |
I don't know what's the problem with this <code>`</code> character in #Chakra JavaScript engine. I'm unable to render my script into <b>Internet Explorer 11</b>.
If anyone explain me this problem, I would be graceful.
Here is the browser information below:
<b>Internet Explorer 11</b>
<b>Version:</b> 11.0.9600.17278
<b>Update Version:</b> 11.0.12 (KB2977629)
<b>navigator.userAgent:</b> Mozilla/5.0 (Windows NT 6.3; WOW64; Trident/7.0; .NET4.0E; .NET4.0C; .NET CLR 3.5.30729; .NET CLR 2.0.50727; .NET CLR 3.0.30729; InfoPath.2; rv:11.0) like Gecko
Please look the following attachment:
1#

2#

|
Exception# Invalid character
|
https://api.github.com/repos/chakra-core/ChakraCore/issues/6120/comments
| 1 |
2019-05-08T20:58:55Z
|
2019-05-15T18:30:05Z
|
https://github.com/chakra-core/ChakraCore/issues/6120
| 441,929,234 | 6,120 |
[
"chakra-core",
"ChakraCore"
] |
PoC:
var gi = 3;
var bigArray = new Array(50);
bigArray.fill(42);
function foo() {
return arguments[gi];
}
function bar() {
bigArray.every(function (x) {
foo();
});
}
for (var i = 0; i < 10000; ++i) {
bar();
}
|
ASSERTION 65368: (Js::ArgSlot)inlineeCallInfo.Count == currentBailOutRecord->actualCount Failure: ((Js::ArgSlot)inlineeCallInfo.Count == currentBailOutRecord->actualCount)
|
https://api.github.com/repos/chakra-core/ChakraCore/issues/6118/comments
| 1 |
2019-05-04T15:41:53Z
|
2019-06-07T17:39:13Z
|
https://github.com/chakra-core/ChakraCore/issues/6118
| 440,336,148 | 6,118 |
[
"chakra-core",
"ChakraCore"
] |
hi, the following test case asserts at:
linearscan.cpp, line 1559, Failure: (funcBailOutData[index].localOffsets[i] == 0)
(run the debug build):
function opt() {
for (let i = 0; i < 9; i++) {
for (let j = 0; j < 100; j++) {
function opt2() {
let a1 = [12.34];
let a2 = [-3333333333,"symbol",parseFloat];
let a3 = Object != Math;
function opt3(a,b,c,d,e) {
let arr = [d];
let arg = arguments[9];
}
opt3(333333333,a3,0,a1,a2);
}
opt2();
}
}
}
for (let t = 0; t < 100; t++){
opt();
}
platform:windows
version: the master branch compiled at: 13/4/2019
|
assertion failure at linearscan.cpp, line 1559, Failure: (funcBailOutData[index].localOffsets[i] == 0)
|
https://api.github.com/repos/chakra-core/ChakraCore/issues/6113/comments
| 1 |
2019-04-24T05:13:30Z
|
2019-06-06T23:23:21Z
|
https://github.com/chakra-core/ChakraCore/issues/6113
| 436,500,172 | 6,113 |
[
"chakra-core",
"ChakraCore"
] |
I'm not really sure if this is the place to share this. If there is a more appropriate, please let me know. Sorry in advance.
I've been working as a web developer for over a year now. Yesterday was my first time inspecting elements on Edge. And it was just terrible. I will add a GIF below to illustrate the situation. The element is a div with contenteditable. This was on my localhost. PS: I'm having normal development experience on Firefox and Chrome at the same time.
What could be happening?
Microsoft Edge 44.17763.1.0
Microsoft EdgeHTML 18.17763
Running Windows 10

|
Edge "inspect elements" not working
|
https://api.github.com/repos/chakra-core/ChakraCore/issues/6110/comments
| 1 |
2019-04-23T10:34:43Z
|
2019-04-23T18:49:08Z
|
https://github.com/chakra-core/ChakraCore/issues/6110
| 436,116,602 | 6,110 |
[
"chakra-core",
"ChakraCore"
] |
hi, the following test case asserts at:
RecyclerObjectGraphDumper.cpp, line 45) dumpObject == nullptr,
(run the debug build with the -collectgarbage flag..):
function f() {
let a = [1,2,3,4];
Promise.all(a);
for (let e in a) {
CollectGarbage(e);
}
}
for (let t = 0; t < 100; t++){
f();
}
platforms:all
version: latest master compiled at: 13/4/2019
|
ASSERTION FAILURE at RecyclerObjectGraphDumper.cpp, line 45 with gc
|
https://api.github.com/repos/chakra-core/ChakraCore/issues/6100/comments
| 1 |
2019-04-13T14:10:16Z
|
2019-06-05T19:22:29Z
|
https://github.com/chakra-core/ChakraCore/issues/6100
| 432,851,453 | 6,100 |
[
"chakra-core",
"ChakraCore"
] |
The following expression, when typed into console, or as part of script:
1.4e-3 .toExponential(1)
returns value:
"1.3e-3"
expected output is:
"1.4e-3"
I have seen some other issues related to number formatting reported here, those are already fixed. However, this one is not fixed.
I'm using
Microsoft Edge 44.17763.1.0
Microsoft EdgeHTML 18.17763
|
Number format: 1.4e-3 .toExponential(1) returns "1.3e-3"
|
https://api.github.com/repos/chakra-core/ChakraCore/issues/6095/comments
| 0 |
2019-04-11T10:39:53Z
|
2019-04-16T00:02:15Z
|
https://github.com/chakra-core/ChakraCore/issues/6095
| 431,952,674 | 6,095 |
[
"chakra-core",
"ChakraCore"
] |
dispatch event on window.opener is not working for edge browser, is there any possible solution for that?
|
https://api.github.com/repos/chakra-core/ChakraCore/issues/6094/comments
| 1 |
2019-04-11T10:24:40Z
|
2019-05-15T21:26:45Z
|
https://github.com/chakra-core/ChakraCore/issues/6094
| 431,946,556 | 6,094 |
|
[
"chakra-core",
"ChakraCore"
] |
After the new release of 1.11.8 the version link at `https://aka.ms/chakracore/version` still references 1.11.7.
Could this be updated so the most recent version can be installed?
|
Update release version link still points to 1.11.7
|
https://api.github.com/repos/chakra-core/ChakraCore/issues/6093/comments
| 1 |
2019-04-11T03:40:34Z
|
2019-04-11T14:44:08Z
|
https://github.com/chakra-core/ChakraCore/issues/6093
| 431,815,613 | 6,093 |
[
"chakra-core",
"ChakraCore"
] |
Microsoft Edge switch to chromium, now chakracore will discontinued?
|
Microsoft Edge switch to chromium, now chakracore will discontinued?
|
https://api.github.com/repos/chakra-core/ChakraCore/issues/6090/comments
| 2 |
2019-04-10T06:06:52Z
|
2019-04-11T15:14:51Z
|
https://github.com/chakra-core/ChakraCore/issues/6090
| 431,319,467 | 6,090 |
[
"chakra-core",
"ChakraCore"
] |
The `Intl.NumberFormat()` constructor of **[ECMAScript Internationalization API](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl)** behaves differently in:
**Microsoft Edge 41.16299.1004.0** / **Microsoft EdgeHTML 16.16299**
```javascript
new Intl.NumberFormat('de-DE', { style: 'currency', currency: 'EUR', maximumFractionDigits: 0, minimumFractionDigits: 0 }).format(8900)
"8.900 €"
new Intl.NumberFormat('de-DE', { style: 'currency', currency: 'EUR', maximumFractionDigits: 2, minimumFractionDigits: 0 }).format(8900)
"8.900 €"
new Intl.NumberFormat('de-DE', { style: 'currency', currency: 'EUR', maximumFractionDigits: 1, minimumFractionDigits: 0 }).format(8900)
"8.900 €"
new Intl.NumberFormat('de-DE', { style: 'currency', currency: 'EUR', maximumFractionDigits: 1, minimumFractionDigits: 1 }).format(8900)
"8.900,0 €"
```
and
**Microsoft Edge 44.17763.1.0** / **Microsoft EdgeHTML 18.17763**
```javascript
new Intl.NumberFormat('de-DE', { style: 'currency', currency: 'EUR', maximumFractionDigits: 0, minimumFractionDigits: 0 }).format(8900)
"8.900,00 €"
new Intl.NumberFormat('de-DE', { style: 'currency', currency: 'EUR', maximumFractionDigits: 2, minimumFractionDigits: 0 }).format(8900)
"8.900,00 €"
new Intl.NumberFormat('de-DE', { style: 'currency', currency: 'EUR', maximumFractionDigits: 1, minimumFractionDigits: 0 }).format(8900)
"8.900,00 €"
new Intl.NumberFormat('de-DE', { style: 'currency', currency: 'EUR', maximumFractionDigits: 1, minimumFractionDigits: 1 }).format(8900)
"8.900,00 €"
```
Former behaves properly, allowing to truncate fraction digits by setting the combination of `{ maximumFractionDigits: number, minimumFractionDigits: number }`, while the latter adds 2 fractional digits regardless of the config.
As for the other browsers:
**Chrome 73.0.3683.86**
```javascript
new Intl.NumberFormat('de-DE', { style: 'currency', currency: 'EUR', maximumFractionDigits: 0, minimumFractionDigits: 0 }).format(8900)
"8.900 €"
new Intl.NumberFormat('de-DE', { style: 'currency', currency: 'EUR', maximumFractionDigits: 1, minimumFractionDigits: 0 }).format(8900)
"8.900 €"
new Intl.NumberFormat('de-DE', { style: 'currency', currency: 'EUR', maximumFractionDigits: 2, minimumFractionDigits: 0 }).format(8900)
"8.900 €"
new Intl.NumberFormat('de-DE', { style: 'currency', currency: 'EUR', maximumFractionDigits: 1, minimumFractionDigits: 1 }).format(8900)
"8.900,0 €"
```
**Mozilla Firefox 66.0.2**
```javascript
new Intl.NumberFormat('de-DE', { style: 'currency', currency: 'EUR', maximumFractionDigits: 0, minimumFractionDigits: 0 }).format(8900)
"8.900 €"
new Intl.NumberFormat('de-DE', { style: 'currency', currency: 'EUR', maximumFractionDigits: 1, minimumFractionDigits: 0 }).format(8900)
"8.900 €"
new Intl.NumberFormat('de-DE', { style: 'currency', currency: 'EUR', maximumFractionDigits: 2, minimumFractionDigits: 0 }).format(8900)
"8.900 €"
new Intl.NumberFormat('de-DE', { style: 'currency', currency: 'EUR', maximumFractionDigits: 1, minimumFractionDigits: 1 }).format(8900)
"8.900,0 €"
```
|
Intl.NumberFormat() doesn't properly format numbers with "currency" style.
|
https://api.github.com/repos/chakra-core/ChakraCore/issues/6068/comments
| 1 |
2019-04-02T17:11:10Z
|
2019-04-05T17:57:05Z
|
https://github.com/chakra-core/ChakraCore/issues/6068
| 428,344,884 | 6,068 |
[
"chakra-core",
"ChakraCore"
] |
The debug build of ChakraCore crashes due to assertion failure at lib/Common/DataStructures/BaseDictionary.h:946.
```
var var_0 = new Set([+var_0, -'name', 'length']);
```
Commit: 61b8b22
Build Option: None
OS: Ubuntu 18.04.1 LTS
Arch: x86_64
|
Assertion failure at lib/Common/DataStructures/BaseDictionary.h:946
|
https://api.github.com/repos/chakra-core/ChakraCore/issues/6063/comments
| 0 |
2019-03-29T07:24:06Z
|
2019-04-08T17:22:53Z
|
https://github.com/chakra-core/ChakraCore/issues/6063
| 426,852,091 | 6,063 |
[
"chakra-core",
"ChakraCore"
] |
The debug build of ChakraCore crashes with segfault due to null dereference.
```
Array.prototype.push.call([0, 0, 0, 0, 0]);
```
Commit: 61b8b22
Build Option: None
OS: Ubuntu 18.04.1 LTS
Arch: x86_64
|
ChakraCore crashes due to null dereference
|
https://api.github.com/repos/chakra-core/ChakraCore/issues/6062/comments
| 0 |
2019-03-29T07:00:33Z
|
2019-04-08T17:28:37Z
|
https://github.com/chakra-core/ChakraCore/issues/6062
| 426,845,643 | 6,062 |
[
"chakra-core",
"ChakraCore"
] |
It's on stage 3.
Test262 tests available with the feature tag [`numeric-separator-literal`](https://test262.report/features/numeric-separator-literal)
|
Implement Numeric Sparators
|
https://api.github.com/repos/chakra-core/ChakraCore/issues/6060/comments
| 2 |
2019-03-28T14:54:18Z
|
2019-06-04T22:53:58Z
|
https://github.com/chakra-core/ChakraCore/issues/6060
| 426,538,656 | 6,060 |
[
"chakra-core",
"ChakraCore"
] |
the following js fragment causes a null pointer dereference.
```javascript
function foo() {
for (var h = 0;; ++h) {
for (var r = 0; ; ++r) {
var a =1;
}
}
};
foo();
```
Version: Release v1.11.7
OS: Ubuntu 16.04.1 LTS
Arch: x86_64
|
Null pointer dereference in Runtime/ByteCode/ByteCodeEmitter.cpp:8810
|
https://api.github.com/repos/chakra-core/ChakraCore/issues/6059/comments
| 2 |
2019-03-28T07:40:15Z
|
2019-05-04T00:40:17Z
|
https://github.com/chakra-core/ChakraCore/issues/6059
| 426,342,591 | 6,059 |
[
"chakra-core",
"ChakraCore"
] |
the following js fragment causes a null pointer dereference.
```javascript
function foo() {
try {
x = arguments;
this = foo.call(this);
} catch (e) {
print(x.length);
}
var x = {
j: 1,
k: 2.2
};
}
foo();
```
Version: [ Release v1.11.7 ](https://github.com/Microsoft/ChakraCore/commit/86df3a4a1add9a5b104f553e65ac5c1d24b0bf2f)
OS: Ubuntu 16.04.1 LTS
Arch: x86_64
|
Null pointer dereference in ValueType::FromObject(Js::RecyclableObject*) ()
|
https://api.github.com/repos/chakra-core/ChakraCore/issues/6058/comments
| 1 |
2019-03-28T06:40:25Z
|
2019-06-07T17:35:38Z
|
https://github.com/chakra-core/ChakraCore/issues/6058
| 426,323,901 | 6,058 |
[
"chakra-core",
"ChakraCore"
] |
Stage 3 proposal: https://github.com/tc39/proposal-promise-allSettled
|
Implement Promise.allSettled
|
https://api.github.com/repos/chakra-core/ChakraCore/issues/6056/comments
| 3 |
2019-03-28T00:42:35Z
|
2019-06-12T12:09:41Z
|
https://github.com/chakra-core/ChakraCore/issues/6056
| 426,243,102 | 6,056 |
[
"chakra-core",
"ChakraCore"
] |
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
|
Assertion failure at lib/Backend/BackwardPass.cpp:8667
|
https://api.github.com/repos/chakra-core/ChakraCore/issues/6055/comments
| 0 |
2019-03-27T12:06:42Z
|
2019-07-01T21:57:02Z
|
https://github.com/chakra-core/ChakraCore/issues/6055
| 425,921,976 | 6,055 |
[
"chakra-core",
"ChakraCore"
] |
The debug build crashes due to assertion failure at lib/Runtime/Language/JavascriptOperators.cpp:6646.
```
var var_0 = '';
for (var var_1 = 0; var_1 < 100000; var_1++) {
var_0 += `this.a${ var_1 } = 0;\n`;
}
var var_2 = new Function(var_0);
function func_0() {}
func_0.prototype = new var_2();
```
Commit: ca58245
Build Option: None
OS: Ubuntu 18.04.1 LTS
Arch: x86_64
|
Assertion failure at lib/Runtime/Language/JavascriptOperators.cpp:6646
|
https://api.github.com/repos/chakra-core/ChakraCore/issues/6054/comments
| 0 |
2019-03-27T11:43:26Z
|
2019-04-08T17:32:34Z
|
https://github.com/chakra-core/ChakraCore/issues/6054
| 425,911,684 | 6,054 |
[
"chakra-core",
"ChakraCore"
] |
the follow js fragment cause a stack overflow
`function f(){
var a = {};
function p(c){
(function(){
try {
throw p(d);
}catch(a){
res = function(){return ParseInt();}();
(function(){c =1;})();
}
})();
function d(){}
}
a[0x1234567890] = p();
}
f();`
|
stack overflow
|
https://api.github.com/repos/chakra-core/ChakraCore/issues/6053/comments
| 0 |
2019-03-27T07:48:44Z
|
2019-07-31T22:47:28Z
|
https://github.com/chakra-core/ChakraCore/issues/6053
| 425,809,735 | 6,053 |
[
"chakra-core",
"ChakraCore"
] |
the following js fragment causes a null pointer dereference.
`
function f(a){
"use asm";
var len = a.byteLength;
function f(a){
a = a|0;
}
return {f:f};
}
Function['byteLength'] = Function.prototype.call.bind(0);
f(Function);
`
|
null pointer dereference in Js::RecyclableObject::GetType()
|
https://api.github.com/repos/chakra-core/ChakraCore/issues/6052/comments
| 0 |
2019-03-27T07:23:35Z
|
2019-04-08T18:32:38Z
|
https://github.com/chakra-core/ChakraCore/issues/6052
| 425,801,649 | 6,052 |
[
"chakra-core",
"ChakraCore"
] |
The debug build crashes due to assertion failure at lib/Common/Exceptions/Throw.cpp:103.
```
function func_0(overrides) {
return {
get: overrides.get
};
}
var var_0 = {
length: 2 ** 53 + 2
};
var var_1 = new Proxy(var_0, func_0({
get(t, pk, r) {
return Reflect.get(t, pk, r);
},
}));
Array.prototype.copyWithin.call(var_1);
```
Commit: ca58245
Build Option: None
OS: Ubuntu 18.04.1 LTS
Arch: x86_64
|
Assertion failure at lib/Common/Exceptions/Throw.cpp:103
|
https://api.github.com/repos/chakra-core/ChakraCore/issues/6050/comments
| 0 |
2019-03-26T18:42:53Z
|
2019-04-11T17:21:53Z
|
https://github.com/chakra-core/ChakraCore/issues/6050
| 425,588,817 | 6,050 |
[
"chakra-core",
"ChakraCore"
] |
The debug build crashes due to assertion failure at lib/Backend/LinearScan.cpp:2031.
```
(function func_0() {
(function () {
for ({x: func_0()};;) {}
}());
})();
```
Commit: ca58245
Build Option: None
OS: Ubuntu 18.04.1 LTS
Arch: x86_64
|
Assertion failure at lib/Backend/LinearScan.cpp:2031
|
https://api.github.com/repos/chakra-core/ChakraCore/issues/6049/comments
| 1 |
2019-03-26T17:42:33Z
|
2019-06-19T19:45:44Z
|
https://github.com/chakra-core/ChakraCore/issues/6049
| 425,559,409 | 6,049 |
[
"chakra-core",
"ChakraCore"
] |
I couldn't find any examples of calling JavaScript functions that return promises. I'm particularly interested in how to register callbacks for resolve / reject.
We can check the state of a promise with `JsGetPromiseState` and get its result with `JsGetPromiseResult`, but I can't see how to get notified when a promise's state changes. What is the intended design, and how are others handling this scenario?
I presume we could keep a global vector on the C++ side of all unresolved promises then manually iterate over all of them on each `PromiseContinuationCallback` call, but that feels wrong (and a potential perf issue). Are there alternatives I'm missing?
Thank you!
|
Return Promise from JavaScript
|
https://api.github.com/repos/chakra-core/ChakraCore/issues/6048/comments
| 2 |
2019-03-26T04:52:59Z
|
2020-03-25T08:29:57Z
|
https://github.com/chakra-core/ChakraCore/issues/6048
| 425,226,488 | 6,048 |
[
"chakra-core",
"ChakraCore"
] |
Repro steps:
1. Go to https://console.cloud.google.com (requires a Google account)
1. Open the hamburger menu and click on the "Storage" navigation menu link
(bug occurs in minified Angular routing code)
Notes:
* Was unable to isolate the root cause so I don't have a minimum repro example
* Bug occurs in minified Angular routing code. Specifically
https://github.com/angular/angular/blob/master/packages/router/src/create_url_tree.ts#L315
which is inlined here:
https://github.com/angular/angular/blob/master/packages/router/src/create_url_tree.ts#L257.
This is minified to
```
t = {};
p = r == p.path && Jia(t, p.parameters);
```
When the bug occurs, it looks like ```r == p.path``` executes then the assignment and then
```Jia(t, p.parameters)```. ```p.paramters``` will be undefined leading to the exception.
* Bug occurs on
* Microsoft Edge 41.16299.1004.0
* Microsoft EdgeHTML 16.16299
* Windows 10 Enterprise, Version 1709, 16299.1029
* Bug also occurs on IE11
|
Edge throws an unexpected TypeError: Object expected
|
https://api.github.com/repos/chakra-core/ChakraCore/issues/6046/comments
| 2 |
2019-03-26T00:16:32Z
|
2019-07-22T23:51:46Z
|
https://github.com/chakra-core/ChakraCore/issues/6046
| 425,170,819 | 6,046 |
[
"chakra-core",
"ChakraCore"
] |
Test akayn$ ./chakra xx.js
Abort trap: 6
Test akayn$
the crash results because of this line:
file xx.js:
let b = 'a'.repeat(5 * 0x313131 * 1000);
///////////////
for some reason string repeat throws an abort trap instead of an error massage ..
(on edge you throw out of memory error...
Maybe display an error massage instead?
Reading symbols from chakra...done.
(gdb) run
Starting program: /Volumes/edrive/testing/jsh/TARGETS/ChakraCore/out/Test/chakra /Users/akayn/Desktop/1J29WCBFYGJW.reproducer.js
[New Thread 0xd03 of process 57184]
warning: unhandled dyld version (15)
[New Thread 0xc03 of process 57184]
[New Thread 0xf07 of process 57184]
[New Thread 0x1503 of process 57184]
[New Thread 0x1603 of process 57184]
Thread 2 received signal SIGILL, Illegal instruction.
0x00000001002da7f1 in JsUtil::QuickSortSwap<Memory::_no_write_barrier_policy, char>::swap (a=<optimized out>, b=<optimized out>, size=<optimized out>)
at /Volumes/edrive/testing/jsh/TARGETS/ChakraCore/lib/Common/DataStructures/QuickSort.h:167
167 CC_QSORT_SWAP_LOOP(CC_QSORT_SWAP4, (CC_QSORT_SWAP4*) a, (CC_QSORT_SWAP4*) b, size / 4)
(gdb) i r
rax 0x1 1
rbx 0x10500ac00 4378897408
rcx 0x7fff667a208a 140734912667786
rdx 0x0 0
rsi 0x4 4
rdi 0x7ffeefbfd040 140732920746048
rbp 0x7ffeefbfd300 0x7ffeefbfd300
rsp 0x7ffeefbfd300 0x7ffeefbfd300
r8 0x0 0
r9 0x0 0
r10 0x7ffeefbfd038 140732920746040
r11 0x202 514
r12 0x0 0
r13 0x10500ac00 4378897408
r14 0x0 0
r15 0x0 0
rip 0x1002da7f1 0x1002da7f1 <JsUtil::QuickSort<Memory::_no_write_barrier_policy, char, int (*)(void*, void const*, void const*)>::Sort(char*, unsigned long, unsigned long, int (*)(void*, void const*, void const*), void*)+87425>
eflags 0x10202 [ IF RF ]
cs 0x2b 43
ss <unavailable>
ds <unavailable>
es <unavailable>
---Type <return> to continue, or q <return> to quit---
fs 0x0 0
gs 0x0 0
(gdb) bt
#0 0x00000001002da7f1 in JsUtil::QuickSortSwap<Memory::_no_write_barrier_policy, char>::swap (a=<optimized out>, b=<optimized out>, size=<optimized out>)
at /Volumes/edrive/testing/jsh/TARGETS/ChakraCore/lib/Common/DataStructures/QuickSort.h:167
#1 JsUtil::QuickSort<Memory::_no_write_barrier_policy, char, int (*)(void*, void const*, void const*)>::Sort (base=0x0, nmemb=<optimized out>,
size=<optimized out>, comparer=0xc00000009, context=0x1d00000014)
at /Volumes/edrive/testing/jsh/TARGETS/ChakraCore/lib/Common/DataStructures/QuickSort.h:220
#2 0x00007ffeefbfd310 in ?? ()
#3 0x00000001002da8f9 in JsUtil::QuickSortSwap<Memory::_no_write_barrier_policy, char>::swap (a=<optimized out>, b=<optimized out>, size=<optimized out>)
at /Volumes/edrive/testing/jsh/TARGETS/ChakraCore/lib/Common/DataStructures/QuickSort.h:172
#4 JsUtil::QuickSort<Memory::_no_write_barrier_policy, char, int (*)(void*, void const*, void const*)>::Sort (base=0x0, nmemb=<optimized out>,
size=<optimized out>, comparer=0xc00000009, context=0x1d00000014)
at /Volumes/edrive/testing/jsh/TARGETS/ChakraCore/lib/Common/DataStructures/QuickSort.h:220
#5 0x00007ffeefbfd340 in ?? ()
#6 0x00000001003379ed in Memory::FreeObject::GetNext (this=<optimized out>) at /Volumes/edrive/testing/jsh/TARGETS/ChakraCore/lib/Common/Memory/FreeObject.h:15
#7 Memory::SmallHeapBlockAllocator<Memory::SmallNormalWithBarrierHeapBlockT<SmallAllocationBlockAttributes> >::InlinedAllocImpl<true> (this=<optimized out>,
recycler=<optimized out>, sizeCat=<error reading variable: Cannot access memory at address 0x40>,
attributes=<error reading variable: Cannot access memory at address 0x100>)
at /Volumes/edrive/testing/jsh/TARGETS/ChakraCore/lib/Common/Memory/SmallHeapBlockAllocator.h:161
#8 Memory::SmallHeapBlockAllocator<Memory::SmallNormalWithBarrierHeapBlockT<SmallAllocationBlockAttributes> >::InlinedAlloc<(Memory::ObjectInfoBits)256> (
this=<optimized out>, recycler=<optimized out>, sizeCat=<error reading variable: Cannot access memory at address 0x40>)
at /Volumes/edrive/testing/jsh/TARGETS/ChakraCore/lib/Common/Memory/SmallHeapBlockAllocator.h:245
#9 Memory::HeapBucketT<Memory::SmallNormalWithBarrierHeapBlockT<SmallAllocationBlockAttributes> >::RealAlloc<(Memory::ObjectInfoBits)256, false> (
this=<optimized out>, recycler=<optimized out>, sizeCat=64, size=56) at /Volumes/edrive/testing/jsh/TARGETS/ChakraCore/lib/Common/Memory/HeapBucket.inl:15
#10 Memory::HeapInfo::RealAlloc<(Memory::ObjectInfoBits)256, false> (this=<optimized out>, recycler=<optimized out>, sizeCat=64, size=56)
---Type <return> to continue, or q <return> to quit---
at /Volumes/edrive/testing/jsh/TARGETS/ChakraCore/lib/Common/Memory/HeapInfo.h:649
#11 Memory::Recycler::RealAllocFromBucket<(Memory::ObjectInfoBits)256, true, false> (this=<optimized out>, heap=<optimized out>, size=56)
at /Volumes/edrive/testing/jsh/TARGETS/ChakraCore/lib/Common/Memory/Recycler.inl:298
#12 Memory::Recycler::RealAlloc<(Memory::ObjectInfoBits)256, false> (this=<optimized out>, heap=<optimized out>, size=56)
at /Volumes/edrive/testing/jsh/TARGETS/ChakraCore/lib/Common/Memory/Recycler.inl:373
#13 0x00000001003379ed in Memory::Recycler::AllocWithAttributesInlined<(Memory::ObjectInfoBits)256, false> (this=<optimized out>, size=56)
#14 Memory::Recycler::AllocInlined (this=<optimized out>, size=56) at /Volumes/edrive/testing/jsh/TARGETS/ChakraCore/lib/Common/Memory/Recycler.h:1369
#15 operator new<Memory::Recycler> (byteSize=56, alloc=<optimized out>, AllocFunc=<error reading variable: Cannot access memory at address 0x0>)
at /Volumes/edrive/testing/jsh/TARGETS/ChakraCore/lib/Common/DataStructures/../Memory/Allocator.h:486
#16 Js::FunctionBody::EnsureCodeGenRuntimeDataCommon<(Js::FunctionProxy::AuxPointerType)26> (
Reading symbols from chakra...done.
(gdb) run
Starting program: /Volumes/edrive/testing/jsh/TARGETS/ChakraCore/out/Test/chakra /Users/akayn/Desktop/1J29WCBFYGJW.reproducer.js
[New Thread 0xc03 of process 57202]
warning: unhandled dyld version (15)
[New Thread 0xb07 of process 57202]
[New Thread 0xd03 of process 57202]
[New Thread 0x1503 of process 57202]
[New Thread 0x2903 of process 57202]
Thread 2 received signal SIGILL, Illegal instruction.
0x00000001002da7f1 in JsUtil::QuickSortSwap<Memory::_no_write_barrier_policy, char>::swap (a=<optimized out>, b=<optimized out>, size=<optimized out>)
at /Volumes/edrive/testing/jsh/TARGETS/ChakraCore/lib/Common/DataStructures/QuickSort.h:167
167 CC_QSORT_SWAP_LOOP(CC_QSORT_SWAP4, (CC_QSORT_SWAP4*) a, (CC_QSORT_SWAP4*) b, size / 4)
(gdb) i r
rax 0x1 1
rbx 0x906005400 38755390464
rcx 0x7fff667a208a 140734912667786
rdx 0x0 0
rsi 0x4 4
rdi 0x7ffeefbfd040 140732920746048
rbp 0x7ffeefbfd300 0x7ffeefbfd300
rsp 0x7ffeefbfd300 0x7ffeefbfd300
r8 0x0 0
r9 0x0 0
r10 0x7ffeefbfd038 140732920746040
r11 0x202 514
r12 0x0 0
r13 0x906005400 38755390464
r14 0x0 0
r15 0x0 0
rip 0x1002da7f1 0x1002da7f1 <JsUtil::QuickSort<Memory::_no_write_barrier_policy, char, int (*)(void*, void const*, void const*)>::Sort(char*, unsigned long, unsigned long, int (*)(void*, void const*, void const*), void*)+87425>
eflags 0x10202 [ IF RF ]
cs 0x2b 43
ss <unavailable>
ds <unavailable>
es <unavailable>
---Type <return> to continue, or q <return> to quit---
fs 0x0 0
gs 0x0 0
CCQ_SORT2(2, 4) \
CCQ_SORT2(2, 3) \
CCQ_SORT2(5, 6)
// Sorting Networks - END
union CC_QSORT_SWAP8
{
char chr[8]; // optimized for Js::Var
};
union CC_QSORT_SWAP4
{
char chr[4]; // optimized for TypedArray
};
union CC_QSORT_SWAP2
{
char chr[2]; // others
};
#define CC_QSORT_SWAP_LOOP(T, a, b, nsize) \
{ \
for (size_t i = 0; i < nsize; i++) \
{ \
T c = (a)[i]; \
(a)[i] = (b)[i]; \
(b)[i] = c; \
} \
}
template <class Policy, class T>
class QuickSortSwap
{
public:
(gdb) run
Starting program: /Volumes/edrive/testing/jsh/TARGETS/ChakraCore/out/Test/chakra /Users/akayn/Desktop/1J29WCBFYGJW.reproducer.js
[New Thread 0xc03 of process 57202]
warning: unhandled dyld version (15)
[New Thread 0xb07 of process 57202]
[New Thread 0xd03 of process 57202]
[New Thread 0x1503 of process 57202]
[New Thread 0x2903 of process 57202]
Thread 2 received signal SIGILL, Illegal instruction.
0x00000001002da7f1 in JsUtil::QuickSortSwap<Memory::_no_write_barrier_policy, char>::swap (a=<optimized out>, b=<optimized out>, size=<optimized out>)
at /Volumes/edrive/testing/jsh/TARGETS/ChakraCore/lib/Common/DataStructures/QuickSort.h:167
167 CC_QSORT_SWAP_LOOP(CC_QSORT_SWAP4, (CC_QSORT_SWAP4*) a, (CC_QSORT_SWAP4*) b, size / 4)
(gdb) i r
rax 0x1 1
rbx 0x906005400 38755390464
rcx 0x7fff667a208a 140734912667786
rdx 0x0 0
rsi 0x4 4
rdi 0x7ffeefbfd040 140732920746048
rbp 0x7ffeefbfd300 0x7ffeefbfd300
rsp 0x7ffeefbfd300 0x7ffeefbfd300
r8 0x0 0
r9 0x0 0
r10 0x7ffeefbfd038 140732920746040
r11 0x202 514
r12 0x0 0
r13 0x906005400 38755390464
r14 0x0 0
r15 0x0 0
rip 0x1002da7f1 0x1002da7f1 <JsUtil::QuickSort<Memory::_no_write_barrier_policy, char, int (*)(void*, void const*, void const*)>::Sort(char*, unsigned long, unsigned long, int (*)(void*, void const*, void const*), void*)+87425>
eflags 0x10202 [ IF RF ]
cs 0x2b 43
ss <unavailable>
ds <unavailable>
es <unavailable>
---Type <return> to continue, or q <return> to quit---
fs 0x0 0
gs 0x0 0
(gdb) layout asm
482>: c3 retq
0x00000001002da82b <JsUtil::QuickSort<Memory::_no_write_barrier_policy, char, int (*)(void*, void const*, void const*)>::Sort(char*, unsigned long, unsigned long, int (*)(void*, void const*, void const*), void*)+87483>: 0f 1f 44 00 00 nopl 0x0(%rax,%rax,1)
0x00000001002da830 <JsUtil::QuickSort<Memory::_no_write_barrier_policy, char, int (*)(void*, void const*, void const*)>::Sort(char*, unsigned long, unsigned long, int (*)(void*, void const*, void const*), void*)+87488>: 55 push %rbp
0x00000001002da831 <JsUtil::QuickSort<Memory::_no_write_barrier_policy, char, int (*)(void*, void const*, void const*)>::Sort(char*, unsigned long, unsigned long, int (*)(void*, void const*, void const*), void*)+87489>: 48 89 e5 mov %rsp,%rbp
0x00000001002da834 <JsUtil::QuickSort<Memory::_no_write_barrier_policy, char, int (*)(void*, void const*, void const*)>::Sort(char*, unsigned long, unsigned long, int (*)(void*, void const*, void const*), void*)+87492>: e8 97 ff ff ff callq 0x1002da7d0 <JsUtil::QuickSort<Memory::_no_write_barrier_policy, char, int (*)(void*, void const*, void const*)>::Sort(char*, unsigned long, unsigned long, int (*)(void*, void const*, void const*), void*)+87392>
0x00000001002da839 <JsUtil::QuickSort<Memory::_no_write_barrier_policy, char, int (*)(void*, void const*, void const*)>::Sort(char*, unsigned long, unsigned long, int (*)(void*, void const*, void const*), void*)+87497>: 5d pop %rbp
0x00000001002da83a <JsUtil::QuickSort<Memory::_no_write_barrier_policy, char, int (*)(void*, void const*, void const*)>::Sort(char*, unsigned long, unsigned long, int (*)(void*, void const*, void const*), void*)+87498>: c3 retq
0x00000001002da83b <JsUtil::QuickSort<Memory::_no_write_barrier_policy, char, int (*)(void*, void const*, void const*)>::Sort(char*, unsigned long, unsigned long, int (*)(void*, void const*, void const*), void*)+87499>: 0f 1f 44 00 00 nopl 0x0(%rax,%rax,1)
0x00000001002da840 <JsUtil::QuickSort<Memory::_no_write_barrier_policy, char, int (*)(void*, void const*, void const*)>::Sort(char*, unsigned long, unsigned long, int (*)(void*, void const*, void const*), void*)+87504>: 55 push %rbp
0x00000001002da841 <JsUtil::QuickSort<Memory::_no_write_barrier_policy, char, int (*)(void*, void const*, void const*)>::Sort(char*, unsigned long, unsigned long, int (*)(void*, void const*, void const*), void*)+87505>: 48 89 e5 mov %rsp,%rbp
0x00000001002da844 <JsUtil::QuickSort<Memory::_no_write_barrier_policy, char, int (*)(void*, void const*, void const*)>::Sort(char*, unsigned long, unsigned long, int (*)(void*, void const*, void const*), void*)+87508>: e8 87 ff ff ff callq 0x1002da7d0 <JsUtil::QuickSort<Memory::_no_write_barrier_policy, char, int (*)(void*, void const*, void const*)>::Sort(char*, unsigned long, unsigned long, int (*)(void*, void const*, void const*), void*)+87392>
0x00000001002da849 <JsUtil::QuickSort<Memory::_no_write_barrier_policy, char, int (*)(void*, void const*, void const*)>::Sort(char*, unsigned long, unsigned long, int (*)(void*, void const*, void const*), void*)+87513>: 5d pop %rbp
0x00000001002da84a <JsUtil::QuickSort<Memory::_no_write_barrier_policy, char, int (*)(void*, void const*, void const*)>::Sort(char*, unsigned long, unsigned long, int (*)(void*, void const*, void const*), void*)+87514>: c3 retq
0x00000001002da84b <JsUtil::QuickSort<Memory::_no_write_barrier_policy, char, int (*)(void*, void const*, void const*)>::Sort(char*, unsigned long, unsigned long, int (*)(void*, void const*, void const*), void*)+87515>: 0f 1f 44 00 00 nopl 0x0(%rax,%rax,1)
0x00000001002da850 <JsUtil::QuickSort<Memory::_no_write_barrier_policy, char, int (*)(void*, void const*, void const*)>::Sort(char*, unsigned long, unsigned long, int (*)(void*, void const*, void const*), void*)+87520>: 55 push %rbp
---Type <return> to continue, or q <return> to quit---
0x00000001002da851 <JsUtil::QuickSort<Memory::_no_write_barrier_policy, char, int (*)(void*, void const*, void const*)>::Sort(char*, unsigned long, unsigned long, int (*)(void*, void const*, void const*), void*)+87521>: 48 89 e5 mov %rsp,%rbp
0x00000001002da854 <JsUtil::QuickSort<Memory::_no_write_barrier_policy, char, int (*)(void*, void const*, void const*)>::Sort(char*, unsigned long, unsigned long, int (*)(void*, void const*, void const*), void*)+87524>: e8 77 ff ff ff callq 0x1002da7d0 <JsUtil::QuickSort<Memory::_no_write_barrier_policy, char, int (*)(void*, void const*, void const*)>::Sort(char*, unsigned long, unsigned long, int (*)(void*, void const*, void const*), void*)+87392>
0x00000001002da859 <JsUtil::QuickSort<Memory::_no_write_barrier_policy, char, int (*)(void*, void const*, void const*)>::Sort(char*, unsigned long, unsigned long, int (*)(void*, void const*, void const*), void*)+87529>: 5d pop %rbp
0x00000001002da85a <JsUtil::QuickSort<Memory::_no_write_barrier_policy, char, int (*)(void*, void const*, void const*)>::Sort(char*, unsigned long, unsigned long, int (*)(void*, void const*, void const*), void*)+87530>: c3 retq
0x00000001002da85b <JsUtil::QuickSort<Memory::_no_write_barrier_policy, char, int (*)(void*, void const*, void const*)>::Sort(char*, unsigned long, unsigned long, int (*)(void*, void const*, void const*), void*)+87531>: 0f 1f 44 00 00 nopl 0x0(%rax,%rax,1)
0x00000001002da860 <JsUtil::QuickSort<Memory::_no_write_barrier_policy, char, int (*)(void*, void const*, void const*)>::Sort(char*, unsigned long, unsigned long, int (*)(void*, void const*, void const*), void*)+87536>: 55 push %rbp
0x00000001002da861 <JsUtil::QuickSort<Memory::_no_write_barrier_policy, char, int (*)(void*, void const*, void const*)>::Sort(char*, unsigned long, unsigned long, int (*)(void*, void const*, void const*), void*)+87537>: 48 89 e5 mov %rsp,%rbp
(3b7c.2cdc): Break instruction exception - code 80000003 (first chance)
KERNELBASE!wil::details::DebugBreak+0x2:
00007fff`92acd862 cc int 3
0:015> k
# Child-SP RetAddr Call Site
00 0000008c`3be7a258 00007fff`6cb2ff1a KERNELBASE!wil::details::DebugBreak+0x2
01 0000008c`3be7a260 00007fff`6ca03b06 chakra!ReportFatalException+0x26
02 0000008c`3be7a2b0 00007fff`6cc2f836 chakra!OutOfMemory_unrecoverable_error+0x26
03 0000008c`3be7a2f0 00007fff`6c9f9700 chakra!Js::Exception::RaiseIfScriptActive+0x3a
04 0000008c`3be7a320 00007fff`6cb24949 chakra!Js::Throw::OutOfMemory+0x10
05 0000008c`3be7a360 00007fff`6ca90245 chakra!Math::DefaultOverflowPolicy+0x9
06 0000008c`3be7a390 00007fff`6cbd9b4f chakra!UInt32Math::Add<void __cdecl(void)>+0xd8211
07 0000008c`3be7a3c0 00007fff`6ca488d4 chakra!Js::JavascriptString::RepeatCore+0x6b
08 0000008c`3be7a460 00007fff`6c9f7956 chakra!Js::JavascriptString::EntryRepeat+0x272974
09 0000008c`3be7a4b0 00007fff`6c8af86c chakra!amd64_CallFunction+0x86
0a 0000008c`3be7a500 00007fff`6c8afac8 chakra!Js::InterpreterStackFrame::OP_CallCommon<Js::OpLayoutDynamicProfile<Js::OpLayoutT_CallIWithICIndex<Js::LayoutSizePolicy<0> > > >+0x18c
0b 0000008c`3be7a5c0 00007fff`6c8afd41 chakra!Js::InterpreterStackFrame::OP_ProfiledCallIWithICIndex<Js::OpLayoutT_CallIWithICIndex<Js::LayoutSizePolicy<0> > >+0xb8
0c 0000008c`3be7a630 00007fff`6c898a21 chakra!Js::InterpreterStackFrame::ProcessProfiled+0x161
0d 0000008c`3be7a690 00007fff`6c99a3ca chakra!Js::InterpreterStackFrame::Process+0xe1
0e 0000008c`3be7a6e0 00007fff`6c8b0b24 chakra!Js::InterpreterStackFrame::OP_TryCatch+0xda
0f 0000008c`3be7a760 00007fff`6c898a21 chakra!Js::InterpreterStackFrame::ProcessProfiled+0xf44
10 0000008c`3be7a7c0 00007fff`6c8986ff chakra!Js::InterpreterStackFrame::Process+0xe1
11 0000008c`3be7a810 00007fff`6c89775e chakra!Js::InterpreterStackFrame::InterpreterHelper+0x88f
12 0000008c`3be7ac60 000001d2`f0fa0fa2 chakra!Js::InterpreterStackFrame::InterpreterThunk+0x4e
13 0000008c`3be7acb0 00007fff`6c9f7956 0x000001d2`f0fa0fa2
14 0000008c`3be7ace0 00007fff`6c9873ca chakra!amd64_CallFunction+0x86
15 0000008c`3be7ad30 00007fff`6c987077 chakra!Js::InterpreterStackFrame::OP_CallCommon<Js::OpLayoutDynamicProfile<Js::OpLayoutT_CallI<Js::LayoutSizePolicy<0> > > >+0x2fa
16 0000008c`3be7ae00 00007fff`6c8aff8c chakra!Js::InterpreterStackFrame::OP_ProfiledCallI<Js::OpLayoutT_CallI<Js::LayoutSizePolicy<0> > >+0xb7
17 0000008c`3be7ae70 00007fff`6c898a21 chakra!Js::InterpreterStackFrame::ProcessProfiled+0x3ac
18 0000008c`3be7aed0 00007fff`6c99a3ca chakra!Js::InterpreterStackFrame::Process+0xe1
19 0000008c`3be7af20 00007fff`6c8b0b24 chakra!Js::InterpreterStackFrame::OP_TryCatch+0xda
1a 0000008c`3be7afa0 00007fff`6c898a21 chakra!Js::InterpreterStackFrame::ProcessProfiled+0xf44
1b 0000008c`3be7b000 00007fff`6c8986ff chakra!Js::InterpreterStackFrame::Process+0xe1
1c 0000008c`3be7b050 00007fff`6c89775e chakra!Js::InterpreterStackFrame::InterpreterHelper+0x88f
1d 0000008c`3be7b3c0 000001d2`f0fa0faa chakra!Js::InterpreterStackFrame::InterpreterThunk+0x4e
1e 0000008c`3be7b410 00007fff`6c9f7956 0x000001d2`f0fa0faa
1f 0000008c`3be7b440 00007fff`6c8af9d0 chakra!amd64_CallFunction+0x86
20 0000008c`3be7b4b0 00007fff`6c8afac8 chakra!Js::InterpreterStackFrame::OP_CallCommon<Js::OpLayoutDynamicProfile<Js::OpLayoutT_CallIWithICIndex<Js::LayoutSizePolicy<0> > > >+0x2f0
21 0000008c`3be7b570 00007fff`6c8afd41 chakra!Js::InterpreterStackFrame::OP_ProfiledCallIWithICIndex<Js::OpLayoutT_CallIWithICIndex<Js::LayoutSizePolicy<0> > >+0xb8
22 0000008c`3be7b5e0 00007fff`6c898a21 chakra!Js::InterpreterStackFrame::ProcessProfiled+0x161
23 0000008c`3be7b640 00007fff`6c8986ff chakra!Js::InterpreterStackFrame::Process+0xe1
24 0000008c`3be7b690 00007fff`6c89775e chakra!Js::InterpreterStackFrame::InterpreterHelper+0x88f
25 0000008c`3be7b9b0 000001d2`f0fa0f72 chakra!Js::InterpreterStackFrame::InterpreterThunk+0x4e
26 0000008c`3be7ba00 00007fff`6c9f7956 0x000001d2`f0fa0f72
27 0000008c`3be7ba30 00007fff`6c8af9d0 chakra!amd64_CallFunction+0x86
28 0000008c`3be7ba80 00007fff`6c8afac8 chakra!Js::InterpreterStackFrame::OP_CallCommon<Js::OpLayoutDynamicProfile<Js::OpLayoutT_CallIWithICIndex<Js::LayoutSizePolicy<0> > > >+0x2f0
29 0000008c`3be7bb40 00007fff`6c8afd41 chakra!Js::InterpreterStackFrame::OP_ProfiledCallIWithICIndex<Js::OpLayoutT_CallIWithICIndex<Js::LayoutSizePolicy<0> > >+0xb8
2a 0000008c`3be7bbb0 00007fff`6c898a21 chakra!Js::InterpreterStackFrame::ProcessProfiled+0x161
2b 0000008c`3be7bc10 00007fff`6c8986ff chakra!Js::InterpreterStackFrame::Process+0xe1
2c 0000008c`3be7bc60 00007fff`6c89775e chakra!Js::InterpreterStackFrame::InterpreterHelper+0x88f
2d 0000008c`3be7bfd0 000001d2`f0fa0fba chakra!Js::InterpreterStackFrame::InterpreterThunk+0x4e
2e 0000008c`3be7c020 00007fff`6c9f7956 0x000001d2`f0fa0fba
2f 0000008c`3be7c050 00007fff`6c8af9d0 chakra!amd64_CallFunction+0x86
30 0000008c`3be7c0a0 00007fff`6c8afac8 chakra!Js::InterpreterStackFrame::OP_CallCommon<Js::OpLayoutDynamicProfile<Js::OpLayoutT_CallIWithICIndex<Js::LayoutSizePolicy<0> > > >+0x2f0
31 0000008c`3be7c160 00007fff`6c8afd41 chakra!Js::InterpreterStackFrame::OP_ProfiledCallIWithICIndex<Js::OpLayoutT_CallIWithICIndex<Js::LayoutSizePolicy<0> > >+0xb8
32 0000008c`3be7c1d0 00007fff`6c898a21 chakra!Js::InterpreterStackFrame::ProcessProfiled+0x161
33 0000008c`3be7c230 00007fff`6c8986ff chakra!Js::InterpreterStackFrame::Process+0xe1
34 0000008c`3be7c280 00007fff`6c89775e chakra!Js::InterpreterStackFrame::InterpreterHelper+0x88f
35 0000008c`3be7c5a0 000001d2`f0fa0fc2 chakra!Js::InterpreterStackFrame::InterpreterThunk+0x4e
36 0000008c`3be7c5f0 00007fff`6c9f7956 0x000001d2`f0fa0fc2
37 0000008c`3be7c620 00007fff`6c87b687 chakra!amd64_CallFunction+0x86
38 0000008c`3be7c670 00007fff`6c87b3ac chakra!Js::JavascriptFunction::CallRootFunctionInternal+0x2a7
39 0000008c`3be7c7b0 00007fff`6c87b2ea chakra!Js::JavascriptFunction::CallRootFunction+0x7c
3a 0000008c`3be7c840 00007fff`6c87b1c9 chakra!ScriptSite::CallRootFunction+0x6a
3b 0000008c`3be7c8a0 00007fff`6c87a2ce chakra!ScriptSite::Execute+0x179
3c 0000008c`3be7c930 00007fff`6c879b98 chakra!ScriptEngine::ExecutePendingScripts+0x1b2
3d 0000008c`3be7ca10 00007fff`6c878913 chakra!ScriptEngine::ParseScriptTextCore+0x464
3e 0000008c`3be7cb50 00007fff`6d349f50 chakra!ScriptEngine::ParseScriptText+0xd3
3f 0000008c`3be7cc40 00007fff`6d349dbc edgehtml!CJScript9Holder::ParseScriptText+0x124
40 0000008c`3be7cce0 00007fff`6d349966 edgehtml!CScriptCollection::ParseScriptText+0x20c
41 0000008c`3be7cdc0 00007fff`6d373e07 edgehtml!CScriptData::CommitCode+0x366
42 0000008c`3be7cf90 00007fff`6d498403 edgehtml!CScriptData::Execute+0x237
43 0000008c`3be7d040 00007fff`6d2fbde5 edgehtml!CHtmScriptParseCtx::Execute+0xb3
44 0000008c`3be7d070 00007fff`6d2faa22 edgehtml!CHtmParseBase::Execute+0x175
45 0000008c`3be7d100 00007fff`6d2fa28d edgehtml!CHtmPost::Broadcast+0x32
46 0000008c`3be7d140 00007fff`6d409b67 edgehtml!CHtmPost::Exec+0x17d
47 0000008c`3be7d320 00007fff`6d409a43 edgehtml!CHtmPost::Run+0x2f
48 0000008c`3be7d350 00007fff`6d4098e6 edgehtml!PostManExecute+0x63
49 0000008c`3be7d390 00007fff`6d40973d edgehtml!PostManResume+0xa6
4a 0000008c`3be7d3d0 00007fff`6d449a53 edgehtml!CHtmPost::OnDwnChanCallback+0x3d
4b 0000008c`3be7d420 00007fff`6d40897b edgehtml!CDwnChan::OnMethodCall+0x23
4c 0000008c`3be7d450 00007fff`6d26a2c9 edgehtml!GWndAsyncTask::Run+0x1b
4d 0000008c`3be7d480 00007fff`6d25cdb5 edgehtml!HTML5TaskScheduler::RunReadiedTask+0x289
4e 0000008c`3be7d550 00007fff`6d269f63 edgehtml!HTML5TaskScheduler::RunReadiedTasks+0x1a5
4f 0000008c`3be7d690 00007fff`6d297607 edgehtml!NormalPriorityAtInputEventLoopDriver::DriveRegularPriorityTaskExecution+0x153
50 0000008c`3be7d6d0 00007fff`93c3b412 edgehtml!GlobalWndProc+0x1b7
51 0000008c`3be7d760 00007fff`93c3ca66 user32!FilteredProcessRedirectingWndProcW+0x62
52 0000008c`3be7d7a0 00007fff`93c3c582 user32!UserCallWinProcCheckWow+0x266
53 0000008c`3be7d920 00007fff`6a316aaf user32!DispatchMessageWorker+0x1b2
54 0000008c`3be7d9a0 00007fff`6a2e3ab0 EdgeContent!CBrowserTab::_TabWindowThreadProc+0x4ef
55 0000008c`3be7fc50 00007fff`6c089016 EdgeContent!LCIETab_ThreadProc+0x2b0
56 0000008c`3be7fd80 00007fff`93b881f4 edgeIso!_IsoThreadProc_WrapperToReleaseScope+0x16
57 0000008c`3be7fdb0 00007fff`969aa251 KERNEL32!BaseThreadInitThunk+0x14
58 0000008c`3be7fde0 00000000`00000000 ntdll!RtlUserThreadStart+0x21
file repro.js:
var gint = 0;
function _gc() {
for (let i = 0; i < 20; i++){
new ArrayBuffer(0x1000000);}
}
function f0(arr,idx) { try{ ((arr.length === 0x7ffffff0 && arr[0x7ffffff0]) || false) && (arr.length === 0x7ffffff0 && arr[0x7ffffff1]) || (arr[0x11111111] = 0x1234);}catch(e){}}
function f1(array,offset, oob_byte) { try{ var base = -0x7FFFFFC1 + offset; array[base - (-0x80000000)] = 0x4B; array[base + 0x7FFFFFE1] = 0x4B; array[base + 0x7FFFFFC1] = oob_byte;}catch(e){}}
function opt2(i_, v_, q_){
//fbody
//
try { q_.valueOf = 0x12; } catch(e) { } try { v_.x = 2.3023e-320; } catch(e) { } try { i_ >> 1000; } catch(e) { } try { v_.valueOf = 0; } catch(e) { }
//
//fbodyend
function foo(arr) {
try{ let r = /a/; }catch(e){}
try{ let o = i_; }catch(e){}
try{ arr[q_].charAt(v_); }catch(e){}
try{ arr[123456789].charAt(0x2); }catch(e){}
try{ arr[v_].charAt(q_); }catch(e){}
try{ arr[i_].charAt(v_); }catch(e){}
try{ arr[0x23].charAt(4.4); }catch(e){}
try{ arr[v_].charAt(i_); }catch(e){}
try{ arr[0x40000].charAt(i_); }catch(e){}
try{ arr[39].charAt(q_); }catch(e){}
try{ arr[v_].charAt(i_); }catch(e){}
try{ arr[q_].charAt(q_); }catch(e){}
try{ arr[i_].charAt(v_); }catch(e){}
try{ o.x = 'a'.match(r); }catch(e){}
try{ return o; }catch(e){}
}
function main() {
for (let i = 0; i < 100; i++) {
try{ foo(['a' + i, 'b' + i, 'c' + i, 'd' + i, 'e' + i, 'f' + i, 'g' + i, 'h' + i, 'i' + i, 'j' + i]); }catch(e){}
}
try{ let a = 'a'.repeat(52 * 122 * i_); }catch(e){}
try{ let b = 'a'.repeat(i_ * 0x313131 * v_); }catch(e){}
try{ let arr = new Array(f0(0x100000)); }catch(e){}
for (let i = 0; i < 10; i++) {
try{ arr[i] = a + b; }catch(e){}
}
try{ _gc(); }catch(e){}
try{ let o = foo(arr); }catch(e){}
try{ _gc(); }catch(e){}
try{ let tmp = [0x12121212]; }catch(e){}
try{ print(o.x); }catch(e){}
}
try{ main(); }catch(e){}
}
function opt(){
opt2(0x12345678, new Uint32Array(0x40), new Float32Array(0x40));
}
function gogogogo() {
var a = () => {};
var b = 0x7fffffff;
var c = null;
try { var xyz = function(){var ret = { w: { w : { o : { k : { m : { w: { k : { o : { l: f1, u: JSON } }}, u: { l : { o : { w : { o : { w: "k", u: { w: f1 } } }} }} } }} }}, o: { l: {}, o: {} } }; return ret;}; b = xyz(xyz); } catch(e) { }
opt2(a, b, c);
for (let i = 0; i < 500; i++) {
opt();
}
opt2(a, b, c);
}
gogogogo();
|
chakracore throws an abort trap (or oom crash on edge) with an invalid length to String.prototype.repeat ... maybe just display an error massage?
|
https://api.github.com/repos/chakra-core/ChakraCore/issues/6042/comments
| 1 |
2019-03-21T12:53:27Z
|
2019-03-21T20:23:16Z
|
https://github.com/chakra-core/ChakraCore/issues/6042
| 423,714,514 | 6,042 |
[
"chakra-core",
"ChakraCore"
] |
The debug build crashes due to assertion failure at lib/Runtime/Library/IntlEngineInterfaceExtensionObject.cpp:3146.
The release build also crashes with sigabort.
PoC:
```
options = {maximumSignificantDigits:1}
const var_0 = new Intl.PluralRules('en', options);
var_0.select(123);
```
Commit: 753fc6f
Build Option: None
OS: Ubuntu 18.04.1 LTS
Arch: x86_64
|
Assertion failure at lib/Runtime/Library/IntlEngineInterfaceExtensionObject.cpp:3146
|
https://api.github.com/repos/chakra-core/ChakraCore/issues/6039/comments
| 0 |
2019-03-19T06:09:40Z
|
2019-06-04T00:14:57Z
|
https://github.com/chakra-core/ChakraCore/issues/6039
| 422,559,559 | 6,039 |
[
"chakra-core",
"ChakraCore"
] |
###### ChakraCore version:
```
Checked revision: e6e25c3a5
Build command: ./build.sh --debug
```
###### OS:
```
Linux-4.15.0-43-generic-x86_64-with-Ubuntu-18.04-bionic
```
###### Test case:
```js
var x = {};
var y = WScript.LoadScript(0, "samethread");
with(x) {
with (y) {
eval()
}
}
```
###### Backtrace:
```text
ASSERTION 24034: (ChakraCore/lib/Runtime/Language/InterpreterStackFrame.cpp, line 7775) !CrossSite::NeedMarshalVar(value, GetScriptContext())
Failure: (!CrossSite::NeedMarshalVar(value, GetScriptContext()))
bt
#0 0x0000555557ffddff in Js::InterpreterStackFrame::ValidateRegValue (this=0x7fffffffa240, value=0x7ffff1db1e00, allowStackVar=false, allowStackVarOnDisabledStackNestedFunc=true) at ChakraCore/lib/Runtime/Language/InterpreterStackFrame.cpp:7775
#1 0x0000555558006e81 in Js::InterpreterStackFrame::SetReg<unsigned char> (this=0x7fffffffa240, localRegisterID=33 '!', value=0x7ffff1db1e00) at ChakraCore/lib/Runtime/Language/InterpreterStackFrame.cpp:7792
#2 0x000055555812a919 in Js::InterpreterStackFrame::OP_GetMethodPropertyScoped_NoFastPath<Js::OpLayoutT_ElementCP<Js::LayoutSizePolicy<(Js::LayoutSize)0> > const __unaligned>(Js::OpLayoutT_ElementCP<Js::LayoutSizePolicy<(Js::LayoutSize)0> > const __unaligned __unaligned*) (this=0x7fffffffa240, playout=0x7ffff1d900f6) at ChakraCore/lib/Runtime/Language/InterpreterStackFrame.cpp:3621
#3 0x000055555804bf13 in Js::InterpreterStackFrame::OP_GetMethodPropertyScoped<Js::OpLayoutT_ElementCP<Js::LayoutSizePolicy<(Js::LayoutSize)0> > const __unaligned>(Js::OpLayoutT_ElementCP<Js::LayoutSizePolicy<(Js::LayoutSize)0> > const __unaligned __unaligned*) (this=0x7fffffffa240, playout=0x7ffff1d900f6) at ChakraCore/lib/Runtime/Language/InterpreterStackFrame.cpp:3601
#4 0x0000555557be0498 in Js::InterpreterStackFrame::ProcessProfiled (this=0x7fffffffa240) at ChakraCore/lib/Runtime/Language/InterpreterHandler.inl:351
#5 0x0000555557a89bf0 in Js::InterpreterStackFrame::Process (this=0x7fffffffa240) at ChakraCore/lib/Runtime/Language/InterpreterStackFrame.cpp:3357
#6 0x0000555557a86e43 in Js::InterpreterStackFrame::InterpreterHelper (function=0x7ffff1f566e0, args=..., returnAddress=0x7ffff1d60fa2, addressOfReturnAddress=0x7fffffffad48, asmJsReturn=0x0) at ChakraCore/lib/Runtime/Language/InterpreterStackFrame.cpp:2051
#7 0x0000555557a84c23 in Js::InterpreterStackFrame::InterpreterThunk (layout=0x7fffffffad60) at ChakraCore/lib/Runtime/Language/InterpreterStackFrame.cpp:1763
#8 0x00007ffff1d60fa2 in ?? ()
#9 0x00007fffffffad70 in ?? ()
#10 0x0000555558ded02e in amd64_CallFunction () at ChakraCore/lib/Runtime/Library/amd64/JavascriptFunctionA.S:100
Backtrace stopped: frame did not save the PC
```
<sup>Found by [Fuzzinator](http://fuzzinator.readthedocs.io/) with [grammarinator](https://github.com/renatahodovan/grammarinator). </sup>
|
ASSERTION (!CrossSite::NeedMarshalVar(value, GetScriptContext())) failed in Js::InterpreterStackFrame::ValidateRegValue
|
https://api.github.com/repos/chakra-core/ChakraCore/issues/6038/comments
| 0 |
2019-03-16T16:20:40Z
|
2019-05-21T22:28:51Z
|
https://github.com/chakra-core/ChakraCore/issues/6038
| 421,825,455 | 6,038 |
[
"chakra-core",
"ChakraCore"
] |
Hello
I have validated that the test case for https://github.com/Microsoft/ChakraCore/issues/5985 runs correctly with a Debug version of ChakraCore and the small test case but there still seems to be something wrong when running against our tests and still receiving the following:
```
ASSERTION 2257: (/Users/Jimmy/websharp/projects/ChakraCore/lib/Backend/IRBuilderAsmJs.cpp, line 1044) !IsLoopBody() || offset <= GetLoopBodyExitInstrOffset()
Failure: (!IsLoopBody() || offset <= GetLoopBodyExitInstrOffset())
Illegal instruction: 4
```
Not sure how to create a small repo of this either. Is there some way to help narrow this down even further?
|
[WebAssembly] ASSERTION 2257: ChakraCore v1.11.7
|
https://api.github.com/repos/chakra-core/ChakraCore/issues/6037/comments
| 12 |
2019-03-15T14:42:06Z
|
2019-04-17T16:29:28Z
|
https://github.com/chakra-core/ChakraCore/issues/6037
| 421,552,696 | 6,037 |
[
"chakra-core",
"ChakraCore"
] |
If a user overrides the `Symbol.toPrimitive` property of a symbol object (an object that wraps a symbol primitive), the overridden method should be called.
```
eshost -e '(() => { var s = Object(Symbol()); Object.defineProperty(s, Symbol.toPrimitive, { value: function() { return 1 } }); return s * 5; })()'
```
```js
var s = Object(Symbol());
Object.defineProperty(s, Symbol.toPrimitive, {
value: function() { return 1 }
});
console.log(s * 5);
```
```
#### ch
TypeError: Number expected
#### jsc
5
#### v8
5
#### sm
5
#### xs
5
```
See [JavascriptConversion](https://github.com/Microsoft/ChakraCore/blob/e6e25c3a5ec0f4d2bda13eb6f9b06550d91daddb/lib/Runtime/Language/JavascriptConversion.cpp#L378).
|
Overriding toPrimitive does not work for Symbol objects
|
https://api.github.com/repos/chakra-core/ChakraCore/issues/6036/comments
| 0 |
2019-03-14T22:59:52Z
|
2019-05-21T20:21:51Z
|
https://github.com/chakra-core/ChakraCore/issues/6036
| 421,282,102 | 6,036 |
[
"chakra-core",
"ChakraCore"
] |
[jsvu](https://github.com/GoogleChromeLabs/jsvu) downloads ChakraCore from GitHub releases and has used the link `osx_x64` as the operating system link 1.11.6 and previous.
Example: `https://aka.ms/chakracore/cc_osx_x64_1_11_6`
The new link for the mac os version is now: `https://aka.ms/chakracore/cc_osx_64_1_11_7`
Is there anyway we can keep these links consistent?
jsvu issue: https://github.com/GoogleChromeLabs/jsvu/issues/63
|
ChakraCore 1.11.7 download broken on jsvu due to mac file link
|
https://api.github.com/repos/chakra-core/ChakraCore/issues/6034/comments
| 4 |
2019-03-14T05:49:19Z
|
2019-03-15T04:18:01Z
|
https://github.com/chakra-core/ChakraCore/issues/6034
| 420,842,194 | 6,034 |
[
"chakra-core",
"ChakraCore"
] |
###### ChakraCore version:
```
Checked revision: 62d3d1163
Build command: ./build.sh --debug
```
###### OS:
```
Linux-4.15.0-43-generic-x86_64-with-Ubuntu-18.04-bionic
```
###### Test case:
```js
var all = [ ]
function AsmModuleDouble ( ) {
function LtFloat ( ) {}
function GeFloat ( ) {
if (Promise == 91)
while (1) $ = 0
}
return { $ : LtFloat , Ge : GeFloat }
}
var asmModuleDouble = AsmModuleDouble();
for ( var i ; ; ) {
for ( var j ; ; ) {
print( 0 + i + 0 + all [ i ] + 0 + j + 0 + all [ j ] + 0 + (asmModuleDouble.Ge() ) );
}
}
```
###### Backtrace:
```text
0x00007ffff2bf24ff in LinearScan::SpillInlineeArgs(IR::Instr*)::$_3::operator()(unsigned int, Lifetime*) const (
this=0x7ff7f16926b0, i=0, lifetime=0x7ff7f0646db0) at ChakraCore/lib/Backend/LinearScan.cpp:3408
3408 Assert(lifetime->start < instr->GetNumber() && lifetime->end >= instr->GetNumber());
(gdb) bt
#0 0x00007ffff2bf24ff in LinearScan::SpillInlineeArgs(IR::Instr*)::$_3::operator()(unsigned int, Lifetime*) const (
this=0x7ff7f16926b0, i=0, lifetime=0x7ff7f0646db0) at ChakraCore/lib/Backend/LinearScan.cpp:3408
#1 0x00007ffff2bf23f9 in JsUtil::List<Lifetime*, Memory::JitArenaAllocator, false, Js::CopyRemovePolicy, DefaultComparer>::MapFrom<LinearScan::SpillInlineeArgs(IR::Instr*)::$_3>(int, LinearScan::SpillInlineeArgs(IR::Instr*)::$_3) const (this=0x7ff7f05d14b0,
start=0, map=...) at ChakraCore/lib/Common/DataStructures/List.h:564
#2 0x00007ffff2bee52f in JsUtil::List<Lifetime*, Memory::JitArenaAllocator, false, Js::CopyRemovePolicy, DefaultComparer>::Map<LinearScan::SpillInlineeArgs(IR::Instr*)::$_3>(LinearScan::SpillInlineeArgs(IR::Instr*)::$_3) const (this=0x7ff7f05d14b0, map=...)
at ChakraCore/lib/Common/DataStructures/List.h:542
#3 0x00007ffff2beac4a in LinearScan::SpillInlineeArgs (this=0x7ff7f1693198, instr=0x7ff7f0687af0)
at ChakraCore/lib/Backend/LinearScan.cpp:3407
#4 0x00007ffff2be18ab in LinearScan::KillImplicitRegs (this=0x7ff7f1693198, instr=0x7ff7f0687af0)
at ChakraCore/lib/Backend/LinearScan.cpp:3363
#5 0x00007ffff2bda49a in LinearScan::RegAlloc (this=0x7ff7f1693198)
at ChakraCore/lib/Backend/LinearScan.cpp:275
#6 0x00007ffff2963f63 in Func::TryCodegen (this=0x7ff7f1693ee0) at ChakraCore/lib/Backend/Func.cpp:493
#7 0x00007ffff2963425 in Func::Codegen (alloc=0x7ff7f16944e0, workItem=0x7ff7f0671030, threadContextInfo=0x5555561837b8,
scriptContextInfo=0x5555561b2da8, outputData=0x7ff7f16949e0, epInfo=0x7ffff7ef3280, runtimeInfo=0x0,
polymorphicInlineCacheInfo=0x7ffff7e0cde0, codeGenAllocators=0x5555561b7608, codeGenProfiler=0x0, isBackgroundJIT=true)
at ChakraCore/lib/Backend/Func.cpp:323
#8 0x00007ffff2ce0309 in NativeCodeGenerator::CodeGen (this=0x5555561b47f8, pageAllocator=0x55555586e5e8,
workItemData=0x5555561cef60, jitWriteData=..., foreground=false, epInfo=0x7ffff7ef3280)
at ChakraCore/lib/Backend/NativeCodeGenerator.cpp:894
#9 0x00007ffff2ce2030 in NativeCodeGenerator::CodeGen (this=0x5555561b47f8, pageAllocator=0x55555586e5e8, workItem=
0x5555561cef38, foreground=false) at ChakraCore/lib/Backend/NativeCodeGenerator.cpp:1011
#10 0x00007ffff2ce4fa9 in NativeCodeGenerator::Process (this=0x5555561b47f8, job=0x5555561cef40, threadData=0x55555586e5c8)
at ChakraCore/lib/Backend/NativeCodeGenerator.cpp:1895
#11 0x00007ffff2d82be1 in JsUtil::BackgroundJobProcessor::Process (this=0x5555561b4968, job=0x5555561cef40,
threadData=0x55555586e5c8) at ChakraCore/lib/Common/Common/Jobs.cpp:1037
#12 0x00007ffff2d831fe in JsUtil::BackgroundJobProcessor::Run (this=0x5555561b4968, threadData=0x55555586e5c8)
at ChakraCore/lib/Common/Common/Jobs.cpp:1135
#13 0x00007ffff2d8052e in JsUtil::BackgroundJobProcessor::StaticThreadProc (lpParam=0x55555586e5c8)
at ChakraCore/lib/Common/Common/Jobs.cpp:1319
#14 0x00007ffff279b811 in CorUnix::CPalThread::ThreadEntry (pvParam=0x5555561b50e0)
at ChakraCore/pal/src/thread/pal_thread.cpp:1605
#15 0x00007ffff73656db in start_thread (arg=0x7ff7f1695700) at pthread_create.c:463
#16 0x00007ffff654b88f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95
```
<sup>Found by [Fuzzinator](http://fuzzinator.readthedocs.io/) with [grammarinator](https://github.com/renatahodovan/grammarinator). </sup>
|
ASSERTION (lifetime->start < instr->GetNumber() && lifetime->end >= instr->GetNumber()) failed in LinearScan::SpillInlineeArgs(IR::Instr*)::$_3::operator
|
https://api.github.com/repos/chakra-core/ChakraCore/issues/6033/comments
| 1 |
2019-03-13T16:54:33Z
|
2019-11-30T01:11:45Z
|
https://github.com/chakra-core/ChakraCore/issues/6033
| 420,610,674 | 6,033 |
[
"chakra-core",
"ChakraCore"
] |
The debug build crashes with assertion failure at lib/Runtime/Library/JSONParser.cpp:163.
PoC:
```
JSON.parse('["first", null]', function (_, _) {
this[1] = arguments;
});
```
Commit: 62d3d11
Build Option: None
OS: Ubuntu 18.04.1 LTS
Arch: x86_64
|
Assertion failure at lib/Runtime/Library/JSONParser.cpp:163
|
https://api.github.com/repos/chakra-core/ChakraCore/issues/6032/comments
| 0 |
2019-03-13T14:17:53Z
|
2019-04-08T17:30:32Z
|
https://github.com/chakra-core/ChakraCore/issues/6032
| 420,524,647 | 6,032 |
[
"chakra-core",
"ChakraCore"
] |
The debug build crashes with assertion failure at lib/Runtime/Library/JavascriptArray.cpp:5766.
PoC:
```
const var_0 = new Uint8Array([1, 2, 3, 4]);
Object.defineProperty(var_0, 'length', { value: 4398046507008 });
Array.prototype.reverse.call(var_0);
```
Commit: 62d3d11
Build Option: None
OS: Ubuntu 18.04.1 LTS
Arch: x86_64
|
Assertion failure at lib/Runtime/Library/JavascriptArray.cpp:5766
|
https://api.github.com/repos/chakra-core/ChakraCore/issues/6031/comments
| 0 |
2019-03-13T14:07:07Z
|
2019-03-26T20:57:44Z
|
https://github.com/chakra-core/ChakraCore/issues/6031
| 420,518,933 | 6,031 |
[
"chakra-core",
"ChakraCore"
] |
After the new release of 1.11.7 the version link at https://aka.ms/chakracore/version still references 1.11.6.
Could this be updated so the most recent version can be installed?
|
Update release version link still points to 1.11.6
|
https://api.github.com/repos/chakra-core/ChakraCore/issues/6030/comments
| 1 |
2019-03-13T12:35:14Z
|
2019-03-13T15:19:09Z
|
https://github.com/chakra-core/ChakraCore/issues/6030
| 420,476,157 | 6,030 |
[
"chakra-core",
"ChakraCore"
] |
Windows 1809 OS Build 17763.348
Steps to reproduce:
Run the following script in Browser console
```javascript
['fi-FI', 'et-EE', 'en-GB', 'en-US', 'es-ES', 'nl-NL', 'it-IT', 'nb-NO', 'pt', 'pl-PL', 'fr-FR', 'de-DE', 'ru-RU'].forEach(function (lng) {
console.log(lng, 'FORMATS');
var tester = new Intl.NumberFormat(lng, {
style: 'currency',
currency: 'EUR',
minimumFractionDigits: 3
});
[0.01222, 10000.12345, 10000.23456, 100000.345678, 1.456789, 1.56789].forEach(function (number) {
console.log(tester.format(number));
});
});
```
Microsoft Edge 44.17763.1.0
Microsoft EdgeHTML 18.17763
output:
```
fi-FI FORMATS
0,01 €
10 000,12 €
10 000,23 €
100 000,35 €
1,46 €
1,57 €
et-EE FORMATS
0,01 €
10 000,12 €
10 000,23 €
100 000,35 €
1,46 €
1,57 €
en-GB FORMATS
€0.01
€10,000.12
€10,000.23
€100,000.35
€1.46
€1.57
en-US FORMATS
€0.01
€10,000.12
€10,000.23
€100,000.35
€1.46
€1.57
es-ES FORMATS
0,01 €
10.000,12 €
10.000,23 €
100.000,35 €
1,46 €
1,57 €
nl-NL FORMATS
€ 0,01
€ 10.000,12
€ 10.000,23
€ 100.000,35
€ 1,46
€ 1,57
it-IT FORMATS
0,01 €
10.000,12 €
10.000,23 €
100.000,35 €
1,46 €
1,57 €
nb-NO FORMATS
€ 0,01
€ 10 000,12
€ 10 000,23
€ 100 000,35
€ 1,46
€ 1,57
pt FORMATS
€ 0,01
€ 10.000,12
€ 10.000,23
€ 100.000,35
€ 1,46
€ 1,57
pl-PL FORMATS
0,01 €
10 000,12 €
10 000,23 €
100 000,35 €
1,46 €
1,57 €
fr-FR FORMATS
0,01 €
10 000,12 €
10 000,23 €
100 000,35 €
1,46 €
1,57 €
de-DE FORMATS
0,01 €
10.000,12 €
10.000,23 €
100.000,35 €
1,46 €
1,57 €
ru-RU FORMATS
0,01 €
10 000,12 €
10 000,23 €
100 000,35 €
1,46 €
1,57 €
```
Firefox
```
fi-FI FORMATS
0,012 €
10 000,123 €
10 000,235 €
100 000,346 €
1,457 €
1,568 €
et-EE FORMATS
0,012 €
10 000,123 €
10 000,235 €
100 000,346 €
1,457 €
1,568 €
en-GB FORMATS
€0.012
€10,000.123
€10,000.235
€100,000.346
€1.457
€1.568
en-US FORMATS
€0.012
€10,000.123
€10,000.235
€100,000.346
€1.457
€1.568
es-ES FORMATS
0,012 €
10.000,123 €
10.000,235 €
100.000,346 €
1,457 €
1,568 €
nl-NL FORMATS
€ 0,012
€ 10.000,123
€ 10.000,235
€ 100.000,346
€ 1,457
€ 1,568
it-IT FORMATS
0,012 €
10.000,123 €
10.000,235 €
100.000,346 €
1,457 €
1,568 €
nb-NO FORMATS
€ 0,012
€ 10 000,123
€ 10 000,235
€ 100 000,346
€ 1,457
€ 1,568
pt FORMATS
€ 0,012
€ 10.000,123
€ 10.000,235
€ 100.000,346
€ 1,457
€ 1,568
pl-PL FORMATS
0,012 €
10 000,123 €
10 000,235 €
100 000,346 €
1,457 €
1,568 €
fr-FR FORMATS
0,012 €
10 000,123 €
10 000,235 €
100 000,346 €
1,457 €
1,568 €
de-DE FORMATS
0,012 €
10.000,123 €
10.000,235 €
100.000,346 €
1,457 €
1,568 €
ru-RU FORMATS
0,012 €
10 000,123 €
10 000,235 €
100 000,346 €
1,457 €
1,568 €
```
Chrome
```
fi-FI FORMATS
0,012 €
10 000,123 €
10 000,235 €
100 000,346 €
1,457 €
1,568 €
et-EE FORMATS
0,012 €
10 000,123 €
10 000,235 €
100 000,346 €
1,457 €
1,568 €
en-GB FORMATS
€0.012
€10,000.123
€10,000.235
€100,000.346
€1.457
€1.568
en-US FORMATS
€0.012
€10,000.123
€10,000.235
€100,000.346
€1.457
€1.568
es-ES FORMATS
0,012 €
10.000,123 €
10.000,235 €
100.000,346 €
1,457 €
1,568 €
nl-NL FORMATS
€ 0,012
€ 10.000,123
€ 10.000,235
€ 100.000,346
€ 1,457
€ 1,568
it-IT FORMATS
0,012 €
10.000,123 €
10.000,235 €
100.000,346 €
1,457 €
1,568 €
nb-NO FORMATS
€ 0,012
€ 10 000,123
€ 10 000,235
€ 100 000,346
€ 1,457
€ 1,568
pt FORMATS
€ 0,012
€ 10.000,123
€ 10.000,235
€ 100.000,346
€ 1,457
€ 1,568
pl-PL FORMATS
0,012 €
10 000,123 €
10 000,235 €
100 000,346 €
1,457 €
1,568 €
fr-FR FORMATS
0,012 €
10 000,123 €
10 000,235 €
100 000,346 €
1,457 €
1,568 €
de-DE FORMATS
0,012 €
10.000,123 €
10.000,235 €
100.000,346 €
1,457 €
1,568 €
ru-RU FORMATS
0,012 €
10 000,123 €
10 000,235 €
100 000,346 €
1,457 €
1,568 €
```
In the previous version it worked correctly:
Microsoft EdgeHTML 17.17134
Microsoft Edge 42.17134.1.0
Windows version 1803 OS build 17134.590
```
fi-FIFORMATS
0,012 €
10 000,123 €
10 000,235 €
100 000,346 €
1,457 €
1,568 €
et-EEFORMATS
0,012 €
10 000,123 €
10 000,235 €
100 000,346 €
1,457 €
1,568 €
en-GBFORMATS
€0.012
€10,000.123
€10,000.235
€100,000.346
€1.457
€1.568
en-USFORMATS
€0.012
€10,000.123
€10,000.235
€100,000.346
€1.457
€1.568
es-ESFORMATS
0,012 €
10.000,123 €
10.000,235 €
100.000,346 €
1,457 €
1,568 €
nl-NLFORMATS
€ 0,012
€ 10.000,123
€ 10.000,235
€ 100.000,346
€ 1,457
€ 1,568
it-ITFORMATS
0,012 €
10.000,123 €
10.000,235 €
100.000,346 €
1,457 €
1,568 €
nb-NOFORMATS
€ 0,012
€ 10 000,123
€ 10 000,235
€ 100 000,346
€ 1,457
€ 1,568
ptFORMATS
€ 0,012
€ 10.000,123
€ 10.000,235
€ 100.000,346
€ 1,457
€ 1,568
pl-PLFORMATS
0,012 €
10 000,123 €
10 000,235 €
100 000,346 €
1,457 €
1,568 €
fr-FRFORMATS
0,012 €
10 000,123 €
10 000,235 €
100 000,346 €
1,457 €
1,568 €
de-DEFORMATS
0,012 €
10.000,123 €
10.000,235 €
100.000,346 €
1,457 €
1,568 €
ru-RUFORMATS
0,012 €
10 000,123 €
10 000,235 €
100 000,346 €
1,457 €
1,568 €
```
This could be related https://github.com/Microsoft/ChakraCore/issues/5842 but its not fixed, this works in all other browsers but Edge
|
Microsoft Edge 18 Intl.NumberFormat formats currency with more than 2 digits incorrectly
|
https://api.github.com/repos/chakra-core/ChakraCore/issues/6029/comments
| 1 |
2019-03-13T12:20:47Z
|
2020-03-26T22:50:47Z
|
https://github.com/chakra-core/ChakraCore/issues/6029
| 420,470,179 | 6,029 |
[
"chakra-core",
"ChakraCore"
] |
The debug build crashes with assertion failure at lib/Backend/SccLiveness.cpp:570.
The release build also crashes with segfault due to null dereference.
PoC:
```
(function () {
let var_0 = 200;
let var_1;
let var_2 = new Uint8Array(400);
while(true){
for (var_1 = 274; var_1 > var_0 + 1; var_1--) {
var_2[var_1] = 3;
}
let var_4 = new Int16Array(450);
for (var_1 = 100; var_1 < var_0; var_1++) {
var_4[var_1] = -7;
}
var_1 = 100;
}
})();
```
Commit: 62d3d11
Build Option: None
OS: Ubuntu 18.04.1 LTS
Arch: x86_64
|
Assertion failure at lib/Backend/SccLiveness.cpp:570
|
https://api.github.com/repos/chakra-core/ChakraCore/issues/6028/comments
| 1 |
2019-03-13T11:41:36Z
|
2019-04-18T22:37:28Z
|
https://github.com/chakra-core/ChakraCore/issues/6028
| 420,454,691 | 6,028 |
[
"chakra-core",
"ChakraCore"
] |
Why only an ExternalObject can carry a void* pointer instead of Object? When I implement a constructor function for c++ class , I need to put a c++ object pointer to js-this (which is an Object).
```javascript
let foo = new Bar();
```
```C++
JsValueRef Bar( JsValueRef callee, bool isNew, JsValueRef * args, uint16_t argc, void * data ) {
if( !isNew) { ... } // throw js exception
JsValueRef js_this = args[0]; // js_this is just an Object
// so, I can't set c++ pointer to js_this
CxxBar * bar = new CxxBar();
JsSetExternalData(js_this, bar); // Error!
JsObjectBeforeCollectCallback(.....);
}
```
Can anyone give me a good suggestion to implement the constructor of the Native class?
|
Why only an External-Object can carry a void* pointer instead of Object?
|
https://api.github.com/repos/chakra-core/ChakraCore/issues/6027/comments
| 3 |
2019-03-13T11:07:36Z
|
2019-03-22T17:04:05Z
|
https://github.com/chakra-core/ChakraCore/issues/6027
| 420,440,963 | 6,027 |
[
"chakra-core",
"ChakraCore"
] |
The debug build crashes with assertion failure at lib/Runtime/Language/DynamicProfileInfo.cpp:1255.
The release build also crashes with segfault.
PoC:
```
func_0();
async function func_0() {
for (;;) {
await WScript.Attach(func_0);
[];
}
}
```
Commit: 62d3d11
Build Option: None
OS: Ubuntu 18.04.1 LTS
Arch: x86_64
|
Assertion failure at lib/Runtime/Language/DynamicProfileInfo.cpp:1255
|
https://api.github.com/repos/chakra-core/ChakraCore/issues/6026/comments
| 0 |
2019-03-13T08:06:28Z
|
2019-03-26T20:58:37Z
|
https://github.com/chakra-core/ChakraCore/issues/6026
| 420,365,275 | 6,026 |
[
"chakra-core",
"ChakraCore"
] |
The debug build crashes with assertion failure at lib/Runtime/Language/InlineCache.cpp:571.
PoC:
```
func_0();
async function func_0(){
for(;;){
await WScript.Attach(func_0);
}
}
```
Commit: 62d3d11
Build Option: None
OS: Ubuntu 18.04.1 LTS
Arch: x86_64
|
Assertion failure at lib/Runtime/Language/InlineCache.cpp:571
|
https://api.github.com/repos/chakra-core/ChakraCore/issues/6025/comments
| 0 |
2019-03-13T07:50:54Z
|
2019-03-26T20:58:14Z
|
https://github.com/chakra-core/ChakraCore/issues/6025
| 420,360,466 | 6,025 |
[
"chakra-core",
"ChakraCore"
] |
The debug build crashes with segfault or assertion failure at lib/Common/Memory/RecyclerRootPtr.h:18.
The release build also crashes with segfault.
PoC:
```
```
Commit: 62d3d11
Build Option: None
OS: Ubuntu 18.04.1 LTS
Arch: x86_64
|
Assertion failure at lib/Common/Memory/RecyclerRootPtr.h:18
|
https://api.github.com/repos/chakra-core/ChakraCore/issues/6024/comments
| 1 |
2019-03-13T07:27:30Z
|
2019-03-27T12:13:14Z
|
https://github.com/chakra-core/ChakraCore/issues/6024
| 420,353,258 | 6,024 |
[
"chakra-core",
"ChakraCore"
] |
The debug build crashes with assertion failure at lib/Runtime/Base/FunctionBody.h:2969.
PoC:
```
function func_0(a = 1, b = function () {return a;}) {
var arguments;
}
WScript.Attach(func_0);
```
Commit: 62d3d11
Build Option: None
OS: Ubuntu 18.04.1 LTS
Arch: x86_64
|
Assertion failure at lib/Runtime/Base/FunctionBody.h:2969
|
https://api.github.com/repos/chakra-core/ChakraCore/issues/6023/comments
| 0 |
2019-03-13T06:38:44Z
|
2019-06-04T00:13:35Z
|
https://github.com/chakra-core/ChakraCore/issues/6023
| 420,340,036 | 6,023 |
[
"chakra-core",
"ChakraCore"
] |
I've hit a bug in Edge with WebAssembly; the following code snippet:
```
static void writeTriangle(void* destination, size_t offset, size_t index_size, unsigned int a, unsigned int b, unsigned int c)
{
if (index_size == 2)
{
static_cast<unsigned short*>(destination)[offset + 0] = (unsigned short)(a);
static_cast<unsigned short*>(destination)[offset + 1] = (unsigned short)(b);
static_cast<unsigned short*>(destination)[offset + 2] = (unsigned short)(c);
}
else
{
static_cast<unsigned int*>(destination)[offset + 0] = a;
static_cast<unsigned int*>(destination)[offset + 1] = b;
static_cast<unsigned int*>(destination)[offset + 2] = c;
}
}
```
When compiled with Emscripten to WebAssembly, works correctly in Chrome and Firefox, but doesn't work correctly in Edge - when `index_size` is 4, the code seems to still take the `if` branch instead of `else` branch (or something along these lines - I am not able to debug the resulting native code). Adding a check for `index_size == 4` to the `else` branch works around the issue.
Apologies for a somewhat high level bug report, I'm not quite sure how to reproduce this on a smaller example... The WebAssembly file in question is pretty small though.
This commit applies the workaround:
https://github.com/zeux/meshoptimizer/commit/a9d60cffcdd8bbbf0d2137861af61c620637221e
The easiest way to reproduce is to check out the parent of this commit, replace `demo/pirate.optmesh` with https://github.com/zeux/nyra/blob/master/nyra.optmesh, and open `demo/index.html` in Edge - due to CORS this needs a local web server, Python http.server will do. The mesh will be mangled due to incorrect index decoding:

Chrome and Firefox display the mesh properly:

Attached is a ,zip file with raw .wasm files before (bad) and after (good) the workaround as well as their (wasm) disassembly.
[meshoptimizer.zip](https://github.com/Microsoft/ChakraCore/files/2960037/meshoptimizer.zip)
|
A branch in WebAssembly code is miscompiled
|
https://api.github.com/repos/chakra-core/ChakraCore/issues/6022/comments
| 4 |
2019-03-13T06:32:57Z
|
2020-02-25T02:32:35Z
|
https://github.com/chakra-core/ChakraCore/issues/6022
| 420,338,464 | 6,022 |
[
"chakra-core",
"ChakraCore"
] |
Recently you add some new code here:https://github.com/Microsoft/ChakraCore/commit/c0c3de7acdc167ca93b689f7552a5a0fe4bc8be2#diff-368bbd31c6049b4faa033bbbc971ef0f
But there are some old win10 versions that does not support cfg(my test enviroment is 10.0.14393).
And when I build ch.exe, there is a fatal error that "no such file cfguard.h" ...etc
|
How to disable CFG in win10
|
https://api.github.com/repos/chakra-core/ChakraCore/issues/6021/comments
| 4 |
2019-03-13T05:47:08Z
|
2019-03-22T19:00:23Z
|
https://github.com/chakra-core/ChakraCore/issues/6021
| 420,327,453 | 6,021 |
[
"chakra-core",
"ChakraCore"
] |
The debug build crashes with assertion failure at lib/Runtime/Language/InterpreterLoop.inl:383.
PoC:
```
func_0(true);
async function func_0(notAttachCall) {
if (notAttachCall) {
await WScript.Attach(func_0);
} else {
[undefined] = [];
}
}
```
Commit: 62d3d11
Build Option: None
OS: Ubuntu 18.04.1 LTS
Arch: x86_64
|
Assertion failure at lib/Runtime/Language/InterpreterLoop.inl:383
|
https://api.github.com/repos/chakra-core/ChakraCore/issues/6020/comments
| 0 |
2019-03-13T05:11:04Z
|
2019-06-04T00:13:49Z
|
https://github.com/chakra-core/ChakraCore/issues/6020
| 420,320,144 | 6,020 |
[
"chakra-core",
"ChakraCore"
] |
###### ChakraCore version:
```
Checked revision: a247f4f3c
Build command: ./build.sh --debug
```
###### OS:
```
Linux-4.15.0-43-generic-x86_64-with-Ubuntu-18.04-bionic
```
###### Test case:
```js
function MyRepl($) {
$.substring($, WScript.LoadScript(0, "samethread"))
}
var str = String("asdfasdfGg");
WScript(str.replace(/d/g, MyRepl));
```
###### Backtrace:
```text
ASSERTION 9928: (ChakraCore/lib/Runtime/Language/JavascriptOperators.cpp, line 10952) !VarIs<RecyclableObject>(instance) ? TRUE : ((RecyclableObject*)instance)->GetScriptContext()->GetLibrary() == library
Failure: (!VarIs<RecyclableObject>(instance) ? 1 : ((RecyclableObject*)instance)->GetScriptContext()->GetLibrary() == library)
Thread 1 "ch" received signal SIGILL, Illegal instruction.
0x00007ffff35dc30f in Js::JavascriptOperators::IsUndefinedObject (instance=0x7ffff7f04420, library=0x7ffff7f18000)
at ChakraCore/lib/Runtime/Language/JavascriptOperators.cpp:10952
10952 Assert(!VarIs<RecyclableObject>(instance) ? TRUE : ((RecyclableObject*)instance)->GetScriptContext()->GetLibrary() == library );
(gdb) bt
#0 0x00007ffff35dc30f in Js::JavascriptOperators::IsUndefinedObject (instance=0x7ffff7f04420, library=0x7ffff7f18000)
at ChakraCore/lib/Runtime/Language/JavascriptOperators.cpp:10952
#1 0x00007ffff35dc950 in Js::JavascriptOperators::IsUndefinedObject (instance=0x7ffff7f04420, scriptContext=0x5555561b2a88)
at ChakraCore/lib/Runtime/Language/JavascriptOperators.cpp:10947
#2 0x00007ffff39d9185 in Js::JavascriptString::EntrySubstring (function=0x7ffff7eaf440, callInfo=...)
at ChakraCore/lib/Runtime/Library/JavascriptString.cpp:1949
#3 0x00007ffff3ab445e in amd64_CallFunction ()
at ChakraCore/lib/Runtime/Library/amd64/JavascriptFunctionA.S:100
#4 0x00007ffff37c06ee in Js::JavascriptFunction::CallFunction<true> (function=0x7ffff7eaf440,
entryPoint=0x7ffff39d8e80 <Js::JavascriptString::EntrySubstring(Js::RecyclableObject*, Js::CallInfo, ...)>, args=...,
useLargeArgCount=false) at ChakraCore/lib/Runtime/Library/JavascriptFunction.cpp:1342
#5 0x00007ffff3583d4c in Js::InterpreterStackFrame::OP_CallCommon<Js::OpLayoutDynamicProfile<Js::OpLayoutT_CallIWithICIndex<Js::LayoutSizePolicy<(Js::LayoutSize)0> > > __unaligned>(Js::OpLayoutDynamicProfile<Js::OpLayoutT_CallIWithICIndex<Js::LayoutSizePolicy<(Js::LayoutSize)0> > > __unaligned const __unaligned*, Js::RecyclableObject*, unsigned int, Js::AuxArray<unsigned int> const*) (
this=0x7fffffff81c0, playout=0x7ffff7f4d44c, function=0x7ffff7eaf440, flags=16, spreadIndices=0x0)
at ChakraCore/lib/Runtime/Language/InterpreterStackFrame.cpp:3858
#6 0x00007ffff35838ae in Js::InterpreterStackFrame::OP_ProfileCallCommon<Js::OpLayoutDynamicProfile<Js::OpLayoutT_CallIWithICIndex<Js::LayoutSizePolicy<(Js::LayoutSize)0> > > __unaligned>(Js::OpLayoutDynamicProfile<Js::OpLayoutT_CallIWithICIndex<Js::LayoutSizePolicy<(Js::LayoutSize)0> > > __unaligned const __unaligned*, Js::RecyclableObject*, unsigned int, unsigned short, unsigned int, Js::AuxArray<unsigned int> const*) (this=0x7fffffff81c0, playout=0x7ffff7f4d44c, function=0x7ffff7eaf440, flags=0, profileId=0,
inlineCacheIndex=0, spreadIndices=0x0) at ChakraCore/lib/Runtime/Language/InterpreterStackFrame.cpp:3902
#7 0x00007ffff354be58 in Js::InterpreterStackFrame::OP_ProfiledCallIWithICIndex<Js::OpLayoutT_CallIWithICIndex<Js::LayoutSizePolicy<(Js::LayoutSize)0> > >(Js::OpLayoutDynamicProfile<Js::OpLayoutT_CallIWithICIndex<Js::LayoutSizePolicy<(Js::LayoutSize)0> > > const __unaligned*) (this=0x7fffffff81c0, playout=0x7ffff7f4d44c)
at ChakraCore/lib/Runtime/./Language/InterpreterStackFrame.h:503
#8 0x00007ffff33fbed6 in Js::InterpreterStackFrame::ProcessProfiled (this=0x7fffffff81c0)
at ChakraCore/lib/Runtime/Language/InterpreterHandler.inl:87
#9 0x00007ffff338d59d in Js::InterpreterStackFrame::Process (this=0x7fffffff81c0)
at ChakraCore/lib/Runtime/Language/InterpreterStackFrame.cpp:3357
#10 0x00007ffff338c307 in Js::InterpreterStackFrame::InterpreterHelper (function=0x7ffff7f066e0, args=...,
returnAddress=0x7ffff7e60f9a, addressOfReturnAddress=0x7fffffff8728, asmJsReturn=0x0)
at ChakraCore/lib/Runtime/Language/InterpreterStackFrame.cpp:2051
#11 0x00007ffff338b4d8 in Js::InterpreterStackFrame::InterpreterThunk (layout=0x7fffffff8740)
at ChakraCore/lib/Runtime/Language/InterpreterStackFrame.cpp:1763
#12 0x00007ffff7e60f9a in ?? ()
#13 0x00007fffffff8770 in ?? ()
#14 0x00007ffff3ab445e in amd64_CallFunction ()
at ChakraCore/lib/Runtime/Library/amd64/JavascriptFunctionA.S:100
```
<sup>Found by [Fuzzinator](http://fuzzinator.readthedocs.io/) with [grammarinator](https://github.com/renatahodovan/grammarinator). </sup>
|
ASSERTION (!VarIs<RecyclableObject>(instance) ? 1 : ((RecyclableObject*)instance)->GetScriptContext()->GetLibrary() == library) failed in Js::JavascriptOperators::IsUndefinedObject
|
https://api.github.com/repos/chakra-core/ChakraCore/issues/6015/comments
| 2 |
2019-03-12T10:24:02Z
|
2019-03-12T18:03:31Z
|
https://github.com/chakra-core/ChakraCore/issues/6015
| 419,907,287 | 6,015 |
[
"chakra-core",
"ChakraCore"
] |
###### ChakraCore version:
```
Checked revision: a247f4f3c
Build command: ./build.sh --debug
```
###### OS:
```
Linux-4.15.0-43-generic-x86_64-with-Ubuntu-18.04-bionic
```
###### Test case:
```js
var obj = {};
Object.defineProperty(obj, "test", {
get: function() {
delete obj.test;
obj.test = 0;
return Object.create(this)
},
configurable: true
});
WScript(obj.test);
```
###### Backtrace:
```text
ASSERTION 15161: (ChakraCore/lib/Runtime/Language/JavascriptOperators.cpp, line 1931) skipAssert || value == nullptr || *value == property
Failure: (skipAssert || value == nullptr || *value == property)
Thread 1 "ch" received signal SIGILL, Illegal instruction.
0x00007ffff35e0c90 in Js::JavascriptOperators::GetProperty_Internal<false> (instance=0x7ffff7ea52a0, propertyObject=
0x7ffff7ea52a0, isRoot=false, propertyId=346, value=0x7fffffff8fd8, requestContext=0x5555561b2ac8, info=0x7fffffff9028)
at ChakraCore/lib/Runtime/Language/JavascriptOperators.cpp:1931
1931 Assert(skipAssert || value == nullptr || *value == property);
(gdb) bt
#0 0x00007ffff35e0c90 in Js::JavascriptOperators::GetProperty_Internal<false> (instance=0x7ffff7ea52a0,
propertyObject=0x7ffff7ea52a0, isRoot=false, propertyId=346, value=0x7fffffff8fd8, requestContext=0x5555561b2ac8,
info=0x7fffffff9028) at ChakraCore/lib/Runtime/Language/JavascriptOperators.cpp:1931
#1 0x00007ffff35b2503 in Js::JavascriptOperators::GetProperty (instance=0x7ffff7ea52a0, propertyObject=0x7ffff7ea52a0,
propertyId=346, value=0x7fffffff8fd8, requestContext=0x5555561b2ac8, info=0x7fffffff9028)
at ChakraCore/lib/Runtime/Language/JavascriptOperators.cpp:1830
#2 0x00007ffff35d3afa in Js::JavascriptOperators::GetProperty (instance=0x7ffff7ea52a0, propertyObject=0x7ffff7ea52a0,
propertyId=346, requestContext=0x5555561b2ac8, info=0x7fffffff9028)
at ChakraCore/lib/Runtime/Language/JavascriptOperators.cpp:11150
#3 0x00007ffff35d49e9 in Js::JavascriptOperators::PatchGetValueWithThisPtrNoFastPath (functionBody=0x7ffff7eab000,
inlineCache=0x7ffff7e88050, inlineCacheIndex=3, instance=0x7ffff7ea52a0, propertyId=346, thisInstance=0x7ffff7ea52a0)
at ChakraCore/lib/Runtime/Language/JavascriptOperators.cpp:8021
#4 0x00007ffff363f203 in Js::ProfilingHelpers::ProfiledLdFld<false, false, false> (instance=0x7ffff7ea52a0, propertyId=346,
inlineCache=0x7ffff7e88050, inlineCacheIndex=3, functionBody=0x7ffff7eab000, thisInstance=0x7ffff7ea52a0)
at ChakraCore/lib/Runtime/Language/ProfilingHelpers.cpp:995
#5 0x00007ffff35862e5 in Js::InterpreterStackFrame::ProfiledGetProperty<Js::OpLayoutT_ElementCP<Js::LayoutSizePolicy<(Js::LayoutSize)0> > const __unaligned, false, false, false>(Js::OpLayoutT_ElementCP<Js::LayoutSizePolicy<(Js::LayoutSize)0> > const __unaligned __unaligned*, void*) (this=0x7fffffffc410, playout=0x7ffff7e8706e, instance=0x7ffff7ea52a0)
at ChakraCore/lib/Runtime/Language/InterpreterStackFrame.cpp:4058
#6 0x00007ffff354c732 in Js::InterpreterStackFrame::OP_ProfiledGetProperty<Js::OpLayoutT_ElementCP<Js::LayoutSizePolicy<(Js::LayoutSize)0> > const __unaligned>(Js::OpLayoutT_ElementCP<Js::LayoutSizePolicy<(Js::LayoutSize)0> > const __unaligned __unaligned*) (
this=0x7fffffffc410, playout=0x7ffff7e8706e)
at ChakraCore/lib/Runtime/Language/InterpreterStackFrame.cpp:4231
#7 0x00007ffff3400d2c in Js::InterpreterStackFrame::ProcessProfiled (this=0x7fffffffc410)
at ChakraCore/lib/Runtime/Language/InterpreterHandler.inl:165
#8 0x00007ffff338d59d in Js::InterpreterStackFrame::Process (this=0x7fffffffc410)
at ChakraCore/lib/Runtime/Language/InterpreterStackFrame.cpp:3357
#9 0x00007ffff338c307 in Js::InterpreterStackFrame::InterpreterHelper (function=0x7ffff7f066e0, args=...,
returnAddress=0x7ffff7e60fa2, addressOfReturnAddress=0x7fffffffc978, asmJsReturn=0x0)
at ChakraCore/lib/Runtime/Language/InterpreterStackFrame.cpp:2051
#10 0x00007ffff338b4d8 in Js::InterpreterStackFrame::InterpreterThunk (layout=0x7fffffffc990)
at ChakraCore/lib/Runtime/Language/InterpreterStackFrame.cpp:1763
#11 0x00007ffff7e60fa2 in ?? ()
#12 0x00007fffffffc9a0 in ?? ()
#13 0x00007ffff3ab445e in amd64_CallFunction ()
at ChakraCore/lib/Runtime/Library/amd64/JavascriptFunctionA.S:100
```
<sup>Found by [Fuzzinator](http://fuzzinator.readthedocs.io/) with [grammarinator](https://github.com/renatahodovan/grammarinator). </sup>
|
ASSERTION (skipAssert || value == nullptr || *value == property) failed in Js::JavascriptOperators::GetProperty_Internal
|
https://api.github.com/repos/chakra-core/ChakraCore/issues/6010/comments
| 1 |
2019-03-11T20:14:26Z
|
2019-03-11T21:43:17Z
|
https://github.com/chakra-core/ChakraCore/issues/6010
| 419,662,328 | 6,010 |
[
"chakra-core",
"ChakraCore"
] |
the following js could cause a crash.
`
function a(){
a={a(){[b=>this]=0}};
}
`
|
crash
|
https://api.github.com/repos/chakra-core/ChakraCore/issues/6008/comments
| 2 |
2019-03-11T05:40:31Z
|
2019-03-12T20:08:29Z
|
https://github.com/chakra-core/ChakraCore/issues/6008
| 419,302,334 | 6,008 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.