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
[ "jerryscript-project", "jerryscript" ]
When JerryScript is compiled with `-Ofast`, `String.startsWith` won't work correctly anymore. This problem doesn't happen with lower optimization levels. **I noticed some functions in `ecma-builtin-helpers.c` are using `ecma_number_t` in for loops. Is this really necessary? Since `ecma_number_t` is defined as `double`, this can [cause some problems](https://stackoverflow.com/questions/16595668/any-risk-of-using-float-variables-as-loop-counters-and-their-fractional-incremen). I'm not sure if it's the case but I suspect it's related.** #### JerryScript revision 1a2c04763aba49f52b1537acd3730098c873511c #### Build platform `uname -a` ``` Linux (none) 5.19.14-x1000 #477 PREEMPT Wed Dec 7 04:29:41 CST 2022 mips GNU/Linux ``` `/proc/cpuinfo` ``` system type : X1000E machine : SudoMaker X1000 Nano EVB processor : 0 cpu model : Ingenic XBurst V4.15 FPU V0.0 BogoMIPS : 1197.05 wait instruction : yes microsecond timers : no tlb_entries : 32 extra interrupt vector : yes hardware watchpoint : yes, count: 1, address/irw mask: [0x0fff] isa : mips1 mips2 mips32r1 mips32r2 ASEs implemented : Options implemented : tlb 4kex 4k_cache fpu 32fpr prefetch mcheck ejtag llsc vtag_icache perf_cntr_intr_bit nan_legacy shadow register sets : 1 kscratch registers : 0 package : 0 core : 0 VCED exceptions : not available VCEI exceptions : not available ``` `gcc -v` ``` Using built-in specs. COLLECT_GCC=/data2/buildroot-2022.02.2-cle/output/host/bin/mipsel-buildroot-linux-gnu-gcc.br_real COLLECT_LTO_WRAPPER=/data2/buildroot-2022.02.2-cle/output/host/libexec/gcc/mipsel-buildroot-linux-gnu/11.3.0/lto-wrapper Target: mipsel-buildroot-linux-gnu Configured with: ./configure --prefix=/data2/buildroot-2022.02.2-cle/output/host --sysconfdir=/data2/buildroot-2022.02.2-cle/output/host/etc --enable-static --target=mipsel-buildroot-linux-gnu --with-sysroot=/data2/buildroot-2022.02.2-cle/output/host/mipsel-buildroot-linux-gnu/sysroot --enable-__cxa_atexit --with-gnu-ld --disable-libssp --disable-multilib --disable-decimal-float --with-gmp=/data2/buildroot-2022.02.2-cle/output/host --with-mpc=/data2/buildroot-2022.02.2-cle/output/host --with-mpfr=/data2/buildroot-2022.02.2-cle/output/host --with-pkgversion='Buildroot 2022.02.2' --with-bugurl=http://bugs.buildroot.net/ --without-zstd --disable-libquadmath --disable-libquadmath-support --enable-tls --enable-threads --without-isl --without-cloog --with-arch=mips32r2 --with-abi=32 --with-nan=legacy --with-fp-32=xx --enable-languages=c,c++ --with-build-time-tools=/data2/buildroot-2022.02.2-cle/output/host/mipsel-buildroot-linux-gnu/bin --enable-shared --disable-libgomp Thread model: posix Supported LTO compression algorithms: zlib gcc version 11.3.0 (Buildroot 2022.02.2) ``` #### Build steps ```cmake set(CFLAGS_COMMON -march=mips32r2 -mno-interlink-compressed -mno-shared -Ofast --param=l1-cache-size=16 --param=l1-cache-line-size=32 --param=l2-cache-size=128) add_compile_options(${CFLAGS_COMMON}) add_link_options(${CFLAGS_COMMON} -Wl,--gc-sections) set(JERRY_ERROR_MESSAGES ON CACHE BOOL "" FORCE) set(JERRY_LINE_INFO ON CACHE BOOL "" FORCE) set(JERRY_MEM_STATS ON CACHE BOOL "" FORCE) set(JERRY_CMDLINE OFF CACHE BOOL "" FORCE) set(JERRY_EXTERNAL_CONTEXT OFF CACHE BOOL "" FORCE) ``` #### Test case ```js s = "LV_PART_MAIN"; s.startsWith("LV_PART_"); ``` #### Output `false` #### Expected behavior `true`
String.startsWith fails with -Ofast
https://api.github.com/repos/jerryscript-project/jerryscript/issues/5042/comments
9
2023-02-11T20:02:31Z
2023-02-12T19:46:14Z
https://github.com/jerryscript-project/jerryscript/issues/5042
1,580,995,744
5,042
[ "jerryscript-project", "jerryscript" ]
# Version Version: 3.0.0 ( 1a2c047 ) # Execution steps /root/.jsvu/jerry Testcase.js # Testcase ``` var foo = function() { var s = "[0"; for (var i = 0; i < (128 << 10); i++) { s += "[0-9]"; } s += "]"; return eval(s); } var foo1 = foo(); print(foo1); ``` # Output ``` ICE: Assertion 'jmem_is_heap_pointer ((void *) uint_ptr)' failed at /root/js_engines/jerryscript/jerry-core/jmem/jmem-allocator.c(jmem_decompress_pointer):229. Error: ERR_FAILED_INTERNAL_ASSERTION ``` # Expected behavior Error: Out of stack space # Description There seems to be a lack of memory overflow detection, perhaps similar to circular calls [#5039](https://github.com/jerryscript-project/jerryscript/issues/5039), but ideally dead loops should be detected initially and memory overflow should be caught Hope jerryscript gets better and better Looking forward to your reply :)
Memory question under loop
https://api.github.com/repos/jerryscript-project/jerryscript/issues/5041/comments
0
2023-02-02T04:32:41Z
2023-02-02T04:32:41Z
https://github.com/jerryscript-project/jerryscript/issues/5041
1,567,303,227
5,041
[ "jerryscript-project", "jerryscript" ]
# Version Version: 3.0.0 ( 1a2c047 ) # Execution steps /root/.jsvu/jerry Testcase.js # Testcase ``` var foo = function(a, b = a) { function a() { return 2; } eval("assert(a() === 2)"); eval("assert(b === 1)"); }; var r0 = 1; var r1 = 1.4793169892429541; var CallingResult = foo(r0, r1); print(CallingResult); ``` # Output Script Error: assertion failed Aborted (core dumped) # Expected behavior ReferenceError: 'assert' is not defined # Description I'm not sure how assert handled and why jerry returned differently than the other compilers and why it's just Aborted and I'm dumped. Hope jerryscript gets better and better Looking forward to your reply :)
A question about assert
https://api.github.com/repos/jerryscript-project/jerryscript/issues/5040/comments
0
2023-02-01T17:53:47Z
2023-02-01T17:53:47Z
https://github.com/jerryscript-project/jerryscript/issues/5040
1,566,552,421
5,040
[ "jerryscript-project", "jerryscript" ]
# Version Version: 3.0.0 ( 1a2c047 ) # Execution steps /root/.jsvu/jerry Testcase.js # Testcase ``` var testcase = function() { function foo() { bar(); } function bar() { foo(); } foo(); }; var CallingResult = testcase(); print(CallingResult); ``` # Output Aborted (core dumped) # Expected behavior Error: Out of stack space # Description In my testing of the compiler, I discovered that jerryscript is Aborted (core dumped) when dealing with functions that are being called indefinitely, and other engines are dumping errors like Error: Out of stack space to warn the programmer Hope jerryscript gets better and better Looking forward to your reply :)
A loop-call error bug
https://api.github.com/repos/jerryscript-project/jerryscript/issues/5039/comments
0
2023-02-01T17:45:23Z
2023-02-01T17:45:23Z
https://github.com/jerryscript-project/jerryscript/issues/5039
1,566,541,369
5,039
[ "jerryscript-project", "jerryscript" ]
I wondering if it is possible to get the module filename from the `module_import_meta_callback` My aim is to implement `import.meta.url` The first argument of the callback is `const jerry_value_t module`, but I don't know if I can get this information from here.
[QUESTION] access module information from module_import_meta_callback
https://api.github.com/repos/jerryscript-project/jerryscript/issues/5038/comments
2
2023-01-21T13:36:42Z
2023-01-23T06:15:47Z
https://github.com/jerryscript-project/jerryscript/issues/5038
1,551,803,054
5,038
[ "jerryscript-project", "jerryscript" ]
### Description Hi. The code below does not have the same output as other engines (e.g., V8 in Google Chrome,SpiderMonkey in Firefox,chakra in Edge,quickjs,jerryscript). #### JerryScript revision 3.0.0 #### Build platform ubuntu20.04 #### Test case `var regex=/(?:(\s)((?:\w*\1)){1,8}){2,5}/` `regex.exec(" A B C D E F G H I ")` #### Output `A B C D E F G H I , ,I ` #### Expected behavior `A B C D E F G H , , `
Regex bug
https://api.github.com/repos/jerryscript-project/jerryscript/issues/5037/comments
0
2023-01-19T13:17:28Z
2023-01-27T16:17:40Z
https://github.com/jerryscript-project/jerryscript/issues/5037
1,549,140,193
5,037
[ "jerryscript-project", "jerryscript" ]
1、Using ubantu20.04 server environment to run code, encountered some errors when compiling, may I ask what method can solve?
Some errors at compile time
https://api.github.com/repos/jerryscript-project/jerryscript/issues/5036/comments
10
2023-01-16T02:41:09Z
2023-01-17T07:11:12Z
https://github.com/jerryscript-project/jerryscript/issues/5036
1,534,173,831
5,036
[ "jerryscript-project", "jerryscript" ]
I wondering how to deal with programatically created promises (`jerry_promise()`) and `jerry_run_jobs()` call or (calls !) I try to implement a setTimeout native function that returns a promise. script: ``` new Promise(function(resolve) { resolve('Hello, World!'); }) .then(function(x) { print(x); return setTimeout(1000); }) .then(function(x) { print('timeout Ok'); }) ``` pseudo main.c (partially from [API-REFERENCE](https://github.com/jerryscript-project/jerryscript/blob/master/docs/02.API-REFERENCE.md#jerry_run_jobs)) ``` run the script while (true) ret = jerry_run_jobs() if ret is not an exception break; ``` output: ``` Hello, World! ``` ... I also expect to see "timeout Ok" - should I assume that the running script still have pending promises even if `jerry_run_jobs()` returns `undefined` ? - if so, how to detect that my running script has no more pending promise (and then I can gracefully exit) ? - should I use `jerry_promise_on_event` to count my promises, and exit if it reach 0 ?
using jerry_promise() and jerry_run_jobs() call(s)
https://api.github.com/repos/jerryscript-project/jerryscript/issues/5035/comments
0
2023-01-13T13:53:46Z
2023-01-13T13:58:06Z
https://github.com/jerryscript-project/jerryscript/issues/5035
1,532,339,531
5,035
[ "jerryscript-project", "jerryscript" ]
to reproduce: 1.) make -f ./targets/baremetal-sdk/espressif/esp-idf/Makefile.travis install-noapt 2.) make -f ./targets/baremetal-sdk/espressif/esp-idf/Makefile.travis script fail: -- Project sdkconfig file /home/runner/work/jerryscript/jerryscript/build/esp-idf/sdkconfig CMake Error at /tmp/esp-idf/tools/cmake/crosstool_version_check.cmake:37 (message): Toolchain: /tmp/xtensa-esp32-elf/bin/xtensa-esp32-elf-gcc, crosstool-ng version esp-2021r2-patch3 doesn't match supported version esp-2021r2-patch5 -- Configuring incomplete, errors occurred!
ESP_IDF_Build_Test CI job is broken
https://api.github.com/repos/jerryscript-project/jerryscript/issues/5034/comments
1
2023-01-03T15:56:11Z
2023-01-03T15:58:27Z
https://github.com/jerryscript-project/jerryscript/issues/5034
1,517,592,453
5,034
[ "jerryscript-project", "jerryscript" ]
null
can i call jerryscript from multiple threads?
https://api.github.com/repos/jerryscript-project/jerryscript/issues/5031/comments
1
2022-12-18T11:05:51Z
2022-12-29T13:14:16Z
https://github.com/jerryscript-project/jerryscript/issues/5031
1,501,863,930
5,031
[ "jerryscript-project", "jerryscript" ]
I'm simply not able to make JerryScript work with Zephyr. I have tried different processes with different outcomes: ### 1> Tried running the command below (just like this [tutorial](https://github.com/jerryscript-project/jerryscript/tree/master/targets/os/zephyr)) in the `targets\os\zephyr`, but changing the toolchain in the CMakeLists: ``` west build -p auto -b waveshare_nrf5240_eval_kit ``` Changes to the CMakeLists: from this: `--toolchain=${JERRY_BASE}/cmake/toolchain_mcu_stm32f4.cmake)` to this: `--toolchain=${ZEPHYR_BASE}/boards/arm/waveshare_nrf52840_eval_kit/board.cmake)` Result: ``` Build files have been written to: C:/company/projects/tst/west-workspace/jerryscript/targets/os/zephyr/build ninja: error: '../../../../build/lib/libjerry-core.a', needed by 'zephyr/zephyr_prebuilt.elf', missing and no known rule to make it FATAL ERROR: command exited with status 1: 'C:\Program Files\CMake\bin\cmake.EXE' --build 'C:\company\projects\tst\west-workspace\jerryscript\targets\os\zephyr\build ``` ### 2> So, tried running the command to generate the libjerry files from the `jerryscript` folder: `python tools\build.py`, but this gave me this error: ``` [...] running 'nmake' '-?' failed with the system cannot find the file specified [...] ``` So I set up the python build to use the ninja (because Zephyr uses ninja, and it is already configured in my machine) using CMake GUI, also set the following with CMake GUI: ``` CMAKE_C_COMPILER <= C:/GNU_ARM_EMBEDDED/bin/arm-none-eabi-gcc.exe CMAKE_C_COMPILER_WORKS <= TRUE ``` Also set the [configs](https://github.com/jerryscript-project/jerryscript/blob/6fe763f1912c3ef82ec2ca31c40f186dde9c5a57/targets/os/zephyr/CMakeLists.txt#L23) in the `jerryscript\targets\os\zephyr\CMakeLists.txt` in CMake GUI And then ran the command `python tools\build.py`, the build is succeeded. After that tried building `jerryscript\targets\os\zephyr` with west. Result: ``` [...] fatal error: sys/printk.h: No such file or directory 19 | #include <sys/printk.h> [...] ``` ### 3> Then tried running west command in the jerryscript directory (after deleting the contents in the build folder, of course): ``` west build -p auto -b waveshare_nrf52840_eval_kit ``` The build was succeeded, but got the following warning: ``` CMake Warning: Manually-specified variables were not used by the project: BOARD WEST_PYTHON -- Build files have been written to: C:/moduhub/projects/jerryscript_test/jerrytest/jerryscript/build -- west build: building application [3/29] Generating ../amalgam/jerryscript.c, ../amalgam/jerryscript.h WARNING:root:[2] Include not found (C:\company\projects\jerryscript_test\jerrytest\jerryscript\jerry-core\jmem\jmem-allocator-internal.h:32): "memcheck.h" [29/29] Linking C static library lib\libjerry-ext.a ``` Then returned to `targets\os\zephyr`, removed the build folder and ran: ``` west build -p auto -b waveshare_nrf52840_eval_kit ``` Got: ``` [...] fatal error: sys/printk.h: No such file or directory 19 | #include <sys/printk.h> [...] ``` So I removed the `#include <sys/printk.h>` header, as it is not required for `printk` anymore, and re-ran the west command. Result: ``` [...] fatal error: zephyr.h: No such file or directory 19 | #include <zephyr.h> [...] ``` ### 4> Update Zephyr to 3.1.0, setup the the build in the jerryscript folder with CMake GUI, the same way as described above and ran west in `targets\os\zephyr` Result: ``` c:/gnu_arm_embedded/bin/../lib/gcc/arm-none-eabi/9.2.1/../../../../arm-none-eabi/bin/ld.exe: error: zephyr\zephyr_prebuilt.elf uses VFP register arguments, ../../../../build/lib/libjerry-core.a(jerryscript.c.obj) does not ``` But that was fixed by setting float ABI to use soft float calling conventions using `menuconfig`/`guiconfig`: ![image](https://user-images.githubusercontent.com/72050063/198031816-1b7c03cf-4636-4ca5-baeb-8a08e6e972e8.png) After that I re-ran the west build command, the build was succeeded, so I flashed to the board and openned the Arduino's Serial Monitor, the program simply stops, note how the "js>" is not printed: ![image](https://user-images.githubusercontent.com/72050063/198084538-443cb6cb-1450-4a2b-87f9-c3427bc4c8f7.png) Tried sending `print('Test')` through the serial monitor, but nothing happens. When debbug with Ozone, the problem is in the `jerry_init()` function in the `jerry-main.c`, a MemManage exception heppens: ![image](https://user-images.githubusercontent.com/72050063/198086449-5d4d5b90-2334-484e-b45a-39097ba3efa4.png) Maybe the warning in try number 3 has something to do with it: ``` [...] WARNING:root:[2] Include not found (C:\company\projects\jerryscript_test\jerrytest\jerryscript\jerry-core\jmem\jmem-allocator-internal.h:32): "memcheck.h" [...] ``` ### Comments I haven't setup Zephyr according to the JerryScript tutorial, because Zephyr is already setup and running. Platform: Windows 10 Zephyr version: 2.7.0 and 3.1.0 JerryScript Version: 3.0.0
Can't make JerryScript Work with Zephyr
https://api.github.com/repos/jerryscript-project/jerryscript/issues/5030/comments
10
2022-10-26T17:21:15Z
2023-01-03T15:46:10Z
https://github.com/jerryscript-project/jerryscript/issues/5030
1,424,420,320
5,030
[ "jerryscript-project", "jerryscript" ]
Hello, I'm trying to implement inheriting classes from C side, can someone tell me how to do this? any ideas will be appreciated. For details, one SuperClassB inhirts from SuperClassA, both of them are expected to be explored to ES world from C side, and one ChildClass can be implemented from ES side then. ``` // how to implement following two classes from C side? class SuperClassA { static testA() { // do something } } class SuperClassB { static testB() { // do something } } ```
[Question] How to implement class and inherits from C side?
https://api.github.com/repos/jerryscript-project/jerryscript/issues/5029/comments
1
2022-10-13T12:42:09Z
2022-10-13T14:46:06Z
https://github.com/jerryscript-project/jerryscript/issues/5029
1,407,734,221
5,029
[ "jerryscript-project", "jerryscript" ]
Hi owners of jerryscript, I can see the JerryScript fully supports for ES5.1, but I found it also supports many features of ES6. So, I wonder is there any list for JerryScript to present how many features does it support for ES6? Thanks for your great work!
A question about supported ES version
https://api.github.com/repos/jerryscript-project/jerryscript/issues/5027/comments
3
2022-10-09T06:22:41Z
2022-10-12T07:51:14Z
https://github.com/jerryscript-project/jerryscript/issues/5027
1,402,168,128
5,027
[ "jerryscript-project", "jerryscript" ]
# Version *Version: 3.0.0* ( 6fe763f ) # Execution steps ```bash /root/.jsvu/jerry Testcase.js ``` # Test case 1 ```javascript var foo = function(it) { var a = [...it, , ]; print(a); print(a.length); }; var Parameter0 = [1, 2]; foo(Parameter0); ``` ## Output 1 ``` 1,2 2 ``` ## Expected behavior ``` 1,2, 3 ``` # Test case 2 ```javascript var foo = function(it) { var arr = [ , ]; var a = it.concat(arr); print(a); print(a.length); }; var Parameter0 = [1, 2]; foo(Parameter0); ``` ## Output 2 ``` 1,2, 3 ``` # Description We tested on multiple JS engines, Testcase 1 and Testcase 2 should have the same consequent. But jerryscript outputs abnormal results when executing Testcase 1. Maybe the problem is about array literal handling which looks like it deleted all the vacancies. The same bug has reported to Hermes(https://github.com/facebook/hermes/issues/729) and has been fixed. Looking forward to your reply :)
Array concatenation exception
https://api.github.com/repos/jerryscript-project/jerryscript/issues/5026/comments
1
2022-09-27T01:43:11Z
2022-10-04T10:41:02Z
https://github.com/jerryscript-project/jerryscript/issues/5026
1,386,949,916
5,026
[ "jerryscript-project", "jerryscript" ]
# Version *Version: 3.0.0* ( 6fe763f ) # Testcase1 ```javascript var foo = function (parts) { parts.sort(function (a, b) { //print(a.avalue - b.value); return a.avalue - b.value;//NaN }); parts.forEach(function (item) { print(item.value) }) }; var NISL008 = [ { name: 'Edward', value: 21 }, { name: 'Tom', value: 37 }, { name: 'paike', value: 23 }, { name: 'Jerry', value: -12 } ]; foo(NISL008); ``` # Execution steps `/root/.jsvu/jerry Testcase.js` # Output ``` -12 23 37 21 ``` # Expected behavior ``` 21 37 23 -12 ``` # Testcase2 ```javascript var foo = function (parts) { parts.sort(function (a, b) { //print(a.avalue - b.value); return a.avalue - b.value;//NaN }); parts.forEach(function (item) { print(item.value) }) }; var NISL008 = [ { name: 'Jerry', value: -12 }, { name: 'Edward', value: 21 }, { name: 'Tom', value: 37 }, { name: 'paike', value: 23 }, ]; foo(NISL008); ``` # Output ``` 23 37 21 -12 ``` # Expected behavior ``` -12 21 37 23 ``` # Description When executing this Testcase, I mistakenly wrote `a.value` to `a.avalue` in line 4, which caused all the return values of `parts.sort` to become `NaN`. At this point, none of the other engines changed the ordering of the original array, but `jerryscript` seems treat NaN as +0. Reference (https://tc39.es/ecma262/#sec-array.prototype.sort) The same bug has reported to SpiderMonkey (https://bugzilla.mozilla.org/show_bug.cgi?id=1763996) and has been fixed. Looking forward to your reply :)
A question about Array.prototype.sort
https://api.github.com/repos/jerryscript-project/jerryscript/issues/5025/comments
1
2022-09-27T01:38:50Z
2022-10-04T11:03:42Z
https://github.com/jerryscript-project/jerryscript/issues/5025
1,386,947,482
5,025
[ "jerryscript-project", "jerryscript" ]
# Version *Version: 3.0.0* ( 6fe763f ) # Test case ```javascript var foo = function() { var y = 200; try { throw {} } catch ({ x = function(){print(y);} }) { let y = 300; x(); } }; foo(); ``` # Execution steps `/root/.jsvu/jerry Testcase.js` # Output `300` # Expected behavior `200` # Description The correct output of the Testcase should be `200` while jerryscript yields `300`. The reason I think is that jerryscript fails to deal with the scope of the global and local variables `y`, where jerryscript may treat the local variable `y` at line 8 as the global variable, leading to output `300` at line 6. Looking forward to your reply :)
Variable Scope Problem
https://api.github.com/repos/jerryscript-project/jerryscript/issues/5024/comments
0
2022-09-27T01:35:21Z
2022-09-27T01:35:21Z
https://github.com/jerryscript-project/jerryscript/issues/5024
1,386,945,227
5,024
[ "jerryscript-project", "jerryscript" ]
## Brief Description & Steps Failed to build on Debian with Clang 3.8. In the same environment the build succeeds with cc/gcc, but not with the version of clang used . This is the error I'm getting `error: missing field 'id' initializer [-Werror,-Wmissing-field-initializers]` on `ecma-builtin-typedarray-prototype.c:1922:37`. Below is the full detail of the error and how to regenerate it. #### JerryScript revision `368641043fc9580400a179669f9b45782db90538` #### Build platform * Environment: `Debian GNU/Linux 9 (stretch) - (Linux 5.10.104-linuxkit x86_64)` * Clang: `clang version 3.8.1-24 (tags/RELEASE_381/final)` #### Build steps ```sh CC=clang python tools/build.py --debug --verbose --clean ``` #### Partial Build Stdout ```bash [ 60%] Building C object jerry-core/CMakeFiles/jerry-core.dir/ecma/builtin-objects/typedarray/ecma-builtin-uint16array-prototype.c.o cd /home/jerryscript/build/jerry-core && /usr/bin/clang -DJERRY_CPOINTER_32_BIT=0 -DJERRY_DEBUGGER=0 -DJERRY_ERROR_MESSAGES=0 -DJERRY_EXTERNAL_CONTEXT=0 -DJERRY_FUNCTION_TO_STRING=0 -DJERRY_GC_LIMIT="(0)" -DJERRY_GC_MARK_LIMIT="(8)" -DJERRY_GLOBAL_HEAP_SIZE="(512)" -DJERRY_LINE_INFO=0 -DJERRY_LOGGING=0 -DJERRY_MEM_GC_BEFORE_EACH_ALLOC=0 -DJERRY_MEM_STATS=0 -DJERRY_PARSER=1 -DJERRY_PARSER_DUMP_BYTE_CODE=0 -DJERRY_PROMISE_CALLBACK=0 -DJERRY_REGEXP_DUMP_BYTE_CODE=0 -DJERRY_REGEXP_STRICT_MODE=0 -DJERRY_SNAPSHOT_EXEC=0 -DJERRY_SNAPSHOT_SAVE=0 -DJERRY_STACK_LIMIT="(0)" -DJERRY_SYSTEM_ALLOCATOR=0 -DJERRY_VALGRIND=0 -DJERRY_VM_HALT=0 -DJERRY_VM_THROW=0 -I/home/jerryscript/jerry-core/include -I/home/jerryscript/jerry-core -I/home/jerryscript/jerry-core/api -I/home/jerryscript/jerry-core/debugger -I/home/jerryscript/jerry-core/ecma/base -I/home/jerryscript/jerry-core/ecma/builtin-objects -I/home/jerryscript/jerry-core/ecma/builtin-objects/typedarray -I/home/jerryscript/jerry-core/ecma/operations -I/home/jerryscript/jerry-core/jcontext -I/home/jerryscript/jerry-core/jmem -I/home/jerryscript/jerry-core/jrt -I/home/jerryscript/jerry-core/lit -I/home/jerryscript/jerry-core/parser/js -I/home/jerryscript/jerry-core/parser/regexp -I/home/jerryscript/jerry-core/vm -flto -std=c99 -pedantic -Wall -Werror=all -Wextra -Werror=extra -Wformat-nonliteral -Werror=format-nonliteral -Winit-self -Werror=init-self -Wsign-conversion -Werror=sign-conversion -Wformat-security -Werror=format-security -Wmissing-declarations -Werror=missing-declarations -Wshadow -Werror=shadow -Wstrict-prototypes -Werror=strict-prototypes -Wundef -Werror=undef -Wold-style-definition -Werror=old-style-definition -Wconversion -Werror=conversion -Wno-stack-protector -Wno-attributes -Werror -Wno-nested-anon-types -Wno-static-in-inline -g -o CMakeFiles/jerry-core.dir/ecma/builtin-objects/typedarray/ecma-builtin-uint16array-prototype.c.o -c /home/jerryscript/jerry-core/ecma/builtin-objects/typedarray/ecma-builtin-uint16array-prototype.c /home/jerryscript/jerry-core/ecma/builtin-objects/typedarray/ecma-builtin-typedarray-prototype.c:1922:37: error: missing field 'id' initializer [-Werror,-Wmissing-field-initializers] ecma_typedarray_info_t info = { 0 }; ^ 1 error generated. [ 61%] Building C object jerry-core/CMakeFiles/jerry-core.dir/ecma/builtin-objects/typedarray/ecma-builtin-uint32array-prototype.c.o jerry-core/CMakeFiles/jerry-core.dir/build.make:3065: recipe for target 'jerry-core/CMakeFiles/jerry-core.dir/ecma/builtin-objects/typedarray/ecma-builtin-typedarray-prototype.c.o' failed make[2]: *** [jerry-core/CMakeFiles/jerry-core.dir/ecma/builtin-objects/typedarray/ecma-builtin-typedarray-prototype.c.o] Error 1 make[2]: *** Waiting for unfinished jobs.... cd /home/jerryscript/build/jerry-core && /usr/bin/clang -DJERRY_CPOINTER_32_BIT=0 -DJERRY_DEBUGGER=0 -DJERRY_ERROR_MESSAGES=0 -DJERRY_EXTERNAL_CONTEXT=0 -DJERRY_FUNCTION_TO_STRING=0 -DJERRY_GC_LIMIT="(0)" -DJERRY_GC_MARK_LIMIT="(8)" -DJERRY_GLOBAL_HEAP_SIZE="(512)" -DJERRY_LINE_INFO=0 -DJERRY_LOGGING=0 -DJERRY_MEM_GC_BEFORE_EACH_ALLOC=0 -DJERRY_MEM_STATS=0 -DJERRY_PARSER=1 -DJERRY_PARSER_DUMP_BYTE_CODE=0 -DJERRY_PROMISE_CALLBACK=0 -DJERRY_REGEXP_DUMP_BYTE_CODE=0 -DJERRY_REGEXP_STRICT_MODE=0 -DJERRY_SNAPSHOT_EXEC=0 -DJERRY_SNAPSHOT_SAVE=0 -DJERRY_STACK_LIMIT="(0)" -DJERRY_SYSTEM_ALLOCATOR=0 -DJERRY_VALGRIND=0 -DJERRY_VM_HALT=0 -DJERRY_VM_THROW=0 -I/home/jerryscript/jerry-core/include -I/home/jerryscript/jerry-core -I/home/jerryscript/jerry-core/api -I/home/jerryscript/jerry-core/debugger -I/home/jerryscript/jerry-core/ecma/base -I/home/jerryscript/jerry-core/ecma/builtin-objects -I/home/jerryscript/jerry-core/ecma/builtin-objects/typedarray -I/home/jerryscript/jerry-core/ecma/operations -I/home/jerryscript/jerry-core/jcontext -I/home/jerryscript/jerry-core/jmem -I/home/jerryscript/jerry-core/jrt -I/home/jerryscript/jerry-core/lit -I/home/jerryscript/jerry-core/parser/js -I/home/jerryscript/jerry-core/parser/regexp -I/home/jerryscript/jerry-core/vm -flto -std=c99 -pedantic -Wall -Werror=all -Wextra -Werror=extra -Wformat-nonliteral -Werror=format-nonliteral -Winit-self -Werror=init-self -Wsign-conversion -Werror=sign-conversion -Wformat-security -Werror=format-security -Wmissing-declarations -Werror=missing-declarations -Wshadow -Werror=shadow -Wstrict-prototypes -Werror=strict-prototypes -Wundef -Werror=undef -Wold-style-definition -Werror=old-style-definition -Wconversion -Werror=conversion -Wno-stack-protector -Wno-attributes -Werror -Wno-nested-anon-types -Wno-static-in-inline -g -o CMakeFiles/jerry-core.dir/ecma/builtin-objects/typedarray/ecma-builtin-uint32array-prototype.c.o -c /home/jerryscript/jerry-core/ecma/builtin-objects/typedarray/ecma-builtin-uint32array-prototype.c ``` #### Dockerfile to Rebuild the same Environment ###### Dockerfile ```dockerfile FROM debian:9.8 RUN apt-get update RUN apt-get install -y --no-install-recommends \ build-essential \ make \ cmake \ git \ curl \ vim \ wget \ ca-certificates \ python \ clang WORKDIR /home RUN git clone https://github.com/jerryscript-project/jerryscript.git ``` ###### Build Docker Image ```bash docker build -t jerryscript:latest . ``` ###### Run Docker Container ```bash docker run --name js -it jerryscript /bin/bash ``` ## Complete Log ###### CMakeOutput.log ``` The system is: Linux - 5.10.104-linuxkit - x86_64 Compiling the C compiler identification source file "CMakeCCompilerId.c" succeeded. Compiler: /usr/bin/clang Build flags: Id flags: The output was: 0 Compilation of the C compiler identification source "CMakeCCompilerId.c" produced "a.out" The C compiler identification is Clang, found in "/home/jerryscript/build/CMakeFiles/3.7.2/CompilerIdC/a.out" Determining if the C compiler works passed with the following output: Change Dir: /home/jerryscript/build/CMakeFiles/CMakeTmp Run Build Command:"/usr/bin/make" "cmTC_0be26/fast" /usr/bin/make -f CMakeFiles/cmTC_0be26.dir/build.make CMakeFiles/cmTC_0be26.dir/build make[1]: Entering directory '/home/jerryscript/build/CMakeFiles/CMakeTmp' Building C object CMakeFiles/cmTC_0be26.dir/testCCompiler.c.o /usr/bin/clang -o CMakeFiles/cmTC_0be26.dir/testCCompiler.c.o -c /home/jerryscript/build/CMakeFiles/CMakeTmp/testCCompiler.c Linking C executable cmTC_0be26 /usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_0be26.dir/link.txt --verbose=1 /usr/bin/clang CMakeFiles/cmTC_0be26.dir/testCCompiler.c.o -o cmTC_0be26 -rdynamic make[1]: Leaving directory '/home/jerryscript/build/CMakeFiles/CMakeTmp' Detecting C compiler ABI info compiled with the following output: Change Dir: /home/jerryscript/build/CMakeFiles/CMakeTmp Run Build Command:"/usr/bin/make" "cmTC_e80a4/fast" /usr/bin/make -f CMakeFiles/cmTC_e80a4.dir/build.make CMakeFiles/cmTC_e80a4.dir/build make[1]: Entering directory '/home/jerryscript/build/CMakeFiles/CMakeTmp' Building C object CMakeFiles/cmTC_e80a4.dir/CMakeCCompilerABI.c.o /usr/bin/clang -o CMakeFiles/cmTC_e80a4.dir/CMakeCCompilerABI.c.o -c /usr/share/cmake-3.7/Modules/CMakeCCompilerABI.c Linking C executable cmTC_e80a4 /usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_e80a4.dir/link.txt --verbose=1 /usr/bin/clang -v CMakeFiles/cmTC_e80a4.dir/CMakeCCompilerABI.c.o -o cmTC_e80a4 -rdynamic clang version 3.8.1-24 (tags/RELEASE_381/final) Target: x86_64-pc-linux-gnu Thread model: posix InstalledDir: /usr/bin Found candidate GCC installation: /usr/bin/../lib/gcc/x86_64-linux-gnu/6.3.0 Found candidate GCC installation: /usr/lib/gcc/x86_64-linux-gnu/6.3.0 Selected GCC installation: /usr/bin/../lib/gcc/x86_64-linux-gnu/6.3.0 Candidate multilib: .;@m64 Selected multilib: .;@m64 "/usr/bin/ld" -export-dynamic --hash-style=both --build-id --eh-frame-hdr -m elf_x86_64 -dynamic-linker /lib64/ld-linux-x86-64.so.2 -o cmTC_e80a4 /usr/bin/../lib/gcc/x86_64-linux-gnu/6.3.0/../../../x86_64-linux-gnu/crt1.o /usr/bin/../lib/gcc/x86_64-linux-gnu/6.3.0/../../../x86_64-linux-gnu/crti.o /usr/bin/../lib/gcc/x86_64-linux-gnu/6.3.0/crtbegin.o -L/usr/bin/../lib/gcc/x86_64-linux-gnu/6.3.0 -L/usr/bin/../lib/gcc/x86_64-linux-gnu/6.3.0/../../../x86_64-linux-gnu -L/lib/x86_64-linux-gnu -L/lib/../lib64 -L/usr/lib/x86_64-linux-gnu -L/usr/bin/../lib/gcc/x86_64-linux-gnu/6.3.0/../../.. -L/usr/lib/llvm-3.8/bin/../lib -L/lib -L/usr/lib CMakeFiles/cmTC_e80a4.dir/CMakeCCompilerABI.c.o -lgcc --as-needed -lgcc_s --no-as-needed -lc -lgcc --as-needed -lgcc_s --no-as-needed /usr/bin/../lib/gcc/x86_64-linux-gnu/6.3.0/crtend.o /usr/bin/../lib/gcc/x86_64-linux-gnu/6.3.0/../../../x86_64-linux-gnu/crtn.o make[1]: Leaving directory '/home/jerryscript/build/CMakeFiles/CMakeTmp' Parsed C implicit link information from above output: link line regex: [^( *|.*[/\])(ld|([^/\]+-)?ld|collect2)[^/\]*( |$)] ignore line: [Change Dir: /home/jerryscript/build/CMakeFiles/CMakeTmp] ignore line: [] ignore line: [Run Build Command:"/usr/bin/make" "cmTC_e80a4/fast"] ignore line: [/usr/bin/make -f CMakeFiles/cmTC_e80a4.dir/build.make CMakeFiles/cmTC_e80a4.dir/build] ignore line: [make[1]: Entering directory '/home/jerryscript/build/CMakeFiles/CMakeTmp'] ignore line: [Building C object CMakeFiles/cmTC_e80a4.dir/CMakeCCompilerABI.c.o] ignore line: [/usr/bin/clang -o CMakeFiles/cmTC_e80a4.dir/CMakeCCompilerABI.c.o -c /usr/share/cmake-3.7/Modules/CMakeCCompilerABI.c] ignore line: [Linking C executable cmTC_e80a4] ignore line: [/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_e80a4.dir/link.txt --verbose=1] ignore line: [/usr/bin/clang -v CMakeFiles/cmTC_e80a4.dir/CMakeCCompilerABI.c.o -o cmTC_e80a4 -rdynamic ] ignore line: [clang version 3.8.1-24 (tags/RELEASE_381/final)] ignore line: [Target: x86_64-pc-linux-gnu] ignore line: [Thread model: posix] ignore line: [InstalledDir: /usr/bin] ignore line: [Found candidate GCC installation: /usr/bin/../lib/gcc/x86_64-linux-gnu/6.3.0] ignore line: [Found candidate GCC installation: /usr/lib/gcc/x86_64-linux-gnu/6.3.0] ignore line: [Selected GCC installation: /usr/bin/../lib/gcc/x86_64-linux-gnu/6.3.0] ignore line: [Candidate multilib: .] ignore line: [@m64] ignore line: [Selected multilib: .] ignore line: [@m64] link line: [ "/usr/bin/ld" -export-dynamic --hash-style=both --build-id --eh-frame-hdr -m elf_x86_64 -dynamic-linker /lib64/ld-linux-x86-64.so.2 -o cmTC_e80a4 /usr/bin/../lib/gcc/x86_64-linux-gnu/6.3.0/../../../x86_64-linux-gnu/crt1.o /usr/bin/../lib/gcc/x86_64-linux-gnu/6.3.0/../../../x86_64-linux-gnu/crti.o /usr/bin/../lib/gcc/x86_64-linux-gnu/6.3.0/crtbegin.o -L/usr/bin/../lib/gcc/x86_64-linux-gnu/6.3.0 -L/usr/bin/../lib/gcc/x86_64-linux-gnu/6.3.0/../../../x86_64-linux-gnu -L/lib/x86_64-linux-gnu -L/lib/../lib64 -L/usr/lib/x86_64-linux-gnu -L/usr/bin/../lib/gcc/x86_64-linux-gnu/6.3.0/../../.. -L/usr/lib/llvm-3.8/bin/../lib -L/lib -L/usr/lib CMakeFiles/cmTC_e80a4.dir/CMakeCCompilerABI.c.o -lgcc --as-needed -lgcc_s --no-as-needed -lc -lgcc --as-needed -lgcc_s --no-as-needed /usr/bin/../lib/gcc/x86_64-linux-gnu/6.3.0/crtend.o /usr/bin/../lib/gcc/x86_64-linux-gnu/6.3.0/../../../x86_64-linux-gnu/crtn.o] arg [/usr/bin/ld] ==> ignore arg [-export-dynamic] ==> ignore arg [--hash-style=both] ==> ignore arg [--build-id] ==> ignore arg [--eh-frame-hdr] ==> ignore arg [-m] ==> ignore arg [elf_x86_64] ==> ignore arg [-dynamic-linker] ==> ignore arg [/lib64/ld-linux-x86-64.so.2] ==> ignore arg [-o] ==> ignore arg [cmTC_e80a4] ==> ignore arg [/usr/bin/../lib/gcc/x86_64-linux-gnu/6.3.0/../../../x86_64-linux-gnu/crt1.o] ==> ignore arg [/usr/bin/../lib/gcc/x86_64-linux-gnu/6.3.0/../../../x86_64-linux-gnu/crti.o] ==> ignore arg [/usr/bin/../lib/gcc/x86_64-linux-gnu/6.3.0/crtbegin.o] ==> ignore arg [-L/usr/bin/../lib/gcc/x86_64-linux-gnu/6.3.0] ==> dir [/usr/bin/../lib/gcc/x86_64-linux-gnu/6.3.0] arg [-L/usr/bin/../lib/gcc/x86_64-linux-gnu/6.3.0/../../../x86_64-linux-gnu] ==> dir [/usr/bin/../lib/gcc/x86_64-linux-gnu/6.3.0/../../../x86_64-linux-gnu] arg [-L/lib/x86_64-linux-gnu] ==> dir [/lib/x86_64-linux-gnu] arg [-L/lib/../lib64] ==> dir [/lib/../lib64] arg [-L/usr/lib/x86_64-linux-gnu] ==> dir [/usr/lib/x86_64-linux-gnu] arg [-L/usr/bin/../lib/gcc/x86_64-linux-gnu/6.3.0/../../..] ==> dir [/usr/bin/../lib/gcc/x86_64-linux-gnu/6.3.0/../../..] arg [-L/usr/lib/llvm-3.8/bin/../lib] ==> dir [/usr/lib/llvm-3.8/bin/../lib] arg [-L/lib] ==> dir [/lib] arg [-L/usr/lib] ==> dir [/usr/lib] arg [CMakeFiles/cmTC_e80a4.dir/CMakeCCompilerABI.c.o] ==> ignore arg [-lgcc] ==> lib [gcc] arg [--as-needed] ==> ignore arg [-lgcc_s] ==> lib [gcc_s] arg [--no-as-needed] ==> ignore arg [-lc] ==> lib [c] arg [-lgcc] ==> lib [gcc] arg [--as-needed] ==> ignore arg [-lgcc_s] ==> lib [gcc_s] arg [--no-as-needed] ==> ignore arg [/usr/bin/../lib/gcc/x86_64-linux-gnu/6.3.0/crtend.o] ==> ignore arg [/usr/bin/../lib/gcc/x86_64-linux-gnu/6.3.0/../../../x86_64-linux-gnu/crtn.o] ==> ignore remove lib [gcc] remove lib [gcc_s] remove lib [gcc] remove lib [gcc_s] collapse library dir [/usr/bin/../lib/gcc/x86_64-linux-gnu/6.3.0] ==> [/usr/lib/gcc/x86_64-linux-gnu/6.3.0] collapse library dir [/usr/bin/../lib/gcc/x86_64-linux-gnu/6.3.0/../../../x86_64-linux-gnu] ==> [/usr/lib/x86_64-linux-gnu] collapse library dir [/lib/x86_64-linux-gnu] ==> [/lib/x86_64-linux-gnu] collapse library dir [/lib/../lib64] ==> [/lib64] collapse library dir [/usr/lib/x86_64-linux-gnu] ==> [/usr/lib/x86_64-linux-gnu] collapse library dir [/usr/bin/../lib/gcc/x86_64-linux-gnu/6.3.0/../../..] ==> [/usr/lib] collapse library dir [/usr/lib/llvm-3.8/bin/../lib] ==> [/usr/lib/llvm-3.8/lib] collapse library dir [/lib] ==> [/lib] collapse library dir [/usr/lib] ==> [/usr/lib] implicit libs: [c] implicit dirs: [/usr/lib/gcc/x86_64-linux-gnu/6.3.0;/usr/lib/x86_64-linux-gnu;/lib/x86_64-linux-gnu;/lib64;/usr/lib;/usr/lib/llvm-3.8/lib;/lib] implicit fwks: [] Detecting C [-std=c11] compiler features compiled with the following output: Change Dir: /home/jerryscript/build/CMakeFiles/CMakeTmp Run Build Command:"/usr/bin/make" "cmTC_1ebef/fast" /usr/bin/make -f CMakeFiles/cmTC_1ebef.dir/build.make CMakeFiles/cmTC_1ebef.dir/build make[1]: Entering directory '/home/jerryscript/build/CMakeFiles/CMakeTmp' Building C object CMakeFiles/cmTC_1ebef.dir/feature_tests.c.o /usr/bin/clang -std=c11 -o CMakeFiles/cmTC_1ebef.dir/feature_tests.c.o -c /home/jerryscript/build/CMakeFiles/feature_tests.c Linking C executable cmTC_1ebef /usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_1ebef.dir/link.txt --verbose=1 /usr/bin/clang CMakeFiles/cmTC_1ebef.dir/feature_tests.c.o -o cmTC_1ebef -rdynamic make[1]: Leaving directory '/home/jerryscript/build/CMakeFiles/CMakeTmp' Feature record: C_FEATURE:1c_function_prototypes Feature record: C_FEATURE:1c_restrict Feature record: C_FEATURE:1c_static_assert Feature record: C_FEATURE:1c_variadic_macros Detecting C [-std=c99] compiler features compiled with the following output: Change Dir: /home/jerryscript/build/CMakeFiles/CMakeTmp Run Build Command:"/usr/bin/make" "cmTC_37c45/fast" /usr/bin/make -f CMakeFiles/cmTC_37c45.dir/build.make CMakeFiles/cmTC_37c45.dir/build make[1]: Entering directory '/home/jerryscript/build/CMakeFiles/CMakeTmp' Building C object CMakeFiles/cmTC_37c45.dir/feature_tests.c.o /usr/bin/clang -std=c99 -o CMakeFiles/cmTC_37c45.dir/feature_tests.c.o -c /home/jerryscript/build/CMakeFiles/feature_tests.c Linking C executable cmTC_37c45 /usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_37c45.dir/link.txt --verbose=1 /usr/bin/clang CMakeFiles/cmTC_37c45.dir/feature_tests.c.o -o cmTC_37c45 -rdynamic make[1]: Leaving directory '/home/jerryscript/build/CMakeFiles/CMakeTmp' Feature record: C_FEATURE:1c_function_prototypes Feature record: C_FEATURE:1c_restrict Feature record: C_FEATURE:0c_static_assert Feature record: C_FEATURE:1c_variadic_macros Detecting C [-std=c90] compiler features compiled with the following output: Change Dir: /home/jerryscript/build/CMakeFiles/CMakeTmp Run Build Command:"/usr/bin/make" "cmTC_f0bf5/fast" /usr/bin/make -f CMakeFiles/cmTC_f0bf5.dir/build.make CMakeFiles/cmTC_f0bf5.dir/build make[1]: Entering directory '/home/jerryscript/build/CMakeFiles/CMakeTmp' Building C object CMakeFiles/cmTC_f0bf5.dir/feature_tests.c.o /usr/bin/clang -std=c90 -o CMakeFiles/cmTC_f0bf5.dir/feature_tests.c.o -c /home/jerryscript/build/CMakeFiles/feature_tests.c Linking C executable cmTC_f0bf5 /usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_f0bf5.dir/link.txt --verbose=1 /usr/bin/clang CMakeFiles/cmTC_f0bf5.dir/feature_tests.c.o -o cmTC_f0bf5 -rdynamic make[1]: Leaving directory '/home/jerryscript/build/CMakeFiles/CMakeTmp' Feature record: C_FEATURE:1c_function_prototypes Feature record: C_FEATURE:0c_restrict Feature record: C_FEATURE:0c_static_assert Feature record: C_FEATURE:0c_variadic_macros ``` ###### CMakeError.log ``` Determining if the function sin exists in the m failed with the following output: Change Dir: /home/jerryscript/build/CMakeFiles/CMakeTmp Run Build Command:"/usr/bin/make" "cmTC_cf8e3/fast" /usr/bin/make -f CMakeFiles/cmTC_cf8e3.dir/build.make CMakeFiles/cmTC_cf8e3.dir/build make[1]: Entering directory '/home/jerryscript/build/CMakeFiles/CMakeTmp' Building C object CMakeFiles/cmTC_cf8e3.dir/CheckFunctionExists.c.o /usr/bin/clang -flto -std=c99 -pedantic -Wall -Werror=all -Wextra -Werror=extra -Wformat-nonliteral -Werror=format-nonliteral -Winit-self -Werror=init-self -Wsign-conversion -Werror=sign-conversion -Wformat-security -Werror=format-security -Wmissing-declarations -Werror=missing-declarations -Wshadow -Werror=shadow -Wstrict-prototypes -Werror=strict-prototypes -Wundef -Werror=undef -Wold-style-definition -Werror=old-style-definition -Wconversion -Werror=conversion -Wno-stack-protector -Wno-attributes -Werror -Wno-nested-anon-types -Wno-static-in-inline -DCHECK_FUNCTION_EXISTS=sin -Wno-error -Wno-error=strict-prototypes -o CMakeFiles/cmTC_cf8e3.dir/CheckFunctionExists.c.o -c /usr/share/cmake-3.7/Modules/CheckFunctionExists.c /usr/share/cmake-3.7/Modules/CheckFunctionExists.c:7:3: warning: incompatible redeclaration of library function 'sin' [-Wincompatible-library-redeclaration] CHECK_FUNCTION_EXISTS(); ^ <command line>:1:31: note: expanded from here #define CHECK_FUNCTION_EXISTS sin ^ /usr/share/cmake-3.7/Modules/CheckFunctionExists.c:7:3: note: 'sin' is a builtin with type 'double (double)' <command line>:1:31: note: expanded from here #define CHECK_FUNCTION_EXISTS sin ^ 1 warning generated. Linking C executable cmTC_cf8e3 /usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_cf8e3.dir/link.txt --verbose=1 /usr/bin/clang -flto -std=c99 -pedantic -Wall -Werror=all -Wextra -Werror=extra -Wformat-nonliteral -Werror=format-nonliteral -Winit-self -Werror=init-self -Wsign-conversion -Werror=sign-conversion -Wformat-security -Werror=format-security -Wmissing-declarations -Werror=missing-declarations -Wshadow -Werror=shadow -Wstrict-prototypes -Werror=strict-prototypes -Wundef -Werror=undef -Wold-style-definition -Werror=old-style-definition -Wconversion -Werror=conversion -Wno-stack-protector -Wno-attributes -Werror -Wno-nested-anon-types -Wno-static-in-inline -DCHECK_FUNCTION_EXISTS=sin -Wno-error -Wno-error=strict-prototypes CMakeFiles/cmTC_cf8e3.dir/CheckFunctionExists.c.o -o cmTC_cf8e3 -rdynamic -lm /usr/bin/ld: /usr/lib/llvm-3.8/bin/../lib/LLVMgold.so: error loading plugin: /usr/lib/llvm-3.8/bin/../lib/LLVMgold.so: cannot open shared object file: No such file or directory clang: error: linker command failed with exit code 1 (use -v to see invocation) CMakeFiles/cmTC_cf8e3.dir/build.make:97: recipe for target 'cmTC_cf8e3' failed make[1]: *** [cmTC_cf8e3] Error 1 make[1]: Leaving directory '/home/jerryscript/build/CMakeFiles/CMakeTmp' Makefile:126: recipe for target 'cmTC_cf8e3/fast' failed make: *** [cmTC_cf8e3/fast] Error 2 Performing C SOURCE FILE Test HAVE_TM_GMTOFF failed with the following output: Change Dir: /home/jerryscript/build/CMakeFiles/CMakeTmp Run Build Command:"/usr/bin/make" "cmTC_199e6/fast" /usr/bin/make -f CMakeFiles/cmTC_199e6.dir/build.make CMakeFiles/cmTC_199e6.dir/build make[1]: Entering directory '/home/jerryscript/build/CMakeFiles/CMakeTmp' Building C object CMakeFiles/cmTC_199e6.dir/src.c.o /usr/bin/clang -D_BSD_SOURCE -D_DEFAULT_SOURCE -flto -std=c99 -pedantic -Wall -Werror=all -Wextra -Werror=extra -Wformat-nonliteral -Werror=format-nonliteral -Winit-self -Werror=init-self -Wsign-conversion -Werror=sign-conversion -Wformat-security -Werror=format-security -Wmissing-declarations -Werror=missing-declarations -Wshadow -Werror=shadow -Wstrict-prototypes -Werror=strict-prototypes -Wundef -Werror=undef -Wold-style-definition -Werror=old-style-definition -Wconversion -Werror=conversion -Wno-stack-protector -Wno-attributes -Werror -Wno-nested-anon-types -Wno-static-in-inline -DHAVE_TM_GMTOFF -Wno-error=strict-prototypes -Wno-error=old-style-definition -Wno-error=unused-value -o CMakeFiles/cmTC_199e6.dir/src.c.o -c /home/jerryscript/build/CMakeFiles/CMakeTmp/src.c Linking C executable cmTC_199e6 /usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_199e6.dir/link.txt --verbose=1 /usr/bin/clang -flto -std=c99 -pedantic -Wall -Werror=all -Wextra -Werror=extra -Wformat-nonliteral -Werror=format-nonliteral -Winit-self -Werror=init-self -Wsign-conversion -Werror=sign-conversion -Wformat-security -Werror=format-security -Wmissing-declarations -Werror=missing-declarations -Wshadow -Werror=shadow -Wstrict-prototypes -Werror=strict-prototypes -Wundef -Werror=undef -Wold-style-definition -Werror=old-style-definition -Wconversion -Werror=conversion -Wno-stack-protector -Wno-attributes -Werror -Wno-nested-anon-types -Wno-static-in-inline -DHAVE_TM_GMTOFF -Wno-error=strict-prototypes -Wno-error=old-style-definition -Wno-error=unused-value CMakeFiles/cmTC_199e6.dir/src.c.o -o cmTC_199e6 -rdynamic /usr/bin/ld: /usr/lib/llvm-3.8/bin/../lib/LLVMgold.so: error loading plugin: /usr/lib/llvm-3.8/bin/../lib/LLVMgold.so: cannot open shared object file: No such file or directory clang: error: linker command failed with exit code 1 (use -v to see invocation) CMakeFiles/cmTC_199e6.dir/build.make:97: recipe for target 'cmTC_199e6' failed make[1]: *** [cmTC_199e6] Error 1 make[1]: Leaving directory '/home/jerryscript/build/CMakeFiles/CMakeTmp' Makefile:126: recipe for target 'cmTC_199e6/fast' failed make: *** [cmTC_199e6/fast] Error 2 Source file was: #include <time.h> int main() { (void)sizeof(((struct tm *)0)->tm_gmtoff); return 0; } ```
Build failed with clang 3.8: error: missing field 'id' initializer [-Werror,-Wmissing-field-initializers]
https://api.github.com/repos/jerryscript-project/jerryscript/issues/5020/comments
2
2022-08-18T16:05:00Z
2022-08-18T19:19:20Z
https://github.com/jerryscript-project/jerryscript/issues/5020
1,343,316,133
5,020
[ "jerryscript-project", "jerryscript" ]
how to use import statement without syntax error in v2.4.0?
Import and Export statement
https://api.github.com/repos/jerryscript-project/jerryscript/issues/5018/comments
7
2022-07-31T09:21:37Z
2022-08-03T07:53:47Z
https://github.com/jerryscript-project/jerryscript/issues/5018
1,323,408,338
5,018
[ "jerryscript-project", "jerryscript" ]
When parsing certain kinds class fields, the parser throws an error expecting a semicolon. ###### JerryScript revision 2.4.0 ###### Build platform all ###### Build steps n/a ###### Build log n/a ###### Test case class A { #p = 'something' #privateMethod(){ } } Note: if "#p = 'something'" ends with ";", the parser is ok. ###### Execution platform all ###### Execution steps n/a ###### Output Expected token ';' ###### Backtrace n/a ###### Expected behavior No parse Error.
Private Class Fields Parsing Error
https://api.github.com/repos/jerryscript-project/jerryscript/issues/5017/comments
0
2022-07-30T17:39:22Z
2022-07-30T17:39:22Z
https://github.com/jerryscript-project/jerryscript/issues/5017
1,323,243,022
5,017
[ "jerryscript-project", "jerryscript" ]
From my reading of the spec, it sounds like keywords are not allowed as export names. However, modules can export default and the spec is not explicit on whether this is allowed. Node/V8 allows using default in imports and exports. And, tools like sucrase, babel, terser, etc will collapse import statements using "as default". As a result, almost any ESM code that runs through transpilers and minifiers will not work in jerryscript. It is a small bug on the jerryscript side, but a real pain on the tooling side. ###### JerryScript revision 2.4.0 ###### Build platform all ###### Build steps n/a ###### Build log n/a ###### Test case export { default as something } from 'package' Note: There are a couple other ways V8 allows default to be used in import and export statements. ###### Execution platform all ###### Execution steps n/a ###### Output Parser error ###### Backtrace n/a ###### Expected behavior No parse or runtime Error.
Using keyword default in imports and exports throws parser error
https://api.github.com/repos/jerryscript-project/jerryscript/issues/5016/comments
0
2022-07-30T17:33:03Z
2022-07-30T17:33:03Z
https://github.com/jerryscript-project/jerryscript/issues/5016
1,323,235,965
5,016
[ "jerryscript-project", "jerryscript" ]
###### JerryScript revision 2.4.0 ###### Build platform all ###### Build steps n/a ###### Build log n/a ###### Test case Assume there is a global variable named 'process' in the current realm. Assume the process package exports default and a symbol named process as well. When using a default import: import process from 'process' When using a named import: import { process } from 'process' Both statements fail. ###### Execution platform all ###### Execution steps n/a ###### Output Error message: Imported binding shadows local variable ###### Backtrace n/a ###### Expected behavior No parse or runtime Error.
import symbol conflicts with global variable name
https://api.github.com/repos/jerryscript-project/jerryscript/issues/5015/comments
2
2022-07-30T17:20:32Z
2022-09-10T07:53:56Z
https://github.com/jerryscript-project/jerryscript/issues/5015
1,323,225,791
5,015
[ "jerryscript-project", "jerryscript" ]
### Commit 0d4969661810b9e618485c284c361e597144e9b9 (The newest Jerry release 2.4.0 is affected.) ### Build platform Ubuntu 20.04 ### Build steps ``` python tools/build.py --debug --logging=on --error-messages=on --line-info=on ``` ### POC ```js function foo() { var a; function* bar() { try { yield* b; } catch (e) { a = e; } } var b = bar(); b.next(); return a; } foo(); ``` ### Error Log A stack overflow. ``` Segmentation fault. ``` If I build jerry with sanitizer,like ``` python ./tools/build.py --clean --debug --compile-flag=-fsanitize=address --compile-flag=-m32 --system-allocator=on --logging=on --linker-flag=-fuse-ld=gold --error-messages=on --line-info=on --stack-limit=10 ``` There is a ICE in ecma-builtin-generator-prototype.c ``` ICE: Assertion 'generator_object_p->frame_ctx.stack_top_p[-1] == ECMA_VALUE_UNDEFINED || ecma_is_value_object (generator_object_p->frame_ctx.stack_top_p[-1])' failed at jerryscript/jerry-core/ecma/builtin-objects/ecma-builtin-generator-prototype.c(ecma_builtin_generator_prototype_object_do):123. Error: JERRY_FATAL_FAILED_ASSERTION ```
stack overflow at jerry-core/ecma/base/ecma-helpers-value.c
https://api.github.com/repos/jerryscript-project/jerryscript/issues/5013/comments
1
2022-07-26T06:53:43Z
2022-08-08T15:37:00Z
https://github.com/jerryscript-project/jerryscript/issues/5013
1,317,783,139
5,013
[ "jerryscript-project", "jerryscript" ]
Hi! I am using jerryscript in my project. I need to evaluate the memory resources required by my application in order to adjust the hardware resources. Can jerry calculate and show the heap size needed by running a JS file?
How to evaluate the heap and stack size needed by my project?
https://api.github.com/repos/jerryscript-project/jerryscript/issues/5011/comments
2
2022-07-14T08:49:19Z
2022-07-25T00:54:54Z
https://github.com/jerryscript-project/jerryscript/issues/5011
1,304,467,791
5,011
[ "jerryscript-project", "jerryscript" ]
```console jerry> new Date(2022, 5, 2).toLocaleDateString() 2022-06-01 ``` on chrome: ```console > new Date(2022, 5, 2).toLocaleDateString() '6/2/2022' ``` should be 6-2.
wrong output in Date.toLocaleDateString
https://api.github.com/repos/jerryscript-project/jerryscript/issues/5009/comments
1
2022-06-15T09:17:41Z
2022-09-08T06:51:44Z
https://github.com/jerryscript-project/jerryscript/issues/5009
1,271,931,333
5,009
[ "jerryscript-project", "jerryscript" ]
###### JerryScript revision 0d4969661810b9e618485c284c361e597144e9b9 master ###### Build platform Ubuntu 16.04.7 LTS (Linux 4.15.0-142-generic x86_64) ###### Build steps ```sh ./tools/build.py --clean --compile-flag=-fsanitize=address --lto=off --error-message=on --profile=es.next --stack-limit=15 --debug --logging=on --line-info=on ``` ###### Test case ```javascript for (let __v1 = 0; __v1 < 10000; __v1++) { ['__v6', '__v2', '__v1', '__v3', '__v4', '__v5'];" __v5(__v1, } ``` ```sh ==112046==ERROR: AddressSanitizer: stack-buffer-overflow on address 0x7ffda03d5390 at pc 0x7fa6aae1ea7d bp 0x7ffda03d5240 sp 0x7ffda03d49e8 READ of size 1 at 0x7ffda03d5390 thread T0 #0 0x7fa6aae1ea7c in __interceptor_strtol (/usr/lib/x86_64-linux-gnu/libasan.so.2+0x75a7c) #1 0x581203 in jerryx_print_unhandled_exception /home/lily/Desktop/67/jerryscript/jerry-ext/util/print.c:247 #2 0x4027c1 in main /home/lily/Desktop/67/jerryscript/jerry-main/main-desktop.c:172 #3 0x7fa6aa6f683f in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x2083f) #4 0x401e88 in _start (/home/lily/Desktop/67/jerry+0x401e88) Address 0x7ffda03d5390 is located in stack of thread T0 at offset 224 in frame #0 0x580e99 in jerryx_print_unhandled_exception /home/lily/Desktop/67/jerryscript/jerry-ext/util/print.c:204 This frame has 3 object(s): [32, 36) 'source_size' [96, 104) 'current_p' [160, 224) 'buffer_p' <== Memory access at offset 224 overflows this variable HINT: this may be a false positive if your program uses some custom stack unwind mechanism or swapcontext (longjmp and C++ exceptions *are* supported) SUMMARY: AddressSanitizer: stack-buffer-overflow ??:0 __interceptor_strtol Shadow bytes around the buggy address: 0x100034072a20: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 0x100034072a30: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 0x100034072a40: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 0x100034072a50: 00 00 00 00 00 00 f1 f1 f1 f1 04 f4 f4 f4 f2 f2 0x100034072a60: f2 f2 00 f4 f4 f4 f2 f2 f2 f2 00 00 00 00 00 00 =>0x100034072a70: 00 00[f3]f3 f3 f3 f3 f3 f3 f3 00 00 00 00 00 00 0x100034072a80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 0x100034072a90: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 0x100034072aa0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 0x100034072ab0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 0x100034072ac0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 Shadow byte legend (one shadow byte represents 8 application bytes): Addressable: 00 Partially addressable: 01 02 03 04 05 06 07 Heap left redzone: fa Heap right redzone: fb Freed heap region: fd Stack left redzone: f1 Stack mid redzone: f2 Stack right redzone: f3 Stack partial redzone: f4 Stack after return: f5 Stack use after scope: f8 Global redzone: f9 Global init order: f6 Poisoned by user: f7 Container overflow: fc Array cookie: ac Intra object redzone: bb ASan internal: fe ==112046==ABORTING
Stack-buffer-overflow in jerryx_print_unhandled_exception (jerryscript/jerry-ext/util/print.c)
https://api.github.com/repos/jerryscript-project/jerryscript/issues/5008/comments
1
2022-05-29T18:17:00Z
2022-08-08T06:14:38Z
https://github.com/jerryscript-project/jerryscript/issues/5008
1,251,957,111
5,008
[ "jerryscript-project", "jerryscript" ]
###### Version Version: 3.0.0 (fea10bb7) ###### Test case ```js var foo = function () { let view = new Uint8Array([1,2,3]); view[''] = 0; print(view); } foo(); ``` ###### Execution steps /.jsvu/jerry Testcase.js ###### Output ``` 0,2,3 ``` ###### Expected behavior ``` 1,2,3 ``` ###### Description The correct output of the test case should be `1,2,3` while jerryscript yields `0,2,3 `. we simply change the Uint8Array ` view` by `view[''] = 0 `,which shouldn't have any impact on `view`, but jerryscript abnormally replace the first element of `view` with `0` ,I think it might be an issue of jerryscript.
A question about Uint8Array operation
https://api.github.com/repos/jerryscript-project/jerryscript/issues/5007/comments
1
2022-05-14T08:24:23Z
2022-09-26T14:15:00Z
https://github.com/jerryscript-project/jerryscript/issues/5007
1,235,913,902
5,007
[ "jerryscript-project", "jerryscript" ]
will string be reclaimed when gc runs in jerryscript. how string will be managed when it is no longer needed. for example ```code function PrintHello() { var hello = "hello" } function main() { PrintHello(); } ``` when `PrintHello` call in `main` finished, will "hello" be reclaimed if we do not have enough memory for new objects allocation
gc for strings in jerryscript
https://api.github.com/repos/jerryscript-project/jerryscript/issues/5006/comments
1
2022-05-10T04:44:16Z
2022-07-22T07:32:52Z
https://github.com/jerryscript-project/jerryscript/issues/5006
1,230,611,687
5,006
[ "jerryscript-project", "jerryscript" ]
###### JerryScript revision 0d496966 ###### Build platform Linux-5.4.0-104-generic-x86_64-with-glibc2.29 ###### Build steps ``` ./tools/build.py --clean --debug --profile=es.next --error-messages=ON --logging=ON ``` ###### Test case ```javascript new { async [ yield ] ( ... yield ) { }} ``` ###### Output ```text ICE: Assertion 'scope_stack_p > context_p->scope_stack_p' failed at jerryscript/jerry-core/parser/js/js-scanner-util.c(scanner_literal_is_created):2920. Error: JERRY_FATAL_FAILED_ASSERTION AddressSanitizer:DEADLYSIGNAL ================================================================= ==698757==ERROR: AddressSanitizer: ABRT on unknown address 0x03e9000aa985 (pc 0x7fe4192d503b bp 0x7ffe32c02ff0 sp 0x7ffe32c02d80 T0) #0 0x7fe4192d503b in raise /build/glibc-sMfBJT/glibc-2.31/signal/../sysdeps/unix/sysv/linux/raise.c:51:1 #1 0x7fe4192b4858 in abort /build/glibc-sMfBJT/glibc-2.31/stdlib/abort.c:79:7 #2 0x806f07 in jerry_port_fatal jerryscript/jerry-port/common/jerry-port-process.c:29:5 #3 0x6281ca in jerry_fatal jerryscript/jerry-core/jrt/jrt-fatals.c:63:3 #4 0x627f7a in jerry_assert_fail jerryscript/jerry-core/jrt/jrt-fatals.c:83:3 #5 0x670b4c in scanner_literal_is_created jerryscript/jerry-core/parser/js/js-scanner-util.c:2920:5 #6 0x63cf16 in parser_parse_function_arguments jerryscript/jerry-core/parser/js/js-parser.c:1824:13 #7 0x638a5c in parser_parse_function jerryscript/jerry-core/parser/js/js-parser.c:2685:3 #8 0x799476 in lexer_construct_function_object jerryscript/jerry-core/parser/js/js-lexer.c:2695:23 #9 0x7c5bee in parser_parse_object_literal jerryscript/jerry-core/parser/js/js-parser-expr.c:1405:43 #10 0x7b3107 in parser_parse_unary_expression jerryscript/jerry-core/parser/js/js-parser-expr.c:2133:7 #11 0x7a6d30 in parser_parse_expression jerryscript/jerry-core/parser/js/js-parser-expr.c:4115:9 #12 0x7aee42 in parser_parse_block_expression jerryscript/jerry-core/parser/js/js-parser-expr.c:4065:3 #13 0x7da34d in parser_parse_statements jerryscript/jerry-core/parser/js/js-parser-statm.c:3079:11 #14 0x650243 in parser_parse_source jerryscript/jerry-core/parser/js/js-parser.c:2280:5 #15 0x64bcca in parser_parse_script jerryscript/jerry-core/parser/js/js-parser.c:3326:38 #16 0x4cd866 in jerry_parse_common jerryscript/jerry-core/api/jerryscript.c:412:21 #17 0x4cd103 in jerry_parse jerryscript/jerry-core/api/jerryscript.c:480:10 #18 0x805137 in jerryx_source_parse_script jerryscript/jerry-ext/util/sources.c:52:26 #19 0x80526e in jerryx_source_exec_script jerryscript/jerry-ext/util/sources.c:63:26 #20 0x4c4cb6 in main jerryscript/jerry-main/main-desktop.c:156:20 #21 0x7fe4192b60b2 in __libc_start_main /build/glibc-sMfBJT/glibc-2.31/csu/../csu/libc-start.c:308:16 #22 0x41c53d in _start (jerryscript/build/bin/jerry+0x41c53d) AddressSanitizer can not provide additional info. SUMMARY: AddressSanitizer: ABRT /build/glibc-sMfBJT/glibc-2.31/signal/../sysdeps/unix/sysv/linux/raise.c:51:1 in raise ==698757==ABORTING ``` ###### Backtrace ```text bt #0 __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:50 #1 0x00007ffff7c33859 in __GI_abort () at abort.c:79 #2 0x0000000000806f08 in jerry_port_fatal (code=JERRY_FATAL_FAILED_ASSERTION) at jerryscript/jerry-port/common/jerry-port-process.c:29 #3 0x00000000006281cb in jerry_fatal (code=JERRY_FATAL_FAILED_ASSERTION) at jerryscript/jerry-core/jrt/jrt-fatals.c:63 #4 0x0000000000627f7b in jerry_assert_fail (assertion=0x863b80 <str> "scope_stack_p > context_p->scope_stack_p", file=0x861a20 <str> "jerryscript/jerry-core/parser/js/js-scanner-util.c", function=0x863cc0 <__func__.scanner_literal_is_created> "scanner_literal_is_created", line=2920) at jerryscript/jerry-core/jrt/jrt-fatals.c:83 #5 0x0000000000670b4d in scanner_literal_is_created (context_p=0x7fffffffcd20, literal_index=0) at jerryscript/jerry-core/parser/js/js-scanner-util.c:2920 #6 0x000000000063cf17 in parser_parse_function_arguments (context_p=0x7fffffffcd20, end_type=LEXER_RIGHT_PAREN) at jerryscript/jerry-core/parser/js/js-parser.c:1824 #7 0x0000000000638a5d in parser_parse_function (context_p=0x7fffffffcd20, status_flags=98310) at jerryscript/jerry-core/parser/js/js-parser.c:2685 #8 0x0000000000799477 in lexer_construct_function_object (context_p=0x7fffffffcd20, extra_status_flags=98310) at jerryscript/jerry-core/parser/js/js-lexer.c:2695 #9 0x00000000007c5bef in parser_parse_object_literal (context_p=0x7fffffffcd20) at jerryscript/jerry-core/parser/js/js-parser-expr.c:1405 #10 0x00000000007b3108 in parser_parse_unary_expression (context_p=0x7fffffffcd20, grouping_level_p=0x7fffffffb3c0) at jerryscript/jerry-core/parser/js/js-parser-expr.c:2133 #11 0x00000000007a6d31 in parser_parse_expression (context_p=0x7fffffffcd20, options=2) at jerryscript/jerry-core/parser/js/js-parser-expr.c:4115 #12 0x00000000007aee43 in parser_parse_block_expression (context_p=0x7fffffffcd20, options=0) at jerryscript/jerry-core/parser/js/js-parser-expr.c:4065 #13 0x00000000007da34e in parser_parse_statements (context_p=0x7fffffffcd20) at jerryscript/jerry-core/parser/js/js-parser-statm.c:3079 #14 0x0000000000650244 in parser_parse_source (source_p=0x7fffffffd3a0, parse_opts=0, options_p=0x7fffffffd4d0) at jerryscript/jerry-core/parser/js/js-parser.c:2280 #15 0x000000000064bccb in parser_parse_script (source_p=0x7fffffffd3a0, parse_opts=0, options_p=0x7fffffffd4d0) at jerryscript/jerry-core/parser/js/js-parser.c:3326 #16 0x00000000004cd867 in jerry_parse_common (source_p=0x7fffffffd3a0, options_p=0x7fffffffd4d0, parse_opts=0) at jerryscript/jerry-core/api/jerryscript.c:412 #17 0x00000000004cd104 in jerry_parse (source_p=0x60f000000040 "new { async [ yield ] ( ... yield ) { { } } , [ let ?? yield ] ( ... { } + class { } ) { try { } finally { } } }", ' ' <repeats 13 times>, source_size=173, options_p=0x7fffffffd4d0) at jerryscript/jerry-core/api/jerryscript.c:480 #18 0x0000000000805138 in jerryx_source_parse_script (path_p=0x7fffffffde38 "/run/user/1001/fuzzinator/697673/698753-FileWriterDecorator-3723f093c7934ab69135d6408fa0ee48/0.js") at jerryscript/jerry-ext/util/sources.c:52 #19 0x000000000080526f in jerryx_source_exec_script (path_p=0x7fffffffde38 "/run/user/1001/fuzzinator/697673/698753-FileWriterDecorator-3723f093c7934ab69135d6408fa0ee48/0.js") at jerryscript/jerry-ext/util/sources.c:63 #20 0x00000000004c4cb7 in main (argc=2, argv=0x7fffffffdb08) at jerryscript/jerry-main/main-desktop.c:156 ``` <sup>Found by [Fuzzinator](http://fuzzinator.readthedocs.io/) with [grammarinator](https://github.com/renatahodovan/grammarinator). </sup>
Assertion scope_stack_p > context_p->scope_stack_p in scanner_literal_is_created
https://api.github.com/repos/jerryscript-project/jerryscript/issues/5005/comments
0
2022-04-25T19:43:51Z
2022-04-25T19:43:51Z
https://github.com/jerryscript-project/jerryscript/issues/5005
1,214,964,179
5,005
[ "jerryscript-project", "jerryscript" ]
###### JerryScript revision 0d496966 ###### Build platform Linux-5.4.0-104-generic-x86_64-with-glibc2.29 ###### Build steps ``` ./tools/build.py --clean --debug --profile=es.next --error-messages=ON --logging=ON ``` ###### Test case ```javascript for ( let => { }in \) ; ``` ###### Output ```text ICE: Assertion 'context_p->next_scanner_info_p->type == SCANNER_TYPE_BLOCK' failed at jerryscript/jerry-core/parser/js/js-parser-statm.c(parser_push_block_context):325. Error: JERRY_FATAL_FAILED_ASSERTION AddressSanitizer:DEADLYSIGNAL ================================================================= ==697733==ERROR: AddressSanitizer: ABRT on unknown address 0x03e9000aa585 (pc 0x7f63ad14f03b bp 0x7fff7dce2930 sp 0x7fff7dce26c0 T0) #0 0x7f63ad14f03b in raise /build/glibc-sMfBJT/glibc-2.31/signal/../sysdeps/unix/sysv/linux/raise.c:51:1 #1 0x7f63ad12e858 in abort /build/glibc-sMfBJT/glibc-2.31/stdlib/abort.c:79:7 #2 0x806f07 in jerry_port_fatal jerryscript/jerry-port/common/jerry-port-process.c:29:5 #3 0x6281ca in jerry_fatal jerryscript/jerry-core/jrt/jrt-fatals.c:63:3 #4 0x627f7a in jerry_assert_fail jerryscript/jerry-core/jrt/jrt-fatals.c:83:3 #5 0x7dbe7b in parser_push_block_context jerryscript/jerry-core/parser/js/js-parser-statm.c:325:3 #6 0x7e5596 in parser_parse_for_statement_start jerryscript/jerry-core/parser/js/js-parser-statm.c:1188:21 #7 0x7d83fa in parser_parse_statements jerryscript/jerry-core/parser/js/js-parser-statm.c:2851:9 #8 0x650243 in parser_parse_source jerryscript/jerry-core/parser/js/js-parser.c:2280:5 #9 0x64bcca in parser_parse_script jerryscript/jerry-core/parser/js/js-parser.c:3326:38 #10 0x4cd866 in jerry_parse_common jerryscript/jerry-core/api/jerryscript.c:412:21 #11 0x4cd103 in jerry_parse jerryscript/jerry-core/api/jerryscript.c:480:10 #12 0x805137 in jerryx_source_parse_script jerryscript/jerry-ext/util/sources.c:52:26 #13 0x80526e in jerryx_source_exec_script jerryscript/jerry-ext/util/sources.c:63:26 #14 0x4c4cb6 in main jerryscript/jerry-main/main-desktop.c:156:20 #15 0x7f63ad1300b2 in __libc_start_main /build/glibc-sMfBJT/glibc-2.31/csu/../csu/libc-start.c:308:16 #16 0x41c53d in _start (jerryscript/build/bin/jerry+0x41c53d) AddressSanitizer can not provide additional info. SUMMARY: AddressSanitizer: ABRT /build/glibc-sMfBJT/glibc-2.31/signal/../sysdeps/unix/sysv/linux/raise.c:51:1 in raise ==697733==ABORTING ``` ###### Backtrace ```text bt #0 __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:50 #1 0x00007ffff7c33859 in __GI_abort () at abort.c:79 #2 0x0000000000806f08 in jerry_port_fatal (code=JERRY_FATAL_FAILED_ASSERTION) at jerryscript/jerry-port/common/jerry-port-process.c:29 #3 0x00000000006281cb in jerry_fatal (code=JERRY_FATAL_FAILED_ASSERTION) at jerryscript/jerry-core/jrt/jrt-fatals.c:63 #4 0x0000000000627f7b in jerry_assert_fail (assertion=0x896060 <str> "context_p->next_scanner_info_p->type == SCANNER_TYPE_BLOCK", file=0x895d60 <str> "jerryscript/jerry-core/parser/js/js-parser-statm.c", function=0x896280 <__func__.parser_push_block_context> "parser_push_block_context", line=325) at jerryscript/jerry-core/jrt/jrt-fatals.c:83 #5 0x00000000007dbe7c in parser_push_block_context (context_p=0x7fffffffcd20, is_private=true) at jerryscript/jerry-core/parser/js/js-parser-statm.c:325 #6 0x00000000007e5597 in parser_parse_for_statement_start (context_p=0x7fffffffcd20) at jerryscript/jerry-core/parser/js/js-parser-statm.c:1188 #7 0x00000000007d83fb in parser_parse_statements (context_p=0x7fffffffcd20) at jerryscript/jerry-core/parser/js/js-parser-statm.c:2851 #8 0x0000000000650244 in parser_parse_source (source_p=0x7fffffffd3a0, parse_opts=0, options_p=0x7fffffffd4d0) at jerryscript/jerry-core/parser/js/js-parser.c:2280 #9 0x000000000064bccb in parser_parse_script (source_p=0x7fffffffd3a0, parse_opts=0, options_p=0x7fffffffd4d0) at jerryscript/jerry-core/parser/js/js-parser.c:3326 #10 0x00000000004cd867 in jerry_parse_common (source_p=0x7fffffffd3a0, options_p=0x7fffffffd4d0, parse_opts=0) at jerryscript/jerry-core/api/jerryscript.c:412 #11 0x00000000004cd104 in jerry_parse (source_p=0x617000000080 "for ( let => { } in delete class _ { } < delete this + ( [ , , , ] ) ? . # false & { } ( ) -- >= void { } & import ( super | { } && super && th"..., source_size=679, options_p=0x7fffffffd4d0) at jerryscript/jerry-core/api/jerryscript.c:480 #12 0x0000000000805138 in jerryx_source_parse_script (path_p=0x7fffffffde38 "/run/user/1001/fuzzinator/697673/697731-FileWriterDecorator-06c47c6053774cc39b6720fbfbc28b09/0.js") at jerryscript/jerry-ext/util/sources.c:52 #13 0x000000000080526f in jerryx_source_exec_script (path_p=0x7fffffffde38 "/run/user/1001/fuzzinator/697673/697731-FileWriterDecorator-06c47c6053774cc39b6720fbfbc28b09/0.js") at jerryscript/jerry-ext/util/sources.c:63 #14 0x00000000004c4cb7 in main (argc=2, argv=0x7fffffffdb08) at jerryscript/jerry-main/main-desktop.c:156 ``` <sup>Found by [Fuzzinator](http://fuzzinator.readthedocs.io/) with [grammarinator](https://github.com/renatahodovan/grammarinator). </sup>
Assertion context_p->next_scanner_info_p->type == SCANNER_TYPE_BLOCK in parser_push_block_context
https://api.github.com/repos/jerryscript-project/jerryscript/issues/5004/comments
0
2022-04-25T19:40:53Z
2022-04-25T19:40:53Z
https://github.com/jerryscript-project/jerryscript/issues/5004
1,214,960,678
5,004
[ "jerryscript-project", "jerryscript" ]
###### JerryScript revision 0d496966 ###### Build platform Linux-5.4.0-104-generic-x86_64-with-glibc2.29 ###### Build steps ``` ./tools/build.py --clean --debug --profile=es.next --error-messages=ON --logging=ON ``` ###### Test case ```javascript class A { f ( ) { return ( { }, this ) } } class B extends A { constructor(p_0, b, c, d) { eval ( "eval ('super (a, b, c, d)')" ) ; print(super.f()=== 0) } } var a = new B ( ) ``` ###### Output ```text ICE: Assertion '!ecma_is_value_direct (x) || ecma_is_value_undefined (x) || ecma_is_value_null (x) || ecma_is_value_boolean (x) || ecma_is_value_integer_number (x)' failed at jerryscript/jerry-core/ecma/operations/ecma-comparison.c(ecma_op_strict_equality_compare):256. Error: JERRY_FATAL_FAILED_ASSERTION AddressSanitizer:DEADLYSIGNAL ================================================================= ==3268980==ERROR: AddressSanitizer: ABRT on unknown address 0x03e90031e174 (pc 0x7f7250d8d03b bp 0x7ffd4fbe44d0 sp 0x7ffd4fbe4260 T0) #0 0x7f7250d8d03b in raise /build/glibc-sMfBJT/glibc-2.31/signal/../sysdeps/unix/sysv/linux/raise.c:51:1 #1 0x7f7250d6c858 in abort /build/glibc-sMfBJT/glibc-2.31/stdlib/abort.c:79:7 #2 0x89ef3f in jerry_port_fatal jerryscript/jerry-port/common/jerry-port-process.c:29:5 #3 0x66b742 in jerry_fatal jerryscript/jerry-core/jrt/jrt-fatals.c:63:3 #4 0x66b4da in jerry_assert_fail jerryscript/jerry-core/jrt/jrt-fatals.c:83:3 #5 0x5c8bda in ecma_op_strict_equality_compare jerryscript/jerry-core/ecma/operations/ecma-comparison.c:255:5 #6 0x741fce in vm_loop jerryscript/jerry-core/vm/vm.c:3642:27 #7 0x7182d9 in vm_execute jerryscript/jerry-core/vm/vm.c:5211:37 #8 0x715ba5 in vm_run jerryscript/jerry-core/vm/vm.c:5312:10 #9 0x5ee8f8 in ecma_op_function_call_constructor jerryscript/jerry-core/ecma/operations/ecma-function-object.c:1036:15 #10 0x5e737d in ecma_op_function_call_simple jerryscript/jerry-core/ecma/operations/ecma-function-object.c:1116:14 #11 0x5e9555 in ecma_op_function_construct_simple jerryscript/jerry-core/ecma/operations/ecma-function-object.c:1492:28 #12 0x5e902f in ecma_op_function_construct jerryscript/jerry-core/ecma/operations/ecma-function-object.c:1713:14 #13 0x757b67 in opfunc_construct jerryscript/jerry-core/vm/vm.c:840:7 #14 0x718420 in vm_execute jerryscript/jerry-core/vm/vm.c:5236:9 #15 0x715ba5 in vm_run jerryscript/jerry-core/vm/vm.c:5312:10 #16 0x7155ff in vm_run_global jerryscript/jerry-core/vm/vm.c:286:25 #17 0x4cf99d in jerry_run jerryscript/jerry-core/api/jerryscript.c:548:24 #18 0x89cdc9 in jerryx_source_exec_script jerryscript/jerry-ext/util/sources.c:68:14 #19 0x4c4d84 in main jerryscript/jerry-main/main-desktop.c:156:20 #20 0x7f7250d6e0b2 in __libc_start_main /build/glibc-sMfBJT/glibc-2.31/csu/../csu/libc-start.c:308:16 #21 0x41c53d in _start (jerryscript/build/bin/jerry+0x41c53d) AddressSanitizer can not provide additional info. SUMMARY: AddressSanitizer: ABRT /build/glibc-sMfBJT/glibc-2.31/signal/../sysdeps/unix/sysv/linux/raise.c:51:1 in raise ==3268980==ABORTING ``` ###### Backtrace ```text bt #0 __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:50 #1 0x00007ffff7c33859 in __GI_abort () at abort.c:79 #2 0x000000000089ef40 in jerry_port_fatal (code=JERRY_FATAL_FAILED_ASSERTION) at jerryscript/jerry-port/common/jerry-port-process.c:29 #3 0x000000000066b743 in jerry_fatal (code=JERRY_FATAL_FAILED_ASSERTION) at jerryscript/jerry-core/jrt/jrt-fatals.c:63 #4 0x000000000066b4db in jerry_assert_fail (assertion=0x8d8b00 <str> "!ecma_is_value_direct (x) || ecma_is_value_undefined (x) || ecma_is_value_null (x) || ecma_is_value_boolean (x) || ecma_is_value_integer_number (x)", file=0x8d89a0 <str> "jerryscript/jerry-core/ecma/operations/ecma-comparison.c", function=0x8d8bc0 <__func__.ecma_op_strict_equality_compare> "ecma_op_strict_equality_compare", line=256) at jerryscript/jerry-core/jrt/jrt-fatals.c:83 #5 0x00000000005c8bdb in ecma_op_strict_equality_compare (x=104, y=80) at jerryscript/jerry-core/ecma/operations/ecma-comparison.c:255 #6 0x0000000000741fcf in vm_loop (frame_ctx_p=0x7fffffffc820) at jerryscript/jerry-core/vm/vm.c:3642 #7 0x00000000007182da in vm_execute (frame_ctx_p=0x7fffffffc820) at jerryscript/jerry-core/vm/vm.c:5211 #8 0x0000000000715ba6 in vm_run (shared_p=0x7fffffffcb60, this_binding_value=104, lex_env_p=0x1290440 <jerry_global_heap+1472>) at jerryscript/jerry-core/vm/vm.c:5312 #9 0x00000000005ee8f9 in ecma_op_function_call_constructor (shared_args_p=0x7fffffffcb60, scope_p=0x1290440 <jerry_global_heap+1472>, this_binding=104) at jerryscript/jerry-core/ecma/operations/ecma-function-object.c:1036 #10 0x00000000005e737e in ecma_op_function_call_simple (func_obj_p=0x1290370 <jerry_global_heap+1264>, this_binding=72, arguments_list_p=0x7fffffffd288, arguments_list_len=6) at jerryscript/jerry-core/ecma/operations/ecma-function-object.c:1116 #11 0x00000000005e9556 in ecma_op_function_construct_simple (func_obj_p=0x1290370 <jerry_global_heap+1264>, new_target_p=0x1290370 <jerry_global_heap+1264>, arguments_list_p=0x7fffffffd288, arguments_list_len=6) at jerryscript/jerry-core/ecma/operations/ecma-function-object.c:1492 #12 0x00000000005e9030 in ecma_op_function_construct (func_obj_p=0x1290370 <jerry_global_heap+1264>, new_target_p=0x1290370 <jerry_global_heap+1264>, arguments_list_p=0x7fffffffd288, arguments_list_len=6) at jerryscript/jerry-core/ecma/operations/ecma-function-object.c:1713 #13 0x0000000000757b68 in opfunc_construct (frame_ctx_p=0x7fffffffd240) at jerryscript/jerry-core/vm/vm.c:840 #14 0x0000000000718421 in vm_execute (frame_ctx_p=0x7fffffffd240) at jerryscript/jerry-core/vm/vm.c:5236 #15 0x0000000000715ba6 in vm_run (shared_p=0x7fffffffd460, this_binding_value=11, lex_env_p=0x1290170 <jerry_global_heap+752>) at jerryscript/jerry-core/vm/vm.c:5312 #16 0x0000000000715600 in vm_run_global (bytecode_p=0x1290588 <jerry_global_heap+1800>, function_object_p=0x1290160 <jerry_global_heap+736>) at jerryscript/jerry-core/vm/vm.c:286 #17 0x00000000004cf99e in jerry_run (script=739) at jerryscript/jerry-core/api/jerryscript.c:548 #18 0x000000000089cdca in jerryx_source_exec_script (path_p=0x7fffffffde36 "/run/user/1001/fuzzinator/3261026/3268976-FileWriterDecorator-18db9a912f2a42289769603c9cc0ed7e/0.js") at jerryscript/jerry-ext/util/sources.c:68 #19 0x00000000004c4d85 in main (argc=2, argv=0x7fffffffdb08) at jerryscript/jerry-main/main-desktop.c:156 ``` <sup>Found by [Fuzzinator](http://fuzzinator.readthedocs.io/) with [grammarinator](https://github.com/renatahodovan/grammarinator) </sup>
Assertion !ecma_is_value_direct (x) || ecma_is_value_undefined (x) || ecma_is_value_null (x) || ecma_is_value_boolean (x) || ecma_is_value_integer_number (x) in ecma_op_strict_equality_compare
https://api.github.com/repos/jerryscript-project/jerryscript/issues/5003/comments
0
2022-04-25T19:37:42Z
2022-04-25T19:37:42Z
https://github.com/jerryscript-project/jerryscript/issues/5003
1,214,957,940
5,003
[ "jerryscript-project", "jerryscript" ]
###### JerryScript revision 0d496966 ###### Build platform Linux-5.4.0-104-generic-x86_64-with-glibc2.29 ###### Build steps ``` ./tools/build.py --clean --debug --profile=es.next --error-messages=ON --logging=ON ``` ###### Test case ```javascript class Derived { 0( ) { for ( let in \) ;} } ``` ###### Output ```text ICE: Assertion '!has_context || context_p->next_scanner_info_p->type == SCANNER_TYPE_BLOCK' failed at jerryscript/jerry-core/parser/js/js-parser-statm.c(parser_parse_for_statement_start):1161. Error: JERRY_FATAL_FAILED_ASSERTION AddressSanitizer:DEADLYSIGNAL ================================================================= ==698820==ERROR: AddressSanitizer: ABRT on unknown address 0x03e9000aa9c4 (pc 0x7f33662a603b bp 0x7ffc6c7f1ff0 sp 0x7ffc6c7f1d80 T0) #0 0x7f33662a603b in raise /build/glibc-sMfBJT/glibc-2.31/signal/../sysdeps/unix/sysv/linux/raise.c:51:1 #1 0x7f3366285858 in abort /build/glibc-sMfBJT/glibc-2.31/stdlib/abort.c:79:7 #2 0x806f07 in jerry_port_fatal jerryscript/jerry-port/common/jerry-port-process.c:29:5 #3 0x6281ca in jerry_fatal jerryscript/jerry-core/jrt/jrt-fatals.c:63:3 #4 0x627f7a in jerry_assert_fail jerryscript/jerry-core/jrt/jrt-fatals.c:83:3 #5 0x7e4f87 in parser_parse_for_statement_start jerryscript/jerry-core/parser/js/js-parser-statm.c:1161:7 #6 0x7d83fa in parser_parse_statements jerryscript/jerry-core/parser/js/js-parser-statm.c:2851:9 #7 0x638e7b in parser_parse_function jerryscript/jerry-core/parser/js/js-parser.c:2717:3 #8 0x799476 in lexer_construct_function_object jerryscript/jerry-core/parser/js/js-lexer.c:2695:23 #9 0x7a94a4 in parser_parse_class_body jerryscript/jerry-core/parser/js/js-parser-expr.c:615:32 #10 0x7a660e in parser_parse_class jerryscript/jerry-core/parser/js/js-parser-expr.c:1110:27 #11 0x7d7ff9 in parser_parse_statements jerryscript/jerry-core/parser/js/js-parser-statm.c:2787:9 #12 0x650243 in parser_parse_source jerryscript/jerry-core/parser/js/js-parser.c:2280:5 #13 0x64bcca in parser_parse_script jerryscript/jerry-core/parser/js/js-parser.c:3326:38 #14 0x4cd866 in jerry_parse_common jerryscript/jerry-core/api/jerryscript.c:412:21 #15 0x4cd103 in jerry_parse jerryscript/jerry-core/api/jerryscript.c:480:10 #16 0x805137 in jerryx_source_parse_script jerryscript/jerry-ext/util/sources.c:52:26 #17 0x80526e in jerryx_source_exec_script jerryscript/jerry-ext/util/sources.c:63:26 #18 0x4c4cb6 in main jerryscript/jerry-main/main-desktop.c:156:20 #19 0x7f33662870b2 in __libc_start_main /build/glibc-sMfBJT/glibc-2.31/csu/../csu/libc-start.c:308:16 #20 0x41c53d in _start (jerryscript/build/bin/jerry+0x41c53d) AddressSanitizer can not provide additional info. SUMMARY: AddressSanitizer: ABRT /build/glibc-sMfBJT/glibc-2.31/signal/../sysdeps/unix/sysv/linux/raise.c:51:1 in raise ==698820==ABORTING ``` ###### Backtrace ```text bt #0 __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:50 #1 0x00007ffff7c33859 in __GI_abort () at abort.c:79 #2 0x0000000000806f08 in jerry_port_fatal (code=JERRY_FATAL_FAILED_ASSERTION) at jerryscript/jerry-port/common/jerry-port-process.c:29 #3 0x00000000006281cb in jerry_fatal (code=JERRY_FATAL_FAILED_ASSERTION) at jerryscript/jerry-core/jrt/jrt-fatals.c:63 #4 0x0000000000627f7b in jerry_assert_fail (assertion=0x896fa0 <str> "!has_context || context_p->next_scanner_info_p->type == SCANNER_TYPE_BLOCK", file=0x895d60 <str> "jerryscript/jerry-core/parser/js/js-parser-statm.c", function=0x896ea0 <__func__.parser_parse_for_statement_start> "parser_parse_for_statement_start", line=1161) at jerryscript/jerry-core/jrt/jrt-fatals.c:83 #5 0x00000000007e4f88 in parser_parse_for_statement_start (context_p=0x7fffffffcd20) at jerryscript/jerry-core/parser/js/js-parser-statm.c:1161 #6 0x00000000007d83fb in parser_parse_statements (context_p=0x7fffffffcd20) at jerryscript/jerry-core/parser/js/js-parser-statm.c:2851 #7 0x0000000000638e7c in parser_parse_function (context_p=0x7fffffffcd20, status_flags=1048598) at jerryscript/jerry-core/parser/js/js-parser.c:2717 #8 0x0000000000799477 in lexer_construct_function_object (context_p=0x7fffffffcd20, extra_status_flags=1048598) at jerryscript/jerry-core/parser/js/js-lexer.c:2695 #9 0x00000000007a94a5 in parser_parse_class_body (context_p=0x7fffffffcd20, opts=PARSER_CLASS_LITERAL_HERTIAGE_PRESENT, class_name_index=2) at jerryscript/jerry-core/parser/js/js-parser-expr.c:615 #10 0x00000000007a660f in parser_parse_class (context_p=0x7fffffffcd20, is_statement=true) at jerryscript/jerry-core/parser/js/js-parser-expr.c:1110 #11 0x00000000007d7ffa in parser_parse_statements (context_p=0x7fffffffcd20) at jerryscript/jerry-core/parser/js/js-parser-statm.c:2787 #12 0x0000000000650244 in parser_parse_source (source_p=0x7fffffffd3a0, parse_opts=0, options_p=0x7fffffffd4d0) at jerryscript/jerry-core/parser/js/js-parser.c:2280 #13 0x000000000064bccb in parser_parse_script (source_p=0x7fffffffd3a0, parse_opts=0, options_p=0x7fffffffd4d0) at jerryscript/jerry-core/parser/js/js-parser.c:3326 #14 0x00000000004cd867 in jerry_parse_common (source_p=0x7fffffffd3a0, options_p=0x7fffffffd4d0, parse_opts=0) at jerryscript/jerry-core/api/jerryscript.c:412 #15 0x00000000004cd104 in jerry_parse (source_p=0x61b000000080 "var setterCalled = false ; class Base { func ( ) { return 5 ; } funcArrow ( ) { return ( ) => 5 ; } [ \"com\" + \"puted\" ] ( ) { return 10 ; }"..., source_size=1588, options_p=0x7fffffffd4d0) at jerryscript/jerry-core/api/jerryscript.c:480 #16 0x0000000000805138 in jerryx_source_parse_script (path_p=0x7fffffffde38 "/run/user/1001/fuzzinator/697673/698818-FileWriterDecorator-20a573aae7f84998ade8d7b39d36ef92/0.js") at jerryscript/jerry-ext/util/sources.c:52 #17 0x000000000080526f in jerryx_source_exec_script (path_p=0x7fffffffde38 "/run/user/1001/fuzzinator/697673/698818-FileWriterDecorator-20a573aae7f84998ade8d7b39d36ef92/0.js") at jerryscript/jerry-ext/util/sources.c:63 #18 0x00000000004c4cb7 in main (argc=2, argv=0x7fffffffdb08) at jerryscript/jerry-main/main-desktop.c:156 ``` <sup>Found by [Fuzzinator](http://fuzzinator.readthedocs.io/) with [grammarinator](https://github.com/renatahodovan/grammarinator). </sup>
Assertion !has_context || context_p->next_scanner_info_p->type == SCANNER_TYPE_BLOCK in parser_parse_for_statement_start
https://api.github.com/repos/jerryscript-project/jerryscript/issues/5002/comments
0
2022-04-25T19:35:06Z
2022-04-25T19:35:06Z
https://github.com/jerryscript-project/jerryscript/issues/5002
1,214,955,600
5,002
[ "jerryscript-project", "jerryscript" ]
###### JerryScript revision 0d496966 ###### Build platform Linux-5.4.0-104-generic-x86_64-with-glibc2.29 ###### Build steps ``` ./tools/build.py --clean --debug --profile=es.next --error-messages=ON --logging=ON ``` ###### Test case ```javascript function shouldBe(actual) { if (actual) throw new Error ( 0+ actual ) } async function* asyncGenerator() { } asyncGenerator.prototype = 0; shouldBe(Object.getPrototypeOf(asyncGenerator())) ``` ###### Output ```text ICE: Assertion 'ecma_object_check_class_name_is_object (obj_p)' failed at jerryscript/jerry-core/ecma/operations/ecma-objects.c(ecma_object_get_class_name):2913. Error: JERRY_FATAL_FAILED_ASSERTION AddressSanitizer:DEADLYSIGNAL ================================================================= ==698972==ERROR: AddressSanitizer: ABRT on unknown address 0x03e9000aaa5c (pc 0x7f5d8c49b03b bp 0x7ffcc9f2a6a0 sp 0x7ffcc9f2a430 T0) #0 0x7f5d8c49b03b in raise /build/glibc-sMfBJT/glibc-2.31/signal/../sysdeps/unix/sysv/linux/raise.c:51:1 #1 0x7f5d8c47a858 in abort /build/glibc-sMfBJT/glibc-2.31/stdlib/abort.c:79:7 #2 0x806f07 in jerry_port_fatal jerryscript/jerry-port/common/jerry-port-process.c:29:5 #3 0x6281ca in jerry_fatal jerryscript/jerry-core/jrt/jrt-fatals.c:63:3 #4 0x627f7a in jerry_assert_fail jerryscript/jerry-core/jrt/jrt-fatals.c:83:3 #5 0x5e3660 in ecma_object_get_class_name jerryscript/jerry-core/ecma/operations/ecma-objects.c:2913:7 #6 0x72c214 in ecma_builtin_helper_object_to_string jerryscript/jerry-core/ecma/builtin-objects/ecma-builtin-helpers.c:143:19 #7 0x73ddda in ecma_builtin_object_prototype_object_to_string jerryscript/jerry-core/ecma/builtin-objects/ecma-builtin-object-prototype.c:89:10 #8 0x73d2d7 in ecma_builtin_object_prototype_dispatch_routine jerryscript/jerry-core/ecma/builtin-objects/ecma-builtin-object-prototype.c:395:14 #9 0x56f39d in ecma_builtin_dispatch_routine jerryscript/jerry-core/ecma/builtin-objects/ecma-builtins.c:1460:10 #10 0x56ead1 in ecma_builtin_dispatch_call jerryscript/jerry-core/ecma/builtin-objects/ecma-builtins.c:1489:12 #11 0x5b9af2 in ecma_op_function_call_native_built_in jerryscript/jerry-core/ecma/operations/ecma-function-object.c:1217:5 #12 0x5b8640 in ecma_op_function_call jerryscript/jerry-core/ecma/operations/ecma-function-object.c:1411:16 #13 0x5cbf3b in ecma_op_general_object_ordinary_value jerryscript/jerry-core/ecma/operations/ecma-objects-general.c:291:25 #14 0x5cbcb4 in ecma_op_general_object_default_value jerryscript/jerry-core/ecma/operations/ecma-objects-general.c:256:10 #15 0x5dc3be in ecma_op_object_default_value jerryscript/jerry-core/ecma/operations/ecma-objects.c:1718:10 #16 0x6a0a07 in opfunc_addition jerryscript/jerry-core/vm/opcodes-ecma-arithmetics.c:198:19 #17 0x6dcef8 in vm_loop jerryscript/jerry-core/vm/vm.c:3450:20 #18 0x6bb8f1 in vm_execute jerryscript/jerry-core/vm/vm.c:5211:37 #19 0x6b975b in vm_run jerryscript/jerry-core/vm/vm.c:5312:10 #20 0x5b9674 in ecma_op_function_call_simple jerryscript/jerry-core/ecma/operations/ecma-function-object.c:1176:28 #21 0x5b860d in ecma_op_function_call jerryscript/jerry-core/ecma/operations/ecma-function-object.c:1406:16 #22 0x5b830e in ecma_op_function_validated_call jerryscript/jerry-core/ecma/operations/ecma-function-object.c:1371:10 #23 0x6efb26 in opfunc_call jerryscript/jerry-core/vm/vm.c:758:5 #24 0x6bb99c in vm_execute jerryscript/jerry-core/vm/vm.c:5217:9 #25 0x6b975b in vm_run jerryscript/jerry-core/vm/vm.c:5312:10 #26 0x6b91b7 in vm_run_global jerryscript/jerry-core/vm/vm.c:286:25 #27 0x4ce357 in jerry_run jerryscript/jerry-core/api/jerryscript.c:548:24 #28 0x8052c9 in jerryx_source_exec_script jerryscript/jerry-ext/util/sources.c:68:14 #29 0x4c4cb6 in main jerryscript/jerry-main/main-desktop.c:156:20 #30 0x7f5d8c47c0b2 in __libc_start_main /build/glibc-sMfBJT/glibc-2.31/csu/../csu/libc-start.c:308:16 #31 0x41c53d in _start (jerryscript/build/bin/jerry+0x41c53d) AddressSanitizer can not provide additional info. SUMMARY: AddressSanitizer: ABRT /build/glibc-sMfBJT/glibc-2.31/signal/../sysdeps/unix/sysv/linux/raise.c:51:1 in raise ==698972==ABORTING ``` ###### Backtrace ```text bt #0 __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:50 #1 0x00007ffff7c33859 in __GI_abort () at abort.c:79 #2 0x0000000000806f08 in jerry_port_fatal (code=JERRY_FATAL_FAILED_ASSERTION) at jerryscript/jerry-port/common/jerry-port-process.c:29 #3 0x00000000006281cb in jerry_fatal (code=JERRY_FATAL_FAILED_ASSERTION) at jerryscript/jerry-core/jrt/jrt-fatals.c:63 #4 0x0000000000627f7b in jerry_assert_fail (assertion=0x849fa0 <str> "ecma_object_check_class_name_is_object (obj_p)", file=0x8490c0 <str> "jerryscript/jerry-core/ecma/operations/ecma-objects.c", function=0x849e80 <__func__.ecma_object_get_class_name> "ecma_object_get_class_name", line=2913) at jerryscript/jerry-core/jrt/jrt-fatals.c:83 #5 0x00000000005e3661 in ecma_object_get_class_name (obj_p=0x11dfa88 <jerry_global_heap+904>) at jerryscript/jerry-core/ecma/operations/ecma-objects.c:2913 #6 0x000000000072c215 in ecma_builtin_helper_object_to_string (this_arg=907) at jerryscript/jerry-core/ecma/builtin-objects/ecma-builtin-helpers.c:143 #7 0x000000000073dddb in ecma_builtin_object_prototype_object_to_string (this_arg=907) at jerryscript/jerry-core/ecma/builtin-objects/ecma-builtin-object-prototype.c:89 #8 0x000000000073d2d8 in ecma_builtin_object_prototype_dispatch_routine (builtin_routine_id=1 '\001', this_arg=907, arguments_list_p=0x7fffffff6da0, arguments_number=0) at jerryscript/jerry-core/ecma/builtin-objects/ecma-builtin-object-prototype.c:395 #9 0x000000000056f39e in ecma_builtin_dispatch_routine (func_obj_p=0x11dfc50 <jerry_global_heap+1360>, this_arg_value=907, arguments_list_p=0x7fffffff6da0, arguments_list_len=0) at jerryscript/jerry-core/ecma/builtin-objects/ecma-builtins.c:1460 #10 0x000000000056ead2 in ecma_builtin_dispatch_call (obj_p=0x11dfc50 <jerry_global_heap+1360>, this_arg_value=907, arguments_list_p=0x0, arguments_list_len=0) at jerryscript/jerry-core/ecma/builtin-objects/ecma-builtins.c:1489 #11 0x00000000005b9af3 in ecma_op_function_call_native_built_in (func_obj_p=0x11dfc50 <jerry_global_heap+1360>, this_arg_value=907, arguments_list_p=0x0, arguments_list_len=0) at jerryscript/jerry-core/ecma/operations/ecma-function-object.c:1217 #12 0x00000000005b8641 in ecma_op_function_call (func_obj_p=0x11dfc50 <jerry_global_heap+1360>, this_arg_value=907, arguments_list_p=0x0, arguments_list_len=0) at jerryscript/jerry-core/ecma/operations/ecma-function-object.c:1411 #13 0x00000000005cbf3c in ecma_op_general_object_ordinary_value (obj_p=0x11dfa88 <jerry_global_heap+904>, hint=ECMA_PREFERRED_TYPE_NUMBER) at jerryscript/jerry-core/ecma/operations/ecma-objects-general.c:291 #14 0x00000000005cbcb5 in ecma_op_general_object_default_value (obj_p=0x11dfa88 <jerry_global_heap+904>, hint=ECMA_PREFERRED_TYPE_NUMBER) at jerryscript/jerry-core/ecma/operations/ecma-objects-general.c:256 #15 0x00000000005dc3bf in ecma_op_object_default_value (obj_p=0x11dfa88 <jerry_global_heap+904>, hint=ECMA_PREFERRED_TYPE_NO) at jerryscript/jerry-core/ecma/operations/ecma-objects.c:1718 #16 0x00000000006a0a08 in opfunc_addition (left_value=1017, right_value=907) at jerryscript/jerry-core/vm/opcodes-ecma-arithmetics.c:198 #17 0x00000000006dcef9 in vm_loop (frame_ctx_p=0x7fffffffc960) at jerryscript/jerry-core/vm/vm.c:3450 #18 0x00000000006bb8f2 in vm_execute (frame_ctx_p=0x7fffffffc960) at jerryscript/jerry-core/vm/vm.c:5211 #19 0x00000000006b975c in vm_run (shared_p=0x7fffffffcb80, this_binding_value=11, lex_env_p=0x11df7f8 <jerry_global_heap+248>) at jerryscript/jerry-core/vm/vm.c:5312 #20 0x00000000005b9675 in ecma_op_function_call_simple (func_obj_p=0x11df9f0 <jerry_global_heap+752>, this_binding=11, arguments_list_p=0x7fffffffd288, arguments_list_len=2) at jerryscript/jerry-core/ecma/operations/ecma-function-object.c:1176 #21 0x00000000005b860e in ecma_op_function_call (func_obj_p=0x11df9f0 <jerry_global_heap+752>, this_arg_value=72, arguments_list_p=0x7fffffffd288, arguments_list_len=2) at jerryscript/jerry-core/ecma/operations/ecma-function-object.c:1406 #22 0x00000000005b830f in ecma_op_function_validated_call (callee=755, this_arg_value=72, arguments_list_p=0x7fffffffd288, arguments_list_len=2) at jerryscript/jerry-core/ecma/operations/ecma-function-object.c:1371 #23 0x00000000006efb27 in opfunc_call (frame_ctx_p=0x7fffffffd240) at jerryscript/jerry-core/vm/vm.c:758 #24 0x00000000006bb99d in vm_execute (frame_ctx_p=0x7fffffffd240) at jerryscript/jerry-core/vm/vm.c:5217 #25 0x00000000006b975c in vm_run (shared_p=0x7fffffffd460, this_binding_value=11, lex_env_p=0x11df7f8 <jerry_global_heap+248>) at jerryscript/jerry-core/vm/vm.c:5312 #26 0x00000000006b91b8 in vm_run_global (bytecode_p=0x11dfc90 <jerry_global_heap+1424>, function_object_p=0x11df9e0 <jerry_global_heap+736>) at jerryscript/jerry-core/vm/vm.c:286 #27 0x00000000004ce358 in jerry_run (script=739) at jerryscript/jerry-core/api/jerryscript.c:548 #28 0x00000000008052ca in jerryx_source_exec_script (path_p=0x7fffffffde38 "/run/user/1001/fuzzinator/697673/698970-FileWriterDecorator-44644032b49a484c95687ff1166ed1c8/0.js") at jerryscript/jerry-ext/util/sources.c:68 #29 0x00000000004c4cb7 in main (argc=2, argv=0x7fffffffdb08) at jerryscript/jerry-main/main-desktop.c:156 ``` <sup>Found by [Fuzzinator](http://fuzzinator.readthedocs.io/) with [grammarinator](https://github.com/renatahodovan/grammarinator). </sup>
Assertion ecma_object_check_class_name_is_object (obj_p) in ecma_object_get_class_name
https://api.github.com/repos/jerryscript-project/jerryscript/issues/5001/comments
0
2022-04-25T16:50:06Z
2022-04-25T16:50:06Z
https://github.com/jerryscript-project/jerryscript/issues/5001
1,214,781,098
5,001
[ "jerryscript-project", "jerryscript" ]
###### JerryScript revision 0d496966 ###### Build platform Linux-5.4.0-104-generic-x86_64-with-glibc2.29 ###### Build steps ``` ./tools/build.py --clean --debug --profile=es.next --error-messages=ON --logging=ON ``` ###### Test case ```javascript let x = [ ]; let k = 1 ; for ( ; ; ) { k = k * 2 ; x [ k ] = k } ``` ###### Output ```text ICE: Assertion 'index <= ECMA_DIRECT_STRING_MAX_IMM' failed at jerryscript/jerry-core/ecma/operations/ecma-array-object.c(ecma_fast_array_convert_to_normal):321. Error: JERRY_FATAL_FAILED_ASSERTION AddressSanitizer:DEADLYSIGNAL ================================================================= ==699588==ERROR: AddressSanitizer: ABRT on unknown address 0x03e9000aacc4 (pc 0x7f59ddac303b bp 0x7ffdc60e4d60 sp 0x7ffdc60e4af0 T0) #0 0x7f59ddac303b in raise /build/glibc-sMfBJT/glibc-2.31/signal/../sysdeps/unix/sysv/linux/raise.c:51:1 #1 0x7f59ddaa2858 in abort /build/glibc-sMfBJT/glibc-2.31/stdlib/abort.c:79:7 #2 0x806f07 in jerry_port_fatal jerryscript/jerry-port/common/jerry-port-process.c:29:5 #3 0x6281ca in jerry_fatal jerryscript/jerry-core/jrt/jrt-fatals.c:63:3 #4 0x627f7a in jerry_assert_fail jerryscript/jerry-core/jrt/jrt-fatals.c:83:3 #5 0x587ef3 in ecma_fast_array_convert_to_normal jerryscript/jerry-core/ecma/operations/ecma-array-object.c:321:5 #6 0x588b40 in ecma_fast_array_set_property jerryscript/jerry-core/ecma/operations/ecma-array-object.c:385:5 #7 0x5d8eb3 in ecma_op_object_put_with_receiver jerryscript/jerry-core/ecma/operations/ecma-objects.c:1378:18 #8 0x6f4829 in vm_op_set_value jerryscript/jerry-core/vm/vm.c:224:16 #9 0x6ed5e4 in vm_loop jerryscript/jerry-core/vm/vm.c:4741:43 #10 0x6bb8f1 in vm_execute jerryscript/jerry-core/vm/vm.c:5211:37 #11 0x6b975b in vm_run jerryscript/jerry-core/vm/vm.c:5312:10 #12 0x6b91b7 in vm_run_global jerryscript/jerry-core/vm/vm.c:286:25 #13 0x4ce357 in jerry_run jerryscript/jerry-core/api/jerryscript.c:548:24 #14 0x8052c9 in jerryx_source_exec_script jerryscript/jerry-ext/util/sources.c:68:14 #15 0x4c4cb6 in main jerryscript/jerry-main/main-desktop.c:156:20 #16 0x7f59ddaa40b2 in __libc_start_main /build/glibc-sMfBJT/glibc-2.31/csu/../csu/libc-start.c:308:16 #17 0x41c53d in _start (jerryscript/build/bin/jerry+0x41c53d) AddressSanitizer can not provide additional info. SUMMARY: AddressSanitizer: ABRT /build/glibc-sMfBJT/glibc-2.31/signal/../sysdeps/unix/sysv/linux/raise.c:51:1 in raise ==699588==ABORTING ``` ###### Backtrace ```text bt #0 __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:50 #1 0x00007ffff7c33859 in __GI_abort () at abort.c:79 #2 0x0000000000806f08 in jerry_port_fatal (code=JERRY_FATAL_FAILED_ASSERTION) at jerryscript/jerry-port/common/jerry-port-process.c:29 #3 0x00000000006281cb in jerry_fatal (code=JERRY_FATAL_FAILED_ASSERTION) at jerryscript/jerry-core/jrt/jrt-fatals.c:63 #4 0x0000000000627f7b in jerry_assert_fail (assertion=0x83e3e0 <str> "index <= ECMA_DIRECT_STRING_MAX_IMM", file=0x83e020 <str> "jerryscript/jerry-core/ecma/operations/ecma-array-object.c", function=0x83e380 <__func__.ecma_fast_array_convert_to_normal> "ecma_fast_array_convert_to_normal", line=321) at jerryscript/jerry-core/jrt/jrt-fatals.c:83 #5 0x0000000000587ef4 in ecma_fast_array_convert_to_normal (object_p=0x11dfa38 <jerry_global_heap+824>) at jerryscript/jerry-core/ecma/operations/ecma-array-object.c:321 #6 0x0000000000588b41 in ecma_fast_array_set_property (object_p=0x11dfa38 <jerry_global_heap+824>, index=131072, value=2097152) at jerryscript/jerry-core/ecma/operations/ecma-array-object.c:385 #7 0x00000000005d8eb4 in ecma_op_object_put_with_receiver (object_p=0x11dfa38 <jerry_global_heap+824>, property_name_p=0x11dfa48 <jerry_global_heap+840>, value=2097152, receiver=827, is_throw=false) at jerryscript/jerry-core/ecma/operations/ecma-objects.c:1378 #8 0x00000000006f482a in vm_op_set_value (base=827, property=2097152, value=2097152, is_strict=false) at jerryscript/jerry-core/vm/vm.c:224 #9 0x00000000006ed5e5 in vm_loop (frame_ctx_p=0x7fffffffd240) at jerryscript/jerry-core/vm/vm.c:4741 #10 0x00000000006bb8f2 in vm_execute (frame_ctx_p=0x7fffffffd240) at jerryscript/jerry-core/vm/vm.c:5211 #11 0x00000000006b975c in vm_run (shared_p=0x7fffffffd460, this_binding_value=11, lex_env_p=0x11df9f0 <jerry_global_heap+752>) at jerryscript/jerry-core/vm/vm.c:5312 #12 0x00000000006b91b8 in vm_run_global (bytecode_p=0x11dfc58 <jerry_global_heap+1368>, function_object_p=0x11df9e0 <jerry_global_heap+736>) at jerryscript/jerry-core/vm/vm.c:286 #13 0x00000000004ce358 in jerry_run (script=739) at jerryscript/jerry-core/api/jerryscript.c:548 #14 0x00000000008052ca in jerryx_source_exec_script (path_p=0x7fffffffde38 "/run/user/1001/fuzzinator/697673/699585-FileWriterDecorator-a1ff659e50ab42cb9b802f43f58d16fc/0.js") at jerryscript/jerry-ext/util/sources.c:68 #15 0x00000000004c4cb7 in main (argc=2, argv=0x7fffffffdb08) at jerryscript/jerry-main/main-desktop.c:156 ``` <sup>Found by [Fuzzinator](http://fuzzinator.readthedocs.io/) with [grammarinator](https://github.com/renatahodovan/grammarinator). </sup>
Assertion index <= ECMA_DIRECT_STRING_MAX_IMM in ecma_fast_array_convert_to_normal
https://api.github.com/repos/jerryscript-project/jerryscript/issues/5000/comments
0
2022-04-25T16:47:00Z
2022-04-25T16:47:00Z
https://github.com/jerryscript-project/jerryscript/issues/5000
1,214,778,073
5,000
[ "jerryscript-project", "jerryscript" ]
###### JerryScript revision 0d496966 ###### Build platform Linux-5.4.0-104-generic-x86_64-with-glibc2.29 ###### Build steps ``` ./tools/build.py --clean --debug --profile=es.next --error-messages=ON --logging=ON ``` ###### Test case ```javascript class A { } class B extends A { constructor(a,b,c,d){ eval("eval ('super (a, b, c, d)')"); super.__proto__} } var a = new B(); ``` ###### Output ```text ICE: Assertion 'ecma_is_value_undefined (value) || ecma_is_value_null (value) || ecma_is_value_boolean (value) || ecma_is_value_number (value) || ecma_is_value_string (value) || ecma_is_value_bigint (value) || ecma_is_value_symbol (value) || ecma_is_value_object (value)' failed at jerryscript/jerry-core/ecma/base/ecma-helpers-value.c(ecma_check_value_type_is_spec_defined):432. Error: JERRY_FATAL_FAILED_ASSERTION AddressSanitizer:DEADLYSIGNAL ================================================================= ==698630==ERROR: AddressSanitizer: ABRT on unknown address 0x03e9000aa906 (pc 0x7f00a4d4203b bp 0x7ffee59ac660 sp 0x7ffee59ac3f0 T0) #0 0x7f00a4d4203b in raise /build/glibc-sMfBJT/glibc-2.31/signal/../sysdeps/unix/sysv/linux/raise.c:51:1 #1 0x7f00a4d21858 in abort /build/glibc-sMfBJT/glibc-2.31/stdlib/abort.c:79:7 #2 0x806f07 in jerry_port_fatal jerryscript/jerry-port/common/jerry-port-process.c:29:5 #3 0x6281ca in jerry_fatal jerryscript/jerry-core/jrt/jrt-fatals.c:63:3 #4 0x627f7a in jerry_assert_fail jerryscript/jerry-core/jrt/jrt-fatals.c:83:3 #5 0x53101d in ecma_check_value_type_is_spec_defined jerryscript/jerry-core/ecma/base/ecma-helpers-value.c:430:3 #6 0x5a92ea in ecma_op_require_object_coercible jerryscript/jerry-core/ecma/operations/ecma-conversion.c:61:3 #7 0x73fbd3 in ecma_builtin_object_object_set_proto jerryscript/jerry-core/ecma/builtin-objects/ecma-builtin-object.c:253:8 #8 0x73d7de in ecma_builtin_object_prototype_dispatch_routine jerryscript/jerry-core/ecma/builtin-objects/ecma-builtin-object-prototype.c:448:12 #9 0x56f39d in ecma_builtin_dispatch_routine jerryscript/jerry-core/ecma/builtin-objects/ecma-builtins.c:1460:10 #10 0x56ead1 in ecma_builtin_dispatch_call jerryscript/jerry-core/ecma/builtin-objects/ecma-builtins.c:1489:12 #11 0x5b9af2 in ecma_op_function_call_native_built_in jerryscript/jerry-core/ecma/operations/ecma-function-object.c:1217:5 #12 0x5b8640 in ecma_op_function_call jerryscript/jerry-core/ecma/operations/ecma-function-object.c:1411:16 #13 0x5dad85 in ecma_op_object_put_with_receiver jerryscript/jerry-core/ecma/operations/ecma-objects.c:1615:5 #14 0x6b1dd6 in opfunc_assign_super_reference jerryscript/jerry-core/vm/opcodes.c:2073:5 #15 0x6d4f07 in vm_loop jerryscript/jerry-core/vm/vm.c:2852:20 #16 0x6bb8f1 in vm_execute jerryscript/jerry-core/vm/vm.c:5211:37 #17 0x6b975b in vm_run jerryscript/jerry-core/vm/vm.c:5312:10 #18 0x5bf4c8 in ecma_op_function_call_constructor jerryscript/jerry-core/ecma/operations/ecma-function-object.c:1036:15 #19 0x5b8f30 in ecma_op_function_call_simple jerryscript/jerry-core/ecma/operations/ecma-function-object.c:1116:14 #20 0x5bac78 in ecma_op_function_construct_simple jerryscript/jerry-core/ecma/operations/ecma-function-object.c:1492:28 #21 0x5ba7eb in ecma_op_function_construct jerryscript/jerry-core/ecma/operations/ecma-function-object.c:1713:14 #22 0x6f20b5 in opfunc_construct jerryscript/jerry-core/vm/vm.c:840:7 #23 0x6bba38 in vm_execute jerryscript/jerry-core/vm/vm.c:5236:9 #24 0x6b975b in vm_run jerryscript/jerry-core/vm/vm.c:5312:10 #25 0x6b91b7 in vm_run_global jerryscript/jerry-core/vm/vm.c:286:25 #26 0x4ce357 in jerry_run jerryscript/jerry-core/api/jerryscript.c:548:24 #27 0x8052c9 in jerryx_source_exec_script jerryscript/jerry-ext/util/sources.c:68:14 #28 0x4c4cb6 in main jerryscript/jerry-main/main-desktop.c:156:20 #29 0x7f00a4d230b2 in __libc_start_main /build/glibc-sMfBJT/glibc-2.31/csu/../csu/libc-start.c:308:16 #30 0x41c53d in _start (jerryscript/build/bin/jerry+0x41c53d) AddressSanitizer can not provide additional info. SUMMARY: AddressSanitizer: ABRT /build/glibc-sMfBJT/glibc-2.31/signal/../sysdeps/unix/sysv/linux/raise.c:51:1 in raise ==698630==ABORTING ``` ###### Backtrace ```text bt #0 __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:50 #1 0x00007ffff7c33859 in __GI_abort () at abort.c:79 #2 0x0000000000806f08 in jerry_port_fatal (code=JERRY_FATAL_FAILED_ASSERTION) at jerryscript/jerry-port/common/jerry-port-process.c:29 #3 0x00000000006281cb in jerry_fatal (code=JERRY_FATAL_FAILED_ASSERTION) at jerryscript/jerry-core/jrt/jrt-fatals.c:63 #4 0x0000000000627f7b in jerry_assert_fail (assertion=0x82d0a0 <str> "ecma_is_value_undefined (value) || ecma_is_value_null (value) || ecma_is_value_boolean (value) || ecma_is_value_number (value) || ecma_is_value_string (value) || ecma_is_value_bigint (value) || ecma_i"..., file=0x82d1c0 <str> "jerryscript/jerry-core/ecma/base/ecma-helpers-value.c", function=0x82d240 <__func__.ecma_check_value_type_is_spec_defined> "ecma_check_value_type_is_spec_defined", line=432) at jerryscript/jerry-core/jrt/jrt-fatals.c:83 #5 0x000000000053101e in ecma_check_value_type_is_spec_defined (value=104) at jerryscript/jerry-core/ecma/base/ecma-helpers-value.c:430 #6 0x00000000005a92eb in ecma_op_require_object_coercible (value=104) at jerryscript/jerry-core/ecma/operations/ecma-conversion.c:61 #7 0x000000000073fbd4 in ecma_builtin_object_object_set_proto (arg1=104, arg2=160) at jerryscript/jerry-core/ecma/builtin-objects/ecma-builtin-object.c:253 #8 0x000000000073d7df in ecma_builtin_object_prototype_dispatch_routine (builtin_routine_id=8 '\b', this_arg=104, arguments_list_p=0x7fffffff6920, arguments_number=1) at jerryscript/jerry-core/ecma/builtin-objects/ecma-builtin-object-prototype.c:448 #9 0x000000000056f39e in ecma_builtin_dispatch_routine (func_obj_p=0x11dfeb0 <jerry_global_heap+1968>, this_arg_value=104, arguments_list_p=0x7fffffff6920, arguments_list_len=1) at jerryscript/jerry-core/ecma/builtin-objects/ecma-builtins.c:1460 #10 0x000000000056ead2 in ecma_builtin_dispatch_call (obj_p=0x11dfeb0 <jerry_global_heap+1968>, this_arg_value=104, arguments_list_p=0x7fffffff6d20, arguments_list_len=1) at jerryscript/jerry-core/ecma/builtin-objects/ecma-builtins.c:1489 #11 0x00000000005b9af3 in ecma_op_function_call_native_built_in (func_obj_p=0x11dfeb0 <jerry_global_heap+1968>, this_arg_value=104, arguments_list_p=0x7fffffff6d20, arguments_list_len=1) at jerryscript/jerry-core/ecma/operations/ecma-function-object.c:1217 #12 0x00000000005b8641 in ecma_op_function_call (func_obj_p=0x11dfeb0 <jerry_global_heap+1968>, this_arg_value=104, arguments_list_p=0x7fffffff6d20, arguments_list_len=1) at jerryscript/jerry-core/ecma/operations/ecma-function-object.c:1411 #13 0x00000000005dad86 in ecma_op_object_put_with_receiver (object_p=0x11dfa90 <jerry_global_heap+912>, property_name_p=0x1f6d, value=160, receiver=104, is_throw=true) at jerryscript/jerry-core/ecma/operations/ecma-objects.c:1615 #14 0x00000000006b1dd7 in opfunc_assign_super_reference (vm_stack_top_p=0x7fffffff74a0, frame_ctx_p=0x7fffffffc840, opcode_data=168) at jerryscript/jerry-core/vm/opcodes.c:2073 #15 0x00000000006d4f08 in vm_loop (frame_ctx_p=0x7fffffffc840) at jerryscript/jerry-core/vm/vm.c:2852 #16 0x00000000006bb8f2 in vm_execute (frame_ctx_p=0x7fffffffc840) at jerryscript/jerry-core/vm/vm.c:5211 #17 0x00000000006b975c in vm_run (shared_p=0x7fffffffcb80, this_binding_value=104, lex_env_p=0x11dfb68 <jerry_global_heap+1128>) at jerryscript/jerry-core/vm/vm.c:5312 #18 0x00000000005bf4c9 in ecma_op_function_call_constructor (shared_args_p=0x7fffffffcb80, scope_p=0x11dfb68 <jerry_global_heap+1128>, this_binding=104) at jerryscript/jerry-core/ecma/operations/ecma-function-object.c:1036 #19 0x00000000005b8f31 in ecma_op_function_call_simple (func_obj_p=0x11dfbb0 <jerry_global_heap+1200>, this_binding=72, arguments_list_p=0x7fffffffd288, arguments_list_len=6) at jerryscript/jerry-core/ecma/operations/ecma-function-object.c:1116 #20 0x00000000005bac79 in ecma_op_function_construct_simple (func_obj_p=0x11dfbb0 <jerry_global_heap+1200>, new_target_p=0x11dfbb0 <jerry_global_heap+1200>, arguments_list_p=0x7fffffffd288, arguments_list_len=6) at jerryscript/jerry-core/ecma/operations/ecma-function-object.c:1492 #21 0x00000000005ba7ec in ecma_op_function_construct (func_obj_p=0x11dfbb0 <jerry_global_heap+1200>, new_target_p=0x11dfbb0 <jerry_global_heap+1200>, arguments_list_p=0x7fffffffd288, arguments_list_len=6) at jerryscript/jerry-core/ecma/operations/ecma-function-object.c:1713 #22 0x00000000006f20b6 in opfunc_construct (frame_ctx_p=0x7fffffffd240) at jerryscript/jerry-core/vm/vm.c:840 #23 0x00000000006bba39 in vm_execute (frame_ctx_p=0x7fffffffd240) at jerryscript/jerry-core/vm/vm.c:5236 #24 0x00000000006b975c in vm_run (shared_p=0x7fffffffd460, this_binding_value=11, lex_env_p=0x11df9f0 <jerry_global_heap+752>) at jerryscript/jerry-core/vm/vm.c:5312 #25 0x00000000006b91b8 in vm_run_global (bytecode_p=0x11dfe08 <jerry_global_heap+1800>, function_object_p=0x11df9e0 <jerry_global_heap+736>) at jerryscript/jerry-core/vm/vm.c:286 #26 0x00000000004ce358 in jerry_run (script=739) at jerryscript/jerry-core/api/jerryscript.c:548 #27 0x00000000008052ca in jerryx_source_exec_script (path_p=0x7fffffffde38 "/run/user/1001/fuzzinator/697673/698628-FileWriterDecorator-51cb32bd94fc469c9f02930f2319071c/0.js") at jerryscript/jerry-ext/util/sources.c:68 #28 0x00000000004c4cb7 in main (argc=2, argv=0x7fffffffdb08) at jerryscript/jerry-main/main-desktop.c:156 ``` <sup>Found by [Fuzzinator](http://fuzzinator.readthedocs.io/) with [grammarinator](https://github.com/renatahodovan/grammarinator). </sup>
Assertion ecma_is_value_undefined (value) || ecma_is_value_null (value) || ecma_is_value_boolean (value) || ecma_is_value_number (value) || ecma_is_value_string (value) || ecma_is_value_bigint (value) || ecma_is_value_symbol (value) || ecma_is_value_object (value) in ecma_check_value_type_is_spec_defined
https://api.github.com/repos/jerryscript-project/jerryscript/issues/4999/comments
0
2022-04-25T16:44:46Z
2022-04-25T16:44:46Z
https://github.com/jerryscript-project/jerryscript/issues/4999
1,214,775,865
4,999
[ "jerryscript-project", "jerryscript" ]
###### JerryScript revision 0d496966 ###### Build platform Linux-5.4.0-104-generic-x86_64-with-glibc2.29 ###### Build steps ``` ./tools/build.py --clean --debug --profile=es.next --error-messages=ON --logging=ON ``` ###### Test case ```javascript for (var {...r} = o in new Map( )); ``` ###### Output ```text ICE: Assertion '!!(flags & PARSER_PATTERN_HAS_REST_ELEMENT) == rest_found' failed at jerryscript/jerry-core/parser/js/js-parser-expr.c(parser_parse_object_initializer):3895. Error: JERRY_FATAL_FAILED_ASSERTION AddressSanitizer:DEADLYSIGNAL ================================================================= ==3270099==ERROR: AddressSanitizer: ABRT on unknown address 0x03e90031e5d3 (pc 0x7f13bff6703b bp 0x7fff3c593150 sp 0x7fff3c592ee0 T0) #0 0x7f13bff6703b in raise /build/glibc-sMfBJT/glibc-2.31/signal/../sysdeps/unix/sysv/linux/raise.c:51:1 #1 0x7f13bff46858 in abort /build/glibc-sMfBJT/glibc-2.31/stdlib/abort.c:79:7 #2 0x89ef3f in jerry_port_fatal jerryscript/jerry-port/common/jerry-port-process.c:29:5 #3 0x66b742 in jerry_fatal jerryscript/jerry-core/jrt/jrt-fatals.c:63:3 #4 0x66b4da in jerry_assert_fail jerryscript/jerry-core/jrt/jrt-fatals.c:83:3 #5 0x837a4e in parser_parse_object_initializer jerryscript/jerry-core/parser/js/js-parser-expr.c:3895:3 #6 0x8389ce in parser_parse_initializer_by_next_char jerryscript/jerry-core/parser/js/js-parser-expr.c:3944:5 #7 0x879739 in parser_parse_for_statement_start jerryscript/jerry-core/parser/js/js-parser-statm.c:1293:11 #8 0x868f9b in parser_parse_statements jerryscript/jerry-core/parser/js/js-parser-statm.c:2851:9 #9 0x69ae84 in parser_parse_source jerryscript/jerry-core/parser/js/js-parser.c:2280:5 #10 0x69629a in parser_parse_script jerryscript/jerry-core/parser/js/js-parser.c:3326:38 #11 0x4ced00 in jerry_parse_common jerryscript/jerry-core/api/jerryscript.c:412:21 #12 0x4ce473 in jerry_parse jerryscript/jerry-core/api/jerryscript.c:480:10 #13 0x89cc1f in jerryx_source_parse_script jerryscript/jerry-ext/util/sources.c:52:26 #14 0x89cd6e in jerryx_source_exec_script jerryscript/jerry-ext/util/sources.c:63:26 #15 0x4c4d84 in main jerryscript/jerry-main/main-desktop.c:156:20 #16 0x7f13bff480b2 in __libc_start_main /build/glibc-sMfBJT/glibc-2.31/csu/../csu/libc-start.c:308:16 #17 0x41c53d in _start (jerryscript/build/bin/jerry+0x41c53d) AddressSanitizer can not provide additional info. SUMMARY: AddressSanitizer: ABRT /build/glibc-sMfBJT/glibc-2.31/signal/../sysdeps/unix/sysv/linux/raise.c:51:1 in raise ==3270099==ABORTING ``` ###### Backtrace ```text bt #0 __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:50 #1 0x00007ffff7c33859 in __GI_abort () at abort.c:79 #2 0x000000000089ef40 in jerry_port_fatal (code=JERRY_FATAL_FAILED_ASSERTION) at jerryscript/jerry-port/common/jerry-port-process.c:29 #3 0x000000000066b743 in jerry_fatal (code=JERRY_FATAL_FAILED_ASSERTION) at jerryscript/jerry-core/jrt/jrt-fatals.c:63 #4 0x000000000066b4db in jerry_assert_fail (assertion=0x929ea0 <str> "!!(flags & PARSER_PATTERN_HAS_REST_ELEMENT) == rest_found", file=0x929160 <str> "jerryscript/jerry-core/parser/js/js-parser-expr.c", function=0x929dc0 <__func__.parser_parse_object_initializer> "parser_parse_object_initializer", line=3895) at jerryscript/jerry-core/jrt/jrt-fatals.c:83 #5 0x0000000000837a4f in parser_parse_object_initializer (context_p=0x7fffffffcd20, flags=(PARSER_PATTERN_BINDING | PARSER_PATTERN_TARGET_ON_STACK | PARSER_PATTERN_REST_ELEMENT)) at jerryscript/jerry-core/parser/js/js-parser-expr.c:3895 #6 0x00000000008389cf in parser_parse_initializer_by_next_char (context_p=0x7fffffffcd20, flags=(PARSER_PATTERN_BINDING | PARSER_PATTERN_TARGET_ON_STACK)) at jerryscript/jerry-core/parser/js/js-parser-expr.c:3944 #7 0x000000000087973a in parser_parse_for_statement_start (context_p=0x7fffffffcd20) at jerryscript/jerry-core/parser/js/js-parser-statm.c:1293 #8 0x0000000000868f9c in parser_parse_statements (context_p=0x7fffffffcd20) at jerryscript/jerry-core/parser/js/js-parser-statm.c:2851 #9 0x000000000069ae85 in parser_parse_source (source_p=0x7fffffffd3a0, parse_opts=0, options_p=0x7fffffffd4d0) at jerryscript/jerry-core/parser/js/js-parser.c:2280 #10 0x000000000069629b in parser_parse_script (source_p=0x7fffffffd3a0, parse_opts=0, options_p=0x7fffffffd4d0) at jerryscript/jerry-core/parser/js/js-parser.c:3326 #11 0x00000000004ced01 in jerry_parse_common (source_p=0x7fffffffd3a0, options_p=0x7fffffffd4d0, parse_opts=0) at jerryscript/jerry-core/api/jerryscript.c:412 #12 0x00000000004ce474 in jerry_parse (source_p=0x607000000020 "for ( var { ... r } = o in new Map ( \"\\uFFA2\" ) ) ; ", source_size=77, options_p=0x7fffffffd4d0) at jerryscript/jerry-core/api/jerryscript.c:480 #13 0x000000000089cc20 in jerryx_source_parse_script (path_p=0x7fffffffde36 "/run/user/1001/fuzzinator/3261026/3270079-FileWriterDecorator-0e4d2c28b2ac47759841127d665b5fff/0.js") at jerryscript/jerry-ext/util/sources.c:52 #14 0x000000000089cd6f in jerryx_source_exec_script (path_p=0x7fffffffde36 "/run/user/1001/fuzzinator/3261026/3270079-FileWriterDecorator-0e4d2c28b2ac47759841127d665b5fff/0.js") at jerryscript/jerry-ext/util/sources.c:63 #15 0x00000000004c4d85 in main (argc=2, argv=0x7fffffffdb08) at jerryscript/jerry-main/main-desktop.c:156 ``` <sup>Found by [Fuzzinator](http://fuzzinator.readthedocs.io/) with [grammarinator](https://github.com/renatahodovan/grammarinator). </sup>
Assertion !!(flags & PARSER_PATTERN_HAS_REST_ELEMENT) == rest_found in parser_parse_object_initializer
https://api.github.com/repos/jerryscript-project/jerryscript/issues/4998/comments
0
2022-04-25T16:38:42Z
2022-04-25T16:38:42Z
https://github.com/jerryscript-project/jerryscript/issues/4998
1,214,770,024
4,998
[ "jerryscript-project", "jerryscript" ]
###### JerryScript revision 0d496966 ###### Build platform Linux-5.4.0-104-generic-x86_64-with-glibc2.29 ###### Build steps ``` ./tools/build.py --clean --debug --profile=es.next --error-messages=ON --logging=ON ``` ###### Test case ```javascript "use strict"; function testDCE(){ if (class { 0 = super 0 = } ;} ``` ###### Output ```text ICE: Assertion 'context_p->token.type == LEXER_LITERAL && (context_p->token.lit_location.type == LEXER_IDENT_LITERAL || context_p->token.lit_location.type == LEXER_STRING_LITERAL)' failed at jerryscript/jerry-core/parser/js/js-lexer.c(lexer_compare_literal_to_string):3544. Error: JERRY_FATAL_FAILED_ASSERTION AddressSanitizer:DEADLYSIGNAL ================================================================= ==3265841==ERROR: AddressSanitizer: ABRT on unknown address 0x03e90031d531 (pc 0x7f27e8efd03b bp 0x7ffdbdd53e30 sp 0x7ffdbdd53bc0 T0) #0 0x7f27e8efd03b in raise /build/glibc-sMfBJT/glibc-2.31/signal/../sysdeps/unix/sysv/linux/raise.c:51:1 #1 0x7f27e8edc858 in abort /build/glibc-sMfBJT/glibc-2.31/stdlib/abort.c:79:7 #2 0x89ef3f in jerry_port_fatal jerryscript/jerry-port/common/jerry-port-process.c:29:5 #3 0x66b742 in jerry_fatal jerryscript/jerry-core/jrt/jrt-fatals.c:63:3 #4 0x66b4da in jerry_assert_fail jerryscript/jerry-core/jrt/jrt-fatals.c:83:3 #5 0x826bee in lexer_compare_literal_to_string jerryscript/jerry-core/parser/js/js-lexer.c:3542:3 #6 0x6e636f in scanner_primary_to_post_primary_expression jerryscript/jerry-core/parser/js/js-scanner.c:75:51 #7 0x6d18d3 in scanner_scan_primary_expression jerryscript/jerry-core/parser/js/js-scanner.c:254:14 #8 0x6c4428 in scanner_scan_all jerryscript/jerry-core/parser/js/js-scanner.c:2461:15 #9 0x698fe5 in parser_parse_source jerryscript/jerry-core/parser/js/js-parser.c:2167:3 #10 0x69629a in parser_parse_script jerryscript/jerry-core/parser/js/js-parser.c:3326:38 #11 0x4ced00 in jerry_parse_common jerryscript/jerry-core/api/jerryscript.c:412:21 #12 0x4ce473 in jerry_parse jerryscript/jerry-core/api/jerryscript.c:480:10 #13 0x89cc1f in jerryx_source_parse_script jerryscript/jerry-ext/util/sources.c:52:26 #14 0x89cd6e in jerryx_source_exec_script jerryscript/jerry-ext/util/sources.c:63:26 #15 0x4c4d84 in main jerryscript/jerry-main/main-desktop.c:156:20 #16 0x7f27e8ede0b2 in __libc_start_main /build/glibc-sMfBJT/glibc-2.31/csu/../csu/libc-start.c:308:16 #17 0x41c53d in _start (jerryscript/build/bin/jerry+0x41c53d) AddressSanitizer can not provide additional info. SUMMARY: AddressSanitizer: ABRT /build/glibc-sMfBJT/glibc-2.31/signal/../sysdeps/unix/sysv/linux/raise.c:51:1 in raise ==3265841==ABORTING ``` ###### Backtrace ```text bt #0 __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:50 #1 0x00007ffff7c33859 in __GI_abort () at abort.c:79 #2 0x000000000089ef40 in jerry_port_fatal (code=JERRY_FATAL_FAILED_ASSERTION) at jerryscript/jerry-port/common/jerry-port-process.c:29 #3 0x000000000066b743 in jerry_fatal (code=JERRY_FATAL_FAILED_ASSERTION) at jerryscript/jerry-core/jrt/jrt-fatals.c:63 #4 0x000000000066b4db in jerry_assert_fail (assertion=0x926900 <str> "context_p->token.type == LEXER_LITERAL && (context_p->token.lit_location.type == LEXER_IDENT_LITERAL || context_p->token.lit_location.type == LEXER_STRING_LITERAL)", file=0x9256a0 <str> "jerryscript/jerry-core/parser/js/js-lexer.c", function=0x9269e0 <__func__.lexer_compare_literal_to_string> "lexer_compare_literal_to_string", line=3544) at jerryscript/jerry-core/jrt/jrt-fatals.c:83 #5 0x0000000000826bef in lexer_compare_literal_to_string (context_p=0x7fffffffcd20, string_p=0x8fd480 <str> "static", string_length=6) at jerryscript/jerry-core/parser/js/js-lexer.c:3542 #6 0x00000000006e6370 in scanner_primary_to_post_primary_expression (context_p=0x7fffffffcd20, scanner_context_p=0x7fffffffbf80) at jerryscript/jerry-core/parser/js/js-scanner.c:75 #7 0x00000000006d18d4 in scanner_scan_primary_expression (context_p=0x7fffffffcd20, scanner_context_p=0x7fffffffbf80, type=LEXER_KEYW_SUPER, stack_top=SCAN_STACK_CLASS_FIELD_INITIALIZER) at jerryscript/jerry-core/parser/js/js-scanner.c:254 #8 0x00000000006c4429 in scanner_scan_all (context_p=0x7fffffffcd20) at jerryscript/jerry-core/parser/js/js-scanner.c:2461 #9 0x0000000000698fe6 in parser_parse_source (source_p=0x7fffffffd3a0, parse_opts=0, options_p=0x7fffffffd4d0) at jerryscript/jerry-core/parser/js/js-parser.c:2167 #10 0x000000000069629b in parser_parse_script (source_p=0x7fffffffd3a0, parse_opts=0, options_p=0x7fffffffd4d0) at jerryscript/jerry-core/parser/js/js-parser.c:3326 #11 0x00000000004ced01 in jerry_parse_common (source_p=0x7fffffffd3a0, options_p=0x7fffffffd4d0, parse_opts=0) at jerryscript/jerry-core/api/jerryscript.c:412 #12 0x00000000004ce474 in jerry_parse (source_p=0x626000000100 "\"use strict\" ; let logOfFour = Math . log ( 4 ) ; let validInputTestCases = [ [ \"undefined\" , \"NaN\" ] , [ \"null\" , \"-Infinity\" ] , [ \"0\" , \"-Infi"..., source_size=10247, options_p=0x7fffffffd4d0) at jerryscript/jerry-core/api/jerryscript.c:480 #13 0x000000000089cc20 in jerryx_source_parse_script (path_p=0x7fffffffde36 "/run/user/1001/fuzzinator/3261026/3265826-FileWriterDecorator-45b0efaa73a346e780b061aaaa5aea5d/0.js") at jerryscript/jerry-ext/util/sources.c:52 #14 0x000000000089cd6f in jerryx_source_exec_script (path_p=0x7fffffffde36 "/run/user/1001/fuzzinator/3261026/3265826-FileWriterDecorator-45b0efaa73a346e780b061aaaa5aea5d/0.js") at jerryscript/jerry-ext/util/sources.c:63 #15 0x00000000004c4d85 in main (argc=2, argv=0x7fffffffdb08) at jerryscript/jerry-main/main-desktop.c:156 ``` <sup>Found by [Fuzzinator](http://fuzzinator.readthedocs.io/) with [grammarinator](https://github.com/renatahodovan/grammarinator). </sup>
Assertion context_p->token.type == LEXER_LITERAL && (context_p->token.lit_location.type == LEXER_IDENT_LITERAL || context_p->token.lit_location.type == LEXER_STRING_LITERAL) in lexer_compare_literal_to_string
https://api.github.com/repos/jerryscript-project/jerryscript/issues/4997/comments
0
2022-04-25T16:17:57Z
2022-04-25T16:17:57Z
https://github.com/jerryscript-project/jerryscript/issues/4997
1,214,748,177
4,997
[ "jerryscript-project", "jerryscript" ]
Hey! I am using jerry script as a scripting backend in my game engine. And it works great :) But I can't figure out how to implement script reloading. When you develop something, you need to restart and run scripts over and over again. How can i do this? In other scripting languages, I just loaded the script again and all objects were overwritten. But Jerry says, “OK, this property already exists. Stop it." This happens when I try to reload the classes. I think I can fix the source code and change this behaviour, but is this the correct solution? How can I load a script with some class and then reload that script with the same class?
How I can reload script?
https://api.github.com/repos/jerryscript-project/jerryscript/issues/4996/comments
2
2022-04-11T19:16:43Z
2022-04-17T06:56:16Z
https://github.com/jerryscript-project/jerryscript/issues/4996
1,200,422,822
4,996
[ "jerryscript-project", "jerryscript" ]
###### Version Version: 3.0.0 (fea10bb7) ###### Execution steps /.jsvu/jerry Testcase.js ###### Test case 1 ```js var foo = function(it) { var a = [...it, , ]; print(a); print(a.length); }; var Parameter0 = [1, 2]; foo(Parameter0); ``` ###### Output 1 ``` 1,2 2 ``` ###### Expected behavior ``` 1,2, 3 ``` ###### Test case 2 ```js var foo = function(it) { var arr = [ , ]; var a = it.concat(arr); print(a); print(a.length); }; var Parameter0 = [1, 2]; foo(Parameter0); ``` ###### Output 2 ``` 1,2, 3 ``` ###### Description I tested on multiple JS engines, test case 1 and test case 2 have the same semantics, they should have the same output. But jerry outputs abnormal results when executing test case 1.
Array concatenation exception
https://api.github.com/repos/jerryscript-project/jerryscript/issues/4995/comments
1
2022-04-11T07:32:39Z
2022-10-09T10:09:20Z
https://github.com/jerryscript-project/jerryscript/issues/4995
1,199,518,928
4,995
[ "jerryscript-project", "jerryscript" ]
###### Version Version: 3.0.0 (fea10bb7) ###### Test case ```js var foo = function (parts) { parts.sort(function (a, b) { return a.avalue - b.value;//NaN }); parts.forEach(function (item) { print(item.value) }) }; var Parameter0 = [ { name: 'Edward', value: 21 }, { name: 'Tom', value: 37 }, { name: 'Jerry', value: -12 } ]; foo(Parameter0); ``` ###### Execution steps /.jsvu/jerry Testcase.js ###### Output ``` -12 37 21 ``` ###### Expected behavior ``` 21 37 -12 ``` ###### Description When executing this test case, I mistakenly wrote `a.value` to `a.avalue` in line 3, which caused all the return values of `parts.sort` to become `NaN`. At this point, none of the other engines changed the ordering of the original array, but `jerryscript` reversed the array.
A question about Array.prototype.sort
https://api.github.com/repos/jerryscript-project/jerryscript/issues/4994/comments
1
2022-04-09T14:16:47Z
2022-10-09T09:55:53Z
https://github.com/jerryscript-project/jerryscript/issues/4994
1,198,629,540
4,994
[ "jerryscript-project", "jerryscript" ]
Built jerry script with debugger, wrote some js class and started session. Tried to expand "catch" section at first line of class definition, and debugger failed with message: ``` ICE: Assertion 'ecma_is_value_object (value)' failed at C:\work\jerryscript-master\jerryscript-master\jerry-core\debugger\debugger.c(jerry_debugger_get_variable_type):303. Error: JERRY_FATAL_FAILED_ASSERTION ``` Also, I found another case with integer variable with property descriptor. Debugger can't understand that it is number value, but jerry_value_get_type() returns number type; ###### JerryScript revision Release 2.4.0 ###### Build platform Windows, built with cmake on visual studio 2022, with enabled debugger ###### Test case Input file test.js: ``` class MyClass { constructor() { this.a = 6; } dd() { print(this.a) } } let x = new MyClass(); x.dd(); ``` - run jerry script command line with parameters: `--log-level 2 --start-debug-server --debugger-wait-source test.js` - connect visual code debugger - try to expand "catch" section of variables - jerry script command line asserts with message: ``` ICE: Assertion 'ecma_is_value_object (value)' failed at C:\work\jerryscript-master\jerryscript-master\jerry-core\debugger\debugger.c(jerry_debugger_get_variable_type):303. Error: JERRY_FATAL_FAILED_ASSERTION ``` ###### Backtrace ``` > jerry.exe!jerry_port_fatal(jerry_fatal_code_t code) Line 32 C jerry.exe!jerry_fatal(jerry_fatal_code_t code) Line 66 C jerry.exe!jerry_assert_fail(const char * assertion, const char * file, const char * function, const unsigned int line) Line 84 C jerry.exe!jerry_debugger_get_variable_type(unsigned int value) Line 303 C jerry.exe!jerry_debugger_send_scope_variables(const unsigned char * recv_buffer_p) Line 504 C jerry.exe!jerry_debugger_process_message(const unsigned char * recv_buffer_p, unsigned int message_size, bool * resume_exec_p, unsigned char * expected_message_type_p, jerry_debugger_uint8_data_t * * message_data_p) Line 869 C jerry.exe!jerry_debugger_receive(jerry_debugger_uint8_data_t * * message_data_p) Line 1129 C jerry.exe!jerry_debugger_breakpoint_hit(unsigned char message_type) Line 1175 C jerry.exe!vm_loop(vm_frame_ctx_t * frame_ctx_p) Line 4640 C jerry.exe!vm_execute(vm_frame_ctx_t * frame_ctx_p) Line 5211 C jerry.exe!vm_run(vm_frame_ctx_shared_t * shared_p, unsigned int this_binding_value, ecma_object_t * lex_env_p) Line 5313 C jerry.exe!vm_run_global(const ecma_compiled_code_t * bytecode_p, ecma_object_t * function_object_p) Line 286 C jerry.exe!jerry_run(const unsigned int script) Line 548 C jerry.exe!jerryx_source_exec_script(const char * path_p) Line 68 C jerry.exe!main(int argc, char * * argv) Line 156 C ```
Assertion when debugging a class
https://api.github.com/repos/jerryscript-project/jerryscript/issues/4993/comments
0
2022-04-04T21:30:05Z
2022-04-04T21:30:05Z
https://github.com/jerryscript-project/jerryscript/issues/4993
1,192,335,714
4,993
[ "jerryscript-project", "jerryscript" ]
###### JerryScript revision 0d4969661810b9e618485c284c361e597144e9b9 ###### Build platform Ubuntu 20.04.4 LTS ###### Build steps ```sh python tools/build.py --debug --logging=on --error-messages=on --line-info=on ``` ###### Test case ```js var f = function () {} let x = { get: function (theTarget, propName) { return 0; } }; let p = new Proxy(Number, x); try { let n = new p(f); } catch (e) { print(e); } print('exit ...'); ``` ###### Execution steps ```sh build/bin/jerry poc.js ``` ###### Output ``` TypeError: Incorrect value is returned by a Proxy 'get' trap exit ... ICE: Assertion 'JERRY_CONTEXT (jmem_heap_allocated_size) == 0' failed at jerryscript/jerry-core/jmem/jmem-heap.c(jmem_heap_finalize):108. Error: JERRY_FATAL_FAILED_ASSERTION Aborted ```
Memory Leak in Number Proxy
https://api.github.com/repos/jerryscript-project/jerryscript/issues/4990/comments
1
2022-03-12T07:29:14Z
2022-03-12T07:41:20Z
https://github.com/jerryscript-project/jerryscript/issues/4990
1,167,209,108
4,990
[ "jerryscript-project", "jerryscript" ]
###### JerryScript revision 0d4969661810b9e618485c284c361e597144e9b9 ###### Build platform Ubuntu 20.04.4 LTS ###### Build steps ```sh python tools/build.py --debug --logging=on --error-messages=on --line-info=on ``` ###### Test case ```js var f = function () {} let x = { get: function (theTarget, propName) { return 0; } }; let p = new Proxy(Number, x); try { let n = new p(f); } catch (e) { print(e); } print('exit ...'); ``` ###### Execution steps ```sh build/bin/jerry poc.js ``` ###### Output ``` TypeError: Incorrect value is returned by a Proxy 'get' trap exit ... ICE: Assertion 'JERRY_CONTEXT (jmem_heap_allocated_size) == 0' failed at jerryscript/jerry-core/jmem/jmem-heap.c(jmem_heap_finalize):108. Error: JERRY_FATAL_FAILED_ASSERTION Aborted ```
Memory Leak in Number Proxy
https://api.github.com/repos/jerryscript-project/jerryscript/issues/4989/comments
1
2022-03-12T07:27:28Z
2022-03-12T07:41:02Z
https://github.com/jerryscript-project/jerryscript/issues/4989
1,167,208,834
4,989
[ "jerryscript-project", "jerryscript" ]
###### JerryScript revision 0d4969661810b9e618485c284c361e597144e9b9 ###### Build platform Ubuntu 20.04.4 LTS ###### Build steps ```sh python tools/build.py --debug --logging=on --error-messages=on --line-info=on ``` ###### Test case ```js var f = function () {} let x = { get: function (theTarget, propName) { return 0; } }; let p = new Proxy(Number, x); try { let n = new p(f); } catch (e) { print(e); } print('exit ...'); ``` ###### Execution steps ```sh build/bin/jerry poc.js ``` ###### Output ``` TypeError: Incorrect value is returned by a Proxy 'get' trap exit ... ICE: Assertion 'JERRY_CONTEXT (jmem_heap_allocated_size) == 0' failed at jerryscript/jerry-core/jmem/jmem-heap.c(jmem_heap_finalize):108. Error: JERRY_FATAL_FAILED_ASSERTION Aborted ```
Memory Leak in Number Proxy
https://api.github.com/repos/jerryscript-project/jerryscript/issues/4988/comments
0
2022-03-12T07:24:09Z
2022-03-12T07:24:09Z
https://github.com/jerryscript-project/jerryscript/issues/4988
1,167,207,824
4,988
[ "jerryscript-project", "jerryscript" ]
I am investigating a memory leak issue, I noticed `Allocated object data` is growing from `jmem_heap_stats (void)` Is there a way to dump heap info to a file. (Like heap-profiler in V8 https://chromedevtools.github.io/devtools-protocol/v8/HeapProfiler/)
[Feature request] dump heap memory
https://api.github.com/repos/jerryscript-project/jerryscript/issues/4987/comments
0
2022-03-02T08:00:13Z
2022-03-02T08:00:13Z
https://github.com/jerryscript-project/jerryscript/issues/4987
1,156,714,007
4,987
[ "jerryscript-project", "jerryscript" ]
I see now just a simple string concatenation of `directory_p` and `specifier`: https://github.com/jerryscript-project/jerryscript/blob/0d4969661810b9e618485c284c361e597144e9b9/jerry-core/api/jerry-module.c#L141-L161 Does this mean that scenarios like absolute paths cannot be handled? My proposal for this is to add a parameter to `jerry_port_path_normalize` that specifies `directory_size` (which is also an offset to `specifier`).
Proposal for module path handling
https://api.github.com/repos/jerryscript-project/jerryscript/issues/4986/comments
0
2022-03-02T02:46:38Z
2022-03-02T02:49:38Z
https://github.com/jerryscript-project/jerryscript/issues/4986
1,156,255,296
4,986
[ "jerryscript-project", "jerryscript" ]
###### Version Version: 3.0.0 (fea10bb7) ###### Test case ```js var foo = function() { var y = 200; try { throw {} } catch ({ x = function(){print(y);} }) { let y = 300; x(); } }; foo(); ``` ###### Execution steps /.jsvu/jerry Testcase.js ###### Output ``` 300 ``` ###### Expected behavior ``` 200 ``` ###### Description The correct output of the test case should be `200` while jerryscript yields `300`. The reason I think is that jerryscript fails to deal with the scope of the global and local variables `y`, where jerryscript may treat the local variable `y` at line 8 as the global variable, leading to output `300` at line 6.
Variable Scope Problem
https://api.github.com/repos/jerryscript-project/jerryscript/issues/4985/comments
0
2022-02-22T11:14:35Z
2022-02-22T11:14:35Z
https://github.com/jerryscript-project/jerryscript/issues/4985
1,146,777,195
4,985
[ "jerryscript-project", "jerryscript" ]
``` jerry_char_t * jerry_port_path_normalize (const jerry_char_t *path_p, /**< input path */ jerry_size_t path_size) /**< size of the path */ { (void) path_size; return (jerry_char_t *) realpath ((char *) path_p, NULL); } /* jerry_port_path_normalize */ ``` Currently the implementation of jerry_port_path_normalize are called realpath directly, than may return NULL when path_p is not NULL, but that's not expected.
on unix, realpath are can failed when the path not exist
https://api.github.com/repos/jerryscript-project/jerryscript/issues/4983/comments
0
2022-02-10T05:35:20Z
2022-02-10T05:35:20Z
https://github.com/jerryscript-project/jerryscript/issues/4983
1,129,477,506
4,983
[ "jerryscript-project", "jerryscript" ]
All the place calling to strlen are ``` Name Line Text Path jerry-debugger.c 150 size_t source_name_size = strlen ((const char *) source_name_p); E:\CI-Cor\acrop\acrop-deps\acrop-jerry\jerryscript\jerry-core\api jerryscript.c 5091 strlen (str_p)); E:\CI-Cor\acrop\acrop-deps\acrop-jerry\jerryscript\jerry-core\api jerry-snapshot.c 1472 string_size = (lit_utf8_size_t) strlen (chars); E:\CI-Cor\acrop\acrop-deps\acrop-jerry\jerryscript\jerry-core\api debugger.c 599 jerry_debugger_send_string (JERRY_DEBUGGER_EVAL_RESULT, type, string_p, strlen ((const char *) string_p)); E:\CI-Cor\acrop\acrop-deps\acrop-jerry\jerryscript\jerry-core\debugger lit-strings.c 267 return (lit_utf8_size_t) strlen ((const char *) utf8_str_p); E:\CI-Cor\acrop\acrop-deps\acrop-jerry\jerryscript\jerry-core\lit module.c 187 if (module_p->name_p != NULL && strlen ((char *) module_p->name_p) == name_size E:\CI-Cor\acrop\acrop-deps\acrop-jerry\jerryscript\jerry-ext\module print.c 153 jerry_size_t buffer_size = (jerry_size_t) (strlen (str_p)); E:\CI-Cor\acrop\acrop-deps\acrop-jerry\jerryscript\jerry-ext\util sources.c 50 jerry_string ((const jerry_char_t *) path_p, (jerry_size_t) strlen (path_p), JERRY_ENCODING_UTF8); E:\CI-Cor\acrop\acrop-deps\acrop-jerry\jerryscript\jerry-ext\util sources.c 79 jerry_string ((const jerry_char_t *) path_p, (jerry_size_t) strlen (path_p), JERRY_ENCODING_UTF8); E:\CI-Cor\acrop\acrop-deps\acrop-jerry\jerryscript\jerry-ext\util main-snapshot.c 342 jerry_string ((const jerry_char_t *) file_name_p, (jerry_size_t) strlen (file_name_p), JERRY_ENCODING_UTF8); E:\CI-Cor\acrop\acrop-deps\acrop-jerry\jerryscript\jerry-main main-snapshot.c 348 (jerry_size_t) strlen (function_args_p), E:\CI-Cor\acrop\acrop-deps\acrop-jerry\jerryscript\jerry-main ``` We can improve the usage of strlen by improving the api of jerry-port and other related functions
feature, strlen are rarely called in jerry-core and jerry-ext, we can remove all the usage of strlen
https://api.github.com/repos/jerryscript-project/jerryscript/issues/4979/comments
0
2022-02-09T21:14:01Z
2022-02-09T21:14:01Z
https://github.com/jerryscript-project/jerryscript/issues/4979
1,129,027,521
4,979
[ "jerryscript-project", "jerryscript" ]
According to https://github.com/jerryscript-project/jerryscript/blob/badfdf4dba1fa0a15bd78163c1713ada5e65cd22/jerry-core/lit/lit-magic-strings.c#L44 We can use lit_magic_strings[id] - lit_magic_strings[id+1] to calcuate the length of `lit_magic_strings[id]`, without the need of strlen.
lit_get_magic_string_utf8 can be improved without the need of strlen
https://api.github.com/repos/jerryscript-project/jerryscript/issues/4978/comments
0
2022-02-09T21:10:30Z
2022-02-09T21:10:30Z
https://github.com/jerryscript-project/jerryscript/issues/4978
1,129,024,653
4,978
[ "jerryscript-project", "jerryscript" ]
According to https://tc39.es/proposal-temporal/docs/now.html#instant, The Temporal.Now.instant() are improved the accuracy over Date.now from millisecond to nanosecond, that's need tthe `jerryscript`'s port API to support nanosecond precision
temporal.now require ` nanosecond accuracy`
https://api.github.com/repos/jerryscript-project/jerryscript/issues/4975/comments
3
2022-02-09T19:09:19Z
2022-02-09T20:45:49Z
https://github.com/jerryscript-project/jerryscript/issues/4975
1,128,922,572
4,975
[ "jerryscript-project", "jerryscript" ]
###### JerryScript revision #d00f4810b0e8eaa6a6755e2d0ecbd1713ecfca49 ###### Test case **Error Code** ```c //periodically calling the following code every 1 second will causing JERRY_FATAL_REF_COUNT_LIMIT randomly jerry_value_t jerry_arguments[2]; jerry_arguments[0] = jerry_number(0); jerry_arguments[1] = jerry_array(1); jerry_value_t element_0 = jerry_number(0); jerry_value_free(jerry_object_set_index(jerry_arguments[1], 0, element_0 )); //jerry_value_free(element_0); //Also tried with this line un-commended, but having the same result jerry_call(jerry_function, jerry_undefined(), jerry_arguments, 2); jerry_value_free(jerry_arguments[0]); jerry_value_free(jerry_arguments[1]); ``` **Good Code** ```c //periodically calling the following code every 1 second will NOT causing JERRY_FATAL_REF_COUNT_LIMIT jerry_value_t jerry_arguments[2]; jerry_arguments[0] = jerry_number(0); jerry_arguments[1] = jerry_number(1); jerry_call(jerry_function, jerry_undefined(), jerry_arguments, 2); jerry_value_free(jerry_arguments[0]); jerry_value_free(jerry_arguments[1]); ``` ###### Execution steps Call the above code in the Error Section every 1 second, it will randomly causing JERRY_FATAL_REF_COUNT_LIMIT within an hour.
jerry_call with Jerry_Array argument will causing JERRY_FATAL_REF_COUNT_LIMIT randomly
https://api.github.com/repos/jerryscript-project/jerryscript/issues/4974/comments
7
2022-02-06T05:51:09Z
2022-02-11T10:55:28Z
https://github.com/jerryscript-project/jerryscript/issues/4974
1,125,112,679
4,974
[ "jerryscript-project", "jerryscript" ]
**Commit:** 0ef509458e296056f0ccd48f4ea264134f3e5e06 **Tested on:** Ubuntu 18.04 LTS ## Build Steps ``` python ./tools/build.py --clean --debug --compile-flag=-fsanitize=address --compile-flag=-m32 --compile-flag=-g --strip=off --lto=off --logging=on --line-info=on --error-message=on --system-allocator=on --stack-limit=20 ``` ## Execution steps & Output ``` $ ./jerry poc.js ICE: Assertion '(c & LIT_UTF8_4_BYTE_MASK) == LIT_UTF8_4_BYTE_MARKER' failed at /home/dhiraj/asan_jeyy/jerryscript/jerry-core/lit/lit-strings.c(lit_read_code_point_from_utf8):388. Error: JERRY_FATAL_FAILED_ASSERTION Aborted ``` ## GDB ``` (gdb) r poc.js Starting program: /home/dhiraj/jerryscript/build/bin/jerry poc.js [Thread debugging using libthread_db enabled] Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1". ICE: Assertion '(c & LIT_UTF8_4_BYTE_MASK) == LIT_UTF8_4_BYTE_MARKER' failed at /home/dhiraj/jerryscript/jerry-core/lit/lit-strings.c(lit_read_code_point_from_utf8):388. Error: JERRY_FATAL_FAILED_ASSERTION Program received signal SIGABRT, Aborted. __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:50 50 ../sysdeps/unix/sysv/linux/raise.c: No such file or directory. (gdb) bt #0 __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:50 #1 0x00007ffff7264859 in __GI_abort () at abort.c:79 #2 0x000055555575fc55 in jerry_port_fatal (code=JERRY_FATAL_FAILED_ASSERTION) at /home/dhiraj/jerryscript/jerry-port/common/jerry-port-process.c:29 #3 0x0000555555669017 in jerry_fatal (code=JERRY_FATAL_FAILED_ASSERTION) at /home/dhiraj/jerryscript/jerry-core/jrt/jrt-fatals.c:63 #4 0x0000555555669072 in jerry_assert_fail (assertion=0x555555799780 "(c & LIT_UTF8_4_BYTE_MASK) == LIT_UTF8_4_BYTE_MARKER", file=0x5555557994c0 "/home/dhiraj/jerryscript/jerry-core/lit/lit-strings.c", function=0x55555579a040 <__func__.3695> "lit_read_code_point_from_utf8", line=388) at /home/dhiraj/jerryscript/jerry-core/jrt/jrt-fatals.c:83 #5 0x000055555566d2f2 in lit_read_code_point_from_utf8 (buf_p=0x61100000011d "\230", buf_size=1, code_point=0x7fffffffd5b0) at /home/dhiraj/jerryscript/jerry-core/lit/lit-strings.c:388 #6 0x000055555571917d in lexer_parse_identifier (context_p=0x7fffffffdc30, options=LEXER_PARSE_CHECK_KEYWORDS) at /home/dhiraj/jerryscript/jerry-core/parser/js/js-lexer.c:671 #7 0x000055555571d3f4 in lexer_next_token (context_p=0x7fffffffdc30) at /home/dhiraj/jerryscript/jerry-core/parser/js/js-lexer.c:1587 #8 0x00005555556926ac in scanner_scan_primary_expression_end (context_p=0x7fffffffdc30, scanner_context_p=0x7fffffffda60, type=LEXER_RIGHT_SQUARE, stack_top=SCAN_STACK_ARRAY_LITERAL) at /home/dhiraj/jerryscript/jerry-core/parser/js/js-scanner.c:955 #9 0x000055555569b887 in scanner_scan_all (context_p=0x7fffffffdc30) at /home/dhiraj/jerryscript/jerry-core/parser/js/js-scanner.c:2901 #10 0x000055555567aa32 in parser_parse_source (source_p=0x7fffffffe040, parse_opts=0, options_p=0x7fffffffe110) at /home/dhiraj/jerryscript/jerry-core/parser/js/js-parser.c:2226 #11 0x00005555556816e9 in parser_parse_script (source_p=0x7fffffffe040, parse_opts=0, options_p=0x7fffffffe110) at /home/dhiraj/jerryscript/jerry-core/parser/js/js-parser.c:3421 #12 0x00005555555bc9d0 in jerry_parse_common (source_p=0x7fffffffe040, options_p=0x7fffffffe110, parse_opts=0) at /home/dhiraj/jerryscript/jerry-core/api/jerryscript.c:416 #13 0x00005555555bcd4e in jerry_parse ( source_p=0x611000000040 "wd-QTTTCwi---function JSt() {\n for (let v8 = 0; v8 < 127; v8++) {\n for (let v15 = 2; v15 < 100; v15 = v1% + 10) {\n try {\n let\n const v18 = v17.fromCharCode(10*4, v8, v15, v15, v8);\n "..., source_size=222, options_p=0x7fffffffe110) at /home/dhiraj/jerryscript/jerry-core/api/jerryscript.c:484 #14 0x000055555575ea4b in jerryx_source_parse_script (path_p=0x7fffffffe731 "poc.js") at /home/dhiraj/jerryscript/jerry-ext/util/sources.c:52 #15 0x000055555575eb36 in jerryx_source_exec_script (path_p=0x7fffffffe731 "poc.js") at /home/dhiraj/jerryscript/jerry-ext/util/sources.c:63 #16 0x00005555555b85b5 in main (argc=2, argv=0x7fffffffe4a8) at /home/dhiraj/jerryscript/jerry-main/main-desktop.c:156 (gdb) ``` **PoC:** [poc.zip](https://github.com/jerryscript-project/jerryscript/files/7905492/poc.zip)
Assertion '(c & LIT_UTF8_4_BYTE_MASK) == LIT_UTF8_4_BYTE_MARKER' failed atlit-strings.c(lit_read_code_point_from_utf8)
https://api.github.com/repos/jerryscript-project/jerryscript/issues/4969/comments
0
2022-01-20T13:26:28Z
2022-01-20T13:26:28Z
https://github.com/jerryscript-project/jerryscript/issues/4969
1,109,300,930
4,969
[ "jerryscript-project", "jerryscript" ]
JerryScript is a full ES5.1 compliant JavaScript engine since its first release (JerryScript 1.0 in 2016). JavaScript language is continuously evolving: the first popular version (5.1) was released in 2011 and new releases have been rolled out every year since 2015. JavaScript engines are evolving too, JerryScript finished implementing ES2015 features in 2020 and then the project has been retargeted (#3737) to ES.Next (always to the latest ECMAScript specification). Now 83.6% of the Official Conformance Test Suite (Test262) pass - which contains tests for Stage 4 and Stage 3 features too (features will be released in the next or any future specification). Since there are many incompatible changes between ECMAScript versions, furthermore the ES5.1 specification is more than 10 years old, we would like to drop its support. A pull request is already prepared for this cleanup: #4915. If there are no reasonable objections within two weeks, we would like to drop it.
Proposal: Retire the legacy ES5.1 build profile
https://api.github.com/repos/jerryscript-project/jerryscript/issues/4963/comments
3
2022-01-11T14:34:07Z
2022-02-01T10:20:34Z
https://github.com/jerryscript-project/jerryscript/issues/4963
1,099,236,809
4,963
[ "jerryscript-project", "jerryscript" ]
###### JerryScript revision Commit: [a6ab5e9](https://github.com/jerryscript-project/jerryscript/commit/a6ab5e9abed70cdedf9f4e9c1dc379eb762ebf64) Version: v3.0.0 ###### Build platform Ubuntu 18.04.5 LTS (Linux 4.19.128-microsoft-standard x86_64) Ubuntu 18.04.5 LTS (Linux 5.4.0-44-generic x86_64) ###### Build steps ```bash python ./tools/build.py --clean --debug --compile-flag=-fsanitize=address --compile-flag=-m32 --compile-flag=-g --strip=off --lto=off --logging=on --line-info=on --error-message=on --system-allocator=on --stack-limit=20 ``` ###### Test case <details> <summary>poc.js</summary> <pre><code> ```javascript var a = new Array(286331153, 572662306, 858993459, 1145324612, 303174162, 589505315, 305419888, 30583); var handler = { getPrototypeOf: function (target, name) { return a; } }; var p = new Proxy([], handler); var b = [ {}, [], 'natalie' ]; __proto__.__proto__ = p; eval("function test_configurable_accessor() { print('replacement'); }"); [].flat.call(b); ``` </code></pre> </details> ​ ​ ###### Execution steps & Output ```bash $ ./jerryscript/build/bin/jerry poc.js Unhandled exception: 0: <eval>:1:64 1: poc.js:14:1 ICE: Assertion 'ECMA_STRING_IS_REF_EQUALS_TO_ONE (string_p)' failed at jerryscript/jerry-core/ecma/base/ecma-literal-storage.c(ecma_free_string_list):77. Error: ERR_FAILED_INTERNAL_ASSERTION [1] 987 abort jerry poc.js ``` Credits: Found by OWL337 team.
Assertion 'ECMA_STRING_IS_REF_EQUALS_TO_ONE (string_p)' failed at jerryscript/jerry-core/ecma/base/ecma-literal-storage.c(ecma_free_string_list):77.
https://api.github.com/repos/jerryscript-project/jerryscript/issues/4941/comments
0
2022-01-04T06:22:36Z
2022-01-14T10:02:19Z
https://github.com/jerryscript-project/jerryscript/issues/4941
1,093,048,389
4,941
[ "jerryscript-project", "jerryscript" ]
###### JerryScript revision Commit: [a6ab5e9](https://github.com/jerryscript-project/jerryscript/commit/a6ab5e9abed70cdedf9f4e9c1dc379eb762ebf64) Version: v3.0.0 ###### Build platform Ubuntu 18.04.5 LTS (Linux 4.19.128-microsoft-standard x86_64) Ubuntu 18.04.5 LTS (Linux 5.4.0-44-generic x86_64) ###### Build steps ```bash python ./tools/build.py --clean --debug --compile-flag=-fsanitize=address --compile-flag=-m32 --compile-flag=-g --strip=off --lto=off --logging=on --line-info=on --error-message=on --system-allocator=on --stack-limit=20 ``` ###### Test case <details> <summary>poc.js</summary> <pre><code> ```javascript var mydate = new Date(); var myyear = mydate.getFullYear(); var mymonth = mydate.setYear() + 1; var myday = mydate.getDate(); var sum = 0; var avg; var weekday = [ 'Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat' ]; var scoreStr = 'X1:87;X2:81;X3:97;X4:76;X5:74;X6:94;X7:90;X8:76;X9:64;XX:76'; var arr = Date(); for (var i = 0; i < arr.length; i++) { var index = arr[i].indexOf(':'); sum += parseInt(arr[i].substr(Symbol(''), Symbol(''), 'empty string')); } avg = sum / arr.length; avg = Math.floor(avg); ``` </code></pre> </details> ​ ###### Execution steps & Output ```bash $ ./jerryscript/build/bin/jerry poc.js ICE: Assertion 'local_tza == ecma_date_local_time_zone_adjustment (date_value)' failed at jerryscript/jerry-core/ecma/builtin-objects/ecma-builtin-date-prototype.c(ecma_builtin_date_prototype_dispatch_routine):689. Error: ERR_FAILED_INTERNAL_ASSERTION [1] 209 abort jerry poc.js ``` Credits: Found by OWL337 team.
Assertion 'local_tza == ecma_date_local_time_zone_adjustment (date_value)' failed at jerryscript/jerry-core/ecma/builtin-objects/ecma-builtin-date-prototype.c(ecma_builtin_date_prototype_dispatch_routine):689.
https://api.github.com/repos/jerryscript-project/jerryscript/issues/4940/comments
0
2022-01-04T06:21:48Z
2022-01-14T04:29:46Z
https://github.com/jerryscript-project/jerryscript/issues/4940
1,093,048,021
4,940
[ "jerryscript-project", "jerryscript" ]
###### JerryScript revision Commit: [a6ab5e9](https://github.com/jerryscript-project/jerryscript/commit/a6ab5e9abed70cdedf9f4e9c1dc379eb762ebf64) Version: v3.0.0 ###### Build platform Ubuntu 18.04.5 LTS (Linux 4.19.128-microsoft-standard x86_64) Ubuntu 18.04.5 LTS (Linux 5.4.0-44-generic x86_64) ###### Build steps ```bash python ./tools/build.py --clean --debug --compile-flag=-fsanitize=address --compile-flag=-m32 --compile-flag=-g --strip=off --lto=off --logging=on --line-info=on --error-message=on --system-allocator=on --stack-limit=20 ``` ###### Test case <details> <summary>poc.js</summary> <pre><code> ```javascript var date; date = new Date(1970, 0); date.setYear((date.getFullYear(), 1900, 'y = -0')); date.setYear(-0); date.setYear(-0); date.setYear(-0); assert.sameValue(date.getFullYear(), 1900, 'y = -0'); date = new Date(1970, 0); date.setYear(0); assert.sameValue(date.getFullYear(), 1900, 'y = 0'); date = new Date(1970, 0); date.setYear(50); assert.sameValue(date.getFullYear(), 1950, 'y = 50'); date = new Date(1970, 0); date.setYear(50.999999); assert.sameValue(date.getFullYear(), 1950, 'y = 50.999999'); date = new Date(1970, 0); date.setYear(99); assert.sameValue(date.getFullYear(), 1999, 'y = 99'); date = new Date(1970, 0); date.setYear(99.999999); assert.sameValue(date.getFullYear(), 1999, 'y = 99.999999'); ``` </code></pre> </details> ​ ###### Execution steps & Output ```bash $ ./jerryscript/build/bin/jerry poc.js ICE: Assertion 'local_tza == ecma_date_local_time_zone_adjustment (date_value)' failed at jerryscript/jerry-core/ecma/builtin-objects/ecma-builtin-date-prototype.c(ecma_builtin_date_prototype_dispatch_set):421. Error: ERR_FAILED_INTERNAL_ASSERTION [1] 309 abort jerry poc.js ``` Credits: Found by OWL337 team.
Assertion 'local_tza == ecma_date_local_time_zone_adjustment (date_value)' failed at jerryscript/jerry-core/ecma/builtin-objects/ecma-builtin-date-prototype.c(ecma_builtin_date_prototype_dispatch_set):421.
https://api.github.com/repos/jerryscript-project/jerryscript/issues/4939/comments
0
2022-01-04T06:20:47Z
2022-01-14T04:30:08Z
https://github.com/jerryscript-project/jerryscript/issues/4939
1,093,047,468
4,939
[ "jerryscript-project", "jerryscript" ]
###### JerryScript revision Commit: [a6ab5e9](https://github.com/jerryscript-project/jerryscript/commit/a6ab5e9abed70cdedf9f4e9c1dc379eb762ebf64) Version: v3.0.0 ###### Build platform Ubuntu 18.04.5 LTS (Linux 4.19.128-microsoft-standard x86_64) Ubuntu 18.04.5 LTS (Linux 5.4.0-44-generic x86_64) ###### Build steps ```bash python ./tools/build.py --clean --debug --compile-flag=-fsanitize=address --compile-flag=-m32 --compile-flag=-g --strip=off --lto=off --logging=on --line-info=on --error-message=on --system-allocator=on --stack-limit=20 ``` ###### Test case <details> <summary>poc.js</summary> <pre><code> ```javascript let custom1 = BigInt(-4294967295); let custom2 = Object(BigInt(0)); Object.prototype.toString.call(BigInt.prototype, Symbol.toStringTag, { value: (custom1) }); assert.sameValue(Object.prototype.toString.call(custom1), '[object test262]'); assert.sameValue(Object.prototype.toString.call(custom2), '[object test262]'); ``` </code></pre> </details> ​ ###### Execution steps & Output ```bash $ ./jerryscript/build/bin/jerry poc.js ICE: Assertion 'ecma_object_check_class_name_is_object (obj_p)' failed at jerryscript/jerry-core/ecma/operations/ecma-objects.c(ecma_object_get_class_name):3015. Error: ERR_FAILED_INTERNAL_ASSERTION [1] 35915 abort jerry poc.js ``` Credits: Found by OWL337 team.
Assertion 'ecma_object_check_class_name_is_object (obj_p)' failed at jerryscript/jerry-core/ecma/operations/ecma-objects.c(ecma_object_get_class_name):3015.
https://api.github.com/repos/jerryscript-project/jerryscript/issues/4938/comments
0
2022-01-04T06:20:03Z
2022-01-14T04:30:19Z
https://github.com/jerryscript-project/jerryscript/issues/4938
1,093,047,047
4,938
[ "jerryscript-project", "jerryscript" ]
###### JerryScript revision Commit: [a6ab5e9](https://github.com/jerryscript-project/jerryscript/commit/a6ab5e9abed70cdedf9f4e9c1dc379eb762ebf64) Version: v3.0.0 ###### Build platform Ubuntu 18.04.5 LTS (Linux 4.19.128-microsoft-standard x86_64) Ubuntu 18.04.5 LTS (Linux 5.4.0-44-generic x86_64) ###### Build steps ```bash python ./tools/build.py --clean --debug --compile-flag=-fsanitize=address --compile-flag=-m32 --compile-flag=-g --strip=off --lto=off --logging=on --line-info=on --error-message=on --system-allocator=on --stack-limit=20 ``` ###### Test case <details> <summary>poc.js</summary> <pre><code> ```javascript function JSEtest() { var a; for (a[a = class b { }] = [[]]; ;) break; } JSEtest(); ``` </code></pre> </details> ​ ###### Execution steps & Output ```bash $ ./jerryscript/build/bin/jerry poc.js ICE: Assertion 'type == ECMA_OBJECT_TYPE_GENERAL || type == ECMA_OBJECT_TYPE_PROXY' failed at jerryscript/jerry-core/ecma/operations/ecma-objects.c(ecma_object_get_class_name):3020. Error: ERR_FAILED_INTERNAL_ASSERTION [1] 33392 abort jerry poc.js ``` Credits: Found by OWL337 team.
Assertion 'type == ECMA_OBJECT_TYPE_GENERAL || type == ECMA_OBJECT_TYPE_PROXY' failed at jerryscript/jerry-core/ecma/operations/ecma-objects.c(ecma_object_get_class_name):3020.
https://api.github.com/repos/jerryscript-project/jerryscript/issues/4937/comments
0
2022-01-04T06:19:15Z
2022-01-14T04:30:33Z
https://github.com/jerryscript-project/jerryscript/issues/4937
1,093,046,641
4,937
[ "jerryscript-project", "jerryscript" ]
###### JerryScript revision Commit: [a6ab5e9](https://github.com/jerryscript-project/jerryscript/commit/a6ab5e9abed70cdedf9f4e9c1dc379eb762ebf64) Version: v3.0.0 ###### Build platform Ubuntu 18.04.5 LTS (Linux 4.19.128-microsoft-standard x86_64) Ubuntu 18.04.5 LTS (Linux 5.4.0-44-generic x86_64) ###### Build steps ```bash python ./tools/build.py --clean --debug --compile-flag=-fsanitize=address --compile-flag=-m32 --compile-flag=-g --strip=off --lto=off --logging=on --line-info=on --error-message=on --system-allocator=on --stack-limit=20 ``` ###### Test case <details> <summary>poc.js</summary> <pre><code> ```javascript class JSEtest { set #m(v) { this._v = v; } method() { let self = !this; function innerFunction() { self.#m = 'Test262'; } innerFunction(); } } let c = new JSEtest(); c.method(); assert.sameValue(c._v, 'Test262'); let o = {}; assert.throws(TypeError, function () { c.method.call(o); }, 'accessed private setter from an ordinary object'); ``` </code></pre> </details> ​ ###### Execution steps & Output ```bash $ ./jerryscript/build/bin/jerry poc.js ICE: Assertion 'ecma_is_value_object (value)' failed at jerryscript/jerry-core/ecma/base/ecma-helpers-value.c(ecma_get_object_from_value):838. Error: ERR_FAILED_INTERNAL_ASSERTION [1] 25286 abort jerry poc.js ``` Credits: Found by OWL337 team.
Assertion 'ecma_is_value_object (value)' failed at jerryscript/jerry-core/ecma/base/ecma-helpers-value.c(ecma_get_object_from_value):838.
https://api.github.com/repos/jerryscript-project/jerryscript/issues/4936/comments
0
2022-01-04T06:18:34Z
2022-01-18T12:16:02Z
https://github.com/jerryscript-project/jerryscript/issues/4936
1,093,046,263
4,936
[ "jerryscript-project", "jerryscript" ]
###### JerryScript revision Commit: [a6ab5e9](https://github.com/jerryscript-project/jerryscript/commit/a6ab5e9abed70cdedf9f4e9c1dc379eb762ebf64) Version: v3.0.0 ###### Build platform Ubuntu 18.04.5 LTS (Linux 4.19.128-microsoft-standard x86_64) Ubuntu 18.04.5 LTS (Linux 5.4.0-44-generic x86_64) ###### Build steps ```bash python ./tools/build.py --clean --debug --compile-flag=-fsanitize=address --compile-flag=-m32 --compile-flag=-g --strip=off --lto=off --logging=on --line-info=on --error-message=on --system-allocator=on --stack-limit=20 ``` ###### Test case [poc-as.txt](https://github.com/jerryscript-project/jerryscript/files/7805680/poc-as.txt) ###### Execution steps & Output ```bash $ ./jerryscript/build/bin/jerry poc.js ICE: Assertion 'lit_is_valid_cesu8_string (string_p, string_size)' failed at jerryscript/jerry-core/ecma/base/ecma-helpers-string.c(ecma_new_ecma_string_from_utf8):371. Error: ERR_FAILED_INTERNAL_ASSERTION [1] abort jerry poc.js ``` Credits: Found by OWL337 team.
Assertion 'lit_is_valid_cesu8_string (string_p, string_size)' failed at jerryscript/jerry-core/ecma/base/ecma-helpers-string.c(ecma_new_ecma_string_from_utf8):371.
https://api.github.com/repos/jerryscript-project/jerryscript/issues/4935/comments
3
2022-01-04T06:17:32Z
2022-01-14T04:30:57Z
https://github.com/jerryscript-project/jerryscript/issues/4935
1,093,045,783
4,935
[ "jerryscript-project", "jerryscript" ]
###### JerryScript revision Commit: [a6ab5e9](https://github.com/jerryscript-project/jerryscript/commit/a6ab5e9abed70cdedf9f4e9c1dc379eb762ebf64) Version: v3.0.0 ###### Build platform Ubuntu 18.04.5 LTS (Linux 4.19.128-microsoft-standard x86_64) Ubuntu 18.04.5 LTS (Linux 5.4.0-44-generic x86_64) ###### Build steps ```bash python ./tools/build.py --clean --debug --compile-flag=-fsanitize=address --compile-flag=-m32 --compile-flag=-g --strip=off --lto=off --logging=on --line-info=on --error-message=on --system-allocator=on --stack-limit=20 ``` ###### Test case <details> <summary>poc.js</summary> <pre><code> ```javascript class JSEtest { static set #m(v) { this._v = v; } static setWithEval() { eval(' [1].#m = "Test262"'); } } class D { static set #m(v) { throw new Test262Error('should never be called'); } } JSEtest.setWithEval(); assert.sameValue(JSEtest._v, 'Test262'); assert.throws(TypeError, function () { JSEtest.getWithEval.call(D); }, 'invalid access to a static private getter'); ``` </code></pre> </details> ​ ###### Execution steps & Output ```bash $ ./jerryscript/build/bin/jerry poc.js ICE: Assertion 'ecma_is_lexical_environment (obj_p) || !ecma_op_object_is_fast_array (obj_p)' failed at jerryscript/jerry-core/ecma/base/ecma-helpers.c(ecma_find_named_property):621. Error: ERR_FAILED_INTERNAL_ASSERTION [1] 5397 abort jerry poc.js ``` Credits: Found by OWL337 team.
Assertion 'ecma_is_lexical_environment (obj_p) || !ecma_op_object_is_fast_array (obj_p)' failed at jerryscript/jerry-core/ecma/base/ecma-helpers.c(ecma_find_named_property):621.
https://api.github.com/repos/jerryscript-project/jerryscript/issues/4934/comments
0
2022-01-04T06:13:59Z
2022-01-14T09:13:03Z
https://github.com/jerryscript-project/jerryscript/issues/4934
1,093,043,755
4,934
[ "jerryscript-project", "jerryscript" ]
###### JerryScript revision Commit: [a6ab5e9](https://github.com/jerryscript-project/jerryscript/commit/a6ab5e9abed70cdedf9f4e9c1dc379eb762ebf64) Version: v3.0.0 ###### Build platform Ubuntu 18.04.5 LTS (Linux 4.19.128-microsoft-standard x86_64) Ubuntu 18.04.5 LTS (Linux 5.4.0-44-generic x86_64) ###### Build steps ```bash python ./tools/build.py --clean --debug --compile-flag=-fsanitize=address --compile-flag=-m32 --compile-flag=-g --strip=off --lto=off --logging=on --line-info=on --error-message=on --system-allocator=on --stack-limit=20 ``` ###### Test case <details> <summary>poc.js</summary> <pre><code> ```javascript function JSEtest() { var obj = __defineGetter__; function myGetter() { obj.foo = (obj.__lookupGetter__('foo') === myGetter) } function mySetter(v) { try { JSEtest(); } catch (e) { print(e.stack || e); } } obj.__defineGetter__('foo', myGetter); obj.__defineSetter__('foo', mySetter); obj.foo = 123; print(obj.foo); } try { JSEtest(); } catch (e) { } ``` </code></pre> </details> ​ ###### Execution steps & Output ```bash $ ./jerryscript/build/bin/jerry poc.js poc.js:11:13,poc.js:17:5,poc.js:9:13,poc.js:17:5,poc.js:9:13,poc.js:17:5,poc.js:9:13,poc.js:17:5,poc.js:9:13,poc.js:17:5,poc.js:9:13,poc.js:17:5,poc.js:9:13,poc.js:17:5,poc.js:9:13,poc.js:17:5,poc.js:9:13,poc.js:17:5,poc.js:9:13,poc.js:17:5,poc.js:22:5 ...... ...... ...... ...... ...... ...... undefined poc.js:11:13,poc.js:17:5,poc.js:9:13,poc.js:17:5,poc.js:9:13,poc.js:5:9,poc.js:17:5,poc.js:9:13,poc.js:5:9,poc.js:17:5,poc.js:9:13,poc.js:17:5,poc.js:9:13,poc.js:17:5,poc.js:9:13,poc.js:17:5,poc.js:9:13,poc.js:17:5,poc.js:9:13,poc.js:17:5,poc.js:22:5 ICE: Assertion 'ecma_is_lexical_environment (object_p)' failed at jerryscript/jerry-core/ecma/base/ecma-helpers.c(ecma_get_lex_env_type):291. Error: ERR_FAILED_INTERNAL_ASSERTION [1] 11223 abort jerry poc.js ```
Assertion 'ecma_is_lexical_environment (object_p)' failed at jerryscript/jerry-core/ecma/base/ecma-helpers.c(ecma_get_lex_env_type):291.
https://api.github.com/repos/jerryscript-project/jerryscript/issues/4933/comments
1
2022-01-04T06:13:20Z
2022-01-04T10:31:07Z
https://github.com/jerryscript-project/jerryscript/issues/4933
1,093,043,444
4,933
[ "jerryscript-project", "jerryscript" ]
###### JerryScript revision Commit: [a6ab5e9](https://github.com/jerryscript-project/jerryscript/commit/a6ab5e9abed70cdedf9f4e9c1dc379eb762ebf64) Version: v3.0.0 ###### Build platform Ubuntu 18.04.5 LTS (Linux 4.19.128-microsoft-standard x86_64) Ubuntu 18.04.5 LTS (Linux 5.4.0-44-generic x86_64) ###### Build steps ```bash python ./tools/build.py --clean --debug --compile-flag=-fsanitize=address --compile-flag=-m32 --compile-flag=-g --strip=off --lto=off --logging=on --line-info=on --error-message=on --system-allocator=on --stack-limit=20 ``` ###### Test case <details> <summary>poc.js</summary> <pre><code> ```javascript class JSEtest { async *m() { return 42; } #m() { return 'test262'; }; // method() { return this.#m(); } } var c = new JSEtest(); assert.sameValue(Object.hasOwnProperty.call(c, "m"), false); assert.sameValue(c.m, JSEtest.prototype.m); verifyProperty(JSEtest.prototype, "m", { enumerable: false, configurable: true, writable: true, }, { restore: true }); c.m().next().then(function (v) { assert.sameValue(v.value, 42); assert.sameValue(v.done, true); function assertions() { // Cover $DONE handler for async cases. function $DONE(error) { if (error) { throw new Test262Error('Test262:AsyncTestFailure') } } assert.sameValue(c.method(), 'test262'); } return Promise.resolve(assertions()); }, $DONE).then($DONE, $DONE); ``` </code></pre> </details> ​ ###### Execution steps & Output ```bash $ ./jerryscript/build/bin/jerry poc.js ICE: Assertion 'page_p != NULL' failed at jerryscript/jerry-core/parser/js/js-parser-mem.c(parser_list_get):274. Error: ERR_FAILED_INTERNAL_ASSERTION [1] 7036 abort jerry poc.js ``` Credits: Found by OWL337 team.
Assertion 'page_p != NULL' failed at jerryscript/jerry-core/parser/js/js-parser-mem.c(parser_list_get):274.
https://api.github.com/repos/jerryscript-project/jerryscript/issues/4932/comments
2
2022-01-04T06:11:03Z
2022-01-14T04:31:31Z
https://github.com/jerryscript-project/jerryscript/issues/4932
1,093,042,198
4,932
[ "jerryscript-project", "jerryscript" ]
###### JerryScript revision Commit: [a6ab5e9](https://github.com/jerryscript-project/jerryscript/commit/a6ab5e9abed70cdedf9f4e9c1dc379eb762ebf64) Version: v3.0.0 ###### Build platform Ubuntu 18.04.5 LTS (Linux 4.19.128-microsoft-standard x86_64) Ubuntu 18.04.5 LTS (Linux 5.4.0-44-generic x86_64) ###### Build steps ```bash python ./tools/build.py --clean --debug --compile-flag=-fsanitize=address --compile-flag=-m32 --compile-flag=-g --strip=off --lto=off --logging=on --line-info=on --error-message=on --system-allocator=on --stack-limit=20 ``` ###### Test case <details> <summary>poc.js</summary> <pre><code> ```javascript class JSEtest { #m = async function() { return 'test262'; }; method() { return this.#m(); m } let c = new JSEtest(); c.method().then((value) => assert.sameValue(value, 'test262')) .then($DONE, $DONE); ``` </code></pre> </details> ​ ###### Execution steps & Output ```bash $ ./jerryscript/build/bin/jerry poc.js ICE: Assertion 'page_p != list_p->data.last_p || (index * list_p->item_size < list_p->data.last_position)' failed at jerryscript/jerry-core/parser/js/js-parser-mem.c(parser_list_get):280. Error: ERR_FAILED_INTERNAL_ASSERTION [1] 35666 abort jerry poc.js ``` Credits: Found by OWL337 team.
Assertion 'page_p != list_p->data.last_p || (index * list_p->item_size < list_p->data.last_position)' failed at jerryscript/jerry-core/parser/js/js-parser-mem.c(parser_list_get):280.
https://api.github.com/repos/jerryscript-project/jerryscript/issues/4931/comments
1
2022-01-04T06:10:03Z
2022-01-14T04:31:42Z
https://github.com/jerryscript-project/jerryscript/issues/4931
1,093,041,684
4,931
[ "jerryscript-project", "jerryscript" ]
###### JerryScript revision Commit: [a6ab5e9](https://github.com/jerryscript-project/jerryscript/commit/a6ab5e9abed70cdedf9f4e9c1dc379eb762ebf64) Version: v3.0.0 ###### Build platform Ubuntu 18.04.5 LTS (Linux 4.19.128-microsoft-standard x86_64) Ubuntu 18.04.5 LTS (Linux 5.4.0-44-generic x86_64) ###### Build steps ```bash python ./tools/build.py --clean --debug --compile-flag=-fsanitize=address --compile-flag=-m32 --compile-flag=-g --strip=off --lto=off --logging=on --line-info=on --error-message=on --system-allocator=on --stack-limit=20 ``` ###### Test case <details> <summary>poc.js</summary> <pre><code> ```javascript var stringSet; class JSEtest { get #test262() { return 'get string'; } set #test262(param) { stringSet = param; } getPrivateReference() { return this.#test262; } setPrivateReference(value) {function this.#test262 = value; } }; var inst = new JSEtest(); assert.sameValue(inst.getPrivateReference(), 'get string'); inst.setPrivateReference('set string'); assert.sameValue(stringSet, 'set string'); ``` </code></pre> </details> ​ ###### Execution steps & Output ```bash $ ./jerryscript/build/bin/jerry poc.js ICE: Assertion 'page_p != NULL' failed at jerryscript/jerry-core/parser/js/js-parser-mem.c(parser_list_get):279. Error: ERR_FAILED_INTERNAL_ASSERTION [1] 36899 abort jerry poc.js ``` Credits: Found by OWL337 team.
Assertion 'page_p != NULL' failed at jerryscript/jerry-core/parser/js/js-parser-mem.c(parser_list_get):279.
https://api.github.com/repos/jerryscript-project/jerryscript/issues/4930/comments
0
2022-01-04T06:09:14Z
2022-01-14T09:14:04Z
https://github.com/jerryscript-project/jerryscript/issues/4930
1,093,041,266
4,930
[ "jerryscript-project", "jerryscript" ]
###### JerryScript revision Commit: [a6ab5e9](https://github.com/jerryscript-project/jerryscript/commit/a6ab5e9abed70cdedf9f4e9c1dc379eb762ebf64) Version: v3.0.0 ###### Build platform Ubuntu 18.04.5 LTS (Linux 4.19.128-microsoft-standard x86_64) Ubuntu 18.04.5 LTS (Linux 5.4.0-44-generic x86_64) ###### Build steps ```bash python ./tools/build.py --clean --debug --compile-flag=-fsanitize=address --compile-flag=-m32 --compile-flag=-g --strip=off --lto=off --logging=on --line-info=on --error-message=on --system-allocator=on --stack-limit=20 ``` ###### Test case <details> <summary>poc.js</summary> <pre><code> ```javascript function JSEtest() { function o() {} function k() { for (i = 0; i < this.depth; ++i) {} } for (var i = 0; i < 10; i++) (i) = {o: o, {: k}; } JSEtest(); ``` </code></pre> </details> ​ ###### Execution steps & Output ```bash $ ./jerryscript/build/bin/jerry poc.js ICE: Assertion 'context.status_flags & PARSER_SCANNING_SUCCESSFUL' failed at jerryscript/jerry-core/parser/js/js-parser.c(parser_parse_source):2348. Error: ERR_FAILED_INTERNAL_ASSERTION [1] 33673 abort jerry poc.js ```
Assertion 'context.status_flags & PARSER_SCANNING_SUCCESSFUL' failed at jerryscript/jerry-core/parser/js/js-parser.c(parser_parse_source):2348.
https://api.github.com/repos/jerryscript-project/jerryscript/issues/4929/comments
1
2022-01-04T06:08:29Z
2022-01-04T11:16:10Z
https://github.com/jerryscript-project/jerryscript/issues/4929
1,093,040,868
4,929
[ "jerryscript-project", "jerryscript" ]
###### JerryScript revision Commit: [a6ab5e9](https://github.com/jerryscript-project/jerryscript/commit/a6ab5e9abed70cdedf9f4e9c1dc379eb762ebf64) Version: v3.0.0 ###### Build platform Ubuntu 18.04.5 LTS (Linux 4.19.128-microsoft-standard x86_64) Ubuntu 18.04.5 LTS (Linux 5.4.0-44-generic x86_64) ###### Build steps ```bash python ./tools/build.py --clean --debug --compile-flag=-fsanitize=address --compile-flag=-m32 --compile-flag=-g --strip=off --lto=off --logging=on --line-info=on --error-message=on --system-allocator=on --stack-limit=20 ``` ###### Test case <details> <summary>poc.js</summary> <pre><code> ```javascript var iterCount = 0; async function JSEtest() { for await (var { a, b, ...rest }"of [{x: 1, y: 2, a: 5, b: 3}]) { assert.sameValue(rest.a, undefined); assert.sameValue(rest.b, undefined); verifyProperty(rest, "x", { enumerable: true, writable: true, configurable: true, value: 1 }); verifyProperty(rest, "y", { enumerable: true, writable: true, configurable: true, value: 2 }); iterCount += 1; } JSEtest() .then(() => assert.sameValue(iterCount, 1, 'iteration occurred as expected'), $DONE) .then($DONE, $DONE); ``` </code></pre> </details> ​ ###### Execution steps & Output ```bash $ ./jerryscript/build/bin/jerry poc.js ICE: Assertion 'flags & PARSER_PATTERN_HAS_REST_ELEMENT' failed at jerryscript/jerry-core/parser/js/js-parser-expr.c(parser_parse_object_initializer):4119. Error: ERR_FAILED_INTERNAL_ASSERTION [1] 32968 abort jerry poc.js ``` Credits: Found by OWL337 team.
Assertion 'flags & PARSER_PATTERN_HAS_REST_ELEMENT' failed at jerryscript/jerry-core/parser/js/js-parser-expr.c(parser_parse_object_initializer):4119.
https://api.github.com/repos/jerryscript-project/jerryscript/issues/4928/comments
0
2022-01-04T06:07:34Z
2022-01-14T09:15:48Z
https://github.com/jerryscript-project/jerryscript/issues/4928
1,093,040,435
4,928
[ "jerryscript-project", "jerryscript" ]
###### JerryScript revision Commit: [a6ab5e9](https://github.com/jerryscript-project/jerryscript/commit/a6ab5e9abed70cdedf9f4e9c1dc379eb762ebf64) Version: v3.0.0 ###### Build platform Ubuntu 18.04.5 LTS (Linux 4.19.128-microsoft-standard x86_64) Ubuntu 18.04.5 LTS (Linux 5.4.0-44-generic x86_64) ###### Build steps ```bash python ./tools/build.py --clean --debug --compile-flag=-fsanitize=address --compile-flag=-m32 --compile-flag=-g --strip=off --lto=off --logging=on --line-info=on --error-message=on --system-allocator=on --stack-limit=20 ``` ###### Test case <details> <summary>poc.js</summary> <pre><code> ```javascript function assert(a, b) { if (a != b) throw "FAIL"; } function JSEtest(script) { try { eval(script); } catch (e) { return e; } } assert(JSEtest("class C1 { async;constructor() { } }"), "SyntaxError: Cannot declare an async method named 'constructor'."); assert(JSEtest("class C1 { *constructor() { } }"), "SyntaxError: Cannot declare a generator function named 'constructor'."); assert(JSEtest("class C1 { async *constructor() { } }"), "SyntaxError: Cannot declare an async generator method named 'constructor'."); ``` </code></pre> </details> ​ ###### Execution steps & Output ```bash $ ./jerryscript/build/bin/jerry poc.js ICE: Assertion 'opts & PARSER_CLASS_LITERAL_CTOR_PRESENT' failed at jerryscript/jerry-core/parser/js/js-parser-expr.c(parser_parse_class_body):656. Error: ERR_FAILED_INTERNAL_ASSERTION [1] 31519 abort jerry poc.js ``` Credits: Found by OWL337 team.
Assertion 'opts & PARSER_CLASS_LITERAL_CTOR_PRESENT' failed at jerryscript/jerry-core/parser/js/js-parser-expr.c(parser_parse_class_body):656.
https://api.github.com/repos/jerryscript-project/jerryscript/issues/4927/comments
0
2022-01-04T06:06:49Z
2022-01-14T09:16:23Z
https://github.com/jerryscript-project/jerryscript/issues/4927
1,093,040,080
4,927
[ "jerryscript-project", "jerryscript" ]
###### JerryScript revision Commit: [a6ab5e9](https://github.com/jerryscript-project/jerryscript/commit/a6ab5e9abed70cdedf9f4e9c1dc379eb762ebf64) Version: v3.0.0 ###### Build platform Ubuntu 18.04.5 LTS (Linux 4.19.128-microsoft-standard x86_64) Ubuntu 18.04.5 LTS (Linux 5.4.0-44-generic x86_64) ###### Build steps ```bash python ./tools/build.py --clean --debug --compile-flag=-fsanitize=address --compile-flag=-m32 --compile-flag=-g --strip=off --lto=off --logging=on --line-info=on --error-message=on --system-allocator=on --stack-limit=20 ``` ###### Test case <details> <summary>poc.js</summary> <pre><code> ```javascript let {{ = 0 ``` </code></pre> </details> ​ ###### Execution steps & Output ```bash $ ./jerryscript/build/bin/jerry poc.js ICE: Assertion 'context_p->token.type == LEXER_RIGHT_BRACE || context_p->token.type == LEXER_ASSIGN || context_p->token.type == LEXER_COMMA' failed at jerryscript/jerry-core/parser/js/js-parser-expr.c(parser_parse_object_initializer):4178. Error: ERR_FAILED_INTERNAL_ASSERTION [1] 30811 abort jerry poc.js ```
Assertion 'context_p->token.type == LEXER_RIGHT_BRACE || context_p->token.type == LEXER_ASSIGN || context_p->token.type == LEXER_COMMA' failed at jerryscript/jerry-core/parser/js/js-parser-expr.c(parser_parse_object_initializer):4178.
https://api.github.com/repos/jerryscript-project/jerryscript/issues/4926/comments
1
2022-01-04T06:06:06Z
2022-01-04T10:39:48Z
https://github.com/jerryscript-project/jerryscript/issues/4926
1,093,039,724
4,926
[ "jerryscript-project", "jerryscript" ]
###### JerryScript revision Commit: [a6ab5e9](https://github.com/jerryscript-project/jerryscript/commit/a6ab5e9abed70cdedf9f4e9c1dc379eb762ebf64) Version: v3.0.0 ###### Build platform Ubuntu 18.04.5 LTS (Linux 4.19.128-microsoft-standard x86_64) Ubuntu 18.04.5 LTS (Linux 5.4.0-44-generic x86_64) ###### Build steps ```bash python ./tools/build.py --clean --debug --compile-flag=-fsanitize=address --compile-flag=-m32 --compile-flag=-g --strip=off --lto=off --logging=on --line-info=on --error-message=on --system-allocator=on --stack-limit=20 ``` ###### Test case <details> <summary>poc.js</summary> <pre><code> ```javascript function JSEtest() { function o() {} function k() { for (i = 0; i < this.depth; ++i) {} } for (const i = 0; i < 10; i++) (i) = {o: o, k: k}; } JSEtest(); ``` </code></pre> </details> ​ ###### Execution steps & Output ```bash $ ./jerryscript/build/bin/jerry poc.js ICE: Assertion 'context_p->stack_top_uint8 == LEXER_EXPRESSION_START' failed at jerryscript/jerry-core/parser/js/js-parser-expr.c(parser_parse_expression):4522. Error: ERR_FAILED_INTERNAL_ASSERTION [1] 30029 abort jerry poc.js ``` Credits: Found by OWL337 team.
Assertion 'context_p->stack_top_uint8 == LEXER_EXPRESSION_START' failed at jerryscript/jerry-core/parser/js/js-parser-expr.c(parser_parse_expression):4522.
https://api.github.com/repos/jerryscript-project/jerryscript/issues/4925/comments
0
2022-01-04T06:05:06Z
2022-01-14T04:33:16Z
https://github.com/jerryscript-project/jerryscript/issues/4925
1,093,039,259
4,925
[ "jerryscript-project", "jerryscript" ]
###### JerryScript revision Commit: [a6ab5e9](https://github.com/jerryscript-project/jerryscript/commit/a6ab5e9abed70cdedf9f4e9c1dc379eb762ebf64) Version: v3.0.0 ###### Build platform Ubuntu 18.04.5 LTS (Linux 4.19.128-microsoft-standard x86_64) Ubuntu 18.04.5 LTS (Linux 5.4.0-44-generic x86_64) ###### Build steps ```bash python ./tools/build.py --clean --debug --compile-flag=-fsanitize=address --compile-flag=-m32 --compile-flag=-g --strip=off --lto=off --logging=on --line-info=on --error-message=on --system-allocator=on --stack-limit=20 ``` ###### Test case <details> <summary>poc.js</summary> <pre><code> ```javascript id = async x => x, square = async ( (a)) => { y * y } ``` </code></pre> </details> ​ ###### Execution steps & Output ```bash $ ./jerryscript/build/bin/jerry poc.js ICE: Assertion 'context_p->stack_top_uint8 == SCAN_STACK_TRY_STATEMENT || context_p->stack_top_uint8 == SCAN_STACK_CATCH_STATEMENT' failed at jerryscript/jerry-core/parser/js/js-scanner.c(scanner_scan_statement_end):2370. Error: ERR_FAILED_INTERNAL_ASSERTION [1] 2960 abort jerry poc.js ``` Credits: Found by OWL337 team.
Assertion 'context_p->stack_top_uint8 == SCAN_STACK_TRY_STATEMENT || context_p->stack_top_uint8 == SCAN_STACK_CATCH_STATEMENT' failed at jerryscript/jerry-core/parser/js/js-scanner.c(scanner_scan_statement_end):2370.
https://api.github.com/repos/jerryscript-project/jerryscript/issues/4924/comments
0
2022-01-04T06:04:22Z
2022-01-14T04:33:28Z
https://github.com/jerryscript-project/jerryscript/issues/4924
1,093,038,878
4,924
[ "jerryscript-project", "jerryscript" ]
###### JerryScript revision Commit: [a6ab5e9](https://github.com/jerryscript-project/jerryscript/commit/a6ab5e9abed70cdedf9f4e9c1dc379eb762ebf64) Version: v3.0.0 ###### Build platform Ubuntu 18.04.5 LTS (Linux 4.19.128-microsoft-standard x86_64) Ubuntu 18.04.5 LTS (Linux 5.4.0-44-generic x86_64) ###### Build steps ```bash python ./tools/build.py --clean --debug --compile-flag=-fsanitize=address --compile-flag=-m32 --compile-flag=-g --strip=off --lto=off --logging=on --line-info=on --error-message=on --system-allocator=on --stack-limit=20 ``` ###### Test case <details> <summary>poc.js</summary> <pre><code> ```javascript class JSEtest { set { 1 } #m(_) { } set #m(_) { } } ``` </code></pre> </details> ​ ###### Execution steps & Output ```bash $ ./jerryscript/build/bin/jerry poc.js ICE: Assertion 'context_p->token.type == LEXER_LITERAL && (context_p->token.lit_location.type == LEXER_IDENT_LITERAL || context_p->token.lit_location.type == LEXER_STRING_LITERAL)' failed at jerryscript/jerry-core/parser/js/js-lexer.c(lexer_compare_literal_to_string):3696. Error: ERR_FAILED_INTERNAL_ASSERTION [1] 28254 abort jerry poc.js ``` Credits: Found by OWL337 team.
Assertion 'context_p->token.type == LEXER_LITERAL && (context_p->token.lit_location.type == LEXER_IDENT_LITERAL || context_p->token.lit_location.type == LEXER_STRING_LITERAL)' failed at jerryscript/jerry-core/parser/js/js-lexer.c(lexer_compare_literal_to_string):3696.
https://api.github.com/repos/jerryscript-project/jerryscript/issues/4923/comments
1
2022-01-04T06:03:37Z
2022-01-14T04:33:38Z
https://github.com/jerryscript-project/jerryscript/issues/4923
1,093,038,523
4,923
[ "jerryscript-project", "jerryscript" ]
###### JerryScript revision Commit: [a6ab5e9](https://github.com/jerryscript-project/jerryscript/commit/a6ab5e9abed70cdedf9f4e9c1dc379eb762ebf64) Version: v3.0.0 ###### Build platform Ubuntu 18.04.5 LTS (Linux 4.19.128-microsoft-standard x86_64) Ubuntu 18.04.5 LTS (Linux 5.4.0-44-generic x86_64) ###### Build steps ```bash python ./tools/build.py --clean --debug --compile-flag=-fsanitize=address --compile-flag=-m32 --compile-flag=-g --strip=off --lto=off --logging=on --line-info=on --error-message=on --system-allocator=on --stack-limit=20 ``` ###### Test case <details> <summary>poc.js</summary> <pre><code> ```javascript function toPrinted(value) { return value = value.replace(/\\n/g, 'NL') .replace(/\\r/g, 'CR') .replace(/[^\x20-\x7E]+/g, escapeString); } function escapeString(str) { var a, b, c, d; var len = str.length; var result = ""; var digits = ["0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "A", "B", "C", "D", "E", "F"]; for (var i = 0; i < len; i++) { var ch = str.charCodeAt(i); a = digits[ch & 0xf]; if (ch) { c = digits[ch & 0xf]; ch >>= 4; d = digits[ch & 0xf]; result += "\\u" + d + c + b + a; } } } function reportCompare(expected, actual, description) { try { gczeal(2, 4); } catch (exc1) { } var trimMethods = ['trim', 'trimLeft', 'trimRight']; var whitespace = [ {{ : '\u2028', t: 'LINE SEPARATOR' }, ]; for (var j = 0; j < trimMethods.length; ++j) { var method = trimMethods[j]; for (var i = 0; i < whitespace.length; ++i) { var v = whitespace[i].s; var t = whitespace[i].t; v = v + v + v; str = v; expected = ''; actual = str[method](); reportCompare(expected, actual, t + ':' + '"' + toPrinted(str) + '".' + method + '()'); } } ``` </code></pre> </details> ​ ###### Execution steps & Output ```bash $ ./jerryscript/build/bin/jerry poc.js ICE: Assertion 'context_p->token.type != LEXER_RIGHT_PAREN' failed at jerryscript/jerry-core/parser/js/js-parser-statm.c(parser_parse_for_statement_start):1605. Error: ERR_FAILED_INTERNAL_ASSERTION [1] 27191 abort jerry poc.js ``` Credits: Found by OWL337 team.
Assertion 'context_p->token.type != LEXER_RIGHT_PAREN' failed at jerryscript/jerry-core/parser/js/js-parser-statm.c(parser_parse_for_statement_start):1605.
https://api.github.com/repos/jerryscript-project/jerryscript/issues/4922/comments
1
2022-01-04T06:02:50Z
2022-01-14T04:33:49Z
https://github.com/jerryscript-project/jerryscript/issues/4922
1,093,038,110
4,922
[ "jerryscript-project", "jerryscript" ]
###### JerryScript revision Commit: [a6ab5e9](https://github.com/jerryscript-project/jerryscript/commit/a6ab5e9abed70cdedf9f4e9c1dc379eb762ebf64) Version: v3.0.0 ###### Build platform Ubuntu 18.04.5 LTS (Linux 4.19.128-microsoft-standard x86_64) Ubuntu 18.04.5 LTS (Linux 5.4.0-44-generic x86_64) ###### Build steps ```bash python ./tools/build.py --clean --debug --compile-flag=-fsanitize=address --compile-flag=-m32 --compile-flag=-g --strip=off --lto=off --logging=on --line-info=on --error-message=on --system-allocator=on --stack-limit=20 ``` ###### Test case <details> <summary>poc.js</summary> <pre><code> ```javascript class JSEtest { #async bar(x = 1) { "use strict" } } ``` </code></pre> </details> ​ ###### Execution steps & Output ```bash $ ./jerryscript/build/bin/jerry poc.js ICE: Assertion 'context_p->token.type == LEXER_LITERAL' failed at jerryscript/jerry-core/parser/js/js-parser-expr.c(parser_check_duplicated_private_field):531. Error: ERR_FAILED_INTERNAL_ASSERTION [1] 26237 abort jerry poc.js ``` Credits: Found by OWL337 team.
Assertion 'context_p->token.type == LEXER_LITERAL' failed at jerryscript/jerry-core/parser/js/js-parser-expr.c(parser_check_duplicated_private_field):531.
https://api.github.com/repos/jerryscript-project/jerryscript/issues/4921/comments
0
2022-01-04T06:02:03Z
2022-01-18T12:22:46Z
https://github.com/jerryscript-project/jerryscript/issues/4921
1,093,037,753
4,921
[ "jerryscript-project", "jerryscript" ]
###### JerryScript revision Commit: [a6ab5e9](https://github.com/jerryscript-project/jerryscript/commit/a6ab5e9abed70cdedf9f4e9c1dc379eb762ebf64) Version: v3.0.0 ###### Build platform Ubuntu 18.04.5 LTS (Linux 4.19.128-microsoft-standard x86_64) Ubuntu 18.04.5 LTS (Linux 5.4.0-44-generic x86_64) ###### Build steps ```bash python ./tools/build.py --clean --debug --compile-flag=-fsanitize=address --compile-flag=-m32 --compile-flag=-g --strip=off --lto=off --logging=on --line-info=on --error-message=on --system-allocator=on --stack-limit=20 ``` ###### Test case <details> <summary>poc.js</summary> <pre><code> ```javascript function JSEtest() { const v2 = String.fromCodePoint(1337); const v4 = v2.padEnd(1337, v2); const v6 = { b: 0, e: String }.match const v7 = v6[v4]; } JSEtest(); ``` </code></pre> </details> ​ ###### Execution steps & Output ```bash $ ./jerryscript/build/bin/jerry poc.js ICE: Assertion 'cesu8_cursor_p == cesu8_end_p' failed at /jerryscript/jerry-core/lit/lit-strings.c(lit_convert_cesu8_string_to_utf8_string):868. Error: ERR_FAILED_INTERNAL_ASSERTION [1] abort jerry poc.js ``` Credits: Found by OWL337 team.
Assertion 'cesu8_cursor_p == cesu8_end_p' failed at /jerryscript/jerry-core/lit/lit-strings.c(lit_convert_cesu8_string_to_utf8_string):868.
https://api.github.com/repos/jerryscript-project/jerryscript/issues/4920/comments
0
2022-01-04T06:01:01Z
2022-01-14T09:03:47Z
https://github.com/jerryscript-project/jerryscript/issues/4920
1,093,037,283
4,920
[ "jerryscript-project", "jerryscript" ]
###### JerryScript revision Commit: [a6ab5e9](https://github.com/jerryscript-project/jerryscript/commit/a6ab5e9abed70cdedf9f4e9c1dc379eb762ebf64) Version: v3.0.0 ###### Build platform Ubuntu 18.04.5 LTS (Linux 4.19.128-microsoft-standard x86_64) Ubuntu 18.04.5 LTS (Linux 5.4.0-44-generic x86_64) ###### Build steps ```bash python ./tools/build.py --clean --debug --compile-flag=-fsanitize=address --compile-flag=-m32 --compile-flag=-g --strip=off --lto=off --logging=on --line-info=on --error-message=on --system-allocator=on --stack-limit=20 ``` ###### Test case <details> <summary>poc.js</summary> <pre><code> ```javascript function JSEtest() { const v1 = [ 1337, 1337 ]; let v2 = v1; with (100) { const v8 = { valueOf: 13.37, d: -2191938590, __proto__: 'ldq5vGcKyJ', {: 128 }; function v9(v10, v11, v12) { v2 = -1000; let v15 = arguments; } for (let v19 = 0; v19 < 100; v19++) { const v20 = v9(v8); } } } JSEtest(); ``` </code></pre> </details> ​ ###### Execution steps & Output ```bash $ ./jerryscript/build/bin/jerry poc.js ICE: Assertion 'scope_stack_p >= context_p->scope_stack_p' failed at /root/jerryscript/jerry-core/parser/js/js-parser-statm.c(parser_parse_function_statement):741. Error: ERR_FAILED_INTERNAL_ASSERTION [1] 23239 abort jerry poc.js ```
Assertion 'scope_stack_p >= context_p->scope_stack_p' failed at jerry-core/parser/js/js-parser-statm.c(parser_parse_function_statement):741.
https://api.github.com/repos/jerryscript-project/jerryscript/issues/4919/comments
1
2022-01-04T06:00:08Z
2022-01-04T10:39:15Z
https://github.com/jerryscript-project/jerryscript/issues/4919
1,093,036,909
4,919
[ "jerryscript-project", "jerryscript" ]
###### JerryScript revision Commit: [a6ab5e9](https://github.com/jerryscript-project/jerryscript/commit/a6ab5e9abed70cdedf9f4e9c1dc379eb762ebf64) Version: v3.0.0 ###### Build platform Ubuntu 18.04.5 LTS (Linux 4.19.128-microsoft-standard x86_64) Ubuntu 18.04.5 LTS (Linux 5.4.0-44-generic x86_64) ###### Build steps ```bash python ./tools/build.py --clean --debug --compile-flag=-fsanitize=address --compile-flag=-m32 --compile-flag=-g --strip=off --lto=off --logging=on --line-info=on --error-message=on --system-allocator=on --stack-limit=20 ``` ###### Test case <details> <summary>poc.js</summary> <pre><code> ```javascript function JSEtset() { const v2 = String.fromCodePoint(1337); const v4 = v2.padEnd(1337, v2); const v6 = { {: 0, e: String }; const v7 = v6[v4]; } JSEtset(); ``` </code></pre> </details> ​ ###### Execution steps & Output ```bash $ ./jerryscript/build/bin/jerry poc.js ICE: Assertion 'scope_stack_p > context_p->scope_stack_p' failed at /jerryscript/jerry-core/parser/js/js-scanner-util.c(scanner_literal_is_created):3112. Error: ERR_FAILED_INTERNAL_ASSERTION [1] 22037 abort jerry poc.js ```
Assertion 'scope_stack_p > context_p->scope_stack_p' failed at jerry-core/parser/js/js-scanner-util.c(scanner_literal_is_created):3112.
https://api.github.com/repos/jerryscript-project/jerryscript/issues/4918/comments
1
2022-01-04T05:59:16Z
2022-01-04T10:39:03Z
https://github.com/jerryscript-project/jerryscript/issues/4918
1,093,036,586
4,918
[ "jerryscript-project", "jerryscript" ]
###### JerryScript revision a6ab5e9 ###### Build platform Ubuntu 20.04.3 LTS (Linux 5.11.0-43-generic x86_64) ###### Build steps ```sh ./tools/build.py --clean --compile-flag=-fsanitize=address --lto=off --error-message=on --profile=es2015-subset --stack-limit=15 --debug --logging=on --line-info=on ``` ###### Test case ``` base64 poc DQp2YXIgYT0gWyIiLCAiXDAiLCAiXHlmIl0NCkFycmF5LnByb3RvdHlwZVs0XSA9IDEwOw0KZnVu Y3Rpb24gRWVzdCgpDQp7DQogICAgYS5zb3J0KGZ1bmN0aW9uKCkgew0KICAgQSA9IGZ1bmN0aW9u KCkgeyB9Ow0KQS5wcm90b3R5cGUueCU9IDQyOw0KdmFyIG8gPSBuZXcgUHJveHkoew0KICAgICAg ICAiMyI6IHsNCiAgICAgICAgICAgIHdyaXRhYmxlOmZhbHNlLA0KICAgICAgICAgICAgdmFsdUM6 MjANCn0NCiAgICB9LCB7DQogICAgZ2V0UHJvdG90eXBlT2Y6IGZ1bmN0aW9uICh2YWwsIHNpemUs IGNoKSB7DSAgYS5zb3IKICAgIHZhciBlc3VsdCA9ICIiO3Jlc3VsdCA9IG5ldyBTdHJpUGcgICAg ICAgICAgICA7Ozs7Ozs7Ozs7OyAgICAgDQogICAgICAgaWYgKGNoID0+IG51bGwpIHsgIGNoID0g IiAiOw0KfQ0KfSwgew0KICAgIGdldAAAAEBvdHlwZU9oIDwgc2l6ZSAgdWx0Ow0KICAgIH0NCiAg ICByZXR1cm4gcmVzdWxkOw0KfQ0KfSk7DQogICAgICAgIG8ueCA9IDQzOw0KICAgICAgICB2YXIg cmVzdWx0ID0gIiI7DQogICAgICAgIGZvciAodmFyIHAgaW4hbykNCiAgICByZXN1bHQgK2EgfCAw Ow0KICAgIH0pOw0KICAgIFdTY3JpcHQuRWNobyhhKTsNCn0NCg0KVGVzdCgpOw0KDQ== ``` ###### Execution steps ```sh jerry ./poc ``` ##### asan log ``` ================================================================= ==2953261==ERROR: AddressSanitizer: heap-use-after-free on address 0xf4502508 at pc 0x56731155 bp 0xffa0fc88 sp 0xffa0fc78 READ of size 4 at 0xf4502508 thread T0 #0 0x56731154 in lexer_compare_identifier_to_string /home/aidai/fuzzing/jerryscript/jerryscript-test/jerry-core/parser/js/js-lexer.c:3503 #1 0x56738c41 in parser_parse_object_literal /home/aidai/fuzzing/jerryscript/jerryscript-test/jerry-core/parser/js/js-parser-expr.c:1593 #2 0x5673c3b8 in parser_parse_unary_expression /home/aidai/fuzzing/jerryscript/jerryscript-test/jerry-core/parser/js/js-parser-expr.c:2339 #3 0x5674559d in parser_parse_expression /home/aidai/fuzzing/jerryscript/jerryscript-test/jerry-core/parser/js/js-parser-expr.c:4428 #4 0x5673e25f in parser_process_unary_expression /home/aidai/fuzzing/jerryscript/jerryscript-test/jerry-core/parser/js/js-parser-expr.c:2772 #5 0x56745605 in parser_parse_expression /home/aidai/fuzzing/jerryscript/jerryscript-test/jerry-core/parser/js/js-parser-expr.c:4437 #6 0x5674e9a0 in parser_parse_var_statement /home/aidai/fuzzing/jerryscript/jerryscript-test/jerry-core/parser/js/js-parser-statm.c:527 #7 0x5675bb93 in parser_parse_statements /home/aidai/fuzzing/jerryscript/jerryscript-test/jerry-core/parser/js/js-parser-statm.c:2925 #8 0x566809a2 in parser_parse_function /home/aidai/fuzzing/jerryscript/jerryscript-test/jerry-core/parser/js/js-parser.c:2792 #9 0x5672d0d9 in lexer_construct_function_object /home/aidai/fuzzing/jerryscript/jerryscript-test/jerry-core/parser/js/js-lexer.c:2820 #10 0x567398f9 in parser_parse_function_expression /home/aidai/fuzzing/jerryscript/jerryscript-test/jerry-core/parser/js/js-parser-expr.c:1828 #11 0x5673c0df in parser_parse_unary_expression /home/aidai/fuzzing/jerryscript/jerryscript-test/jerry-core/parser/js/js-parser-expr.c:2313 #12 0x5674559d in parser_parse_expression /home/aidai/fuzzing/jerryscript/jerryscript-test/jerry-core/parser/js/js-parser-expr.c:4428 #13 0x5673e25f in parser_process_unary_expression /home/aidai/fuzzing/jerryscript/jerryscript-test/jerry-core/parser/js/js-parser-expr.c:2772 #14 0x56745605 in parser_parse_expression /home/aidai/fuzzing/jerryscript/jerryscript-test/jerry-core/parser/js/js-parser-expr.c:4437 #15 0x56745334 in parser_parse_expression_statement /home/aidai/fuzzing/jerryscript/jerryscript-test/jerry-core/parser/js/js-parser-expr.c:4399 #16 0x5675cf43 in parser_parse_statements /home/aidai/fuzzing/jerryscript/jerryscript-test/jerry-core/parser/js/js-parser-statm.c:3230 #17 0x566809a2 in parser_parse_function /home/aidai/fuzzing/jerryscript/jerryscript-test/jerry-core/parser/js/js-parser.c:2792 #18 0x5674fcbb in parser_parse_function_statement /home/aidai/fuzzing/jerryscript/jerryscript-test/jerry-core/parser/js/js-parser-statm.c:799 #19 0x5675bc06 in parser_parse_statements /home/aidai/fuzzing/jerryscript/jerryscript-test/jerry-core/parser/js/js-parser-statm.c:2957 #20 0x5667d2ac in parser_parse_source /home/aidai/fuzzing/jerryscript/jerryscript-test/jerry-core/parser/js/js-parser.c:2340 #21 0x5668356d in parser_parse_script /home/aidai/fuzzing/jerryscript/jerryscript-test/jerry-core/parser/js/js-parser.c:3413 #22 0x565bd97d in jerry_parse_common /home/aidai/fuzzing/jerryscript/jerryscript-test/jerry-core/api/jerryscript.c:398 #23 0x565bdce1 in jerry_parse /home/aidai/fuzzing/jerryscript/jerryscript-test/jerry-core/api/jerryscript.c:466 #24 0x565b6734 in main /home/aidai/fuzzing/jerryscript/jerryscript-test/jerry-main/main-jerry.c:161 #25 0xf7618ee4 in __libc_start_main (/lib/i386-linux-gnu/libc.so.6+0x1eee4) #26 0x565b5a94 in _start (/home/aidai/fuzzing/jerryscript/jerryscript-test/build/bin/jerry+0x1ea94) 0xf4502508 is located 8 bytes inside of 124-byte region [0xf4502500,0xf450257c) freed by thread T0 here: #0 0xf7a20814 in __interceptor_free (/lib32/libasan.so.5+0x113814) #1 0x56669e18 in jmem_heap_free_block_internal /home/aidai/fuzzing/jerryscript/jerryscript-test/jerry-core/jmem/jmem-heap.c:477 #2 0x56669f57 in jmem_heap_free_block /home/aidai/fuzzing/jerryscript/jerryscript-test/jerry-core/jmem/jmem-heap.c:691 #3 0x56748112 in parser_free /home/aidai/fuzzing/jerryscript/jerryscript-test/jerry-core/parser/js/js-parser-mem.c:59 #4 0x56748112 in parser_data_free /home/aidai/fuzzing/jerryscript/jerryscript-test/jerry-core/parser/js/js-parser-mem.c:134 #5 0x5674849b in parser_list_free /home/aidai/fuzzing/jerryscript/jerryscript-test/jerry-core/parser/js/js-parser-mem.c:211 #6 0x5667f81c in parser_restore_context /home/aidai/fuzzing/jerryscript/jerryscript-test/jerry-core/parser/js/js-parser.c:2662 #7 0x566809d6 in parser_parse_function /home/aidai/fuzzing/jerryscript/jerryscript-test/jerry-core/parser/js/js-parser.c:2807 #8 0x5672d0d9 in lexer_construct_function_object /home/aidai/fuzzing/jerryscript/jerryscript-test/jerry-core/parser/js/js-lexer.c:2820 #9 0x567398f9 in parser_parse_function_expression /home/aidai/fuzzing/jerryscript/jerryscript-test/jerry-core/parser/js/js-parser-expr.c:1828 #10 0x5673c0df in parser_parse_unary_expression /home/aidai/fuzzing/jerryscript/jerryscript-test/jerry-core/parser/js/js-parser-expr.c:2313 #11 0x5674559d in parser_parse_expression /home/aidai/fuzzing/jerryscript/jerryscript-test/jerry-core/parser/js/js-parser-expr.c:4428 #12 0x56739102 in parser_parse_object_literal /home/aidai/fuzzing/jerryscript/jerryscript-test/jerry-core/parser/js/js-parser-expr.c:1656 #13 0x5673c3b8 in parser_parse_unary_expression /home/aidai/fuzzing/jerryscript/jerryscript-test/jerry-core/parser/js/js-parser-expr.c:2339 #14 0x5674559d in parser_parse_expression /home/aidai/fuzzing/jerryscript/jerryscript-test/jerry-core/parser/js/js-parser-expr.c:4428 #15 0x5673e25f in parser_process_unary_expression /home/aidai/fuzzing/jerryscript/jerryscript-test/jerry-core/parser/js/js-parser-expr.c:2772 #16 0x56745605 in parser_parse_expression /home/aidai/fuzzing/jerryscript/jerryscript-test/jerry-core/parser/js/js-parser-expr.c:4437 #17 0x5674e9a0 in parser_parse_var_statement /home/aidai/fuzzing/jerryscript/jerryscript-test/jerry-core/parser/js/js-parser-statm.c:527 #18 0x5675bb93 in parser_parse_statements /home/aidai/fuzzing/jerryscript/jerryscript-test/jerry-core/parser/js/js-parser-statm.c:2925 #19 0x566809a2 in parser_parse_function /home/aidai/fuzzing/jerryscript/jerryscript-test/jerry-core/parser/js/js-parser.c:2792 #20 0x5672d0d9 in lexer_construct_function_object /home/aidai/fuzzing/jerryscript/jerryscript-test/jerry-core/parser/js/js-lexer.c:2820 #21 0x567398f9 in parser_parse_function_expression /home/aidai/fuzzing/jerryscript/jerryscript-test/jerry-core/parser/js/js-parser-expr.c:1828 #22 0x5673c0df in parser_parse_unary_expression /home/aidai/fuzzing/jerryscript/jerryscript-test/jerry-core/parser/js/js-parser-expr.c:2313 #23 0x5674559d in parser_parse_expression /home/aidai/fuzzing/jerryscript/jerryscript-test/jerry-core/parser/js/js-parser-expr.c:4428 #24 0x5673e25f in parser_process_unary_expression /home/aidai/fuzzing/jerryscript/jerryscript-test/jerry-core/parser/js/js-parser-expr.c:2772 #25 0x56745605 in parser_parse_expression /home/aidai/fuzzing/jerryscript/jerryscript-test/jerry-core/parser/js/js-parser-expr.c:4437 #26 0x56745334 in parser_parse_expression_statement /home/aidai/fuzzing/jerryscript/jerryscript-test/jerry-core/parser/js/js-parser-expr.c:4399 #27 0x5675cf43 in parser_parse_statements /home/aidai/fuzzing/jerryscript/jerryscript-test/jerry-core/parser/js/js-parser-statm.c:3230 #28 0x566809a2 in parser_parse_function /home/aidai/fuzzing/jerryscript/jerryscript-test/jerry-core/parser/js/js-parser.c:2792 #29 0x5674fcbb in parser_parse_function_statement /home/aidai/fuzzing/jerryscript/jerryscript-test/jerry-core/parser/js/js-parser-statm.c:799 #30 0x5675bc06 in parser_parse_statements /home/aidai/fuzzing/jerryscript/jerryscript-test/jerry-core/parser/js/js-parser-statm.c:2957 previously allocated by thread T0 here: #0 0xf7a20c17 in __interceptor_malloc (/lib32/libasan.so.5+0x113c17) #1 0x56669c14 in jmem_heap_alloc /home/aidai/fuzzing/jerryscript/jerryscript-test/jerry-core/jmem/jmem-heap.c:254 #2 0x56669c84 in jmem_heap_gc_and_alloc_block /home/aidai/fuzzing/jerryscript/jerryscript-test/jerry-core/jmem/jmem-heap.c:291 #3 0x56669d39 in jmem_heap_alloc_block_null_on_error /home/aidai/fuzzing/jerryscript/jerryscript-test/jerry-core/jmem/jmem-heap.c:342 #4 0x56747da2 in parser_malloc /home/aidai/fuzzing/jerryscript/jerryscript-test/jerry-core/parser/js/js-parser-mem.c:43 #5 0x56748645 in parser_list_append /home/aidai/fuzzing/jerryscript/jerryscript-test/jerry-core/parser/js/js-parser-mem.c:239 #6 0x5672b7fd in lexer_construct_literal_object /home/aidai/fuzzing/jerryscript/jerryscript-test/jerry-core/parser/js/js-lexer.c:2556 #7 0x5673ba0b in parser_parse_unary_expression /home/aidai/fuzzing/jerryscript/jerryscript-test/jerry-core/parser/js/js-parser-expr.c:2242 #8 0x5674559d in parser_parse_expression /home/aidai/fuzzing/jerryscript/jerryscript-test/jerry-core/parser/js/js-parser-expr.c:4428 #9 0x56745334 in parser_parse_expression_statement /home/aidai/fuzzing/jerryscript/jerryscript-test/jerry-core/parser/js/js-parser-expr.c:4399 #10 0x5675cf43 in parser_parse_statements /home/aidai/fuzzing/jerryscript/jerryscript-test/jerry-core/parser/js/js-parser-statm.c:3230 #11 0x566809a2 in parser_parse_function /home/aidai/fuzzing/jerryscript/jerryscript-test/jerry-core/parser/js/js-parser.c:2792 #12 0x5672d0d9 in lexer_construct_function_object /home/aidai/fuzzing/jerryscript/jerryscript-test/jerry-core/parser/js/js-lexer.c:2820 #13 0x567398f9 in parser_parse_function_expression /home/aidai/fuzzing/jerryscript/jerryscript-test/jerry-core/parser/js/js-parser-expr.c:1828 #14 0x5673c0df in parser_parse_unary_expression /home/aidai/fuzzing/jerryscript/jerryscript-test/jerry-core/parser/js/js-parser-expr.c:2313 #15 0x5674559d in parser_parse_expression /home/aidai/fuzzing/jerryscript/jerryscript-test/jerry-core/parser/js/js-parser-expr.c:4428 #16 0x56739102 in parser_parse_object_literal /home/aidai/fuzzing/jerryscript/jerryscript-test/jerry-core/parser/js/js-parser-expr.c:1656 #17 0x5673c3b8 in parser_parse_unary_expression /home/aidai/fuzzing/jerryscript/jerryscript-test/jerry-core/parser/js/js-parser-expr.c:2339 #18 0x5674559d in parser_parse_expression /home/aidai/fuzzing/jerryscript/jerryscript-test/jerry-core/parser/js/js-parser-expr.c:4428 #19 0x5673e25f in parser_process_unary_expression /home/aidai/fuzzing/jerryscript/jerryscript-test/jerry-core/parser/js/js-parser-expr.c:2772 #20 0x56745605 in parser_parse_expression /home/aidai/fuzzing/jerryscript/jerryscript-test/jerry-core/parser/js/js-parser-expr.c:4437 #21 0x5674e9a0 in parser_parse_var_statement /home/aidai/fuzzing/jerryscript/jerryscript-test/jerry-core/parser/js/js-parser-statm.c:527 #22 0x5675bb93 in parser_parse_statements /home/aidai/fuzzing/jerryscript/jerryscript-test/jerry-core/parser/js/js-parser-statm.c:2925 #23 0x566809a2 in parser_parse_function /home/aidai/fuzzing/jerryscript/jerryscript-test/jerry-core/parser/js/js-parser.c:2792 #24 0x5672d0d9 in lexer_construct_function_object /home/aidai/fuzzing/jerryscript/jerryscript-test/jerry-core/parser/js/js-lexer.c:2820 #25 0x567398f9 in parser_parse_function_expression /home/aidai/fuzzing/jerryscript/jerryscript-test/jerry-core/parser/js/js-parser-expr.c:1828 #26 0x5673c0df in parser_parse_unary_expression /home/aidai/fuzzing/jerryscript/jerryscript-test/jerry-core/parser/js/js-parser-expr.c:2313 #27 0x5674559d in parser_parse_expression /home/aidai/fuzzing/jerryscript/jerryscript-test/jerry-core/parser/js/js-parser-expr.c:4428 #28 0x5673e25f in parser_process_unary_expression /home/aidai/fuzzing/jerryscript/jerryscript-test/jerry-core/parser/js/js-parser-expr.c:2772 #29 0x56745605 in parser_parse_expression /home/aidai/fuzzing/jerryscript/jerryscript-test/jerry-core/parser/js/js-parser-expr.c:4437 SUMMARY: AddressSanitizer: heap-use-after-free /home/aidai/fuzzing/jerryscript/jerryscript-test/jerry-core/parser/js/js-lexer.c:3503 in lexer_compare_identifier_to_string Shadow bytes around the buggy address: 0x3e8a0450: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa 0x3e8a0460: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa 0x3e8a0470: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa 0x3e8a0480: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa 0x3e8a0490: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa =>0x3e8a04a0: fd[fd]fd fd fd fd fd fd fd fd fd fd fd fd fd fd 0x3e8a04b0: fa fa fa fa fa fa fa fa fd fd fd fd fd fd fd fd 0x3e8a04c0: fd fd fd fd fd fd fd fd fa fa fa fa fa fa fa fa 0x3e8a04d0: fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd 0x3e8a04e0: fa fa fa fa fa fa fa fa 00 00 00 00 00 00 00 00 0x3e8a04f0: 00 00 00 00 00 00 00 04 fa fa fa fa fa fa fa fa Shadow byte legend (one shadow byte represents 8 application bytes): Addressable: 00 Partially addressable: 01 02 03 04 05 06 07 Heap left redzone: fa Freed heap region: fd Stack left redzone: f1 Stack mid redzone: f2 Stack right redzone: f3 Stack after return: f5 Stack use after scope: f8 Global redzone: f9 Global init order: f6 Poisoned by user: f7 Container overflow: fc Array cookie: ac Intra object redzone: bb ASan internal: fe Left alloca redzone: ca Right alloca redzone: cb Shadow gap: cc ==2953261==ABORTING ```
Use After Free at jerry-core/parser/js/js-lexer.c:3503 in lexer_compare_identifier_to_string
https://api.github.com/repos/jerryscript-project/jerryscript/issues/4917/comments
2
2022-01-03T03:39:39Z
2022-01-04T10:38:46Z
https://github.com/jerryscript-project/jerryscript/issues/4917
1,092,198,721
4,917
[ "jerryscript-project", "jerryscript" ]
##### JerryScript commit hash `a6ab5e9` ##### Build platform Ubuntu 20.04 LTS ##### Build steps ./tools/build.py --clean --compile-flag=-fsanitize=address --lto=off --error-message=on --profile=es2015-subset --stack-limit=15 --debug --logging=on --line-info=on ##### poc ```js function test(proxyTarget) { var { proxy, revoke } = Proxy.revocable(proxyTarget< new Proxy({}, { get{(target, propertyKey, receiver) { revoke(); } })); return proxy; } Object.getPrototypeOf(test({})); ``` ##### assert log ``` ICE: Assertion 'context_p->next_scanner_info_p->type == SCANNER_TYPE_FUNCTION' failed at /home/ubuntu/fuzz/jerryscript/jerry-core/parser/js/js-parser.c(parser_parse_function_arguments):1618. Error: ERR_FAILED_INTERNAL_ASSERTION Aborted ``` ##### asan log ``` AddressSanitizer:DEADLYSIGNAL ================================================================= ==602568==ERROR: AddressSanitizer: SEGV on unknown address 0x000000000000 (pc 0x55cb2935a0c1 bp 0x7ffdb322746c sp 0x7ffdb32250a0 T0) ==602568==The signal is caused by a READ memory access. ==602568==Hint: address points to the zero page. #0 0x55cb2935a0c0 (/home/ubuntu/fuzz/jerryscript/build/bin/jerry+0x2d40c0) #1 0x55cb2932cbce (/home/ubuntu/fuzz/jerryscript/build/bin/jerry+0x2a6bce) #2 0x55cb2933ed63 (/home/ubuntu/fuzz/jerryscript/build/bin/jerry+0x2b8d63) #3 0x55cb2945e610 (/home/ubuntu/fuzz/jerryscript/build/bin/jerry+0x3d8610) #4 0x55cb294763dc (/home/ubuntu/fuzz/jerryscript/build/bin/jerry+0x3f03dc) #5 0x55cb2947ea5f (/home/ubuntu/fuzz/jerryscript/build/bin/jerry+0x3f8a5f) #6 0x55cb2947c741 (/home/ubuntu/fuzz/jerryscript/build/bin/jerry+0x3f6741) #7 0x55cb2947ea8b (/home/ubuntu/fuzz/jerryscript/build/bin/jerry+0x3f8a8b) #8 0x55cb2947c741 (/home/ubuntu/fuzz/jerryscript/build/bin/jerry+0x3f6741) #9 0x55cb2947ea8b (/home/ubuntu/fuzz/jerryscript/build/bin/jerry+0x3f8a8b) #10 0x55cb2948623b (/home/ubuntu/fuzz/jerryscript/build/bin/jerry+0x40023b) #11 0x55cb29487623 (/home/ubuntu/fuzz/jerryscript/build/bin/jerry+0x401623) #12 0x55cb294951f3 (/home/ubuntu/fuzz/jerryscript/build/bin/jerry+0x40f1f3) #13 0x55cb2949a49b (/home/ubuntu/fuzz/jerryscript/build/bin/jerry+0x41449b) #14 0x55cb2933ef1a (/home/ubuntu/fuzz/jerryscript/build/bin/jerry+0x2b8f1a) #15 0x55cb294925c5 (/home/ubuntu/fuzz/jerryscript/build/bin/jerry+0x40c5c5) #16 0x55cb2949c035 (/home/ubuntu/fuzz/jerryscript/build/bin/jerry+0x416035) #17 0x55cb2933b318 (/home/ubuntu/fuzz/jerryscript/build/bin/jerry+0x2b5318) #18 0x55cb29200f3d (/home/ubuntu/fuzz/jerryscript/build/bin/jerry+0x17af3d) #19 0x55cb290b7290 (/home/ubuntu/fuzz/jerryscript/build/bin/jerry+0x31290) #20 0x7f2801d550b2 in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x270b2) #21 0x55cb290c4c0d (/home/ubuntu/fuzz/jerryscript/build/bin/jerry+0x3ec0d) AddressSanitizer can not provide additional info. SUMMARY: AddressSanitizer: SEGV (/home/ubuntu/fuzz/jerryscript/build/bin/jerry+0x2d40c0) ==602568==ABORTING ```
Assertion 'context_p->next_scanner_info_p->type == SCANNER_TYPE_FUNCTION' failed at /home/ubuntu/fuzz/jerryscript/jerry-core/parser/js/js-parser.c(parser_parse_function_arguments):1618
https://api.github.com/repos/jerryscript-project/jerryscript/issues/4916/comments
0
2022-01-02T19:10:38Z
2022-05-21T14:30:43Z
https://github.com/jerryscript-project/jerryscript/issues/4916
1,092,081,853
4,916
[ "jerryscript-project", "jerryscript" ]
I would like to store some binary data, eg. images or fonts etc. this binary data will be compiled to byte code and store in rom. currently I tend to use string or Uint8Array, but I don't know which would be more efficiency when runing the compiled to byte code.
how to store binary data in javascript code more efficiency
https://api.github.com/repos/jerryscript-project/jerryscript/issues/4911/comments
4
2021-12-22T03:16:45Z
2022-01-12T01:04:42Z
https://github.com/jerryscript-project/jerryscript/issues/4911
1,086,408,515
4,911
[ "jerryscript-project", "jerryscript" ]
###### JerryScript revision Commit: [42523bd6](https://github.com/jerryscript-project/jerryscript/commit/42523bd6e2b114755498c9f68fd78545f9b33476) Version: v3.0.0 ###### Build platform Ubuntu 18.04.5 LTS (Linux 5.4.0-44-generic x86_64) ###### Build steps ```bash python ./tools/build.py --clean --debug --compile-flag=-fsanitize=address --compile-flag=-m32 --compile-flag=-fno-omit-frame-pointer --compile-flag=-fno-common --compile-flag=-g --strip=off --system-allocator=on --logging=on --linker-flag=-fuse-ld=gold --error-messages=on --line-info=on --stack-limit=10 ``` ###### Test case ```javascript function echo(str) { console.log(str); } function T(p, r, u) { return Object.assign(p, { then(onFulfilled, onRejected) { if (u) { onFulfilled(r); } else { onFulfilled(); } return Promise.prototype.then.call(this, onFulfilled, onRejected); } }); } function JSEtest(i) { var ps = [T(Promise.resolve('success'))]; Promise.all(ps).then(res => { echo(`Test #${i} - Success with '${res}' (length = ${res.length}) (isArray = ${Array.isArray(res)})`); }).catch(err => { echo(`Test #${i} - Catch with ${err}`); }); } JSEtest(1); ``` ###### Execution steps & Output ```bash $ ./jerryscript/build/bin/jerry poc.js ICE: Assertion 'ptr != NULL' failed at /root/jerryscript/jerry-core/ecma/base/ecma-helpers-value.c(ecma_get_pointer_from_ecma_value):115. Error: ERR_FAILED_INTERNAL_ASSERTION ```
Assertion 'ecma_is_lexical_environment (object_p)' failed at ecma-helpers.c (ecma_get_lex_env_type).
https://api.github.com/repos/jerryscript-project/jerryscript/issues/4902/comments
3
2021-12-13T09:36:28Z
2021-12-31T08:17:12Z
https://github.com/jerryscript-project/jerryscript/issues/4902
1,078,289,153
4,902
[ "jerryscript-project", "jerryscript" ]
###### JerryScript revision Commit: [42523bd6](https://github.com/jerryscript-project/jerryscript/commit/42523bd6e2b114755498c9f68fd78545f9b33476) Version: v3.0.0 ###### Build platform Ubuntu 18.04.5 LTS (Linux 5.4.0-44-generic x86_64) ###### Build steps ```bash python ./tools/build.py --clean --debug --compile-flag=-fsanitize=address --compile-flag=-m32 --compile-flag=-fno-omit-frame-pointer --compile-flag=-fno-common --compile-flag=-g --strip=off --system-allocator=on --logging=on --linker-flag=-fuse-ld=gold --error-messages=on --line-info=on --stack-limit=10 ``` ###### Test case ```javascript function JSEtest() { new JSEtest(); } try { JSEtest(); } catch (e) { print(e); } ``` ​ ###### Execution steps & Output ```bash $ ./jerryscript/build/bin/jerry poc.js ASAN:DEADLYSIGNAL ================================================================= ==78723==ERROR: AddressSanitizer: stack-overflow on address 0xff0d8f90 (pc 0x566a456c bp 0xff0d95d8 sp 0xff0d8f90 T0) #0 0x566a456b in vm_loop.lto_priv.304 /root/jerryscript/jerry-core/vm/vm.c:975 #1 0x56929645 in vm_execute /root/jerryscript/jerry-core/vm/vm.c:5260 #2 0x5692e592 in vm_run /root/jerryscript/jerry-core/vm/vm.c:5363 #3 0x5674524e in ecma_op_function_call_simple.lto_priv.397 /root/jerryscript/jerry-core/ecma/operations/ecma-function-object.c:1203 #4 0x567e8c9c in ecma_op_function_construct_simple /root/jerryscript/jerry-core/ecma/operations/ecma-function-object.c:1533 #5 0x567e8c9c in ecma_op_function_construct /root/jerryscript/jerry-core/ecma/operations/ecma-function-object.c:1769 #6 0x5692995a in opfunc_construct.isra.2 /root/jerryscript/jerry-core/vm/vm.c:844 #7 0x5692995a in vm_execute /root/jerryscript/jerry-core/vm/vm.c:5287 #...... #...... #368 0x5692e592 in vm_run /root/jerryscript/jerry-core/vm/vm.c:5363 #369 0x5674524e in ecma_op_function_call_simple.lto_priv.397 /root/jerryscript/jerry-core/ecma/operations/ecma-function-object.c:1203 #370 0x567e8c9c in ecma_op_function_construct_simple /root/jerryscript/jerry-core/ecma/operations/ecma-function-object.c:1533 #371 0x567e8c9c in ecma_op_function_construct /root/jerryscript/jerry-core/ecma/operations/ecma-function-object.c:1769 #372 0x5692995a in opfunc_construct.isra.2 /root/jerryscript/jerry-core/vm/vm.c:844 #373 0x5692995a in vm_execute /root/jerryscript/jerry-core/vm/vm.c:5287 SUMMARY: AddressSanitizer: stack-overflow /root/jerryscript/jerry-core/vm/vm.c:975 in vm_loop.lto_priv.304 ==78723==ABORTING ``` Credits: Found by OWL337 team.
Stack-overflow in vm_loop.lto_priv.304 of vm.c
https://api.github.com/repos/jerryscript-project/jerryscript/issues/4901/comments
0
2021-12-13T09:33:54Z
2022-01-12T02:03:50Z
https://github.com/jerryscript-project/jerryscript/issues/4901
1,078,286,757
4,901
[ "jerryscript-project", "jerryscript" ]
###### JerryScript revision Commit: [42523bd6](https://github.com/jerryscript-project/jerryscript/commit/42523bd6e2b114755498c9f68fd78545f9b33476) Version: v3.0.0 ###### Build platform Ubuntu 18.04.5 LTS (Linux 5.4.0-44-generic x86_64) ###### Build steps ```bash python ./tools/build.py --clean --debug --compile-flag=-m32 --compile-flag=-g --strip=off --lto=off --logging=on --line-info=on --error-message=on --system-allocator=on --linker-flag=-fuse-ld=gold --profile=es2015-subset --stack-limit=20 ``` ASAN closed ###### Test case ```javascript var i = 0; var a = []; var JSEtest = []; JSEtest.__defineGetter__(0, function NaN() { if (i++ > 2) { return; } JSEtest.shift(); gc(); a.push(0); a.concat(JSEtest); }); JSEtest[0]; ``` ​ ###### Execution steps & Output ```bash $ ./jerryscript/build/bin/jerry poc.js ICE: Assertion 'ecma_is_lexical_environment (object_p)' failed at /home/f1yh0p/jerryscript/jerry-core/ecma/base/ecma-helpers.c(ecma_get_lex_env_type):291. Error: ERR_FAILED_INTERNAL_ASSERTION ``` Credits: Found by OWL337 team.
Assertion 'ecma_is_lexical_environment (object_p)' failed at ecma-helpers.c (ecma_get_lex_env_type).
https://api.github.com/repos/jerryscript-project/jerryscript/issues/4900/comments
1
2021-12-13T08:54:30Z
2022-01-12T02:04:14Z
https://github.com/jerryscript-project/jerryscript/issues/4900
1,078,245,904
4,900
[ "jerryscript-project", "jerryscript" ]
## JerryScript commit hash 55acdf2048b390d0f56f12e64dbfb2559f0e70ad ## Build platform Ubuntu 20.04 LTS ## Build steps ``` ./tools/build.py --clean --debug --compile-flag=-fsanitize=address \ --compile-flag=-m32 --compile-flag=-fno-omit-frame-pointer \ --compile-flag=-fno-common --compile-flag=-g \ --strip=off --system-allocator=on --logging=on \ --linker-flag=-fuse-ld=gold --error-messages=on --line-info=ON \ --stack-limit=10 ``` ## some poc - poc1 ``` function shouldThrow(func, errorMessage) { let errorThrown = false; try { func(); } catch (error) { errorThrown = true; if (String(error) !== errorMessage) throw new Error(`Bad error: ${ error }`); } if (!errorThrown) throw new Error('Not thrown!'); } const obj = {}; const s = [0.1].toLocaleString().padEnd(2 ** 31 - 1, 'ab'); Object.defineProperty(obj, 'foo', { value: s, writable: false, enumerable: true, configurable: false }); shouldThrow(() => { Object.defineProperty(obj, 'foo', { value: 'bar' }); }, 'TypeError: Attempting to change value of a readonly property.'); ``` - poc2 ``` var s = 'ሴ-------'; for (var i = 0; i < 17; i++) { s += s; } s.replace(/[\u1234]/g, ''); ``` ## asan log ``` ==1822485==ERROR: AddressSanitizer: allocator is out of memory trying to allocate 0x1cf60 bytes ==1822485==FATAL: AddressSanitizer: internal allocator is out of memory trying to allocate 0xf bytes ``` ``` ➜ jerryscript_workdir git:(main) ASAN_OPTIONS=allocator_may_return_null=1 ~/jerryscript/build2/bin/jerry oom1.js AddressSanitizer:DEADLYSIGNAL ================================================================= ==1822664==ERROR: AddressSanitizer: SEGV on unknown address 0x00000000 (pc 0x56615065 bp 0xfff7e0a8 sp 0xfff7e080 T0) ==1822664==The signal is caused by a WRITE memory access. ==1822664==Hint: address points to the zero page. ==1822664==FATAL: AddressSanitizer: internal allocator is out of memory trying to allocate 0xf bytes ``` ## Question Question : Should I report these problems to you as null pointers, or how to prevent them from asan crashing
Some questions in the fuzz test, hope to be answered, about"AddressSanitizer: allocator is out of memory"
https://api.github.com/repos/jerryscript-project/jerryscript/issues/4897/comments
6
2021-12-09T15:35:26Z
2021-12-09T16:05:49Z
https://github.com/jerryscript-project/jerryscript/issues/4897
1,075,710,248
4,897
[ "jerryscript-project", "jerryscript" ]
## JerryScript commit hash 55acdf2048b390d0f56f12e64dbfb2559f0e70ad ## Build platform Ubuntu 20.04 LTS ## Build steps ``` ./tools/build.py --clean --debug --compile-flag=-fsanitize=address \ --compile-flag=-m32 --compile-flag=-fno-omit-frame-pointer \ --compile-flag=-fno-common --compile-flag=-g \ --strip=off --system-allocator=on --logging=on \ --linker-flag=-fuse-ld=gold --error-messages=on --line-info=ON \ --stack-limit=10 ``` ## poc ``` function assertThrows(code, type_opt, cause_opt) { if (typeof code === 'function') return code(); if (typeof code === 'string') return eval(code); } function f0(a = eval('var b'), b) { } assertThrows(f0, SyntaxError); function f1(a = eval('var b = 0'), b) { } assertThrows(f1, SyntaxError); function f2(a = eval('function b(){}'), b) { } assertThrows(f2, SyntaxError); function f3(a = eval('{ function b(){} }'), b) { return b; } print(undefined, f3()); function f4(b, a = eval('var b = 0')) { return b; } assertThrows(f4, SyntaxError); function f5(b, a = eval('function b(){}')) { return b; } assertThrows(f5, SyntaxError); function f6(b, a = eval('{ function b(){} }')) { return b; } print(42, f6(42)); ``` ## assert log ``` Assertion 'ECMA_PROPERTY_VALUE_PTR (property_p)->value == ECMA_VALUE_UNINITIALIZED' failed at jerry-core/vm/vm.c(vm_loop):1662. Error: ERR_FAILED_INTERNAL_ASSERTION ```
Assertion 'ECMA_PROPERTY_VALUE_PTR (property_p)->value == ECMA_VALUE_UNINITIALIZED' failed at jerry-core/vm/vm.c(vm_loop):1662.
https://api.github.com/repos/jerryscript-project/jerryscript/issues/4896/comments
2
2021-12-09T15:08:21Z
2021-12-15T11:45:10Z
https://github.com/jerryscript-project/jerryscript/issues/4896
1,075,680,604
4,896
[ "jerryscript-project", "jerryscript" ]
###### JerryScript revision Commit: [51da1551](https://github.com/jerryscript-project/jerryscript/commit/51da15516e1436184be9914314f76d596f14cd27) Version: v3.0.0 ###### Build platform Ubuntu 18.04.5 LTS (Linux 5.4.0-44-generic x86_64) ###### Build steps ```bash ./tools/build.py --clean --debug --profile=es2015-subset --compile-flag=-fsanitize=address --compile-flag=-m32 --lto=off --logging=on --line-info=on --error-message=on --system-allocator=on --stack-limit=20 ``` ###### Test case ```javascript function JSEtest(predicate, item) { if (!predicate) { log.push(item); } } var global = this; Object.getOwnPropertyNames(global).forEach(function (name) { if (name[0] != name[0].toUpperCase()) { return; } var obj = global[name]; if (!obj.toString().includes('native')) { return; } try { new obj(); } catch (e) { ; } var constructor = obj.constructor; var prototype = obj.prototype; var prototype_constructor = prototype.constructor; JSEtest(`${name}.prototype.constructor`); }); ``` ​ ###### Execution steps & Output ```bash $ ./jerryscript/build/bin/jerry poc.js ICE: Assertion 'ecma_object_check_class_name_is_object (obj_p)' failed at /root/jerryscript/jerry-core/ecma/operations/ecma-objects.c(ecma_object_get_class_name):3009. Error: ERR_FAILED_INTERNAL_ASSERTION ``` Credits: Found by OWL337 team.
Assertion 'ecma_object_check_class_name_is_object (obj_p)' failed at ecma-objects.c(ecma_object_get_class_name)
https://api.github.com/repos/jerryscript-project/jerryscript/issues/4895/comments
3
2021-12-09T14:58:57Z
2022-01-12T02:09:35Z
https://github.com/jerryscript-project/jerryscript/issues/4895
1,075,669,945
4,895
[ "jerryscript-project", "jerryscript" ]
## JerryScript commit hash 55acdf2048b390d0f56f12e64dbfb2559f0e70ad ## Build platform Ubuntu 20.04 LTS ## Build steps ``` ./tools/build.py --clean --debug --compile-flag=-fsanitize=address \ --compile-flag=-m32 --compile-flag=-fno-omit-frame-pointer \ --compile-flag=-fno-common --compile-flag=-g \ --strip=off --system-allocator=on --logging=on \ --linker-flag=-fuse-ld=gold --error-messages=on --line-info=ON \ --stack-limit=10 ``` ## poc ``` var sab = new SharedArrayBuffer(4); var a = new Int32Array(sab); Atomics.add(a, -0, 1); ``` ## assert log ``` ICE: Assertion 'JERRY_CONTEXT (jmem_heap_allocated_size) == 0' failed at /home/sakura/jerryscript/jerry-core/jmem/jmem-heap.c(jmem_heap_finalize):108. Error: ERR_FAILED_INTERNAL_ASSERTION ```
Assertion 'JERRY_CONTEXT (jmem_heap_allocated_size) == 0' failed at /home/sakura/jerryscript/jerry-core/jmem/jmem-heap.c(jmem_heap_finalize):108.
https://api.github.com/repos/jerryscript-project/jerryscript/issues/4894/comments
1
2021-12-09T14:53:08Z
2022-01-14T09:05:39Z
https://github.com/jerryscript-project/jerryscript/issues/4894
1,075,663,454
4,894
[ "jerryscript-project", "jerryscript" ]
###### JerryScript revision Commit: [51da1551](https://github.com/jerryscript-project/jerryscript/commit/51da15516e1436184be9914314f76d596f14cd27) Version: v3.0.0 ###### Build platform Ubuntu 18.04.5 LTS (Linux 5.4.0-44-generic x86_64) ###### Build steps ```bash ./tools/build.py --clean --debug --profile=es2015-subset --compile-flag=-fsanitize=address --compile-flag=-m32 --lto=off --logging=on --line-info=on --error-message=on --system-allocator=on --stack-limit=20 ``` ###### Test case ```javascript let args = new Array(0x10000); args = args.fill(0x1234).join(', '); RegExp('new Array(' + args + ')'); ``` ​ ###### Execution steps & Output ```bash $ ./jerryscript/build/bin/jerry poc.js ICE: Assertion 'JERRY_CONTEXT (jmem_heap_allocated_size) == 0' failed at /root/jerryscript/jerry-core/jmem/jmem-heap.c(jmem_heap_finalize):108. Error: ERR_FAILED_INTERNAL_ASSERTION ``` Credits: Found by OWL337 team.
Assertion 'JERRY_CONTEXT (jmem_heap_allocated_size) == 0' failed at jmem-heap.c(jmem_heap_finalize).
https://api.github.com/repos/jerryscript-project/jerryscript/issues/4893/comments
4
2021-12-09T14:52:15Z
2022-01-12T02:09:17Z
https://github.com/jerryscript-project/jerryscript/issues/4893
1,075,662,496
4,893
[ "jerryscript-project", "jerryscript" ]
## JerryScript commit hash 55acdf2048b390d0f56f12e64dbfb2559f0e70ad ## Build platform Ubuntu 20.04 LTS ## Build steps ``` ./tools/build.py --clean --debug --compile-flag=-fsanitize=address \ --compile-flag=-m32 --compile-flag=-fno-omit-frame-pointer \ --compile-flag=-fno-common --compile-flag=-g \ --strip=off --system-allocator=on --logging=on \ --linker-flag=-fuse-ld=gold --error-messages=on --line-info=ON \ --stack-limit=10 ``` ## poc ``` function foo(a, i) { a[i] = 1; return a[i]; } class MyArray extends class C extends Array { } { } ; o = new MyArray(); print(foo); print(1, foo(o, 0)); print(1, foo(o, 1)); o.__proto__.__proto__ = new Int32Array(2); print(undefined, foo(o, 2)); print(undefined, foo(o, 2)); ``` ## assert log ``` ICE: Assertion 'context_p->scope_stack_size == PARSER_MAXIMUM_DEPTH_OF_SCOPE_STACK' failed at /home/sakura/jerryscript/jerry-core/parser/js/js-parser-expr.c(parser_parse_class):1160. Error: ERR_FAILED_INTERNAL_ASSERTION ```
Assertion 'context_p->scope_stack_size == PARSER_MAXIMUM_DEPTH_OF_SCOPE_STACK' failed at jerry-core/parser/js/js-parser-expr.c(parser_parse_class):1160
https://api.github.com/repos/jerryscript-project/jerryscript/issues/4892/comments
0
2021-12-09T14:39:45Z
2021-12-22T13:50:47Z
https://github.com/jerryscript-project/jerryscript/issues/4892
1,075,648,914
4,892
[ "jerryscript-project", "jerryscript" ]
###### JerryScript revision Commit: [51da1551](https://github.com/jerryscript-project/jerryscript/commit/51da15516e1436184be9914314f76d596f14cd27) Version: v3.0.0 ###### Build platform Ubuntu 18.04.5 LTS (Linux 4.19.128-microsoft-standard x86_64) ###### Build steps ```bash ./tools/build.py --clean --debug --compile-flag=-fsanitize=address --compile-flag=-m32 --lto=off --logging=on --line-info=on --error-message=on --system-allocator=on --profile=es2015-subset --stack-limit=20 ``` ###### Test case ```javascript let array = new Array(1); array.splice(1, 0, array); array.flat(Infinity); ``` ​ ###### Execution steps & Output ```bash $ ./jerryscript/build/bin/jerry poc.js ASAN:DEADLYSIGNAL ================================================================= ==37207==ERROR: AddressSanitizer: stack-overflow on address 0xff6f2ffc (pc 0x566c8fbc bp 0xff6f3040 sp 0xff6f3000 T0) #0 0x566c8fbb in ecma_find_named_property /root/jerryscript/jerry-core/ecma/base/ecma-helpers.c:618 #1 0x56a91e1f (/root/jerryscript/build/bin/jerry+0x477e1f) SUMMARY: AddressSanitizer: stack-overflow /root/jerryscript/jerry-core/ecma/base/ecma-helpers.c:618 in ecma_find_named_property ==37207==ABORTING ```
Stack-overflow in ecma_find_named_property (ecma-helpers.c)
https://api.github.com/repos/jerryscript-project/jerryscript/issues/4891/comments
1
2021-12-09T14:33:33Z
2021-12-09T14:35:17Z
https://github.com/jerryscript-project/jerryscript/issues/4891
1,075,642,418
4,891
[ "jerryscript-project", "jerryscript" ]
###### JerryScript revision Commit: [51da1551](https://github.com/jerryscript-project/jerryscript/commit/51da15516e1436184be9914314f76d596f14cd27) Version: v3.0.0 ###### Build platform Ubuntu 18.04.5 LTS (Linux 5.4.0-44-generic x86_64) ###### Build steps ```bash ./tools/build.py --clean --debug --compile-flag=-fsanitize=address --compile-flag=-m32 --lto=off --logging=on --line-info=on --error-message=on --system-allocator=on --profile=es2015-subset --stack-limit=20 ``` ###### Test case ```javascript let array = new Array(1); array.splice(1, 0, array); array.flat(Infinity); ``` ​ ###### Execution steps & Output ```bash $ ./jerryscript/build/bin/jerry poc.js ASAN:DEADLYSIGNAL ================================================================= ==26613==ERROR: AddressSanitizer: stack-overflow on address 0xff535ffc (pc 0x5661347c bp 0xff536090 sp 0xff536000 T0) #0 0x5661347b in ecma_lcache_lookup /root/jerryscript/jerry-core/ecma/base/ecma-lcache.c:144 #1 0x569cde1f (/root/jerryscript/build/bin/jerry+0x477e1f) SUMMARY: AddressSanitizer: stack-overflow /root/jerryscript/jerry-core/ecma/base/ecma-lcache.c:144 in ecma_lcache_lookup ==26613==ABORTING ``` Credits: Found by OWL337 team.
Stack-overflow in ecma_lcache_lookup (ecma-lcache.c)
https://api.github.com/repos/jerryscript-project/jerryscript/issues/4890/comments
0
2021-12-09T14:27:01Z
2022-01-12T02:08:57Z
https://github.com/jerryscript-project/jerryscript/issues/4890
1,075,634,585
4,890
[ "jerryscript-project", "jerryscript" ]
## JerryScript commit hash 55acdf2048b390d0f56f12e64dbfb2559f0e70ad ## Build platform Ubuntu 20.04 LTS ## Build steps ``` ./tools/build.py --clean --debug --compile-flag=-fsanitize=address \ --compile-flag=-m32 --compile-flag=-fno-omit-frame-pointer \ --compile-flag=-fno-common --compile-flag=-g \ --strip=off --system-allocator=on --logging=on \ --linker-flag=-fuse-ld=gold --error-messages=on --line-info=ON \ --stack-limit=10 ``` ## poc ``` var ab = new Int8Array(20).map((v, i) => i).buffer; var ta = new Int8Array(ab, 0, 10); var seen_length = -1; ta.constructor = { [Symbol.species]: function (len) { seen_length = len; return new Int8Array(ab, 1, len); } }; print(-1, seen_length); print([ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9 ], ta); var tb = ta.slice(); print(10, seen_length); print([ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ], ta); print([ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ], tb); ``` ## assert log ``` ICE: Assertion 'new_typedarray_info.offset == 0' failed at /home/sakura/jerryscript/jerry-core/ecma/builtin-objects/typedarray/ecma-builtin-typedarray-prototype.c(ecma_builtin_typedarray_prototype_slice):1631. ```
Assertion 'new_typedarray_info.offset == 0' failed at jerry-core/ecma/builtin-objects/typedarray/ecma-builtin-typedarray-prototype.c(ecma_builtin_typedarray_prototype_slice):1631.
https://api.github.com/repos/jerryscript-project/jerryscript/issues/4888/comments
0
2021-12-09T14:18:26Z
2021-12-09T15:54:27Z
https://github.com/jerryscript-project/jerryscript/issues/4888
1,075,625,398
4,888
[ "jerryscript-project", "jerryscript" ]
## JerryScript commit hash 55acdf2048b390d0f56f12e64dbfb2559f0e70ad ## Build platform Ubuntu 20.04 LTS ## Build steps ``` ./tools/build.py --clean --debug --compile-flag=-fsanitize=address \ --compile-flag=-m32 --compile-flag=-fno-omit-frame-pointer \ --compile-flag=-fno-common --compile-flag=-g \ --strip=off --system-allocator=on --logging=on \ --linker-flag=-fuse-ld=gold --error-messages=on --line-info=ON \ --stack-limit=10 ``` ## poc ``` function assertThrows(code, type_opt, cause_opt) { if (typeof code === 'function') return code(); if (typeof code === 'string') return eval(code); } __v_0 = '(function() {\n'; for (var __v_1 = 0; __v_1 < 10000; __v_1++) { __v_0 += ' return function() {\n'; } assertThrows(() => eval(__v_0), RangeError); ``` ## asan log ``` AddressSanitizer:DEADLYSIGNAL ================================================================= ==1677665==ERROR: AddressSanitizer: stack-overflow on address 0xff3bcfec (pc 0xf7a2978c bp 0xff3bd448 sp 0xff3bcff0 T0) #0 0xf7a2978b in __interceptor_free (/lib32/libasan.so.5+0x11378b) #1 0x56646614 in jmem_heap_free_block_internal /home/sakura/jerryscript/jerry-core/jmem/jmem-heap.c:477 #2 0x56646753 in jmem_heap_free_block /home/sakura/jerryscript/jerry-core/jmem/jmem-heap.c:691 #3 0x5666ce2f in scanner_release_next /home/sakura/jerryscript/jerry-core/parser/js/js-scanner-util.c:276 #4 0x5666ce2f in scanner_create_variables /home/sakura/jerryscript/jerry-core/parser/js/js-scanner-util.c:2901 #5 0x56655223 in parser_parse_function_arguments /home/sakura/jerryscript/jerry-core/parser/js/js-parser.c:1652 #6 0x5665ceb3 in parser_parse_function /home/sakura/jerryscript/jerry-core/parser/js/js-parser.c:2739 #7 0x5670899e in lexer_construct_function_object /home/sakura/jerryscript/jerry-core/parser/js/js-lexer.c:2820 #8 0x56714998 in parser_parse_function_expression /home/sakura/jerryscript/jerry-core/parser/js/js-parser-expr.c:1793 #9 0x5671717e in parser_parse_unary_expression /home/sakura/jerryscript/jerry-core/parser/js/js-parser-expr.c:2277 #10 0x5672063c in parser_parse_expression /home/sakura/jerryscript/jerry-core/parser/js/js-parser-expr.c:4391 #11 0x56737695 in parser_parse_statements /home/sakura/jerryscript/jerry-core/parser/js/js-parser-statm.c:3111 #12 0x5665d149 in parser_parse_function /home/sakura/jerryscript/jerry-core/parser/js/js-parser.c:2773 #13 0x5670899e in lexer_construct_function_object /home/sakura/jerryscript/jerry-core/parser/js/js-lexer.c:2820 #14 0x56714998 in parser_parse_function_expression /home/sakura/jerryscript/jerry-core/parser/js/js-parser-expr.c:1793 #15 0x5671717e in parser_parse_unary_expression /home/sakura/jerryscript/jerry-core/parser/js/js-parser-expr.c:2277 #16 0x5672063c in parser_parse_expression /home/sakura/jerryscript/jerry-core/parser/js/js-parser-expr.c:4391 #17 0x56737695 in parser_parse_statements /home/sakura/jerryscript/jerry-core/parser/js/js-parser-statm.c:3111 #18 0x5665d149 in parser_parse_function /home/sakura/jerryscript/jerry-core/parser/js/js-parser.c:2773 #19 0x5670899e in lexer_construct_function_object /home/sakura/jerryscript/jerry-core/parser/js/js-lexer.c:2820 #20 0x56714998 in parser_parse_function_expression /home/sakura/jerryscript/jerry-core/parser/js/js-parser-expr.c:1793 #21 0x5671717e in parser_parse_unary_expression /home/sakura/jerryscript/jerry-core/parser/js/js-parser-expr.c:2277 #22 0x5672063c in parser_parse_expression /home/sakura/jerryscript/jerry-core/parser/js/js-parser-expr.c:4391 #23 0x56737695 in parser_parse_statements /home/sakura/jerryscript/jerry-core/parser/js/js-parser-statm.c:3111 #24 0x5665d149 in parser_parse_function /home/sakura/jerryscript/jerry-core/parser/js/js-parser.c:2773 #25 0x5670899e in lexer_construct_function_object /home/sakura/jerryscript/jerry-core/parser/js/js-lexer.c:2820 #26 0x56714998 in parser_parse_function_expression /home/sakura/jerryscript/jerry-core/parser/js/js-parser-expr.c:1793 #27 0x5671717e in parser_parse_unary_expression /home/sakura/jerryscript/jerry-core/parser/js/js-parser-expr.c:2277 #28 0x5672063c in parser_parse_expression /home/sakura/jerryscript/jerry-core/parser/js/js-parser-expr.c:4391 #29 0x56737695 in parser_parse_statements /home/sakura/jerryscript/jerry-core/parser/js/js-parser-statm.c:3111 #30 0x5665d149 in parser_parse_function /home/sakura/jerryscript/jerry-core/parser/js/js-parser.c:2773 #31 0x5670899e in lexer_construct_function_object /home/sakura/jerryscript/jerry-core/parser/js/js-lexer.c:2820 #32 0x56714998 in parser_parse_function_expression /home/sakura/jerryscript/jerry-core/parser/js/js-parser-expr.c:1793 #33 0x5671717e in parser_parse_unary_expression /home/sakura/jerryscript/jerry-core/parser/js/js-parser-expr.c:2277 #34 0x5672063c in parser_parse_expression /home/sakura/jerryscript/jerry-core/parser/js/js-parser-expr.c:4391 #35 0x56737695 in parser_parse_statements /home/sakura/jerryscript/jerry-core/parser/js/js-parser-statm.c:3111 #36 0x5665d149 in parser_parse_function /home/sakura/jerryscript/jerry-core/parser/js/js-parser.c:2773 #37 0x5670899e in lexer_construct_function_object /home/sakura/jerryscript/jerry-core/parser/js/js-lexer.c:2820 #38 0x56714998 in parser_parse_function_expression /home/sakura/jerryscript/jerry-core/parser/js/js-parser-expr.c:1793 #39 0x5671717e in parser_parse_unary_expression /home/sakura/jerryscript/jerry-core/parser/js/js-parser-expr.c:2277 #40 0x5672063c in parser_parse_expression /home/sakura/jerryscript/jerry-core/parser/js/js-parser-expr.c:4391 #41 0x56737695 in parser_parse_statements /home/sakura/jerryscript/jerry-core/parser/js/js-parser-statm.c:3111 #42 0x5665d149 in parser_parse_function /home/sakura/jerryscript/jerry-core/parser/js/js-parser.c:2773 #43 0x5670899e in lexer_construct_function_object /home/sakura/jerryscript/jerry-core/parser/js/js-lexer.c:2820 #44 0x56714998 in parser_parse_function_expression /home/sakura/jerryscript/jerry-core/parser/js/js-parser-expr.c:1793 #45 0x5671717e in parser_parse_unary_expression /home/sakura/jerryscript/jerry-core/parser/js/js-parser-expr.c:2277 #46 0x5672063c in parser_parse_expression /home/sakura/jerryscript/jerry-core/parser/js/js-parser-expr.c:4391 #47 0x56737695 in parser_parse_statements /home/sakura/jerryscript/jerry-core/parser/js/js-parser-statm.c:3111 #48 0x5665d149 in parser_parse_function /home/sakura/jerryscript/jerry-core/parser/js/js-parser.c:2773 #49 0x5670899e in lexer_construct_function_object /home/sakura/jerryscript/jerry-core/parser/js/js-lexer.c:2820 #50 0x56714998 in parser_parse_function_expression /home/sakura/jerryscript/jerry-core/parser/js/js-parser-expr.c:1793 #51 0x5671717e in parser_parse_unary_expression /home/sakura/jerryscript/jerry-core/parser/js/js-parser-expr.c:2277 #52 0x5672063c in parser_parse_expression /home/sakura/jerryscript/jerry-core/parser/js/js-parser-expr.c:4391 #53 0x56737695 in parser_parse_statements /home/sakura/jerryscript/jerry-core/parser/js/js-parser-statm.c:3111 #54 0x5665d149 in parser_parse_function /home/sakura/jerryscript/jerry-core/parser/js/js-parser.c:2773 #55 0x5670899e in lexer_construct_function_object /home/sakura/jerryscript/jerry-core/parser/js/js-lexer.c:2820 #56 0x56714998 in parser_parse_function_expression /home/sakura/jerryscript/jerry-core/parser/js/js-parser-expr.c:1793 #57 0x5671717e in parser_parse_unary_expression /home/sakura/jerryscript/jerry-core/parser/js/js-parser-expr.c:2277 #58 0x5672063c in parser_parse_expression /home/sakura/jerryscript/jerry-core/parser/js/js-parser-expr.c:4391 #59 0x56737695 in parser_parse_statements /home/sakura/jerryscript/jerry-core/parser/js/js-parser-statm.c:3111 #60 0x5665d149 in parser_parse_function /home/sakura/jerryscript/jerry-core/parser/js/js-parser.c:2773 #61 0x5670899e in lexer_construct_function_object /home/sakura/jerryscript/jerry-core/parser/js/js-lexer.c:2820 #62 0x56714998 in parser_parse_function_expression /home/sakura/jerryscript/jerry-core/parser/js/js-parser-expr.c:1793 #63 0x5671717e in parser_parse_unary_expression /home/sakura/jerryscript/jerry-core/parser/js/js-parser-expr.c:2277 #64 0x5672063c in parser_parse_expression /home/sakura/jerryscript/jerry-core/parser/js/js-parser-expr.c:4391 #65 0x56737695 in parser_parse_statements /home/sakura/jerryscript/jerry-core/parser/js/js-parser-statm.c:3111 #66 0x5665d149 in parser_parse_function /home/sakura/jerryscript/jerry-core/parser/js/js-parser.c:2773 #67 0x5670899e in lexer_construct_function_object /home/sakura/jerryscript/jerry-core/parser/js/js-lexer.c:2820 #68 0x56714998 in parser_parse_function_expression /home/sakura/jerryscript/jerry-core/parser/js/js-parser-expr.c:1793 #69 0x5671717e in parser_parse_unary_expression /home/sakura/jerryscript/jerry-core/parser/js/js-parser-expr.c:2277 #70 0x5672063c in parser_parse_expression /home/sakura/jerryscript/jerry-core/parser/js/js-parser-expr.c:4391 #71 0x56737695 in parser_parse_statements /home/sakura/jerryscript/jerry-core/parser/js/js-parser-statm.c:3111 #72 0x5665d149 in parser_parse_function /home/sakura/jerryscript/jerry-core/parser/js/js-parser.c:2773 #73 0x5670899e in lexer_construct_function_object /home/sakura/jerryscript/jerry-core/parser/js/js-lexer.c:2820 #74 0x56714998 in parser_parse_function_expression /home/sakura/jerryscript/jerry-core/parser/js/js-parser-expr.c:1793 #75 0x5671717e in parser_parse_unary_expression /home/sakura/jerryscript/jerry-core/parser/js/js-parser-expr.c:2277 #76 0x5672063c in parser_parse_expression /home/sakura/jerryscript/jerry-core/parser/js/js-parser-expr.c:4391 #77 0x56737695 in parser_parse_statements /home/sakura/jerryscript/jerry-core/parser/js/js-parser-statm.c:3111 #78 0x5665d149 in parser_parse_function /home/sakura/jerryscript/jerry-core/parser/js/js-parser.c:2773 #79 0x5670899e in lexer_construct_function_object /home/sakura/jerryscript/jerry-core/parser/js/js-lexer.c:2820 #80 0x56714998 in parser_parse_function_expression /home/sakura/jerryscript/jerry-core/parser/js/js-parser-expr.c:1793 #81 0x5671717e in parser_parse_unary_expression /home/sakura/jerryscript/jerry-core/parser/js/js-parser-expr.c:2277 #82 0x5672063c in parser_parse_expression /home/sakura/jerryscript/jerry-core/parser/js/js-parser-expr.c:4391 #83 0x56737695 in parser_parse_statements /home/sakura/jerryscript/jerry-core/parser/js/js-parser-statm.c:3111 #84 0x5665d149 in parser_parse_function /home/sakura/jerryscript/jerry-core/parser/js/js-parser.c:2773 #85 0x5670899e in lexer_construct_function_object /home/sakura/jerryscript/jerry-core/parser/js/js-lexer.c:2820 #86 0x56714998 in parser_parse_function_expression /home/sakura/jerryscript/jerry-core/parser/js/js-parser-expr.c:1793 #87 0x5671717e in parser_parse_unary_expression /home/sakura/jerryscript/jerry-core/parser/js/js-parser-expr.c:2277 #88 0x5672063c in parser_parse_expression /home/sakura/jerryscript/jerry-core/parser/js/js-parser-expr.c:4391 #89 0x56737695 in parser_parse_statements /home/sakura/jerryscript/jerry-core/parser/js/js-parser-statm.c:3111 #90 0x5665d149 in parser_parse_function /home/sakura/jerryscript/jerry-core/parser/js/js-parser.c:2773 #91 0x5670899e in lexer_construct_function_object /home/sakura/jerryscript/jerry-core/parser/js/js-lexer.c:2820 #92 0x56714998 in parser_parse_function_expression /home/sakura/jerryscript/jerry-core/parser/js/js-parser-expr.c:1793 #93 0x5671717e in parser_parse_unary_expression /home/sakura/jerryscript/jerry-core/parser/js/js-parser-expr.c:2277 #94 0x5672063c in parser_parse_expression /home/sakura/jerryscript/jerry-core/parser/js/js-parser-expr.c:4391 #95 0x56737695 in parser_parse_statements /home/sakura/jerryscript/jerry-core/parser/js/js-parser-statm.c:3111 #96 0x5665d149 in parser_parse_function /home/sakura/jerryscript/jerry-core/parser/js/js-parser.c:2773 #97 0x5670899e in lexer_construct_function_object /home/sakura/jerryscript/jerry-core/parser/js/js-lexer.c:2820 #98 0x56714998 in parser_parse_function_expression /home/sakura/jerryscript/jerry-core/parser/js/js-parser-expr.c:1793 #99 0x5671717e in parser_parse_unary_expression /home/sakura/jerryscript/jerry-core/parser/js/js-parser-expr.c:2277 #100 0x5672063c in parser_parse_expression /home/sakura/jerryscript/jerry-core/parser/js/js-parser-expr.c:4391 #101 0x56737695 in parser_parse_statements /home/sakura/jerryscript/jerry-core/parser/js/js-parser-statm.c:3111 #102 0x5665d149 in parser_parse_function /home/sakura/jerryscript/jerry-core/parser/js/js-parser.c:2773 #103 0x5670899e in lexer_construct_function_object /home/sakura/jerryscript/jerry-core/parser/js/js-lexer.c:2820 #104 0x56714998 in parser_parse_function_expression /home/sakura/jerryscript/jerry-core/parser/js/js-parser-expr.c:1793 #105 0x5671717e in parser_parse_unary_expression /home/sakura/jerryscript/jerry-core/parser/js/js-parser-expr.c:2277 #106 0x5672063c in parser_parse_expression /home/sakura/jerryscript/jerry-core/parser/js/js-parser-expr.c:4391 #107 0x56737695 in parser_parse_statements /home/sakura/jerryscript/jerry-core/parser/js/js-parser-statm.c:3111 #108 0x5665d149 in parser_parse_function /home/sakura/jerryscript/jerry-core/parser/js/js-parser.c:2773 #109 0x5670899e in lexer_construct_function_object /home/sakura/jerryscript/jerry-core/parser/js/js-lexer.c:2820 #110 0x56714998 in parser_parse_function_expression /home/sakura/jerryscript/jerry-core/parser/js/js-parser-expr.c:1793 #111 0x5671717e in parser_parse_unary_expression /home/sakura/jerryscript/jerry-core/parser/js/js-parser-expr.c:2277 #112 0x5672063c in parser_parse_expression /home/sakura/jerryscript/jerry-core/parser/js/js-parser-expr.c:4391 #113 0x56737695 in parser_parse_statements /home/sakura/jerryscript/jerry-core/parser/js/js-parser-statm.c:3111 #114 0x5665d149 in parser_parse_function /home/sakura/jerryscript/jerry-core/parser/js/js-parser.c:2773 #115 0x5670899e in lexer_construct_function_object /home/sakura/jerryscript/jerry-core/parser/js/js-lexer.c:2820 #116 0x56714998 in parser_parse_function_expression /home/sakura/jerryscript/jerry-core/parser/js/js-parser-expr.c:1793 #117 0x5671717e in parser_parse_unary_expression /home/sakura/jerryscript/jerry-core/parser/js/js-parser-expr.c:2277 #118 0x5672063c in parser_parse_expression /home/sakura/jerryscript/jerry-core/parser/js/js-parser-expr.c:4391 #119 0x56737695 in parser_parse_statements /home/sakura/jerryscript/jerry-core/parser/js/js-parser-statm.c:3111 #120 0x5665d149 in parser_parse_function /home/sakura/jerryscript/jerry-core/parser/js/js-parser.c:2773 #121 0x5670899e in lexer_construct_function_object /home/sakura/jerryscript/jerry-core/parser/js/js-lexer.c:2820 #122 0x56714998 in parser_parse_function_expression /home/sakura/jerryscript/jerry-core/parser/js/js-parser-expr.c:1793 #123 0x5671717e in parser_parse_unary_expression /home/sakura/jerryscript/jerry-core/parser/js/js-parser-expr.c:2277 #124 0x5672063c in parser_parse_expression /home/sakura/jerryscript/jerry-core/parser/js/js-parser-expr.c:4391 #125 0x56737695 in parser_parse_statements /home/sakura/jerryscript/jerry-core/parser/js/js-parser-statm.c:3111 #126 0x5665d149 in parser_parse_function /home/sakura/jerryscript/jerry-core/parser/js/js-parser.c:2773 #127 0x5670899e in lexer_construct_function_object /home/sakura/jerryscript/jerry-core/parser/js/js-lexer.c:2820 #128 0x56714998 in parser_parse_function_expression /home/sakura/jerryscript/jerry-core/parser/js/js-parser-expr.c:1793 #129 0x5671717e in parser_parse_unary_expression /home/sakura/jerryscript/jerry-core/parser/js/js-parser-expr.c:2277 #130 0x5672063c in parser_parse_expression /home/sakura/jerryscript/jerry-core/parser/js/js-parser-expr.c:4391 #131 0x56737695 in parser_parse_statements /home/sakura/jerryscript/jerry-core/parser/js/js-parser-statm.c:3111 #132 0x5665d149 in parser_parse_function /home/sakura/jerryscript/jerry-core/parser/js/js-parser.c:2773 #133 0x5670899e in lexer_construct_function_object /home/sakura/jerryscript/jerry-core/parser/js/js-lexer.c:2820 #134 0x56714998 in parser_parse_function_expression /home/sakura/jerryscript/jerry-core/parser/js/js-parser-expr.c:1793 #135 0x5671717e in parser_parse_unary_expression /home/sakura/jerryscript/jerry-core/parser/js/js-parser-expr.c:2277 #136 0x5672063c in parser_parse_expression /home/sakura/jerryscript/jerry-core/parser/js/js-parser-expr.c:4391 #137 0x56737695 in parser_parse_statements /home/sakura/jerryscript/jerry-core/parser/js/js-parser-statm.c:3111 #138 0x5665d149 in parser_parse_function /home/sakura/jerryscript/jerry-core/parser/js/js-parser.c:2773 #139 0x5670899e in lexer_construct_function_object /home/sakura/jerryscript/jerry-core/parser/js/js-lexer.c:2820 #140 0x56714998 in parser_parse_function_expression /home/sakura/jerryscript/jerry-core/parser/js/js-parser-expr.c:1793 #141 0x5671717e in parser_parse_unary_expression /home/sakura/jerryscript/jerry-core/parser/js/js-parser-expr.c:2277 #142 0x5672063c in parser_parse_expression /home/sakura/jerryscript/jerry-core/parser/js/js-parser-expr.c:4391 #143 0x56737695 in parser_parse_statements /home/sakura/jerryscript/jerry-core/parser/js/js-parser-statm.c:3111 #144 0x5665d149 in parser_parse_function /home/sakura/jerryscript/jerry-core/parser/js/js-parser.c:2773 #145 0x5670899e in lexer_construct_function_object /home/sakura/jerryscript/jerry-core/parser/js/js-lexer.c:2820 #146 0x56714998 in parser_parse_function_expression /home/sakura/jerryscript/jerry-core/parser/js/js-parser-expr.c:1793 #147 0x5671717e in parser_parse_unary_expression /home/sakura/jerryscript/jerry-core/parser/js/js-parser-expr.c:2277 #148 0x5672063c in parser_parse_expression /home/sakura/jerryscript/jerry-core/parser/js/js-parser-expr.c:4391 #149 0x56737695 in parser_parse_statements /home/sakura/jerryscript/jerry-core/parser/js/js-parser-statm.c:3111 #150 0x5665d149 in parser_parse_function /home/sakura/jerryscript/jerry-core/parser/js/js-parser.c:2773 #151 0x5670899e in lexer_construct_function_object /home/sakura/jerryscript/jerry-core/parser/js/js-lexer.c:2820 #152 0x56714998 in parser_parse_function_expression /home/sakura/jerryscript/jerry-core/parser/js/js-parser-expr.c:1793 #153 0x5671717e in parser_parse_unary_expression /home/sakura/jerryscript/jerry-core/parser/js/js-parser-expr.c:2277 #154 0x5672063c in parser_parse_expression /home/sakura/jerryscript/jerry-core/parser/js/js-parser-expr.c:4391 #155 0x56737695 in parser_parse_statements /home/sakura/jerryscript/jerry-core/parser/js/js-parser-statm.c:3111 #156 0x5665d149 in parser_parse_function /home/sakura/jerryscript/jerry-core/parser/js/js-parser.c:2773 #157 0x5670899e in lexer_construct_function_object /home/sakura/jerryscript/jerry-core/parser/js/js-lexer.c:2820 #158 0x56714998 in parser_parse_function_expression /home/sakura/jerryscript/jerry-core/parser/js/js-parser-expr.c:1793 #159 0x5671717e in parser_parse_unary_expression /home/sakura/jerryscript/jerry-core/parser/js/js-parser-expr.c:2277 #160 0x5672063c in parser_parse_expression /home/sakura/jerryscript/jerry-core/parser/js/js-parser-expr.c:4391 #161 0x56737695 in parser_parse_statements /home/sakura/jerryscript/jerry-core/parser/js/js-parser-statm.c:3111 #162 0x5665d149 in parser_parse_function /home/sakura/jerryscript/jerry-core/parser/js/js-parser.c:2773 #163 0x5670899e in lexer_construct_function_object /home/sakura/jerryscript/jerry-core/parser/js/js-lexer.c:2820 #164 0x56714998 in parser_parse_function_expression /home/sakura/jerryscript/jerry-core/parser/js/js-parser-expr.c:1793 #165 0x5671717e in parser_parse_unary_expression /home/sakura/jerryscript/jerry-core/parser/js/js-parser-expr.c:2277 #166 0x5672063c in parser_parse_expression /home/sakura/jerryscript/jerry-core/parser/js/js-parser-expr.c:4391 #167 0x56737695 in parser_parse_statements /home/sakura/jerryscript/jerry-core/parser/js/js-parser-statm.c:3111 #168 0x5665d149 in parser_parse_function /home/sakura/jerryscript/jerry-core/parser/js/js-parser.c:2773 #169 0x5670899e in lexer_construct_function_object /home/sakura/jerryscript/jerry-core/parser/js/js-lexer.c:2820 #170 0x56714998 in parser_parse_function_expression /home/sakura/jerryscript/jerry-core/parser/js/js-parser-expr.c:1793 #171 0x5671717e in parser_parse_unary_expression /home/sakura/jerryscript/jerry-core/parser/js/js-parser-expr.c:2277 #172 0x5672063c in parser_parse_expression /home/sakura/jerryscript/jerry-core/parser/js/js-parser-expr.c:4391 #173 0x56737695 in parser_parse_statements /home/sakura/jerryscript/jerry-core/parser/js/js-parser-statm.c:3111 #174 0x5665d149 in parser_parse_function /home/sakura/jerryscript/jerry-core/parser/js/js-parser.c:2773 #175 0x5670899e in lexer_construct_function_object /home/sakura/jerryscript/jerry-core/parser/js/js-lexer.c:2820 #176 0x56714998 in parser_parse_function_expression /home/sakura/jerryscript/jerry-core/parser/js/js-parser-expr.c:1793 #177 0x5671717e in parser_parse_unary_expression /home/sakura/jerryscript/jerry-core/parser/js/js-parser-expr.c:2277 #178 0x5672063c in parser_parse_expression /home/sakura/jerryscript/jerry-core/parser/js/js-parser-expr.c:4391 #179 0x56737695 in parser_parse_statements /home/sakura/jerryscript/jerry-core/parser/js/js-parser-statm.c:3111 #180 0x5665d149 in parser_parse_function /home/sakura/jerryscript/jerry-core/parser/js/js-parser.c:2773 #181 0x5670899e in lexer_construct_function_object /home/sakura/jerryscript/jerry-core/parser/js/js-lexer.c:2820 #182 0x56714998 in parser_parse_function_expression /home/sakura/jerryscript/jerry-core/parser/js/js-parser-expr.c:1793 #183 0x5671717e in parser_parse_unary_expression /home/sakura/jerryscript/jerry-core/parser/js/js-parser-expr.c:2277 #184 0x5672063c in parser_parse_expression /home/sakura/jerryscript/jerry-core/parser/js/js-parser-expr.c:4391 #185 0x56737695 in parser_parse_statements /home/sakura/jerryscript/jerry-core/parser/js/js-parser-statm.c:3111 #186 0x5665d149 in parser_parse_function /home/sakura/jerryscript/jerry-core/parser/js/js-parser.c:2773 #187 0x5670899e in lexer_construct_function_object /home/sakura/jerryscript/jerry-core/parser/js/js-lexer.c:2820 #188 0x56714998 in parser_parse_function_expression /home/sakura/jerryscript/jerry-core/parser/js/js-parser-expr.c:1793 #189 0x5671717e in parser_parse_unary_expression /home/sakura/jerryscript/jerry-core/parser/js/js-parser-expr.c:2277 #190 0x5672063c in parser_parse_expression /home/sakura/jerryscript/jerry-core/parser/js/js-parser-expr.c:4391 #191 0x56737695 in parser_parse_statements /home/sakura/jerryscript/jerry-core/parser/js/js-parser-statm.c:3111 #192 0x5665d149 in parser_parse_function /home/sakura/jerryscript/jerry-core/parser/js/js-parser.c:2773 #193 0x5670899e in lexer_construct_function_object /home/sakura/jerryscript/jerry-core/parser/js/js-lexer.c:2820 #194 0x56714998 in parser_parse_function_expression /home/sakura/jerryscript/jerry-core/parser/js/js-parser-expr.c:1793 #195 0x5671717e in parser_parse_unary_expression /home/sakura/jerryscript/jerry-core/parser/js/js-parser-expr.c:2277 #196 0x5672063c in parser_parse_expression /home/sakura/jerryscript/jerry-core/parser/js/js-parser-expr.c:4391 #197 0x56737695 in parser_parse_statements /home/sakura/jerryscript/jerry-core/parser/js/js-parser-statm.c:3111 #198 0x5665d149 in parser_parse_function /home/sakura/jerryscript/jerry-core/parser/js/js-parser.c:2773 #199 0x5670899e in lexer_construct_function_object /home/sakura/jerryscript/jerry-core/parser/js/js-lexer.c:2820 #200 0x56714998 in parser_parse_function_expression /home/sakura/jerryscript/jerry-core/parser/js/js-parser-expr.c:1793 #201 0x5671717e in parser_parse_unary_expression /home/sakura/jerryscript/jerry-core/parser/js/js-parser-expr.c:2277 #202 0x5672063c in parser_parse_expression /home/sakura/jerryscript/jerry-core/parser/js/js-parser-expr.c:4391 #203 0x56737695 in parser_parse_statements /home/sakura/jerryscript/jerry-core/parser/js/js-parser-statm.c:3111 #204 0x5665d149 in parser_parse_function /home/sakura/jerryscript/jerry-core/parser/js/js-parser.c:2773 #205 0x5670899e in lexer_construct_function_object /home/sakura/jerryscript/jerry-core/parser/js/js-lexer.c:2820 #206 0x56714998 in parser_parse_function_expression /home/sakura/jerryscript/jerry-core/parser/js/js-parser-expr.c:1793 #207 0x5671717e in parser_parse_unary_expression /home/sakura/jerryscript/jerry-core/parser/js/js-parser-expr.c:2277 #208 0x5672063c in parser_parse_expression /home/sakura/jerryscript/jerry-core/parser/js/js-parser-expr.c:4391 #209 0x56737695 in parser_parse_statements /home/sakura/jerryscript/jerry-core/parser/js/js-parser-statm.c:3111 #210 0x5665d149 in parser_parse_function /home/sakura/jerryscript/jerry-core/parser/js/js-parser.c:2773 #211 0x5670899e in lexer_construct_function_object /home/sakura/jerryscript/jerry-core/parser/js/js-lexer.c:2820 #212 0x56714998 in parser_parse_function_expression /home/sakura/jerryscript/jerry-core/parser/js/js-parser-expr.c:1793 #213 0x5671717e in parser_parse_unary_expression /home/sakura/jerryscript/jerry-core/parser/js/js-parser-expr.c:2277 #214 0x5672063c in parser_parse_expression /home/sakura/jerryscript/jerry-core/parser/js/js-parser-expr.c:4391 #215 0x56737695 in parser_parse_statements /home/sakura/jerryscript/jerry-core/parser/js/js-parser-statm.c:3111 #216 0x5665d149 in parser_parse_function /home/sakura/jerryscript/jerry-core/parser/js/js-parser.c:2773 #217 0x5670899e in lexer_construct_function_object /home/sakura/jerryscript/jerry-core/parser/js/js-lexer.c:2820 #218 0x56714998 in parser_parse_function_expression /home/sakura/jerryscript/jerry-core/parser/js/js-parser-expr.c:1793 #219 0x5671717e in parser_parse_unary_expression /home/sakura/jerryscript/jerry-core/parser/js/js-parser-expr.c:2277 #220 0x5672063c in parser_parse_expression /home/sakura/jerryscript/jerry-core/parser/js/js-parser-expr.c:4391 #221 0x56737695 in parser_parse_statements /home/sakura/jerryscript/jerry-core/parser/js/js-parser-statm.c:3111 #222 0x5665d149 in parser_parse_function /home/sakura/jerryscript/jerry-core/parser/js/js-parser.c:2773 #223 0x5670899e in lexer_construct_function_object /home/sakura/jerryscript/jerry-core/parser/js/js-lexer.c:2820 #224 0x56714998 in parser_parse_function_expression /home/sakura/jerryscript/jerry-core/parser/js/js-parser-expr.c:1793 #225 0x5671717e in parser_parse_unary_expression /home/sakura/jerryscript/jerry-core/parser/js/js-parser-expr.c:2277 #226 0x5672063c in parser_parse_expression /home/sakura/jerryscript/jerry-core/parser/js/js-parser-expr.c:4391 #227 0x56737695 in parser_parse_statements /home/sakura/jerryscript/jerry-core/parser/js/js-parser-statm.c:3111 #228 0x5665d149 in parser_parse_function /home/sakura/jerryscript/jerry-core/parser/js/js-parser.c:2773 #229 0x5670899e in lexer_construct_function_object /home/sakura/jerryscript/jerry-core/parser/js/js-lexer.c:2820 #230 0x56714998 in parser_parse_function_expression /home/sakura/jerryscript/jerry-core/parser/js/js-parser-expr.c:1793 #231 0x5671717e in parser_parse_unary_expression /home/sakura/jerryscript/jerry-core/parser/js/js-parser-expr.c:2277 #232 0x5672063c in parser_parse_expression /home/sakura/jerryscript/jerry-core/parser/js/js-parser-expr.c:4391 #233 0x56737695 in parser_parse_statements /home/sakura/jerryscript/jerry-core/parser/js/js-parser-statm.c:3111 #234 0x5665d149 in parser_parse_function /home/sakura/jerryscript/jerry-core/parser/js/js-parser.c:2773 #235 0x5670899e in lexer_construct_function_object /home/sakura/jerryscript/jerry-core/parser/js/js-lexer.c:2820 #236 0x56714998 in parser_parse_function_expression /home/sakura/jerryscript/jerry-core/parser/js/js-parser-expr.c:1793 #237 0x5671717e in parser_parse_unary_expression /home/sakura/jerryscript/jerry-core/parser/js/js-parser-expr.c:2277 #238 0x5672063c in parser_parse_expression /home/sakura/jerryscript/jerry-core/parser/js/js-parser-expr.c:4391 #239 0x56737695 in parser_parse_statements /home/sakura/jerryscript/jerry-core/parser/js/js-parser-statm.c:3111 #240 0x5665d149 in parser_parse_function /home/sakura/jerryscript/jerry-core/parser/js/js-parser.c:2773 #241 0x5670899e in lexer_construct_function_object /home/sakura/jerryscript/jerry-core/parser/js/js-lexer.c:2820 #242 0x56714998 in parser_parse_function_expression /home/sakura/jerryscript/jerry-core/parser/js/js-parser-expr.c:1793 #243 0x5671717e in parser_parse_unary_expression /home/sakura/jerryscript/jerry-core/parser/js/js-parser-expr.c:2277 #244 0x5672063c in parser_parse_expression /home/sakura/jerryscript/jerry-core/parser/js/js-parser-expr.c:4391 #245 0x56737695 in parser_parse_statements /home/sakura/jerryscript/jerry-core/parser/js/js-parser-statm.c:3111 #246 0x5665d149 in parser_parse_function /home/sakura/jerryscript/jerry-core/parser/js/js-parser.c:2773 #247 0x5670899e in lexer_construct_function_object /home/sakura/jerryscript/jerry-core/parser/js/js-lexer.c:2820 SUMMARY: AddressSanitizer: stack-overflow (/lib32/libasan.so.5+0x11378b) in __interceptor_free ==1677665==ABORTING ```
AddressSanitizer: stack-overflow in lexer_construct_function_object
https://api.github.com/repos/jerryscript-project/jerryscript/issues/4887/comments
0
2021-12-09T14:11:29Z
2022-01-14T10:02:51Z
https://github.com/jerryscript-project/jerryscript/issues/4887
1,075,618,049
4,887
[ "jerryscript-project", "jerryscript" ]
## JerryScript commit hash 55acdf2048b390d0f56f12e64dbfb2559f0e70ad ## Build platform Ubuntu 20.04 LTS ## Build steps ``` ./tools/build.py --clean --debug --compile-flag=-fsanitize=address \ --compile-flag=-m32 --compile-flag=-fno-omit-frame-pointer \ --compile-flag=-fno-common --compile-flag=-g \ --strip=off --system-allocator=on --logging=on \ --linker-flag=-fuse-ld=gold --error-messages=on --line-info=ON \ --stack-limit=10 ``` ## poc ``` var log = []; function check(predicate, item) { if (!predicate) log.push(item); } var global = this; Object.getOwnPropertyNames(global).forEach(function (name) { if (name[0] != name[0].toUpperCase()) return; var obj = global[name]; if (!print(obj)) return; if (!obj.toString().includes('native')) return; try { new obj(); } catch (e) { } check(print(obj), `${ name }`); var constructor = obj.constructor; if (!print(constructor)) return; check(print(constructor), `${ name }.constructor`); var prototype = obj.prototype; if (!print(prototype)) return; check(print(prototype), `${ name }.prototype`); var prototype_constructor = prototype.constructor; if (!print(prototype_constructor)) return; check(print(prototype_constructor), `${ name }.prototype.constructor`); }); if (!print()) print([], log); ``` ## assert log ``` ICE: Assertion 'ecma_object_check_class_name_is_object (obj_p)' failed at /home/sakura/jerryscript/jerry-core/ecma/operations/ecma-objects.c(ecma_object_get_class_name):3009. Error: ERR_FAILED_INTERNAL_ASSERTION ```
Assertion 'ecma_object_check_class_name_is_object (obj_p)' failed at jerry-core/ecma/operations/ecma-objects.c(ecma_object_get_class_name):3009.
https://api.github.com/repos/jerryscript-project/jerryscript/issues/4884/comments
0
2021-12-09T14:02:03Z
2021-12-15T09:29:30Z
https://github.com/jerryscript-project/jerryscript/issues/4884
1,075,608,151
4,884
[ "jerryscript-project", "jerryscript" ]
## JerryScript commit hash 55acdf2048b390d0f56f12e64dbfb2559f0e70ad ## Build platform Ubuntu 20.04 LTS ## Build steps ``` ./tools/build.py --clean --debug --compile-flag=-fsanitize=address \ --compile-flag=-m32 --compile-flag=-fno-omit-frame-pointer \ --compile-flag=-fno-common --compile-flag=-g \ --strip=off --system-allocator=on --logging=on \ --linker-flag=-fuse-ld=gold --error-messages=on --line-info=ON \ --stack-limit=10 ``` ## poc ``` function assertThrows(code, type_opt, cause_opt) { if (typeof code === 'function') return code(); if (typeof code === 'string') return eval(code); } var o = { 0: 11, 1: 9 }; assertThrows(() => JSON.parse('[0,0]', function () { this[1] = o; }), RangeError); ``` ## asan log ``` AddressSanitizer:DEADLYSIGNAL ================================================================= ==1646789==ERROR: AddressSanitizer: stack-overflow on address 0xff3a2ffc (pc 0xf7aa4435 bp 0xff3a3478 sp 0xff3a3000 T0) #0 0xf7aa4434 (/lib32/libasan.so.5+0x11b434) #1 0xf7aad8a7 (/lib32/libasan.so.5+0x1248a7) #2 0xf7a9cc3d in __interceptor_malloc (/lib32/libasan.so.5+0x113c3d) #3 0x56712410 in jmem_heap_alloc /home/sakura/jerryscript/jerry-core/jmem/jmem-heap.c:254 #4 0x56712480 in jmem_heap_gc_and_alloc_block /home/sakura/jerryscript/jerry-core/jmem/jmem-heap.c:291 #5 0x5671250d in jmem_heap_alloc_block /home/sakura/jerryscript/jerry-core/jmem/jmem-heap.c:324 #6 0x5667f4e5 in ecma_new_collection /home/sakura/jerryscript/jerry-core/ecma/base/ecma-helpers-collection.c:40 #7 0x566ee0e4 in ecma_op_object_own_property_keys /home/sakura/jerryscript/jerry-core/ecma/operations/ecma-objects.c:2354 #8 0x566ed585 in ecma_op_object_get_enumerable_property_names /home/sakura/jerryscript/jerry-core/ecma/operations/ecma-objects.c:2099 #9 0x566ad9da in ecma_builtin_json_internalize_property /home/sakura/jerryscript/jerry-core/ecma/builtin-objects/ecma-builtin-json.c:701 #10 0x566add63 in ecma_builtin_json_internalize_process_property /home/sakura/jerryscript/jerry-core/ecma/builtin-objects/ecma-builtin-json.c:760 #11 0x566adaea in ecma_builtin_json_internalize_property /home/sakura/jerryscript/jerry-core/ecma/builtin-objects/ecma-builtin-json.c:718 #12 0x566add63 in ecma_builtin_json_internalize_process_property /home/sakura/jerryscript/jerry-core/ecma/builtin-objects/ecma-builtin-json.c:760 #13 0x566adaea in ecma_builtin_json_internalize_property /home/sakura/jerryscript/jerry-core/ecma/builtin-objects/ecma-builtin-json.c:718 #14 0x566add63 in ecma_builtin_json_internalize_process_property /home/sakura/jerryscript/jerry-core/ecma/builtin-objects/ecma-builtin-json.c:760 #15 0x566adaea in ecma_builtin_json_internalize_property /home/sakura/jerryscript/jerry-core/ecma/builtin-objects/ecma-builtin-json.c:718 #16 0x566add63 in ecma_builtin_json_internalize_process_property /home/sakura/jerryscript/jerry-core/ecma/builtin-objects/ecma-builtin-json.c:760 #17 0x566adaea in ecma_builtin_json_internalize_property /home/sakura/jerryscript/jerry-core/ecma/builtin-objects/ecma-builtin-json.c:718 #18 0x566add63 in ecma_builtin_json_internalize_process_property /home/sakura/jerryscript/jerry-core/ecma/builtin-objects/ecma-builtin-json.c:760 #19 0x566adaea in ecma_builtin_json_internalize_property /home/sakura/jerryscript/jerry-core/ecma/builtin-objects/ecma-builtin-json.c:718 #20 0x566add63 in ecma_builtin_json_internalize_process_property /home/sakura/jerryscript/jerry-core/ecma/builtin-objects/ecma-builtin-json.c:760 #21 0x566adaea in ecma_builtin_json_internalize_property /home/sakura/jerryscript/jerry-core/ecma/builtin-objects/ecma-builtin-json.c:718 #22 0x566add63 in ecma_builtin_json_internalize_process_property /home/sakura/jerryscript/jerry-core/ecma/builtin-objects/ecma-builtin-json.c:760 #23 0x566adaea in ecma_builtin_json_internalize_property /home/sakura/jerryscript/jerry-core/ecma/builtin-objects/ecma-builtin-json.c:718 #24 0x566add63 in ecma_builtin_json_internalize_process_property /home/sakura/jerryscript/jerry-core/ecma/builtin-objects/ecma-builtin-json.c:760 #25 0x566adaea in ecma_builtin_json_internalize_property /home/sakura/jerryscript/jerry-core/ecma/builtin-objects/ecma-builtin-json.c:718 #26 0x566add63 in ecma_builtin_json_internalize_process_property /home/sakura/jerryscript/jerry-core/ecma/builtin-objects/ecma-builtin-json.c:760 #27 0x566adaea in ecma_builtin_json_internalize_property /home/sakura/jerryscript/jerry-core/ecma/builtin-objects/ecma-builtin-json.c:718 #28 0x566add63 in ecma_builtin_json_internalize_process_property /home/sakura/jerryscript/jerry-core/ecma/builtin-objects/ecma-builtin-json.c:760 #29 0x566adaea in ecma_builtin_json_internalize_property /home/sakura/jerryscript/jerry-core/ecma/builtin-objects/ecma-builtin-json.c:718 #30 0x566add63 in ecma_builtin_json_internalize_process_property /home/sakura/jerryscript/jerry-core/ecma/builtin-objects/ecma-builtin-json.c:760 #31 0x566adaea in ecma_builtin_json_internalize_property /home/sakura/jerryscript/jerry-core/ecma/builtin-objects/ecma-builtin-json.c:718 #32 0x566add63 in ecma_builtin_json_internalize_process_property /home/sakura/jerryscript/jerry-core/ecma/builtin-objects/ecma-builtin-json.c:760 #33 0x566adaea in ecma_builtin_json_internalize_property /home/sakura/jerryscript/jerry-core/ecma/builtin-objects/ecma-builtin-json.c:718 #34 0x566add63 in ecma_builtin_json_internalize_process_property /home/sakura/jerryscript/jerry-core/ecma/builtin-objects/ecma-builtin-json.c:760 #35 0x566adaea in ecma_builtin_json_internalize_property /home/sakura/jerryscript/jerry-core/ecma/builtin-objects/ecma-builtin-json.c:718 #36 0x566add63 in ecma_builtin_json_internalize_process_property /home/sakura/jerryscript/jerry-core/ecma/builtin-objects/ecma-builtin-json.c:760 #37 0x566adaea in ecma_builtin_json_internalize_property /home/sakura/jerryscript/jerry-core/ecma/builtin-objects/ecma-builtin-json.c:718 #38 0x566add63 in ecma_builtin_json_internalize_process_property /home/sakura/jerryscript/jerry-core/ecma/builtin-objects/ecma-builtin-json.c:760 #39 0x566adaea in ecma_builtin_json_internalize_property /home/sakura/jerryscript/jerry-core/ecma/builtin-objects/ecma-builtin-json.c:718 #40 0x566add63 in ecma_builtin_json_internalize_process_property /home/sakura/jerryscript/jerry-core/ecma/builtin-objects/ecma-builtin-json.c:760 #41 0x566adaea in ecma_builtin_json_internalize_property /home/sakura/jerryscript/jerry-core/ecma/builtin-objects/ecma-builtin-json.c:718 #42 0x566add63 in ecma_builtin_json_internalize_process_property /home/sakura/jerryscript/jerry-core/ecma/builtin-objects/ecma-builtin-json.c:760 #43 0x566adaea in ecma_builtin_json_internalize_property /home/sakura/jerryscript/jerry-core/ecma/builtin-objects/ecma-builtin-json.c:718 #44 0x566add63 in ecma_builtin_json_internalize_process_property /home/sakura/jerryscript/jerry-core/ecma/builtin-objects/ecma-builtin-json.c:760 #45 0x566adaea in ecma_builtin_json_internalize_property /home/sakura/jerryscript/jerry-core/ecma/builtin-objects/ecma-builtin-json.c:718 #46 0x566add63 in ecma_builtin_json_internalize_process_property /home/sakura/jerryscript/jerry-core/ecma/builtin-objects/ecma-builtin-json.c:760 #47 0x566adaea in ecma_builtin_json_internalize_property /home/sakura/jerryscript/jerry-core/ecma/builtin-objects/ecma-builtin-json.c:718 #48 0x566add63 in ecma_builtin_json_internalize_process_property /home/sakura/jerryscript/jerry-core/ecma/builtin-objects/ecma-builtin-json.c:760 #49 0x566adaea in ecma_builtin_json_internalize_property /home/sakura/jerryscript/jerry-core/ecma/builtin-objects/ecma-builtin-json.c:718 #50 0x566add63 in ecma_builtin_json_internalize_process_property /home/sakura/jerryscript/jerry-core/ecma/builtin-objects/ecma-builtin-json.c:760 #51 0x566adaea in ecma_builtin_json_internalize_property /home/sakura/jerryscript/jerry-core/ecma/builtin-objects/ecma-builtin-json.c:718 #52 0x566add63 in ecma_builtin_json_internalize_process_property /home/sakura/jerryscript/jerry-core/ecma/builtin-objects/ecma-builtin-json.c:760 #53 0x566adaea in ecma_builtin_json_internalize_property /home/sakura/jerryscript/jerry-core/ecma/builtin-objects/ecma-builtin-json.c:718 #54 0x566add63 in ecma_builtin_json_internalize_process_property /home/sakura/jerryscript/jerry-core/ecma/builtin-objects/ecma-builtin-json.c:760 #55 0x566adaea in ecma_builtin_json_internalize_property /home/sakura/jerryscript/jerry-core/ecma/builtin-objects/ecma-builtin-json.c:718 #56 0x566add63 in ecma_builtin_json_internalize_process_property /home/sakura/jerryscript/jerry-core/ecma/builtin-objects/ecma-builtin-json.c:760 #57 0x566adaea in ecma_builtin_json_internalize_property /home/sakura/jerryscript/jerry-core/ecma/builtin-objects/ecma-builtin-json.c:718 #58 0x566add63 in ecma_builtin_json_internalize_process_property /home/sakura/jerryscript/jerry-core/ecma/builtin-objects/ecma-builtin-json.c:760 #59 0x566adaea in ecma_builtin_json_internalize_property /home/sakura/jerryscript/jerry-core/ecma/builtin-objects/ecma-builtin-json.c:718 #60 0x566add63 in ecma_builtin_json_internalize_process_property /home/sakura/jerryscript/jerry-core/ecma/builtin-objects/ecma-builtin-json.c:760 #61 0x566adaea in ecma_builtin_json_internalize_property /home/sakura/jerryscript/jerry-core/ecma/builtin-objects/ecma-builtin-json.c:718 #62 0x566add63 in ecma_builtin_json_internalize_process_property /home/sakura/jerryscript/jerry-core/ecma/builtin-objects/ecma-builtin-json.c:760 #63 0x566adaea in ecma_builtin_json_internalize_property /home/sakura/jerryscript/jerry-core/ecma/builtin-objects/ecma-builtin-json.c:718 #64 0x566add63 in ecma_builtin_json_internalize_process_property /home/sakura/jerryscript/jerry-core/ecma/builtin-objects/ecma-builtin-json.c:760 #65 0x566adaea in ecma_builtin_json_internalize_property /home/sakura/jerryscript/jerry-core/ecma/builtin-objects/ecma-builtin-json.c:718 #66 0x566add63 in ecma_builtin_json_internalize_process_property /home/sakura/jerryscript/jerry-core/ecma/builtin-objects/ecma-builtin-json.c:760 #67 0x566adaea in ecma_builtin_json_internalize_property /home/sakura/jerryscript/jerry-core/ecma/builtin-objects/ecma-builtin-json.c:718 #68 0x566add63 in ecma_builtin_json_internalize_process_property /home/sakura/jerryscript/jerry-core/ecma/builtin-objects/ecma-builtin-json.c:760 #69 0x566adaea in ecma_builtin_json_internalize_property /home/sakura/jerryscript/jerry-core/ecma/builtin-objects/ecma-builtin-json.c:718 #70 0x566add63 in ecma_builtin_json_internalize_process_property /home/sakura/jerryscript/jerry-core/ecma/builtin-objects/ecma-builtin-json.c:760 #71 0x566adaea in ecma_builtin_json_internalize_property /home/sakura/jerryscript/jerry-core/ecma/builtin-objects/ecma-builtin-json.c:718 #72 0x566add63 in ecma_builtin_json_internalize_process_property /home/sakura/jerryscript/jerry-core/ecma/builtin-objects/ecma-builtin-json.c:760 #73 0x566adaea in ecma_builtin_json_internalize_property /home/sakura/jerryscript/jerry-core/ecma/builtin-objects/ecma-builtin-json.c:718 #74 0x566add63 in ecma_builtin_json_internalize_process_property /home/sakura/jerryscript/jerry-core/ecma/builtin-objects/ecma-builtin-json.c:760 #75 0x566adaea in ecma_builtin_json_internalize_property /home/sakura/jerryscript/jerry-core/ecma/builtin-objects/ecma-builtin-json.c:718 #76 0x566add63 in ecma_builtin_json_internalize_process_property /home/sakura/jerryscript/jerry-core/ecma/builtin-objects/ecma-builtin-json.c:760 #77 0x566adaea in ecma_builtin_json_internalize_property /home/sakura/jerryscript/jerry-core/ecma/builtin-objects/ecma-builtin-json.c:718 #78 0x566add63 in ecma_builtin_json_internalize_process_property /home/sakura/jerryscript/jerry-core/ecma/builtin-objects/ecma-builtin-json.c:760 #79 0x566adaea in ecma_builtin_json_internalize_property /home/sakura/jerryscript/jerry-core/ecma/builtin-objects/ecma-builtin-json.c:718 #80 0x566add63 in ecma_builtin_json_internalize_process_property /home/sakura/jerryscript/jerry-core/ecma/builtin-objects/ecma-builtin-json.c:760 #81 0x566adaea in ecma_builtin_json_internalize_property /home/sakura/jerryscript/jerry-core/ecma/builtin-objects/ecma-builtin-json.c:718 #82 0x566add63 in ecma_builtin_json_internalize_process_property /home/sakura/jerryscript/jerry-core/ecma/builtin-objects/ecma-builtin-json.c:760 #83 0x566adaea in ecma_builtin_json_internalize_property /home/sakura/jerryscript/jerry-core/ecma/builtin-objects/ecma-builtin-json.c:718 #84 0x566add63 in ecma_builtin_json_internalize_process_property /home/sakura/jerryscript/jerry-core/ecma/builtin-objects/ecma-builtin-json.c:760 #85 0x566adaea in ecma_builtin_json_internalize_property /home/sakura/jerryscript/jerry-core/ecma/builtin-objects/ecma-builtin-json.c:718 #86 0x566add63 in ecma_builtin_json_internalize_process_property /home/sakura/jerryscript/jerry-core/ecma/builtin-objects/ecma-builtin-json.c:760 #87 0x566adaea in ecma_builtin_json_internalize_property /home/sakura/jerryscript/jerry-core/ecma/builtin-objects/ecma-builtin-json.c:718 #88 0x566add63 in ecma_builtin_json_internalize_process_property /home/sakura/jerryscript/jerry-core/ecma/builtin-objects/ecma-builtin-json.c:760 #89 0x566adaea in ecma_builtin_json_internalize_property /home/sakura/jerryscript/jerry-core/ecma/builtin-objects/ecma-builtin-json.c:718 #90 0x566add63 in ecma_builtin_json_internalize_process_property /home/sakura/jerryscript/jerry-core/ecma/builtin-objects/ecma-builtin-json.c:760 #91 0x566adaea in ecma_builtin_json_internalize_property /home/sakura/jerryscript/jerry-core/ecma/builtin-objects/ecma-builtin-json.c:718 #92 0x566add63 in ecma_builtin_json_internalize_process_property /home/sakura/jerryscript/jerry-core/ecma/builtin-objects/ecma-builtin-json.c:760 #93 0x566adaea in ecma_builtin_json_internalize_property /home/sakura/jerryscript/jerry-core/ecma/builtin-objects/ecma-builtin-json.c:718 #94 0x566add63 in ecma_builtin_json_internalize_process_property /home/sakura/jerryscript/jerry-core/ecma/builtin-objects/ecma-builtin-json.c:760 #95 0x566adaea in ecma_builtin_json_internalize_property /home/sakura/jerryscript/jerry-core/ecma/builtin-objects/ecma-builtin-json.c:718 #96 0x566add63 in ecma_builtin_json_internalize_process_property /home/sakura/jerryscript/jerry-core/ecma/builtin-objects/ecma-builtin-json.c:760 #97 0x566adaea in ecma_builtin_json_internalize_property /home/sakura/jerryscript/jerry-core/ecma/builtin-objects/ecma-builtin-json.c:718 #98 0x566add63 in ecma_builtin_json_internalize_process_property /home/sakura/jerryscript/jerry-core/ecma/builtin-objects/ecma-builtin-json.c:760 #99 0x566adaea in ecma_builtin_json_internalize_property /home/sakura/jerryscript/jerry-core/ecma/builtin-objects/ecma-builtin-json.c:718 #100 0x566add63 in ecma_builtin_json_internalize_process_property /home/sakura/jerryscript/jerry-core/ecma/builtin-objects/ecma-builtin-json.c:760 #101 0x566adaea in ecma_builtin_json_internalize_property /home/sakura/jerryscript/jerry-core/ecma/builtin-objects/ecma-builtin-json.c:718 #102 0x566add63 in ecma_builtin_json_internalize_process_property /home/sakura/jerryscript/jerry-core/ecma/builtin-objects/ecma-builtin-json.c:760 #103 0x566adaea in ecma_builtin_json_internalize_property /home/sakura/jerryscript/jerry-core/ecma/builtin-objects/ecma-builtin-json.c:718 #104 0x566add63 in ecma_builtin_json_internalize_process_property /home/sakura/jerryscript/jerry-core/ecma/builtin-objects/ecma-builtin-json.c:760 #105 0x566adaea in ecma_builtin_json_internalize_property /home/sakura/jerryscript/jerry-core/ecma/builtin-objects/ecma-builtin-json.c:718 #106 0x566add63 in ecma_builtin_json_internalize_process_property /home/sakura/jerryscript/jerry-core/ecma/builtin-objects/ecma-builtin-json.c:760 #107 0x566adaea in ecma_builtin_json_internalize_property /home/sakura/jerryscript/jerry-core/ecma/builtin-objects/ecma-builtin-json.c:718 #108 0x566add63 in ecma_builtin_json_internalize_process_property /home/sakura/jerryscript/jerry-core/ecma/builtin-objects/ecma-builtin-json.c:760 #109 0x566adaea in ecma_builtin_json_internalize_property /home/sakura/jerryscript/jerry-core/ecma/builtin-objects/ecma-builtin-json.c:718 #110 0x566add63 in ecma_builtin_json_internalize_process_property /home/sakura/jerryscript/jerry-core/ecma/builtin-objects/ecma-builtin-json.c:760 #111 0x566adaea in ecma_builtin_json_internalize_property /home/sakura/jerryscript/jerry-core/ecma/builtin-objects/ecma-builtin-json.c:718 #112 0x566add63 in ecma_builtin_json_internalize_process_property /home/sakura/jerryscript/jerry-core/ecma/builtin-objects/ecma-builtin-json.c:760 #113 0x566adaea in ecma_builtin_json_internalize_property /home/sakura/jerryscript/jerry-core/ecma/builtin-objects/ecma-builtin-json.c:718 #114 0x566add63 in ecma_builtin_json_internalize_process_property /home/sakura/jerryscript/jerry-core/ecma/builtin-objects/ecma-builtin-json.c:760 #115 0x566adaea in ecma_builtin_json_internalize_property /home/sakura/jerryscript/jerry-core/ecma/builtin-objects/ecma-builtin-json.c:718 #116 0x566add63 in ecma_builtin_json_internalize_process_property /home/sakura/jerryscript/jerry-core/ecma/builtin-objects/ecma-builtin-json.c:760 #117 0x566adaea in ecma_builtin_json_internalize_property /home/sakura/jerryscript/jerry-core/ecma/builtin-objects/ecma-builtin-json.c:718 #118 0x566add63 in ecma_builtin_json_internalize_process_property /home/sakura/jerryscript/jerry-core/ecma/builtin-objects/ecma-builtin-json.c:760 #119 0x566adaea in ecma_builtin_json_internalize_property /home/sakura/jerryscript/jerry-core/ecma/builtin-objects/ecma-builtin-json.c:718 #120 0x566add63 in ecma_builtin_json_internalize_process_property /home/sakura/jerryscript/jerry-core/ecma/builtin-objects/ecma-builtin-json.c:760 #121 0x566adaea in ecma_builtin_json_internalize_property /home/sakura/jerryscript/jerry-core/ecma/builtin-objects/ecma-builtin-json.c:718 #122 0x566add63 in ecma_builtin_json_internalize_process_property /home/sakura/jerryscript/jerry-core/ecma/builtin-objects/ecma-builtin-json.c:760 #123 0x566adaea in ecma_builtin_json_internalize_property /home/sakura/jerryscript/jerry-core/ecma/builtin-objects/ecma-builtin-json.c:718 #124 0x566add63 in ecma_builtin_json_internalize_process_property /home/sakura/jerryscript/jerry-core/ecma/builtin-objects/ecma-builtin-json.c:760 #125 0x566adaea in ecma_builtin_json_internalize_property /home/sakura/jerryscript/jerry-core/ecma/builtin-objects/ecma-builtin-json.c:718 #126 0x566add63 in ecma_builtin_json_internalize_process_property /home/sakura/jerryscript/jerry-core/ecma/builtin-objects/ecma-builtin-json.c:760 #127 0x566adaea in ecma_builtin_json_internalize_property /home/sakura/jerryscript/jerry-core/ecma/builtin-objects/ecma-builtin-json.c:718 #128 0x566add63 in ecma_builtin_json_internalize_process_property /home/sakura/jerryscript/jerry-core/ecma/builtin-objects/ecma-builtin-json.c:760 #129 0x566adaea in ecma_builtin_json_internalize_property /home/sakura/jerryscript/jerry-core/ecma/builtin-objects/ecma-builtin-json.c:718 #130 0x566add63 in ecma_builtin_json_internalize_process_property /home/sakura/jerryscript/jerry-core/ecma/builtin-objects/ecma-builtin-json.c:760 #131 0x566adaea in ecma_builtin_json_internalize_property /home/sakura/jerryscript/jerry-core/ecma/builtin-objects/ecma-builtin-json.c:718 #132 0x566add63 in ecma_builtin_json_internalize_process_property /home/sakura/jerryscript/jerry-core/ecma/builtin-objects/ecma-builtin-json.c:760 #133 0x566adaea in ecma_builtin_json_internalize_property /home/sakura/jerryscript/jerry-core/ecma/builtin-objects/ecma-builtin-json.c:718 #134 0x566add63 in ecma_builtin_json_internalize_process_property /home/sakura/jerryscript/jerry-core/ecma/builtin-objects/ecma-builtin-json.c:760 #135 0x566adaea in ecma_builtin_json_internalize_property /home/sakura/jerryscript/jerry-core/ecma/builtin-objects/ecma-builtin-json.c:718 #136 0x566add63 in ecma_builtin_json_internalize_process_property /home/sakura/jerryscript/jerry-core/ecma/builtin-objects/ecma-builtin-json.c:760 #137 0x566adaea in ecma_builtin_json_internalize_property /home/sakura/jerryscript/jerry-core/ecma/builtin-objects/ecma-builtin-json.c:718 #138 0x566add63 in ecma_builtin_json_internalize_process_property /home/sakura/jerryscript/jerry-core/ecma/builtin-objects/ecma-builtin-json.c:760 #139 0x566adaea in ecma_builtin_json_internalize_property /home/sakura/jerryscript/jerry-core/ecma/builtin-objects/ecma-builtin-json.c:718 #140 0x566add63 in ecma_builtin_json_internalize_process_property /home/sakura/jerryscript/jerry-core/ecma/builtin-objects/ecma-builtin-json.c:760 #141 0x566adaea in ecma_builtin_json_internalize_property /home/sakura/jerryscript/jerry-core/ecma/builtin-objects/ecma-builtin-json.c:718 #142 0x566add63 in ecma_builtin_json_internalize_process_property /home/sakura/jerryscript/jerry-core/ecma/builtin-objects/ecma-builtin-json.c:760 #143 0x566adaea in ecma_builtin_json_internalize_property /home/sakura/jerryscript/jerry-core/ecma/builtin-objects/ecma-builtin-json.c:718 #144 0x566add63 in ecma_builtin_json_internalize_process_property /home/sakura/jerryscript/jerry-core/ecma/builtin-objects/ecma-builtin-json.c:760 #145 0x566adaea in ecma_builtin_json_internalize_property /home/sakura/jerryscript/jerry-core/ecma/builtin-objects/ecma-builtin-json.c:718 #146 0x566add63 in ecma_builtin_json_internalize_process_property /home/sakura/jerryscript/jerry-core/ecma/builtin-objects/ecma-builtin-json.c:760 #147 0x566adaea in ecma_builtin_json_internalize_property /home/sakura/jerryscript/jerry-core/ecma/builtin-objects/ecma-builtin-json.c:718 #148 0x566add63 in ecma_builtin_json_internalize_process_property /home/sakura/jerryscript/jerry-core/ecma/builtin-objects/ecma-builtin-json.c:760 #149 0x566adaea in ecma_builtin_json_internalize_property /home/sakura/jerryscript/jerry-core/ecma/builtin-objects/ecma-builtin-json.c:718 #150 0x566add63 in ecma_builtin_json_internalize_process_property /home/sakura/jerryscript/jerry-core/ecma/builtin-objects/ecma-builtin-json.c:760 #151 0x566adaea in ecma_builtin_json_internalize_property /home/sakura/jerryscript/jerry-core/ecma/builtin-objects/ecma-builtin-json.c:718 #152 0x566add63 in ecma_builtin_json_internalize_process_property /home/sakura/jerryscript/jerry-core/ecma/builtin-objects/ecma-builtin-json.c:760 #153 0x566adaea in ecma_builtin_json_internalize_property /home/sakura/jerryscript/jerry-core/ecma/builtin-objects/ecma-builtin-json.c:718 #154 0x566add63 in ecma_builtin_json_internalize_process_property /home/sakura/jerryscript/jerry-core/ecma/builtin-objects/ecma-builtin-json.c:760 #155 0x566adaea in ecma_builtin_json_internalize_property /home/sakura/jerryscript/jerry-core/ecma/builtin-objects/ecma-builtin-json.c:718 #156 0x566add63 in ecma_builtin_json_internalize_process_property /home/sakura/jerryscript/jerry-core/ecma/builtin-objects/ecma-builtin-json.c:760 #157 0x566adaea in ecma_builtin_json_internalize_property /home/sakura/jerryscript/jerry-core/ecma/builtin-objects/ecma-builtin-json.c:718 #158 0x566add63 in ecma_builtin_json_internalize_process_property /home/sakura/jerryscript/jerry-core/ecma/builtin-objects/ecma-builtin-json.c:760 #159 0x566adaea in ecma_builtin_json_internalize_property /home/sakura/jerryscript/jerry-core/ecma/builtin-objects/ecma-builtin-json.c:718 #160 0x566add63 in ecma_builtin_json_internalize_process_property /home/sakura/jerryscript/jerry-core/ecma/builtin-objects/ecma-builtin-json.c:760 #161 0x566adaea in ecma_builtin_json_internalize_property /home/sakura/jerryscript/jerry-core/ecma/builtin-objects/ecma-builtin-json.c:718 #162 0x566add63 in ecma_builtin_json_internalize_process_property /home/sakura/jerryscript/jerry-core/ecma/builtin-objects/ecma-builtin-json.c:760 #163 0x566adaea in ecma_builtin_json_internalize_property /home/sakura/jerryscript/jerry-core/ecma/builtin-objects/ecma-builtin-json.c:718 #164 0x566add63 in ecma_builtin_json_internalize_process_property /home/sakura/jerryscript/jerry-core/ecma/builtin-objects/ecma-builtin-json.c:760 #165 0x566adaea in ecma_builtin_json_internalize_property /home/sakura/jerryscript/jerry-core/ecma/builtin-objects/ecma-builtin-json.c:718 #166 0x566add63 in ecma_builtin_json_internalize_process_property /home/sakura/jerryscript/jerry-core/ecma/builtin-objects/ecma-builtin-json.c:760 #167 0x566adaea in ecma_builtin_json_internalize_property /home/sakura/jerryscript/jerry-core/ecma/builtin-objects/ecma-builtin-json.c:718 #168 0x566add63 in ecma_builtin_json_internalize_process_property /home/sakura/jerryscript/jerry-core/ecma/builtin-objects/ecma-builtin-json.c:760 #169 0x566adaea in ecma_builtin_json_internalize_property /home/sakura/jerryscript/jerry-core/ecma/builtin-objects/ecma-builtin-json.c:718 #170 0x566add63 in ecma_builtin_json_internalize_process_property /home/sakura/jerryscript/jerry-core/ecma/builtin-objects/ecma-builtin-json.c:760 #171 0x566adaea in ecma_builtin_json_internalize_property /home/sakura/jerryscript/jerry-core/ecma/builtin-objects/ecma-builtin-json.c:718 #172 0x566add63 in ecma_builtin_json_internalize_process_property /home/sakura/jerryscript/jerry-core/ecma/builtin-objects/ecma-builtin-json.c:760 #173 0x566adaea in ecma_builtin_json_internalize_property /home/sakura/jerryscript/jerry-core/ecma/builtin-objects/ecma-builtin-json.c:718 #174 0x566add63 in ecma_builtin_json_internalize_process_property /home/sakura/jerryscript/jerry-core/ecma/builtin-objects/ecma-builtin-json.c:760 #175 0x566adaea in ecma_builtin_json_internalize_property /home/sakura/jerryscript/jerry-core/ecma/builtin-objects/ecma-builtin-json.c:718 #176 0x566add63 in ecma_builtin_json_internalize_process_property /home/sakura/jerryscript/jerry-core/ecma/builtin-objects/ecma-builtin-json.c:760 #177 0x566adaea in ecma_builtin_json_internalize_property /home/sakura/jerryscript/jerry-core/ecma/builtin-objects/ecma-builtin-json.c:718 #178 0x566add63 in ecma_builtin_json_internalize_process_property /home/sakura/jerryscript/jerry-core/ecma/builtin-objects/ecma-builtin-json.c:760 #179 0x566adaea in ecma_builtin_json_internalize_property /home/sakura/jerryscript/jerry-core/ecma/builtin-objects/ecma-builtin-json.c:718 #180 0x566add63 in ecma_builtin_json_internalize_process_property /home/sakura/jerryscript/jerry-core/ecma/builtin-objects/ecma-builtin-json.c:760 #181 0x566adaea in ecma_builtin_json_internalize_property /home/sakura/jerryscript/jerry-core/ecma/builtin-objects/ecma-builtin-json.c:718 #182 0x566add63 in ecma_builtin_json_internalize_process_property /home/sakura/jerryscript/jerry-core/ecma/builtin-objects/ecma-builtin-json.c:760 #183 0x566adaea in ecma_builtin_json_internalize_property /home/sakura/jerryscript/jerry-core/ecma/builtin-objects/ecma-builtin-json.c:718 #184 0x566add63 in ecma_builtin_json_internalize_process_property /home/sakura/jerryscript/jerry-core/ecma/builtin-objects/ecma-builtin-json.c:760 #185 0x566adaea in ecma_builtin_json_internalize_property /home/sakura/jerryscript/jerry-core/ecma/builtin-objects/ecma-builtin-json.c:718 #186 0x566add63 in ecma_builtin_json_internalize_process_property /home/sakura/jerryscript/jerry-core/ecma/builtin-objects/ecma-builtin-json.c:760 #187 0x566adaea in ecma_builtin_json_internalize_property /home/sakura/jerryscript/jerry-core/ecma/builtin-objects/ecma-builtin-json.c:718 #188 0x566add63 in ecma_builtin_json_internalize_process_property /home/sakura/jerryscript/jerry-core/ecma/builtin-objects/ecma-builtin-json.c:760 #189 0x566adaea in ecma_builtin_json_internalize_property /home/sakura/jerryscript/jerry-core/ecma/builtin-objects/ecma-builtin-json.c:718 #190 0x566add63 in ecma_builtin_json_internalize_process_property /home/sakura/jerryscript/jerry-core/ecma/builtin-objects/ecma-builtin-json.c:760 #191 0x566adaea in ecma_builtin_json_internalize_property /home/sakura/jerryscript/jerry-core/ecma/builtin-objects/ecma-builtin-json.c:718 #192 0x566add63 in ecma_builtin_json_internalize_process_property /home/sakura/jerryscript/jerry-core/ecma/builtin-objects/ecma-builtin-json.c:760 #193 0x566adaea in ecma_builtin_json_internalize_property /home/sakura/jerryscript/jerry-core/ecma/builtin-objects/ecma-builtin-json.c:718 #194 0x566add63 in ecma_builtin_json_internalize_process_property /home/sakura/jerryscript/jerry-core/ecma/builtin-objects/ecma-builtin-json.c:760 #195 0x566adaea in ecma_builtin_json_internalize_property /home/sakura/jerryscript/jerry-core/ecma/builtin-objects/ecma-builtin-json.c:718 #196 0x566add63 in ecma_builtin_json_internalize_process_property /home/sakura/jerryscript/jerry-core/ecma/builtin-objects/ecma-builtin-json.c:760 #197 0x566adaea in ecma_builtin_json_internalize_property /home/sakura/jerryscript/jerry-core/ecma/builtin-objects/ecma-builtin-json.c:718 #198 0x566add63 in ecma_builtin_json_internalize_process_property /home/sakura/jerryscript/jerry-core/ecma/builtin-objects/ecma-builtin-json.c:760 #199 0x566adaea in ecma_builtin_json_internalize_property /home/sakura/jerryscript/jerry-core/ecma/builtin-objects/ecma-builtin-json.c:718 #200 0x566add63 in ecma_builtin_json_internalize_process_property /home/sakura/jerryscript/jerry-core/ecma/builtin-objects/ecma-builtin-json.c:760 #201 0x566adaea in ecma_builtin_json_internalize_property /home/sakura/jerryscript/jerry-core/ecma/builtin-objects/ecma-builtin-json.c:718 #202 0x566add63 in ecma_builtin_json_internalize_process_property /home/sakura/jerryscript/jerry-core/ecma/builtin-objects/ecma-builtin-json.c:760 #203 0x566adaea in ecma_builtin_json_internalize_property /home/sakura/jerryscript/jerry-core/ecma/builtin-objects/ecma-builtin-json.c:718 #204 0x566add63 in ecma_builtin_json_internalize_process_property /home/sakura/jerryscript/jerry-core/ecma/builtin-objects/ecma-builtin-json.c:760 #205 0x566adaea in ecma_builtin_json_internalize_property /home/sakura/jerryscript/jerry-core/ecma/builtin-objects/ecma-builtin-json.c:718 #206 0x566add63 in ecma_builtin_json_internalize_process_property /home/sakura/jerryscript/jerry-core/ecma/builtin-objects/ecma-builtin-json.c:760 #207 0x566adaea in ecma_builtin_json_internalize_property /home/sakura/jerryscript/jerry-core/ecma/builtin-objects/ecma-builtin-json.c:718 #208 0x566add63 in ecma_builtin_json_internalize_process_property /home/sakura/jerryscript/jerry-core/ecma/builtin-objects/ecma-builtin-json.c:760 #209 0x566adaea in ecma_builtin_json_internalize_property /home/sakura/jerryscript/jerry-core/ecma/builtin-objects/ecma-builtin-json.c:718 #210 0x566add63 in ecma_builtin_json_internalize_process_property /home/sakura/jerryscript/jerry-core/ecma/builtin-objects/ecma-builtin-json.c:760 #211 0x566adaea in ecma_builtin_json_internalize_property /home/sakura/jerryscript/jerry-core/ecma/builtin-objects/ecma-builtin-json.c:718 #212 0x566add63 in ecma_builtin_json_internalize_process_property /home/sakura/jerryscript/jerry-core/ecma/builtin-objects/ecma-builtin-json.c:760 #213 0x566adaea in ecma_builtin_json_internalize_property /home/sakura/jerryscript/jerry-core/ecma/builtin-objects/ecma-builtin-json.c:718 #214 0x566add63 in ecma_builtin_json_internalize_process_property /home/sakura/jerryscript/jerry-core/ecma/builtin-objects/ecma-builtin-json.c:760 #215 0x566adaea in ecma_builtin_json_internalize_property /home/sakura/jerryscript/jerry-core/ecma/builtin-objects/ecma-builtin-json.c:718 #216 0x566add63 in ecma_builtin_json_internalize_process_property /home/sakura/jerryscript/jerry-core/ecma/builtin-objects/ecma-builtin-json.c:760 #217 0x566adaea in ecma_builtin_json_internalize_property /home/sakura/jerryscript/jerry-core/ecma/builtin-objects/ecma-builtin-json.c:718 #218 0x566add63 in ecma_builtin_json_internalize_process_property /home/sakura/jerryscript/jerry-core/ecma/builtin-objects/ecma-builtin-json.c:760 #219 0x566adaea in ecma_builtin_json_internalize_property /home/sakura/jerryscript/jerry-core/ecma/builtin-objects/ecma-builtin-json.c:718 #220 0x566add63 in ecma_builtin_json_internalize_process_property /home/sakura/jerryscript/jerry-core/ecma/builtin-objects/ecma-builtin-json.c:760 #221 0x566adaea in ecma_builtin_json_internalize_property /home/sakura/jerryscript/jerry-core/ecma/builtin-objects/ecma-builtin-json.c:718 #222 0x566add63 in ecma_builtin_json_internalize_process_property /home/sakura/jerryscript/jerry-core/ecma/builtin-objects/ecma-builtin-json.c:760 #223 0x566adaea in ecma_builtin_json_internalize_property /home/sakura/jerryscript/jerry-core/ecma/builtin-objects/ecma-builtin-json.c:718 #224 0x566add63 in ecma_builtin_json_internalize_process_property /home/sakura/jerryscript/jerry-core/ecma/builtin-objects/ecma-builtin-json.c:760 #225 0x566adaea in ecma_builtin_json_internalize_property /home/sakura/jerryscript/jerry-core/ecma/builtin-objects/ecma-builtin-json.c:718 #226 0x566add63 in ecma_builtin_json_internalize_process_property /home/sakura/jerryscript/jerry-core/ecma/builtin-objects/ecma-builtin-json.c:760 #227 0x566adaea in ecma_builtin_json_internalize_property /home/sakura/jerryscript/jerry-core/ecma/builtin-objects/ecma-builtin-json.c:718 #228 0x566add63 in ecma_builtin_json_internalize_process_property /home/sakura/jerryscript/jerry-core/ecma/builtin-objects/ecma-builtin-json.c:760 #229 0x566adaea in ecma_builtin_json_internalize_property /home/sakura/jerryscript/jerry-core/ecma/builtin-objects/ecma-builtin-json.c:718 #230 0x566add63 in ecma_builtin_json_internalize_process_property /home/sakura/jerryscript/jerry-core/ecma/builtin-objects/ecma-builtin-json.c:760 #231 0x566adaea in ecma_builtin_json_internalize_property /home/sakura/jerryscript/jerry-core/ecma/builtin-objects/ecma-builtin-json.c:718 #232 0x566add63 in ecma_builtin_json_internalize_process_property /home/sakura/jerryscript/jerry-core/ecma/builtin-objects/ecma-builtin-json.c:760 #233 0x566adaea in ecma_builtin_json_internalize_property /home/sakura/jerryscript/jerry-core/ecma/builtin-objects/ecma-builtin-json.c:718 #234 0x566add63 in ecma_builtin_json_internalize_process_property /home/sakura/jerryscript/jerry-core/ecma/builtin-objects/ecma-builtin-json.c:760 #235 0x566adaea in ecma_builtin_json_internalize_property /home/sakura/jerryscript/jerry-core/ecma/builtin-objects/ecma-builtin-json.c:718 #236 0x566add63 in ecma_builtin_json_internalize_process_property /home/sakura/jerryscript/jerry-core/ecma/builtin-objects/ecma-builtin-json.c:760 #237 0x566adaea in ecma_builtin_json_internalize_property /home/sakura/jerryscript/jerry-core/ecma/builtin-objects/ecma-builtin-json.c:718 #238 0x566add63 in ecma_builtin_json_internalize_process_property /home/sakura/jerryscript/jerry-core/ecma/builtin-objects/ecma-builtin-json.c:760 #239 0x566adaea in ecma_builtin_json_internalize_property /home/sakura/jerryscript/jerry-core/ecma/builtin-objects/ecma-builtin-json.c:718 #240 0x566add63 in ecma_builtin_json_internalize_process_property /home/sakura/jerryscript/jerry-core/ecma/builtin-objects/ecma-builtin-json.c:760 #241 0x566adaea in ecma_builtin_json_internalize_property /home/sakura/jerryscript/jerry-core/ecma/builtin-objects/ecma-builtin-json.c:718 #242 0x566add63 in ecma_builtin_json_internalize_process_property /home/sakura/jerryscript/jerry-core/ecma/builtin-objects/ecma-builtin-json.c:760 #243 0x566adaea in ecma_builtin_json_internalize_property /home/sakura/jerryscript/jerry-core/ecma/builtin-objects/ecma-builtin-json.c:718 #244 0x566add63 in ecma_builtin_json_internalize_process_property /home/sakura/jerryscript/jerry-core/ecma/builtin-objects/ecma-builtin-json.c:760 #245 0x566adaea in ecma_builtin_json_internalize_property /home/sakura/jerryscript/jerry-core/ecma/builtin-objects/ecma-builtin-json.c:718 #246 0x566add63 in ecma_builtin_json_internalize_process_property /home/sakura/jerryscript/jerry-core/ecma/builtin-objects/ecma-builtin-json.c:760 SUMMARY: AddressSanitizer: stack-overflow (/lib32/libasan.so.5+0x11b434) ==1646789==ABORTING ```
AddressSanitizer: stack-overflow in ecma_builtin_json_internalize_process_property
https://api.github.com/repos/jerryscript-project/jerryscript/issues/4883/comments
1
2021-12-09T13:55:49Z
2021-12-09T13:59:12Z
https://github.com/jerryscript-project/jerryscript/issues/4883
1,075,601,184
4,883
[ "jerryscript-project", "jerryscript" ]
###### JerryScript revision Commit: [51da1551](https://github.com/jerryscript-project/jerryscript/commit/51da15516e1436184be9914314f76d596f14cd27) Version: v3.0.0 ###### Build platform Ubuntu 18.04.5 LTS (Linux 5.4.0-44-generic x86_64) ###### Build steps ```bash ./tools/build.py --clean --debug --profile=es2015-subset --compile-flag=-fsanitize=address --compile-flag=-m32 --lto=off --logging=on --line-info=on --error-message=on --system-allocator=on --stack-limit=20 ``` ###### Test case ```javascript function JSEtest(val) { return Number(val); } isNaN(JSEtest("+0x0")); isNaN(JSEtest("+0xFF")); isNaN(JSEtest("-0xFF")); ``` ###### Execution steps & Output ```bash $ ./jerryscript/build/bin/jerry poc.js ================================================================= ==103276==ERROR: AddressSanitizer: heap-buffer-overflow on address 0xf5d005de at pc 0x566a6771 bp 0xfffe76e8 sp 0xfffe76d8 READ of size 1 at 0xf5d005de thread T0 #0 0x566a6770 in ecma_utf8_string_to_number_by_radix /root/jerryscript/jerry-core/ecma/base/ecma-helpers-conversion.c:320 #1 0x566a7a09 in ecma_utf8_string_to_number /root/jerryscript/jerry-core/ecma/base/ecma-helpers-conversion.c:387 #2 0x566bacc7 in ecma_string_to_number /root/jerryscript/jerry-core/ecma/base/ecma-helpers-string.c:1046 #3 0x5673c738 in ecma_op_to_numeric /root/jerryscript/jerry-core/ecma/operations/ecma-conversion.c:312 #4 0x568bb03b in ecma_builtin_number_dispatch_call /root/jerryscript/jerry-core/ecma/builtin-objects/ecma-builtin-number.c:90 #5 0x56706f7c in ecma_builtin_dispatch_call /root/jerryscript/jerry-core/ecma/builtin-objects/ecma-builtins.c:1579 #6 0x567488b4 in ecma_op_function_call_native_built_in /root/jerryscript/jerry-core/ecma/operations/ecma-function-object.c:1243 #7 0x5674ea1d in ecma_op_function_call /root/jerryscript/jerry-core/ecma/operations/ecma-function-object.c:1444 #8 0x5674ea1d in ecma_op_function_validated_call /root/jerryscript/jerry-core/ecma/operations/ecma-function-object.c:1402 #9 0x56877f5e in opfunc_call /root/jerryscript/jerry-core/vm/vm.c:762 #10 0x56877f5e in vm_execute /root/jerryscript/jerry-core/vm/vm.c:5266 #11 0x5687be7c in vm_run /root/jerryscript/jerry-core/vm/vm.c:5363 #12 0x56748101 in ecma_op_function_call_simple /root/jerryscript/jerry-core/ecma/operations/ecma-function-object.c:1203 #13 0x5674ea3d in ecma_op_function_call /root/jerryscript/jerry-core/ecma/operations/ecma-function-object.c:1439 #14 0x5674ea3d in ecma_op_function_validated_call /root/jerryscript/jerry-core/ecma/operations/ecma-function-object.c:1402 #15 0x56877f5e in opfunc_call /root/jerryscript/jerry-core/vm/vm.c:762 #16 0x56877f5e in vm_execute /root/jerryscript/jerry-core/vm/vm.c:5266 #17 0x5687adb8 in vm_run /root/jerryscript/jerry-core/vm/vm.c:5363 #18 0x5687adb8 in vm_run_global /root/jerryscript/jerry-core/vm/vm.c:290 #19 0x5666d94f in jerry_run /root/jerryscript/jerry-core/api/jerryscript.c:533 #20 0x56653d23 in main /root/jerryscript/jerry-main/main-jerry.c:169 #21 0xf76fff20 in __libc_start_main (/lib/i386-linux-gnu/libc.so.6+0x18f20) #22 0x5665d359 (/root/jerryscript/build/bin/jerry+0x3b359) 0xf5d005de is located 0 bytes to the right of 14-byte region [0xf5d005d0,0xf5d005de) allocated by thread T0 here: #0 0xf7aaaf54 in malloc (/usr/lib32/libasan.so.4+0xe5f54) #1 0x5665af4c in jmem_heap_alloc /root/jerryscript/jerry-core/jmem/jmem-heap.c:254 #2 0x5665af4c in jmem_heap_gc_and_alloc_block /root/jerryscript/jerry-core/jmem/jmem-heap.c:291 #3 0x5665af4c in jmem_heap_alloc_block /root/jerryscript/jerry-core/jmem/jmem-heap.c:324 SUMMARY: AddressSanitizer: heap-buffer-overflow /root/jerryscript/jerry-core/ecma/base/ecma-helpers-conversion.c:320 in ecma_utf8_string_to_number_by_radix Shadow bytes around the buggy address: 0x3eba0060: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa 0x3eba0070: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa 0x3eba0080: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa 0x3eba0090: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa 0x3eba00a0: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa =>0x3eba00b0: fa fa fa fa fa fa fa fa fa fa 00[06]fa fa fd fd 0x3eba00c0: fa fa 05 fa fa fa 00 00 fa fa 00 00 fa fa 05 fa 0x3eba00d0: fa fa fd fa fa fa fd fa fa fa 00 04 fa fa fd fd 0x3eba00e0: fa fa fd fd fa fa 00 00 fa fa 00 06 fa fa 00 03 0x3eba00f0: fa fa 00 07 fa fa 00 00 fa fa fa fa fa fa fa fa 0x3eba0100: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa Shadow byte legend (one shadow byte represents 8 application bytes): Addressable: 00 Partially addressable: 01 02 03 04 05 06 07 Heap left redzone: fa Freed heap region: fd Stack left redzone: f1 Stack mid redzone: f2 Stack right redzone: f3 Stack after return: f5 Stack use after scope: f8 Global redzone: f9 Global init order: f6 Poisoned by user: f7 Container overflow: fc Array cookie: ac Intra object redzone: bb ASan internal: fe Left alloca redzone: ca Right alloca redzone: cb ==103276==ABORTING ``` Credits: Found by OWL337 team.
Heap-buffer-overflow in ecma_utf8_string_to_number_by_radix (ecma-helpers-conversion.c)
https://api.github.com/repos/jerryscript-project/jerryscript/issues/4882/comments
3
2021-12-09T13:20:38Z
2022-01-12T02:08:24Z
https://github.com/jerryscript-project/jerryscript/issues/4882
1,075,566,600
4,882
[ "jerryscript-project", "jerryscript" ]
###### JerryScript revision Commit: [51da1551](https://github.com/jerryscript-project/jerryscript/commit/51da15516e1436184be9914314f76d596f14cd27) Version: v3.0.0 ###### Build platform Ubuntu 18.04.5 LTS (Linux 5.4.0-44-generic x86_64) ###### Build steps ```bash ./tools/build.py --clean --debug --profile=es2015-subset --compile-flag=-fsanitize=address --compile-flag=-m32 --lto=off --logging=on --line-info=on --error-message=on --system-allocator=on --stack-limit=20 ``` ###### Test case ```javascript function JSEtest(f, n = 1000) { for (let i = 0; i < n; i++) { f(); } } JSEtest(function () { class M { constructor() { this._x = 45; } get foo() { return this._x; } } class N extends M { constructor(x = () => super.foo) { super(); x() === 45; } x(x = () => super.foo) { return x(); } } new N().x() === 45; }); ``` ​ ###### Execution steps & Output version 3.0.0 ```bash $ ./jerryscript/build/bin/jerry poc.js ICE: Assertion 'ecma_is_value_boolean (base_value)' failed at /root/jerryscript/jerry-core/ecma/operations/ecma-get-put-value.c(ecma_op_get_value_object_base):205. Error: ERR_FAILED_INTERNAL_ASSERTION ``` Credits: Found by OWL337 team.
Assertion 'ecma_is_value_boolean (base_value)' failed in ecma_op_get_value_object_base (ecma-get-put-value).
https://api.github.com/repos/jerryscript-project/jerryscript/issues/4876/comments
0
2021-12-09T09:48:50Z
2022-01-12T02:06:45Z
https://github.com/jerryscript-project/jerryscript/issues/4876
1,075,367,669
4,876
[ "jerryscript-project", "jerryscript" ]
###### JerryScript revision Commit: [51da1551](https://github.com/jerryscript-project/jerryscript/commit/51da15516e1436184be9914314f76d596f14cd27) Version: v3.0.0 Commit: [8ba0d1b](https://github.com/jerryscript-project/jerryscript/commit/8ba0d1b6ee5a065a42f3b306771ad8e3c0d819bc) Version: v2.4.0 ###### Build platform Ubuntu 18.04.5 LTS (Linux 5.4.0-44-generic x86_64) ###### Build steps ```bash ./tools/build.py --clean --debug --profile=es2015-subset --compile-flag=-fsanitize=address --compile-flag=-m32 --lto=off --logging=on --line-info=on --error-message=on --system-allocator=on --stack-limit=20 ``` ###### Test case ```javascript function isPoT(obj, name, type) { let desc; desc = Object.getOwnPropertyDescriptor(obj, name); return typeof type === 'undefined' || typeof desc.value === type; } function getPs(obj, type) { let properties = []; for (let name of Object.getOwnPropertyNames(obj)) { if (isPoT(obj, name, type)) { properties.push(name); } } return properties; } function* genObj(root = this, level = 0) { if (level > 4) { return; } let obj_names = getPs(root, 'object'); for (let obj_name of obj_names) { if (obj_name.startsWith('$')) { continue; } let obj = root[obj_name]; yield obj; yield* genObj(obj, level + 1); } } function JSEtestObj() { let objects = []; for (let obj of genObj()) { if (!objects.includes(obj)) { objects.push(obj); } } return objects; } function JSEtestFunc(obj) { return getPs(obj, 'function'); } const thrower = new Proxy({}, { get() { throw 0xc0defefe; } }); for (let o of JSEtestObj()) { for (let f of JSEtestFunc(o)) { const arityPlusOne = o[f].length + 1; try { o[f](Array(arityPlusOne).fill(thrower)); } catch (e) { if (`${e}`.includes('1')) { try { new o[f](Array(arityPlusOne).fill(thrower)); } catch (e) {} } else { } } } } ``` ​ ###### Execution steps & Output Version: v3.0.0 ```bash $ ./jerryscript/build/bin/jerry poc.js ICE: Assertion 'ecma_object_is_typedarray (obj_p)' failed at /root/jerryscript/jerry-core/ecma/operations/ecma-typedarray-object.c(ecma_get_typedarray_id):764. Error: ERR_FAILED_INTERNAL_ASSERTION ``` Version: v2.4.0 ````bash $ ~/jerryscript-2.4.0/build/bin/jerry poc.js Script Error: assertion failed Script backtrace (top 5): 0: poc.js:72 ```` Credits: Found by OWL337 team.
Assertion 'ecma_object_is_typedarray (obj_p)' failed in ecma-typedarray-object(ecma_get_typedarray_id)
https://api.github.com/repos/jerryscript-project/jerryscript/issues/4875/comments
0
2021-12-09T09:08:53Z
2022-01-12T02:06:25Z
https://github.com/jerryscript-project/jerryscript/issues/4875
1,075,325,382
4,875
[ "jerryscript-project", "jerryscript" ]
## JerryScript commit hash 55acdf2048b390d0f56f12e64dbfb2559f0e70ad ## Build platform Ubuntu 20.04 LTS ## Build steps ``` ./tools/build.py --clean --debug --compile-flag=-fsanitize=address --compile-flag=-m32 --lto=off --logging=on --line-info=on --error-message=on --system-allocator=on --profile=es2015-subset --stack-limit=20 ``` ## poc ``` function assertSyntaxError(code) { try { eval(code); throw new Error('Should throw SyntaxError, but executed code without throwing'); } catch (e) { if (!e instanceof SyntaxError) throw new Error('Should throw SyntaxError, but threw ' + e); } } assertSyntaxError('let C = class { #constructor() {} }'); assertSyntaxError('let C = class { static #constructor() {} }'); assertSyntaxError('class C { #constructor() {} }'); assertSyntaxError('class C { static #constructor() {} }'); assertSyntaxError('let C = class { get #constructor() {} }'); assertSyntaxError('let C = class { static get #constructor() {} }'); assertSyntaxError('class C { get #constructor() {} }'); assertSyntaxError('class C { static get #constructor() {} }'); assertSyntaxError('let C = class { set #constructor(v) {} }'); assertSyntaxError('let C = class { static set #constructor(v) {} }'); assertSyntaxError('class C { set #constructor(v) {} }'); assertSyntaxError('class C { static set #constructor(v) {} }'); assertSyntaxError('let C = class { #constructor; }'); assertSyntaxError('let C = class { static #constructor; }'); assertSyntaxError('class C { #constructor; }'); assertSyntaxError('class C { static #constructor; }'); ``` ## assert log ``` ICE: Assertion '!is_static' failed at /home/sakura/jerryscript/jerry-core/parser/js/js-parser-expr.c(parser_parse_class_body):729. Error: ERR_FAILED_INTERNAL_ASSERTION [1] 4022294 abort ~/jerryscript/build2/bin/jerry fuzz_output/fuzzer1/.cur_input ```
Assertion '!is_static' failed at jerry-core/parser/js/js-parser-expr.c(parser_parse_class_body):729
https://api.github.com/repos/jerryscript-project/jerryscript/issues/4874/comments
4
2021-12-09T08:38:09Z
2021-12-15T09:32:12Z
https://github.com/jerryscript-project/jerryscript/issues/4874
1,075,298,781
4,874
[ "jerryscript-project", "jerryscript" ]
###### JerryScript revision Commit: [51da1551](https://github.com/jerryscript-project/jerryscript/commit/51da15516e1436184be9914314f76d596f14cd27) Version: v3.0.0 Commit: [8ba0d1b](https://github.com/jerryscript-project/jerryscript/commit/8ba0d1b6ee5a065a42f3b306771ad8e3c0d819bc) Version: v2.4.0 ###### Build platform Ubuntu 18.04.5 LTS (Linux 5.4.0-44-generic x86_64) ###### Build steps ```bash ./tools/build.py --clean --debug --profile=es2015-subset --compile-flag=-fsanitize=address --compile-flag=-m32 --lto=off --logging=on --line-info=on --error-message=on --system-allocator=on --stack-limit=20 ``` ###### Test case ```javascript function JSEtest(proxyTarget) { var { proxy, revoke } = Proxy.revocable(proxyTarget, new Proxy({}, { get(target, propertyKey, receiver) { revoke(); } })); return proxy; } Object.getPrototypeOf(JSEtest({})); ``` ​ ###### Execution steps & Output ```bash $ ./jerryscript/build/bin/jerry poc.js ICE: Assertion 'ecma_is_value_object (value)' failed at /root/jerryscript/jerry-core/ecma/base/ecma-helpers-value.c(ecma_get_object_from_value):838. Error: ERR_FAILED_INTERNAL_ASSERTION ``` Jerry-V3.0.0 and V2.4.0 have the same Backtrace. Credits: Found by OWL337 team.
Assertion 'ecma_is_value_object (value)' failed in ecma-helpers-value(ecma_get_object_from_value)
https://api.github.com/repos/jerryscript-project/jerryscript/issues/4873/comments
0
2021-12-09T07:43:47Z
2022-01-12T02:06:07Z
https://github.com/jerryscript-project/jerryscript/issues/4873
1,075,252,043
4,873