issue_owner_repo
sequencelengths 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"
] | ###### Jerry version:
```
Checked revision: 7b59c80
Build: debug.linux
```
###### OS:
```
Ubuntu 16.04, x86_64
```
###### Test case:
```javascript
do break; while $
```
###### Backtrace:
```
Script Error: SyntaxError
ICE: Assertion 'JERRY_CONTEXT (jmem_heap_allocated_size) == 0' failed at jerryscript/jerry-core/jmem/jmem-heap.c(jmem_heap_finalize):180.
Error: ERR_FAILED_INTERNAL_ASSERTION
Aborted
bt
#0 0x000000000046daba in syscall_2 () at jerryscript/jerry-libc/target/posix/jerry-asm.S:59
#1 0x0000000000402760 in raise (sig=6) at jerryscript/jerry-libc/target/posix/jerry-libc-target.c:91
#2 0x0000000000402732 in abort () at jerryscript/jerry-libc/target/posix/jerry-libc-target.c:77
#3 0x00000000004113c6 in jerry_port_fatal (code=ERR_FAILED_INTERNAL_ASSERTION) at jerryscript/targets/default/jerry-port-default-fatal.c:53
#4 0x000000000042ce6f in jerry_fatal (code=ERR_FAILED_INTERNAL_ASSERTION) at jerryscript/jerry-core/jrt/jrt-fatals.c:61
#5 0x000000000042cec1 in jerry_assert_fail (assertion=0x4757b0 "JERRY_CONTEXT (jmem_heap_allocated_size) == 0", file=0x475720 "jerryscript/jerry-core/jmem/jmem-heap.c", function=0x4848e0 <__func__.2985.lto_priv.265> "jmem_heap_finalize", line=180) at jerryscript/jerry-core/jrt/jrt-fatals.c:85
#6 0x000000000042c26e in jmem_heap_finalize () at jerryscript/jerry-core/jmem/jmem-heap.c:180
#7 0x000000000042cb7b in jmem_finalize () at jerryscript/jerry-core/jmem/jmem-allocator.c:59
#8 0x000000000046d93d in jerry_cleanup () at jerryscript/jerry-core/jerry.c:168
#9 0x000000000046d803 in main (argc=3, argv=0x7fffffffd2e8) at jerryscript/jerry-main/main-unix.c:806
```
| Assertion 'JERRY_CONTEXT (jmem_heap_allocated_size) == 0' failed in jmem_heap_finalize | https://api.github.com/repos/jerryscript-project/jerryscript/issues/1550/comments | 2 | 2017-01-31T10:58:31Z | 2017-02-03T10:43:36Z | https://github.com/jerryscript-project/jerryscript/issues/1550 | 204,262,684 | 1,550 |
[
"jerryscript-project",
"jerryscript"
] | ###### Jerry version:
```
Checked revision: 7b59c80
Build: debug.linux
```
###### OS:
```
Ubuntu 16.04, x86_64
```
###### Test case:
[UPDATE]
The test case contains special characters that GH cannot display, but it can be saved with this small python snippet (enough to paste it to a py interpreter):
```python
with open('test.js', 'wb') as f:
f.write(b"function $() {\
$ = { \
$:$, $: ($ ($, ($ * ($[(($ + '(Cq\xd4c=V\xcc'.$ ())) & $] + $))))\
}\
}")
```
[ORIGINAL]
```javascript
function $() {
$ = {
$:$, $: ($ ($, ($ * ($[(($ + '(Cqc=V'.$ ())) & $] + $))))
}
}
```
###### Backtrace:
```
ICE: Assertion 'lit_is_cesu8_string_valid (string_p, string_size)' failed at jerryscript/jerry-core/ecma/base/ecma-helpers-string.c(ecma_new_ecma_string_from_utf8):154.
Error: ERR_FAILED_INTERNAL_ASSERTION
Aborted
bt
#0 0x000000000046daba in syscall_2 () at jerryscript/jerry-libc/target/posix/jerry-asm.S:59
#1 0x0000000000402760 in raise (sig=6) at jerryscript/jerry-libc/target/posix/jerry-libc-target.c:91
#2 0x0000000000402732 in abort () at jerryscript/jerry-libc/target/posix/jerry-libc-target.c:77
#3 0x00000000004113c6 in jerry_port_fatal (code=ERR_FAILED_INTERNAL_ASSERTION) at jerryscript/targets/default/jerry-port-default-fatal.c:53
#4 0x000000000042ce6f in jerry_fatal (code=ERR_FAILED_INTERNAL_ASSERTION) at jerryscript/jerry-core/jrt/jrt-fatals.c:61
#5 0x000000000042cec1 in jerry_assert_fail (assertion=0x47c788 "lit_is_cesu8_string_valid (string_p, string_size)", file=0x47c700 "jerryscript/jerry-core/ecma/base/ecma-helpers-string.c", function=0x480e30 <__func__.3095.lto_priv.558> "ecma_new_ecma_string_from_utf8", line=154) at jerryscript/jerry-core/jrt/jrt-fatals.c:85
#6 0x000000000045ae6c in ecma_new_ecma_string_from_utf8 (string_p=0x712be0 <buffer+2496> "B!\262E\264' + '(Cq\324c=V\314'.indexOf(strvar5))) & 255] + ary[((((true instanceof ((typeof EvalError == 'function') ? EvalError : Object)) >= 0 ? (true instanceof ((typeof EvalError == 'function') ? EvalError :"..., string_size=5) at jerryscript/jerry-core/ecma/base/ecma-helpers-string.c:154
#7 0x0000000000413790 in ecma_find_or_create_literal_string (chars_p=0x712be0 <buffer+2496> "B!\262E\264' + '(Cq\324c=V\314'.indexOf(strvar5))) & 255] + ary[((((true instanceof ((typeof EvalError == 'function') ? EvalError : Object)) >= 0 ? (true instanceof ((typeof EvalError == 'function') ? EvalError :"..., size=5) at jerryscript/jerry-core/ecma/base/ecma-literal-storage.c:72
#8 0x000000000042a4c6 in parser_post_processing (context_p=0x7fffffffcbc0) at jerryscript/jerry-core/parser/js/js-parser.c:1715
#9 0x000000000042b3c8 in parser_parse_function (context_p=0x7fffffffcbc0, status_flags=6) at jerryscript/jerry-core/parser/js/js-parser.c:2155
#10 0x0000000000425380 in lexer_construct_function_object (context_p=0x7fffffffcbc0, extra_status_flags=6) at jerryscript/jerry-core/parser/js/js-lexer.c:1639
#11 0x000000000041e347 in parser_parse_function_statement (context_p=0x7fffffffcbc0) at jerryscript/jerry-core/parser/js/js-parser-statm.c:396
#12 0x0000000000420d32 in parser_parse_statements (context_p=0x7fffffffcbc0) at jerryscript/jerry-core/parser/js/js-parser-statm.c:1688
#13 0x000000000042a99c in parser_parse_source.lto_priv.202 (source_p=0x712220 <buffer> "//", '-' <repeats 103 times>, "\n// Copyright (C) Microsoft. All rights reserved.\n// Licensed under the MIT license. See LICENS"..., size=2915, strict_mode=0, error_location_p=0x7fffffffcd70) at jerryscript/jerry-core/parser/js/js-parser.c:1874
#14 0x00000000004227b1 in parser_parse_script (source_p=0x712220 <buffer> "//", '-' <repeats 103 times>, "\n// Copyright (C) Microsoft. All rights reserved.\n// Licensed under the MIT license. See LICENS"..., size=2915, is_strict=false, bytecode_data_p=0x7fffffffcdb0) at jerryscript/jerry-core/parser/js/js-parser.c:2252
#15 0x00000000004699fe in jerry_parse (source_p=0x712220 <buffer> "//", '-' <repeats 103 times>, "\n// Copyright (C) Microsoft. All rights reserved.\n// Licensed under the MIT license. See LICENS"..., source_size=2915, is_strict=false) at jerryscript/jerry-core/jerry.c:262
#16 0x000000000046d580 in main (argc=3, argv=0x7fffffffd2e8) at jerryscript/jerry-main/main-unix.c:706
``` | Assertion 'lit_is_cesu8_string_valid (string_p, string_size)' failed in ecma_new_ecma_string_from_utf8 | https://api.github.com/repos/jerryscript-project/jerryscript/issues/1549/comments | 2 | 2017-01-31T10:53:38Z | 2017-02-16T17:31:05Z | https://github.com/jerryscript-project/jerryscript/issues/1549 | 204,261,544 | 1,549 |
[
"jerryscript-project",
"jerryscript"
] | ###### Jerry version:
```
Checked revision: 8b5d645
Build: debug.linux
```
###### OS:
```
Ubuntu 16.04, x86_64
```
###### Test case:
```javascript
try { new (this.Date)(this.Number .MAX_VALUE, this.Number .MAX_VALUE) .$ () } catch($){}
```
###### Backtrace:
```
ICE: Assertion '!ecma_number_is_nan (time)' failed at JERRY_PATH/jerry-core/ecma/builtin-objects/ecma-builtin-helpers-date.c(ecma_date_year_from_time):114.
Error: ERR_FAILED_INTERNAL_ASSERTION
Aborted
bt
#0 0x000000000046d5c0 in syscall_2 () at JERRY_PATH/jerry-libc/target/posix/jerry-asm.S:59
#1 0x00000000004027be in raise (sig=6) at JERRY_PATH/jerry-libc/target/posix/jerry-libc-target.c:91
#2 0x0000000000402790 in abort () at JERRY_PATH/jerry-libc/target/posix/jerry-libc-target.c:77
#3 0x0000000000411450 in jerry_port_fatal (code=ERR_FAILED_INTERNAL_ASSERTION) at JERRY_PATH/targets/default/jerry-port-default-fatal.c:53
#4 0x000000000042cf04 in jerry_fatal (code=ERR_FAILED_INTERNAL_ASSERTION) at JERRY_PATH/jerry-core/jrt/jrt-fatals.c:61
#5 0x000000000042cf56 in jerry_assert_fail (assertion=0x46f85a "!ecma_number_is_nan (time)", file=0x46f7f0 "JERRY_PATH/jerry-core/ecma/builtin-objects/ecma-builtin-helpers-date.c", function=0x487890 <__func__.3294.lto_priv.88> "ecma_date_year_from_time", line=114) at JERRY_PATH/jerry-core/jrt/jrt-fatals.c:85
#6 0x000000000040d34c in ecma_date_year_from_time (time=-nan(0x8000000000000)) at JERRY_PATH/jerry-core/ecma/builtin-objects/ecma-builtin-helpers-date.c:114
#7 0x000000000040e158 in ecma_date_make_day (year=1.7976931348623157e+308, month=1.7976931348623157e+308, date=1) at JERRY_PATH/jerry-core/ecma/builtin-objects/ecma-builtin-helpers-date.c:514
#8 0x00000000004453be in ecma_date_construct_helper (args=0x7fffffffccac, args_len=2) at JERRY_PATH/jerry-core/ecma/builtin-objects/ecma-builtin-date.c:149
#9 0x000000000044612c in ecma_builtin_date_dispatch_construct (arguments_list_p=0x7fffffffccac, arguments_list_len=2) at JERRY_PATH/jerry-core/ecma/builtin-objects/ecma-builtin-date.c:530
#10 0x0000000000454f5a in ecma_builtin_dispatch_construct (obj_p=0x691290 <jerry_global_heap+152>, arguments_list_p=0x7fffffffccac, arguments_list_len=2) at JERRY_PATH/jerry-core/ecma/builtin-objects/ecma-builtins.inc.h:153
#11 0x0000000000438d88 in ecma_op_function_construct (func_obj_p=0x691290 <jerry_global_heap+152>, arguments_list_p=0x7fffffffccac, arguments_list_len=2) at JERRY_PATH/jerry-core/ecma/operations/ecma-function-object.c:712
#12 0x000000000041dd96 in opfunc_construct.lto_priv.137 (frame_ctx_p=0x7fffffffcd00) at JERRY_PATH/jerry-core/vm/vm.c:443
#13 0x0000000000415735 in vm_execute (frame_ctx_p=0x7fffffffcd00, arg_p=0x0, arg_list_len=0) at JERRY_PATH/jerry-core/vm/vm.c:2600
#14 0x000000000041595e in vm_run (bytecode_header_p=0x692e60 <jerry_global_heap+7272>, this_binding_value=27, lex_env_p=0x691220 <jerry_global_heap+40>, is_eval_code=false, arg_list_p=0x0, arg_list_len=0) at JERRY_PATH/jerry-core/vm/vm.c:2664
#15 0x000000000041d8ec in vm_run_global (bytecode_p=0x692e60 <jerry_global_heap+7272>) at JERRY_PATH/jerry-core/vm/vm.c:211
#16 0x00000000004696e9 in jerry_run (func_val=139) at JERRY_PATH/jerry-core/jerry.c:340
#17 0x000000000046d0bb in main (argc=3, argv=0x7fffffffd348) at JERRY_PATH/jerry-main/main-unix.c:711
```
| Assertion '!ecma_number_is_nan (time)' failed in ecma_date_year_from_time | https://api.github.com/repos/jerryscript-project/jerryscript/issues/1547/comments | 5 | 2017-01-30T16:30:18Z | 2017-02-27T10:19:30Z | https://github.com/jerryscript-project/jerryscript/issues/1547 | 204,059,427 | 1,547 |
[
"jerryscript-project",
"jerryscript"
] | ###### Jerry version:
```
Checked revision: 7b59c80
Build: debug.linux
```
###### OS:
```
Ubuntu 16.04, x86_64
```
###### Test case:
```javascript
try { this.String .prototype .split (this.RegExp .prototype) } catch($){}
```
###### Backtrace:
```
ICE: Assertion 'property_p != NULL && ECMA_PROPERTY_GET_TYPE (*property_p) == ECMA_PROPERTY_TYPE_NAMEDDATA' failed at jerryscript/jerry-core/ecma/base/ecma-helpers.c(ecma_get_named_data_property):773.
Error: ERR_FAILED_INTERNAL_ASSERTION
Aborted
bt
#0 0x000000000046daba in syscall_2 () at jerryscript/jerry-libc/target/posix/jerry-asm.S:59
#1 0x0000000000402760 in raise (sig=6) at jerryscript/jerry-libc/target/posix/jerry-libc-target.c:91
#2 0x0000000000402732 in abort () at jerryscript/jerry-libc/target/posix/jerry-libc-target.c:77
#3 0x00000000004113c6 in jerry_port_fatal (code=ERR_FAILED_INTERNAL_ASSERTION) at jerryscript/targets/default/jerry-port-default-fatal.c:53
#4 0x000000000042ce6f in jerry_fatal (code=ERR_FAILED_INTERNAL_ASSERTION) at jerryscript/jerry-core/jrt/jrt-fatals.c:61
#5 0x000000000042cec1 in jerry_assert_fail (assertion=0x47dd90 "property_p != NULL && ECMA_PROPERTY_GET_TYPE (*property_p) == ECMA_PROPERTY_TYPE_NAMEDDATA", file=0x47d778 "jerryscript/jerry-core/ecma/base/ecma-helpers.c", function=0x480830 <__func__.3575.lto_priv.604> "ecma_get_named_data_property", line=773) at jerryscript/jerry-core/jrt/jrt-fatals.c:85
#6 0x0000000000463ee8 in ecma_get_named_data_property (obj_p=0x6921d0 <jerry_global_heap+4056>, name_p=0x691fe0 <jerry_global_heap+3560>) at jerryscript/jerry-core/ecma/base/ecma-helpers.c:772
#7 0x0000000000442ad9 in ecma_builtin_helper_split_match (input_string=194, start_idx=0, separator=1923) at jerryscript/jerry-core/ecma/builtin-objects/ecma-builtin-string-prototype.c:1529
#8 0x00000000004431f6 in ecma_builtin_string_prototype_object_split.lto_priv.420 (this_arg=171, arg1=1923, arg2=72) at jerryscript/jerry-core/ecma/builtin-objects/ecma-builtin-string-prototype.c:1721
#9 0x0000000000446679 in ecma_builtin_string_prototype_dispatch_routine (builtin_routine_id=46, this_arg_value=171, arguments_list=0x7fffffffcc44, arguments_number=2) at jerryscript/jerry-core/ecma/builtin-objects/ecma-builtin-string-prototype.inc.h:63
#10 0x000000000045aadb in ecma_builtin_dispatch_routine.lto_priv.520 (builtin_object_id=ECMA_BUILTIN_ID_STRING_PROTOTYPE, builtin_routine_id=46, this_arg_value=171, arguments_list=0x7fffffffcc44, arguments_number=2) at jerryscript/jerry-core/ecma/builtin-objects/ecma-builtins.inc.h:55
#11 0x0000000000454f40 in ecma_builtin_dispatch_call (obj_p=0x692180 <jerry_global_heap+3976>, this_arg_value=171, arguments_list_p=0x7fffffffcc44, arguments_list_len=2) at jerryscript/jerry-core/ecma/builtin-objects/ecma-builtins.c:844
#12 0x0000000000438581 in ecma_op_function_call (func_obj_p=0x692180 <jerry_global_heap+3976>, this_arg_value=171, arguments_list_p=0x7fffffffcc44, arguments_list_len=2) at jerryscript/jerry-core/ecma/operations/ecma-function-object.c:461
#13 0x000000000041db76 in opfunc_call.lto_priv.138 (frame_ctx_p=0x7fffffffcca0) at jerryscript/jerry-core/vm/vm.c:385
#14 0x0000000000415614 in vm_execute (frame_ctx_p=0x7fffffffcca0, arg_p=0x0, arg_list_len=0) at jerryscript/jerry-core/vm/vm.c:2595
#15 0x0000000000415879 in vm_run (bytecode_header_p=0x6921e8 <jerry_global_heap+4080>, this_binding_value=27, lex_env_p=0x691220 <jerry_global_heap+40>, is_eval_code=false, arg_list_p=0x0, arg_list_len=0) at jerryscript/jerry-core/vm/vm.c:2664
#16 0x000000000041d804 in vm_run_global (bytecode_p=0x6921e8 <jerry_global_heap+4080>) at jerryscript/jerry-core/vm/vm.c:211
#17 0x0000000000469b92 in jerry_run (func_val=139) at jerryscript/jerry-core/jerry.c:340
#18 0x000000000046d5b5 in main (argc=3, argv=0x7fffffffd2e8) at jerryscript/jerry-main/main-unix.c:711
```
| Assertion 'property_p != NULL && ECMA_PROPERTY_GET_TYPE (*property_p) == ECMA_PROPERTY_TYPE_NAMEDDATA' failed in ecma_get_named_data_property | https://api.github.com/repos/jerryscript-project/jerryscript/issues/1546/comments | 0 | 2017-01-30T15:09:02Z | 2017-02-03T14:16:50Z | https://github.com/jerryscript-project/jerryscript/issues/1546 | 204,035,807 | 1,546 |
[
"jerryscript-project",
"jerryscript"
] | ###### Jerry version:
```
Checked revision: 7b59c80
Build: debug.linux
```
###### OS:
```
Ubuntu 16.04, x86_64
```
###### Test case:
Two test cases are needed to reproduce the failure (`./jerry 1.js 2.js`):
1.js:
``` javascript
var fz = [{"a": []}];
var fn = function () {
return function(){};
}
for (var i = 0;; i++) {
if (!fz[i])
break;
fn();
}
```
2.js:
```javascript
delete a;
```
###### Backtrace:
```
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):42.
Error: ERR_FAILED_INTERNAL_ASSERTION
Program received signal SIGABRT, Aborted.
0x000000000046dabd in syscall_2 () at jerryscript/jerry-libc/target/posix/jerry-asm.S:59
59 SYSCALL_2
(gdb) bt
#0 0x000000000046dabd in syscall_2 () at jerryscript/jerry-libc/target/posix/jerry-asm.S:59
#1 0x0000000000402760 in raise (sig=6) at jerryscript/jerry-libc/target/posix/jerry-libc-target.c:91
#2 0x0000000000402732 in abort () at jerryscript/jerry-libc/target/posix/jerry-libc-target.c:77
#3 0x00000000004113c6 in jerry_port_fatal (code=ERR_FAILED_INTERNAL_ASSERTION)
at jerryscript/targets/default/jerry-port-default-fatal.c:53
#4 0x000000000042ce70 in jerry_fatal (code=ERR_FAILED_INTERNAL_ASSERTION) at jerryscript/jerry-core/jrt/jrt-fatals.c:61
#5 0x000000000042cec2 in jerry_assert_fail (assertion=0x471288 "ECMA_STRING_IS_REF_EQUALS_TO_ONE (string_p)",
file=0x471228 "jerryscript/jerry-core/ecma/base/ecma-literal-storage.c",
function=0x4876d0 <__func__.3376.lto_priv.109> "ecma_free_string_list", line=42)
at jerryscript/jerry-core/jrt/jrt-fatals.c:85
#6 0x00000000004136de in ecma_free_string_list (string_list_p=0x691248 <jerry_global_heap+80>)
at jerryscript/jerry-core/ecma/base/ecma-literal-storage.c:42
#7 0x000000000041375f in ecma_finalize_lit_storage () at jerryscript/jerry-core/ecma/base/ecma-literal-storage.c:59
#8 0x00000000004581b7 in ecma_finalize () at jerryscript/jerry-core/ecma/base/ecma-init-finalize.c:62
#9 0x000000000046d93b in jerry_cleanup () at jerryscript/jerry-core/jerry.c:167
#10 0x000000000046d806 in main (argc=4, argv=0x7fffffffd2f8) at jerryscript/jerry-main/main-unix.c:806
```
| Assertion 'ECMA_STRING_IS_REF_EQUALS_TO_ONE (string_p)' failed in ecma_free_string_list | https://api.github.com/repos/jerryscript-project/jerryscript/issues/1545/comments | 1 | 2017-01-30T11:13:52Z | 2017-02-14T09:09:51Z | https://github.com/jerryscript-project/jerryscript/issues/1545 | 203,982,267 | 1,545 |
[
"jerryscript-project",
"jerryscript"
] |
Using os ubuntu/xenial64, the make BOARD=NRF52_DK failed with:
```
Compile [100.0%]: launcher.cpp
Link: mbedos5
./BUILD/NRF52_DK/GCC_ARM/mbed-os/platform/retarget.o: In function `__wrap_main':
retarget.cpp:(.text.__wrap_main+0xa): undefined reference to `main'
collect2: error: ld returned 1 exit status
[ERROR] ./BUILD/NRF52_DK/GCC_ARM/mbed-os/platform/retarget.o: In function `__wrap_main':
retarget.cpp:(.text.__wrap_main+0xa): undefined reference to `main'
collect2: error: ld returned 1 exit status
[mbed] ERROR: "python" returned error code 1.
[mbed] ERROR: Command "python -u /home/ubuntu/jerryscript/targets/mbedos5/mbed-os/tools/make.py -t GCC_ARM -m NRF52_DK --source . --source ../../ --build ./BUILD/NRF52_DK/GCC_ARM -j0 -D CONFIG_MEM_HEAP_AREA_SIZE=(1024*16)" in "/home/ubuntu/jerryscript/targets/mbedos5"
---
Makefile:56: recipe for target 'all' failed
make: *** [all] Error 1
```
Complet make: [jerry.txt](https://github.com/jerryscript-project/jerryscript/files/722081/jerry.txt)
It would be interesting to know which ubuntu is usually sucessfull/accepted with compilation to remove as many unknowns as possible.
Basic preparation and make : have I forgotten something?
```
sudo apt-get -y update \
&& sudo apt-get -y upgrade \
&& sudo apt-get -y install \
cmake gcc-arm-none-eabi python-pip
sudo -H pip install --upgrade pip \
&& sudo -H pip install -U mbed-cli \
&& git clone https://github.com/jerryscript-project/jerryscript.git \
&& cd jerryscript/targets/mbedos5 \
&& sudo pip -H install -r tools/requirements.txt \
&& make getlibs \
&& make BOARD=NRF52_DK
``` | Board NRF52_DK: failure with make retarget.cpp:(.text.__wrap_main+0xa): undefined reference to `main' | https://api.github.com/repos/jerryscript-project/jerryscript/issues/1538/comments | 21 | 2017-01-22T16:20:43Z | 2017-03-31T07:41:03Z | https://github.com/jerryscript-project/jerryscript/issues/1538 | 202,392,538 | 1,538 |
[
"jerryscript-project",
"jerryscript"
] | Hi,
I would like to nominate Zidong Jiang to become a JerryScript committer. He is a great developer and his work on typed arrays is great. I trust him to follow the process. His patches are:
#1507 [ES2015 profile]add TypedArray intrinsic object
#1479 Fix a bug in ArrayBuffer
#1467 add ES6 feature: ArrayBuffer
#1345 fix bug in vm call_stack_size calculation
#1277 fix bug: move jerry_make_api_unavailable into the end of jerry_cleanup
#1234 add target port: curie_bsp
#1217 fix bug of "deref bytecode twice" in jerry_exec_snapshot
#1210 Fix bug in jerry_string_to_char_buffer.
#836 remove the c++ syntax, struct::xxx
#806 refactor rcs_chunked_list and remove its c++ features
#720 fix a bug in linked_list memory allocation
| Nominating Zidong Jiang (@jiangzidong) to become a JerryScript committer | https://api.github.com/repos/jerryscript-project/jerryscript/issues/1535/comments | 8 | 2017-01-19T07:50:46Z | 2017-01-27T13:47:27Z | https://github.com/jerryscript-project/jerryscript/issues/1535 | 201,787,067 | 1,535 |
[
"jerryscript-project",
"jerryscript"
] | var a = [];
for (var i = 0; i < 200; ++i)
a[i] = 5;
for (var i = 0; i < 200; ++i)
a[i] = a[i] + 5;
for (var i = 0; i < 200; ++i)
delete a[i]
a[0] = 5
Crashes. I will submit a fix soon. | Property hashmap assertion failure | https://api.github.com/repos/jerryscript-project/jerryscript/issues/1533/comments | 0 | 2017-01-18T13:30:50Z | 2017-01-27T14:31:29Z | https://github.com/jerryscript-project/jerryscript/issues/1533 | 201,574,551 | 1,533 |
[
"jerryscript-project",
"jerryscript"
] | Hi, all.
I followed the example here(https://github.com/janjongboom/jerryscript/tree/the-answer)
I cloned that repository and got the following error when I ran make file.
```
Scan: FEATURE_STORAGE
Scan:
Scan: mbed
Scan: env
Compile: launcher.cpp
Link: mbedos5
./BUILD/NUCLEO_F446RE/GCC_ARM/jerryscript-mbed/jerryscript-mbed-launcher/source/setup.o: In function `jsmbed_js_load_magic_strings()':
setup.cpp:(.text._Z28jsmbed_js_load_magic_stringsv+0x6c): undefined reference to `jsmbed_js_magic_string_count'
setup.cpp:(.text._Z28jsmbed_js_load_magic_stringsv+0x70): undefined reference to `jsmbed_js_magic_string_lengths'
setup.cpp:(.text._Z28jsmbed_js_load_magic_stringsv+0x74): undefined reference to `jsmbed_js_magic_strings'
setup.cpp:(.text._Z28jsmbed_js_load_magic_stringsv+0x78): undefined reference to `jsmbed_js_magic_string_values'
collect2: error: ld returned 1 exit status
[ERROR] ./BUILD/NUCLEO_F446RE/GCC_ARM/jerryscript-mbed/jerryscript-mbed-launcher/source/setup.o: In function `jsmbed_js_load_magic_strings()':
setup.cpp:(.text._Z28jsmbed_js_load_magic_stringsv+0x6c): undefined reference to `jsmbed_js_magic_string_count'
setup.cpp:(.text._Z28jsmbed_js_load_magic_stringsv+0x70): undefined reference to `jsmbed_js_magic_string_lengths'
setup.cpp:(.text._Z28jsmbed_js_load_magic_stringsv+0x74): undefined reference to `jsmbed_js_magic_strings'
setup.cpp:(.text._Z28jsmbed_js_load_magic_stringsv+0x78): undefined reference to `jsmbed_js_magic_string_values'
collect2: error: ld returned 1 exit status
[mbed] ERROR: "python" returned error code 1.
[mbed] ERROR: Command "python -u /home/parallels/dev2/jerryscript/targets/mbedos5/mbed-os/tools/make.py -t GCC_ARM -m NUCLEO_F446RE --source . --source ../../ --build ./BUILD/NUCLEO_F446RE/GCC_ARM -j0 -D CONFIG_MEM_HEAP_AREA_SIZE=(1024*16)" in "/home/parallels/dev2/jerryscript/targets/mbedos5"
---
make: *** [all] Error 1
```
Any help will be greatly appreciated. | Question: I have a linking problem | https://api.github.com/repos/jerryscript-project/jerryscript/issues/1530/comments | 7 | 2017-01-17T09:29:11Z | 2017-01-18T08:11:13Z | https://github.com/jerryscript-project/jerryscript/issues/1530 | 201,216,789 | 1,530 |
[
"jerryscript-project",
"jerryscript"
] | #1513 merged as ff8ff982deeb5ecb656100ba5d1be45c4e8e0979 leads to:
~~~
$ make -f ./targets/zephyr/Makefile.zephyr BOARD=qemu_x86
...
/home/pfalcon/opt/zephyr-sdk-0.8.2/sysroots/i686-pokysdk-linux/usr/libexec/i586-poky-elf/gcc/i586-poky-elf/5.2.0/real-ld: zephyr_prebuilt.elf section `bss' will not fit in region `RAM'
/home/pfalcon/opt/zephyr-sdk-0.8.2/sysroots/i686-pokysdk-linux/usr/libexec/i586-poky-elf/gcc/i586-poky-elf/5.2.0/real-ld: region `RAM' overflowed by 19396 bytes
collect2: error: ld returned 1 exit status
~~~
The size quoted, 19396, is, based on the Zephyr linker map file, is the full size of "bss" section, i.e. the message kind of tells that full and exact BSS is what doesn't fit RAM, which is otherwise 192K. Surprisingly, this issue doesn't affect qemu_cortex_m3 build (RAM 64K). Based on that, it looks like a weird incompatibility with Zephyr SDK x86 toolchain or something. The issue occurs with both Zephyr 1.6.0 and master, SDK used is 0.8.2 (latest).
| "Change the default build type to MinSizeRel." broke zephyr/qemu_x86 build | https://api.github.com/repos/jerryscript-project/jerryscript/issues/1526/comments | 2 | 2017-01-14T17:26:03Z | 2017-01-14T18:07:04Z | https://github.com/jerryscript-project/jerryscript/issues/1526 | 200,817,198 | 1,526 |
[
"jerryscript-project",
"jerryscript"
] | Here's a transcript with bin/jerry that demonstrates the issue:
```
jerry> function foo() { }
undefined
jerry> typeof foo
function
jerry> typeof assert
function
jerry> null instanceof foo
false
jerry> null instanceof assert
Script Error: TypeError
jerry> bar = new foo()
[object Object]
jerry> bar instanceof foo
true
jerry> bar instanceof assert
Script Error: TypeError
```
I'm wanting to write a JS constructor in C, and I think it would probably work except for this problem. What happens here to assert also happens to my function. | checking instanceof against a native external function gives TypeError instead of true/false | https://api.github.com/repos/jerryscript-project/jerryscript/issues/1519/comments | 11 | 2017-01-10T23:52:19Z | 2017-01-16T12:43:56Z | https://github.com/jerryscript-project/jerryscript/issues/1519 | 199,966,862 | 1,519 |
[
"jerryscript-project",
"jerryscript"
] | I want to put the jerryscript engine on the target board and interactively send the JavaScript code and execution results between the target board and the PC terminal via serial communication.
I am using the NUCLEO_F446RE board, and I have succeeded in building the jerryscript engine to target mbed os 5.
Then I followed Step 1 of the tutorial below and got 'Hello World!' output.
Https://github.com/janjongboom/jerryscript/blob/master/docs/03.API-EXAMPLE.md
<main.cpp>
#include <string.h>
#include "mbed.h"
#include "jerry-api.h"
Serial pc(USBTX, USBRX)
int main (int argc, char *argv[])
{
const jerry_char_t script[] = "print ('Hello, World!');";
size_t script_size = strlen ((const char *) script);
bool ret_value = jerry_run_simple (script, script_size, JERRY_INIT_EMPTY);
return (ret_value ? 0 : 1);
}
The problem is that when I use function codes such as setInterval(), DigitalOut() instead of the print() function, jerry_run_simple() return false.
Ex.
const jerry_char_t script [] = "setInterval ( function () {print ('a') }, 1000);
I want to know why this is happening and what should I do.
Thanks in advance. # | Question: when I use some js functions, jerry_run_simple() return false | https://api.github.com/repos/jerryscript-project/jerryscript/issues/1514/comments | 3 | 2017-01-06T04:02:26Z | 2017-01-19T02:25:19Z | https://github.com/jerryscript-project/jerryscript/issues/1514 | 199,119,872 | 1,514 |
[
"jerryscript-project",
"jerryscript"
] | I try the tutorial below to build jerryscript to an mbed os 5 target.
https://developer.mbed.org/blog/entry/Using-mbed-libraries-with-JerryScript/
In the Setting up section of the tutorial, you can see:
<------------------------
Setting up
The following instructions guide you through the process of setting up an environment where you can run JavaScript on mbed OS:
Open a terminal and navigate to the folder where you cloned the JerryScript repository.
Run cd targets / mbedos5.
Run make getlibs - this will pull in mbed OS and all related repositories.
Run pip install -r ./tools/requirements.txt - this will install Python modules required by the build scripts.
------------------------->
The problem is that when I run the 'make getlibs' command, the following error message appears.
<------------------------
[mbed] ERROR: Could not find mbed program in current path "/ home / parallels / jerryscript / targets / mbedos5".
[mbed] ERROR: Change the current directory to a valid mbed program or use the 'global' option to set global configuration.
mbed config root.
[mbed] ERROR: Could not find mbed program in current path "/ home / parallels / jerryscript / targets / mbedos5".
[mbed] ERROR: Change the current directory to a valid mbed program or use the 'global' option to set global configuration.
make: *** [.mbed] Error 255
------------------------->
So I opened the Makefile and looked at the getlibs configuration section.
<------------------------
getlibs: .mbed
.mbed:
mbed config root.
mbed toolchain GCC_ARM
mbed target $ (BOARD)
mbed deploy
------------------------->
I would like to know what to do if the above error occurs.
Thanks in advance | Problem with building jerryscript on mbed os 5 | https://api.github.com/repos/jerryscript-project/jerryscript/issues/1511/comments | 6 | 2017-01-04T02:39:11Z | 2017-01-05T07:42:20Z | https://github.com/jerryscript-project/jerryscript/issues/1511 | 198,618,209 | 1,511 |
[
"jerryscript-project",
"jerryscript"
] | When you switch targets we don't re-generate pins.cpp. If we'd put it in the build/out folder we wouldn't have this problem... | target: mbedos5: pins.cpp should be created in build/out folder rather than in mbedos5/source/ | https://api.github.com/repos/jerryscript-project/jerryscript/issues/1496/comments | 1 | 2016-12-15T10:29:54Z | 2016-12-19T06:28:23Z | https://github.com/jerryscript-project/jerryscript/issues/1496 | 195,769,229 | 1,496 |
[
"jerryscript-project",
"jerryscript"
] | Go to build/jerryscript/targets/mbedos5, then run `make source/pins.cpp`.
This fails, because the `Target` constructor has been removed in mbed OS 5.2 now; which is used in https://github.com/jerryscript-project/jerryscript/blob/master/targets/mbedos5/tools/generate_pins.py. | target: mbedos5: source/pins.cpp is no longer generated against mbed OS 5.2 | https://api.github.com/repos/jerryscript-project/jerryscript/issues/1493/comments | 2 | 2016-12-14T15:16:15Z | 2016-12-16T09:12:50Z | https://github.com/jerryscript-project/jerryscript/issues/1493 | 195,557,760 | 1,493 |
[
"jerryscript-project",
"jerryscript"
] | As discussed in #1467, we need to add a set of regression tests to have some basic test coverage of the ArrayBuffer implementation. | ArrayBuffer needs regression tests | https://api.github.com/repos/jerryscript-project/jerryscript/issues/1475/comments | 4 | 2016-12-07T13:18:29Z | 2016-12-09T07:04:51Z | https://github.com/jerryscript-project/jerryscript/issues/1475 | 194,047,255 | 1,475 |
[
"jerryscript-project",
"jerryscript"
] | I will write patches for this. | target: mbedos5: Missing clearTimeout, clearInterval, PwmOut and AnalogIn data types | https://api.github.com/repos/jerryscript-project/jerryscript/issues/1454/comments | 1 | 2016-11-28T11:45:32Z | 2016-12-12T11:50:31Z | https://github.com/jerryscript-project/jerryscript/issues/1454 | 191,985,400 | 1,454 |
[
"jerryscript-project",
"jerryscript"
] | This is a proposal.
In [IoT.js issue #211](https://github.com/Samsung/iotjs/issues/211), I've discussed about the change of JerryScript memory allocator. The statically reserved heap makes the JerryScript waste the memory by allocating 512KB heap statically even though it only uses few KBs of it. It makes several problems in memory constrained device when it is used with the other platform or other processes.
With IoT.js, this waste may hinder IoT.js platform from allocating system memory.
With other processes, especially with other JS applications, the waste will be bigger since every JS engine instance of each application allocates over-provisioned heap. The use-case running multiple processes in a lightweight sensor device is already showed in [TinyOS](http://webs.cs.berkeley.edu/tos/), and [Contiki](https://github.com/contiki-os/contiki).
If we select on-demand object allocation, however, we cannot exploit the compressed pointer due to random property of object address in 32-bit memory address space.
I suggest that we allocate memory on-demand with granularity of _**Segment**_ which is much bigger than object size but less than heap size, e.g. 8KB. We can still compress the address by keeping multiple segment base addresses instead of a single heap base address. The heap size will be dynamic from 8KB ~ 512KB.
The experiment detail of this proposal is attached in [IoT.js issue thread](https://github.com/Samsung/iotjs/issues/211).
Any opinion will be very welcome. Thanks. | On-demand heap memory management maintaining compressed pointer | https://api.github.com/repos/jerryscript-project/jerryscript/issues/1451/comments | 7 | 2016-11-26T09:59:00Z | 2017-01-31T13:31:23Z | https://github.com/jerryscript-project/jerryscript/issues/1451 | 191,797,646 | 1,451 |
[
"jerryscript-project",
"jerryscript"
] | I build Jerry on Linux but when I run:
```
./jerry --save-snapshot-for-global t.js output.snp
```
The program just hangs/loops. If there are additional diagnostics I can run, please let me know. | jerry save-snaphot-for-global hangs | https://api.github.com/repos/jerryscript-project/jerryscript/issues/1437/comments | 7 | 2016-11-17T05:23:10Z | 2016-11-21T10:28:07Z | https://github.com/jerryscript-project/jerryscript/issues/1437 | 189,941,345 | 1,437 |
[
"jerryscript-project",
"jerryscript"
] | The public benchmark is not refreshing: http://jerryscript.net/benchmark/benchmark.html
The last data is from the end of august. Do we want to keep it? Any plan to make it work again? IMHO it is not too informative with such a small subset of Sunspider. | Automatic benchmark does not work | https://api.github.com/repos/jerryscript-project/jerryscript/issues/1434/comments | 6 | 2016-11-15T14:32:19Z | 2017-10-30T11:10:11Z | https://github.com/jerryscript-project/jerryscript/issues/1434 | 189,407,013 | 1,434 |
[
"jerryscript-project",
"jerryscript"
] | When calling `print` from JS code only a newline is added after the log message. This does not give a full line break on many serial monitors (like `screen` on OS/X and Linux). We should augment `jerry_port_console` to add a carriage return at the end of the line. | mbed OS 5 port should add carriage return (`\r`) in jerry_port_console | https://api.github.com/repos/jerryscript-project/jerryscript/issues/1426/comments | 3 | 2016-11-11T10:36:37Z | 2016-11-28T12:29:48Z | https://github.com/jerryscript-project/jerryscript/issues/1426 | 188,731,430 | 1,426 |
[
"jerryscript-project",
"jerryscript"
] | On many terminal / serial monitor applications (incl. screen on OS/X) it's required to use both a carriage return (`\r`) and a newline (`\n`) to properly create newlines. Is there a reason why `ecma_builtin_global_object_print` only does a newline?
I believe changing the call to `jerry_port_console ("\n");` into `\r\n` or `\n\r` should be the right thing to do. | ecma_builtin_global_object_print should add carriage return (\r) | https://api.github.com/repos/jerryscript-project/jerryscript/issues/1424/comments | 2 | 2016-11-10T11:02:42Z | 2016-11-11T10:32:21Z | https://github.com/jerryscript-project/jerryscript/issues/1424 | 188,479,093 | 1,424 |
[
"jerryscript-project",
"jerryscript"
] | ### Background:
We've been working on transpiling the application layer of the Pebble firmware + JerryScript bindings from C to JavaScript using Emscripten. The generated JavaScript targets the web browser as a host to run the transpiled application runtime, exposing the Pebble JavaScript API on a global object in the browser. Our goal with this is to enable our app developers to run the .js of their Pebble apps in the browser – just by including the app source as a `<script/>` in the HTML page.
The two big advantages for our app developers vs developing directly on real hardware:
1. The browser's built-in debugging tools can be used.
2. Much faster development cycle compared to dealing with a real device, because there is virtually no time required to transfer the code to the target.
To improve the in-browser debugging experience (1), we've decided to NOT transpile the JerryScript engine itself, but to replace the jerry-api.h implementations with JavaScript implementations (Emscripten's [EM_ASM is our friend here](https://kripken.github.io/emscripten-site/docs/porting/connecting_cpp_and_javascript/Interacting-with-code.html#interacting-with-code-call-javascript-from-native)).
### Question:
I can imagine the Emscripten-jerry-api.h implementation might also be useful for others that use JerryScript. Would you be interested to take this as a contribution?
cc @HBehrens @mjessome | Question: any interest in an implementation of jerry-api.h targeting Emscripten? | https://api.github.com/repos/jerryscript-project/jerryscript/issues/1419/comments | 10 | 2016-11-03T09:40:27Z | 2019-10-27T11:08:54Z | https://github.com/jerryscript-project/jerryscript/issues/1419 | 187,012,668 | 1,419 |
[
"jerryscript-project",
"jerryscript"
] | Lua supports multiple `lua_State` instances within a process, each of which represents an entire Lua VM. Different `lua_State`s can be run on different threads simultaneously. This is much better than Jerryscript's use of global variables.
This is a breaking change to the C API.
| Support multiple instances of the VM within a process | https://api.github.com/repos/jerryscript-project/jerryscript/issues/1415/comments | 7 | 2016-10-30T01:14:20Z | 2017-06-07T13:53:23Z | https://github.com/jerryscript-project/jerryscript/issues/1415 | 186,110,584 | 1,415 |
[
"jerryscript-project",
"jerryscript"
] | This was reported on Pebble forums - https://forums.pebble.com/t/rocky-js-math-random-bug/25359
It looks like the problem was introduced with https://github.com/Samsung/jerryscript/commit/6d6c913bdc3bb08e2937691f75449cf248b1a790
The range of the rand() function in jerry-libc is only the positive int32_t values. However, the code in ecma_builtin_math_object_random assumes the range of rand() is the full uint32_t space, since RAND_MAX is > 0x10000.
| Math.random() returns range [0, 0.5) instead of [0, 1.0] | https://api.github.com/repos/jerryscript-project/jerryscript/issues/1414/comments | 1 | 2016-10-28T21:12:04Z | 2016-11-01T14:43:16Z | https://github.com/jerryscript-project/jerryscript/issues/1414 | 186,023,260 | 1,414 |
[
"jerryscript-project",
"jerryscript"
] | I have a JavaScript file loaded in JerryScript that runs forever using setInterval. On occasion I need to restart this JavaScript. This code contains objects that are using jerry_set_object_native_handle, and I need to free this memory. I passed jerry_set_object_native_handle a callback to execute for releasing the handle when the JavaScript stops. If I declare the JavaScript object locally and let it go out of scope, the close callback gets called as expected. But I find this doesn't work on objects declared in the global scope, their memory just gets leaked when I restart the JavaScript. This means that after restarting my JavaScript a couple of times I run out of memory and the system locks up. I tried calling both jerry_clear() and jerry_gc() to free any allocated memory but this still did not result in the close callback being called, and the memory remained.
Is there a way to force JerryScript to garbage collect all memory regardless of whether it is still referenced? Basically I need my JerryScript instance to go back to square one with a completely clean slate.
Thanks.
| [Question] Is there a way to free all memory allocated in JerryScript? | https://api.github.com/repos/jerryscript-project/jerryscript/issues/1392/comments | 20 | 2016-10-14T23:03:07Z | 2016-10-28T14:51:23Z | https://github.com/jerryscript-project/jerryscript/issues/1392 | 183,168,547 | 1,392 |
[
"jerryscript-project",
"jerryscript"
] | Version: 9915307
OS: Linux-4.4.0-38-generic-x86_64-with-debian-stretch-sid
Load the attached test with debug jerry:
``` js
function x(){}[280,1045,523,613,892,802,722,357,766,843,1015,624,260,418,a5,261,376,306(n("o")).a,583,585,586,587,569,589,466,533,745,1012,633,809,368,1245,513,607,g='r',516("",'c'),981,tf(f(b()))=z instanceof 636,758,1004,782,661,455,839,801,630([]=c),bg[0],634,637,638,1099,644,645,294,635,987,650,259('t'),514,290,658,967,725,710,662,667,668,989,672,326,673,343,679(ab(-0)+886),436,739(a="te"),375,826,485,690,785[872],446,904['u',"V",824],704,705,706,593,[](.4),711,304,687,507,723,666,321,497,911,317,730,966,292,500,591,818,a1(nc).s,740,746,747,748,749,363,520,820,333,685,827,831,834,286,693,403,840,841,288,367,392,848,881,592,695,887,912,890,258,893,894,828,273,400,462,808,b8,285,h,856,868,385,913,914,915,916,303,465,919,920,921,922,415,924,391,b4,632,930,931,932,933,934,935,957,331,871,515,w,e,o,627,732,955,677,947,1024,508,501,394,961,'e',296,964,973,c9,cl.l,289,975(y("M")),977,310,979,652,884,473,983,554,988,270,640,991,293,691,962,703,287((cn(t))=u),"f",448,1006,665,788,470,698,1017,855,1020,1021];{}l(i.p(564)=r)
```
Output:
```
ICE: Assertion 'dst_p == byte_code_p + initializers_length' failed at jerryscript/jerry-core/parser/js/js-parser.c(parser_post_processing):1532.
Error: ERR_FAILED_INTERNAL_ASSERTION
Aborted
```
Backtrace:
```
ICE: Assertion 'dst_p == byte_code_p + initializers_length' failed at jerryscript/jerry-core/parser/js/js-parser.c(parser_post_processing):1532.
Error: ERR_FAILED_INTERNAL_ASSERTION
Program received signal SIGABRT, Aborted.
0x00000000005c57c8 in raise ()
#0 0x00000000005c57c8 in raise ()
#1 0x00000000005c597a in abort ()
#2 0x000000000057d175 in jerry_port_fatal (code=ERR_FAILED_INTERNAL_ASSERTION) at jerryscript/targets/default/jerry-port-default-fatal.c:54
#3 jerry_fatal (code=code@entry=ERR_FAILED_INTERNAL_ASSERTION) at jerryscript/jerry-core/jrt/jrt-fatals.c:62
#4 0x000000000057d350 in jerry_assert_fail (assertion=assertion@entry=0x66c2c8 "dst_p == byte_code_p + initializers_length", file=file@entry=0x66bdd8 "jerryscript/jerry-core/parser/js/js-parser.c", function=function@entry=0x66c830 <__func__.5725> "parser_post_processing", line=line@entry=1532) at jerryscript/jerry-core/jrt/jrt-fatals.c:86
#5 0x0000000000585479 in parser_post_processing (context_p=context_p@entry=0x7fffffffcb40) at jerryscript/jerry-core/parser/js/js-parser.c:1532
#6 0x000000000058b82e in parser_parse_source.lto_priv.207 (source_p=<optimized out>, size=<optimized out>, strict_mode=<optimized out>, error_location_p=0x7fffffffcd90) at jerryscript/jerry-core/parser/js/js-parser.c:1887
#7 0x0000000000403d59 in parser_parse_script (bytecode_data_p=<synthetic pointer>, is_strict=false, size=<optimized out>, source_p=<optimized out>) at jerryscript/jerry-core/parser/js/js-parser.c:2248
#8 jerry_parse (is_strict=false, source_size=<optimized out>, source_p=<optimized out>) at jerryscript/jerry-core/jerry.c:284
#9 main (argc=<optimized out>, argv=<optimized out>) at jerryscript/jerry-main/main-unix.c:409
```
| Assertion 'dst_p == byte_code_p + initializers_length' failed in parser_post_processing | https://api.github.com/repos/jerryscript-project/jerryscript/issues/1389/comments | 1 | 2016-10-07T09:54:07Z | 2016-11-01T14:58:46Z | https://github.com/jerryscript-project/jerryscript/issues/1389 | 181,628,311 | 1,389 |
[
"jerryscript-project",
"jerryscript"
] | As title .
| When I build /targets/zephyr , it shows `stdio.h: No such file or dictionary ` | https://api.github.com/repos/jerryscript-project/jerryscript/issues/1388/comments | 11 | 2016-10-07T08:01:40Z | 2016-10-13T06:11:30Z | https://github.com/jerryscript-project/jerryscript/issues/1388 | 181,606,919 | 1,388 |
[
"jerryscript-project",
"jerryscript"
] | Version: 9915307
OS: Linux-4.4.0-38-generic-x86_64-with-debian-stretch-sid
Load the attached test with debug jerry:
``` js
'use strict'
function undefined () {}
```
Output:
```
ICE: Assertion 'JERRY_CONTEXT (jmem_heap_allocated_size) == 0' failed at JERRY_PATH/jerry-core/jmem/jmem-heap.c(jmem_heap_finalize):177.
Error: ERR_FAILED_INTERNAL_ASSERTION
Aborted
```
Backtrace:
```
#0 0x00000000005c57c8 in raise ()
#1 0x00000000005c597a in abort ()
#2 0x000000000057d175 in jerry_port_fatal (code=ERR_FAILED_INTERNAL_ASSERTION) at JERRY_PATH/targets/default/jerry-port-default-fatal.c:54
#3 jerry_fatal (code=code@entry=ERR_FAILED_INTERNAL_ASSERTION) at JERRY_PATH/jerry-core/jrt/jrt-fatals.c:62
#4 0x000000000057d350 in jerry_assert_fail (assertion=<optimized out>, file=<optimized out>, function=<optimized out>, line=<optimized out>) at JERRY_PATH/jerry-core/jrt/jrt-fatals.c:86
#5 0x0000000000406255 in jmem_heap_finalize () at JERRY_PATH/jerry-core/jmem/jmem-heap.c:177
#6 jmem_finalize () at JERRY_PATH/jerry-core/jmem/jmem-allocator.c:62
#7 jerry_cleanup () at JERRY_PATH/jerry-core/jerry.c:191
#8 main (argc=<optimized out>, argv=<optimized out>) at JERRY_PATH/jerry-main/main-unix.c:509
```
| Assertion 'JERRY_CONTEXT (jmem_heap_allocated_size) == 0' failed in jmem_heap_finalize | https://api.github.com/repos/jerryscript-project/jerryscript/issues/1387/comments | 1 | 2016-10-05T19:37:41Z | 2016-10-20T07:19:06Z | https://github.com/jerryscript-project/jerryscript/issues/1387 | 181,245,926 | 1,387 |
[
"jerryscript-project",
"jerryscript"
] | The return value of `new Date(2016, 9, day)` (or any other leap year) is an invalid date object (`console.log(…) --> "Invalid Date"`) since the binary search in `ecma_date_make_day()` is erroneous.
We do have a working fix, covered by a brute-force unit-test that creates dates in the range from 1950...2050 (that previously failed for every day that follow the aforementioned pattern), but due to time constraints, I won't be able to put up a PR before mid next week.
If for some reason somebody needs a fix before, here's are possible fix:
```
@@ -781,13 +781,16 @@ ecma_date_make_day (ecma_number_t year, /**< year value */
delta = delta / 2;
}
- if (ecma_date_month_from_time (time + step) < mn)
+ time += step * ECMA_DATE_MS_PER_DAY;
+
+ /* Make sure time represents a day in the previous month */
+ if (ecma_date_month_from_time (time) >= mn)
{
- time += step * ECMA_DATE_MS_PER_DAY;
+ time -= ECMA_DATE_MS_PER_DAY * 31;
}
- /* Get the month's first day */
- while (ecma_date_month_from_time (time) < mn)
+ /* Get the month's first day, don't check for <= as the month wraps */
+ while (ecma_date_month_from_time (time) != mn)
{
time += ECMA_DATE_MS_PER_DAY;
}
```
Also, these are the tests, we verified this fix against:
```
+void test_rocky_api_util__ecma_date_make_day(void) {
+ cl_assert_equal_d(16861, ecma_date_make_day(2016, 2, 1)); // JerryScript's unit-test
+ cl_assert_equal_d(-25294, ecma_date_make_day(1900, 9, 1)); // not a leap year!
+ cl_assert_equal_d(17075, ecma_date_make_day(2016, 8, 31)); // Sept-31 == Oct-01
+ cl_assert_equal_d(17075, ecma_date_make_day(2016, 9, 1)); // Oct-01
+ cl_assert_equal_d(17045, ecma_date_make_day(2016, 8, 1)); // Sept-01
+}
+
+void test_rocky_api_util__ecma_date_make_day_list(void) {
+ int fail_count = 0;
+ for(int y = 1950; y < 2050; y++) {
+ for(int m = 0; m < 12; m++) {
+ for (int d = 1; d < 32; d++) {
+ const ecma_number_t result = ecma_date_make_day(y, m, d);
+ if (isnan(result)) {
+ printf("failed for %04d-%02d-%02d\n", y, m, d);
+ fail_count++;
+ } else {
+// printf("passed for %04d-%02d-%02d: %d\n", y, m, d, (int)result);
+ }
+ }
+ }
+ }
+ cl_assert_equal_i(0, fail_count);
+}
```
| new Date() fails for any date in October on leap years | https://api.github.com/repos/jerryscript-project/jerryscript/issues/1386/comments | 2 | 2016-10-03T02:54:24Z | 2016-12-16T13:27:08Z | https://github.com/jerryscript-project/jerryscript/issues/1386 | 180,554,556 | 1,386 |
[
"jerryscript-project",
"jerryscript"
] | IoT.js has `--jerry-memstat` option to profile JS heap usage, but it is broken now.
Jerry memory status is printed by `jerry_port_log(JERRY_LOG_LEVEL_DEBUG, ...)` function,
but under current jerryscript log level system, embedders cannot decide the log level.
| JerryScript embedder cannot see JerryScript memory status message | https://api.github.com/repos/jerryscript-project/jerryscript/issues/1383/comments | 7 | 2016-09-30T04:33:49Z | 2016-10-04T10:03:14Z | https://github.com/jerryscript-project/jerryscript/issues/1383 | 180,217,959 | 1,383 |
[
"jerryscript-project",
"jerryscript"
] | The ESP8266 target has been in a bad shape for a while. I've tried bringing it up to speed again and got to a point where it's building and linking. However, I have the handicap of not owning a real device. So, instead of opening a pull request, I open this issue and point to the branch that contains the current status (https://github.com/akosthekiss/jerryscript/tree/esp-revival) in the hope that someone can take it over from here.
Notes:
- I've used the integrated SDK for ESP8266 from https://github.com/pfalcon/esp-open-sdk, which seems to be a NOOS SDK, unlike the previous approach which seemed to have FreeRTOS dependencies.
- I'm really "flying blindfolded", following my best developer instincts, but I have no idea whether the rewritten code has any chance to work.
- The linked binary contains too much code for default linker script, so I had to use one that allowed more space for the irom region.
- The build system stops after the ELF file is generated, so no automated flashing supported for now.
- There are still FIXMEs in the code...
CC: @seanshpark @pfalcon @slaff ?
| ESP8266 target revival | https://api.github.com/repos/jerryscript-project/jerryscript/issues/1375/comments | 7 | 2016-09-23T15:00:07Z | 2019-01-02T10:00:30Z | https://github.com/jerryscript-project/jerryscript/issues/1375 | 178,899,672 | 1,375 |
[
"jerryscript-project",
"jerryscript"
] | When calling `.pop()` on a large array, an unsurprisingly large amount of heap is required to complete the call.
It seems like this call-chain ends up being the called more than`array.length` times, each time allocating 8 bytes of heap:
- `jmem_pools_alloc` <= 8 bytes alloc'd for every
- `ecma_alloc_collection_chunk`
- `ecma_append_to_values_collection`
- `ecma_op_object_get_property_names`
- `ecma_op_array_object_define_own_property`
- `ecma_op_object_define_own_property`
- ecma_op_general_object_put
- ecma_op_object_put
- ecma_builtin_array_prototype_helper_set_length
- ecma_builtin_array_prototype_object_pop
- ...
See also https://github.com/Samsung/jerryscript/blob/master/jerry-core/ecma/operations/ecma-array-object.c#L288
I also noted a local `uint32_t` array gets created that is sized to the number of property names (`array.length` + a couple more).
Would it be possible to reduce the required memory by avoiding the creation of the property names collection and additional local array? Any hints on doing so? Thanks.
| Heap requirement for Array.pop() gets very high for large arrays (proportional to the array's length) | https://api.github.com/repos/jerryscript-project/jerryscript/issues/1370/comments | 8 | 2016-09-21T12:50:45Z | 2017-01-31T13:26:43Z | https://github.com/jerryscript-project/jerryscript/issues/1370 | 178,337,533 | 1,370 |
[
"jerryscript-project",
"jerryscript"
] | The current implementation fails with following test case:
- `assert((0.995).toFixed(2) === "0.99");`
- `assert((9.995).toFixed(2) === "9.99");`
Reference:
- http://www.ecma-international.org/ecma-262/5.1/#sec-15.7.4.5
| "Number.prototype.toFixed()" is not properly implemented | https://api.github.com/repos/jerryscript-project/jerryscript/issues/1367/comments | 3 | 2016-09-20T10:48:53Z | 2017-08-09T23:27:28Z | https://github.com/jerryscript-project/jerryscript/issues/1367 | 178,027,141 | 1,367 |
[
"jerryscript-project",
"jerryscript"
] | We're working on adding an API to allow a .js app to respond to memory pressure (based on this proposal https://github.com/mounirlamouri/memory-pressure-api/blob/master/explainer.md).
While implementing this, we found ourselves adding 2 additional arguments to `jmem_free_unused_memory_callback_t`, such that the arguments become:
```
jmem_free_unused_memory_severity_t severity, /**< severity of the request */
size_t requested_size_bytes, /**< number of bytes to be allocated (excl. heap header struct) */
bool fatal_if_not_freed /**< run-time will terminate if not enough memory is freed */
```
Using the `requested_size_bytes`, our own callback can intelligently free up memory, for example by dropping as many caches to meet the requested size, but not more than needed. For example, it could drop caches starting with the oldest / least used / ... until the requested size is met. Without having this information, it would have to drop everything and hope it's enough (and still not know whether it is enough).
`fatal_if_not_freed` would be set to `true` if `jerry_port_fatal()` would get called after returning from the callback without having freed up enough memory. This is yet another piece of info that our callback can use to optimize the releasing of memory.
Any thoughts on these additions?
If you are interested, I can prepare a PR with the changes.
| Add requested size and "fatal if not freed" to jmem_free_unused_memory_callback_t | https://api.github.com/repos/jerryscript-project/jerryscript/issues/1366/comments | 1 | 2016-09-20T08:45:44Z | 2017-01-31T13:26:06Z | https://github.com/jerryscript-project/jerryscript/issues/1366 | 178,001,107 | 1,366 |
[
"jerryscript-project",
"jerryscript"
] | In our embedded home automation product we use a Lua based application framework. Now we are considering using JavaScript instead. We did some tests with Duktape, which is architecturally quite similar to Lua.
As the apps running on our platform may come from 3rd parties, we need to make sure that the scripts will no go wild and consume 100% of CPU, forever.
We solved that by making the apps callback based, i.e. the surrounding framework is calling Lua callbacks as a reaction to events. If the callback execution takes longer than allowed, the framework will force stop the script execution.
Is there a similar feature in JerryScript?
Thanks,
Istvan.
| Is there a way to stop a running script? | https://api.github.com/repos/jerryscript-project/jerryscript/issues/1356/comments | 7 | 2016-09-17T10:22:37Z | 2017-01-31T13:25:12Z | https://github.com/jerryscript-project/jerryscript/issues/1356 | 177,568,237 | 1,356 |
[
"jerryscript-project",
"jerryscript"
] | Is there any interest in swapping/adding tools to be written in JavaScript (node.js) instead of python?
The reason for this would be to remove the dependency on python for building. We've found that moving to a framework for developing with JavaScript pretty much guarantees the user has node installed, so moving to that for tools would remove the requirement to install python and friends for tooling.
I'm happy to swap the tools we have for JavaScript equivalents, but won't bother if it's of little interest.
| Consider JavaScript tools instead of python | https://api.github.com/repos/jerryscript-project/jerryscript/issues/1355/comments | 8 | 2016-09-16T20:28:19Z | 2016-09-19T17:02:07Z | https://github.com/jerryscript-project/jerryscript/issues/1355 | 177,513,566 | 1,355 |
[
"jerryscript-project",
"jerryscript"
] | Is it by chance planned to move to a MIT license? APACHE 2.0 is sort of a blocker for thinking about contributing or using it.
| Apache License 2.0 makes forking and integration a little hard to contribute and integrate into OSS | https://api.github.com/repos/jerryscript-project/jerryscript/issues/1354/comments | 13 | 2016-09-16T18:58:19Z | 2017-02-27T17:21:57Z | https://github.com/jerryscript-project/jerryscript/issues/1354 | 177,496,294 | 1,354 |
[
"jerryscript-project",
"jerryscript"
] | With my current development i am facing a problem in which i cannot allocate enough memory to load from the file system a program that should fit on JerryScript.
Arduino 101 has 80kb of RAM (divided in two MCUs, so only 55kb are for Zephyr and JS), 256kb of ROM and 1MB of slow FLASH memory.
I store several javascript programs of different sizes on that flash which i load and run one after the other.
The current approach to load a javascript program is to copy it to memory and then call the parser.
```
jerry_parse (const jerry_char_t *source_p, /**< script source */
size_t source_size, /**< script source size */
bool is_strict) /**< strict mode */
```
That means that the whole code has to be loaded in memory in one go, so i have to allocate it.
That memory will be freed instantly after the parser has finished.
I am not sure how feasible would be to have a simple API to pass a function that will do the reading for jerryscript and implement the `fread` functionality on the port, abstracting the reading from the memory to a callback would allow us to load from disk bigger programs and save memory usage.
| [Proposal] Parsing from Flash/Disk/Transaction | https://api.github.com/repos/jerryscript-project/jerryscript/issues/1352/comments | 10 | 2016-09-16T13:23:00Z | 2019-10-25T20:11:43Z | https://github.com/jerryscript-project/jerryscript/issues/1352 | 177,424,375 | 1,352 |
[
"jerryscript-project",
"jerryscript"
] | We are investigating the implementation of a _paging_ mechanism for jerryscript bytecode. The goal is to minimize the RAM overhead when executing snapshots by dynamically loading bytecode in fixed-size pages. By doing this we hope that we can execute snapshots that are at least as large as the amount of memory available to the Jerryscript interpreter, and set expectations on the amount of memory available to the executing application.
While planning out a potential implementation of this, I have run into some roadblocks that I would appreciate some help to overcome, those are listed at the end of this post. My thoughts on a potential implementation are as follows:
**Saving a snapshot**
- Add a new `CBC_CODE_FLAGS_SNAPSHOT` to each bytecode header. This would make it clear during execution whether we need to account for paging or not.
**Loading a snapshot**
- In `jerry_exec_snapshot()` and `snapshot_load_compiled_code()`, we want to avoid any modification of the snapshot, either in place or into newly allocated blocks.
- Linking of CBC Literals to the global literal table should be done as late as possible.
- With my understanding, this requires keeping around the literal map (`lit_map_p`) in RAM so that this can be done efficiently.
- In `snapshot_load_compiled_code()` we also do not want to recurse on template literals. The loading of this compiled code should be deferred until we need to create an object for these literals.
**Executing a snapshot**
- In order to enable paging of bytecode, rather than using a pointer to the bytecode, we would need to abstract this away to some concept of a program counter.
- In `vm_run()`, the `vm_frame_ctx_t` would be constructed with this program counter for `byte_code_p` and `byte_code_start_p`.
- In `vm_loop()` and the rest of the pipeline, we ask the underlying system to translate that program counter as necessary.
In my design investigation, I see many issues when looking through the execution stages. A few of the larger issues are:
- `vm_init_loop()` wants to create a literal object for all template literals in the frame. This requires our bytecode to be loaded, which we don't want to load until use. This is also a more general problem with the creation of function object which we do not want to use right away.
- Transparent pointers to `ecma_compiled_code_t` are used all over the place to access the bytecode, and we would like to abstract this away.
- Trying to maintain the common codepaths for paged and non-paged execution (directly from source, `eval()`, etc).
My thoughts on a good first step would be to only perform paging of the `CBC_INSTRUCTION_LISTS`. When loading the snapshot, we would load the literal tables as is currently done, but when setting `CBC_SET_BYTECODE_PTR` we would set a PC value in there and implement a translation step in `vm_loop()`. All of the literal tables would still have to sit in memory, but it would allow for paging of the bytecode itself.
Unfortunately, due to things that I've mentioned above I see no clear path to achieving paging of literal tables along with bytecode. It is quite likely that there are some things in Jerryscript that I have overlooked when trying to wrap my head around this, and I would appreciate any feedback on the approach and roadblocks I've mentioned here, as well as thoughts from the Jerryscript team on a feature of this nature.
Thank you
| [Proposal][Question] Run-time paging of bytecode | https://api.github.com/repos/jerryscript-project/jerryscript/issues/1351/comments | 4 | 2016-09-14T21:30:22Z | 2019-10-25T19:56:19Z | https://github.com/jerryscript-project/jerryscript/issues/1351 | 177,026,674 | 1,351 |
[
"jerryscript-project",
"jerryscript"
] | On master we are using Travis CI to do various checks around the DCO line in the commit messages. We need to enable the same functionality for the gh-pages branch as well.
| gh-pages branch needs an automatic DCO check | https://api.github.com/repos/jerryscript-project/jerryscript/issues/1342/comments | 1 | 2016-09-12T13:14:04Z | 2016-09-14T09:00:01Z | https://github.com/jerryscript-project/jerryscript/issues/1342 | 176,372,129 | 1,342 |
[
"jerryscript-project",
"jerryscript"
] | I would like to nominate Young-il Choi to becoma a JerryScript maintainer. He already has 10 patches and fixed several complicated bugs.
#1310 vm_op_set_value should be able to throw error when ecma_op_to_string throws
#1308 SplitMatch operation should not set its return array element with [[Put]]
#1301 Fix bug in for-in bytecode replacement
#1293 FunctionExpression name binding should be immutable
#1287 Eval called as a bound function should be indirect eval
#1285 [[DefaultValue]] should be called twice when setting object as Array length
#1283 Numbers should be permitted as property name in object literal
#1281 Make jerry shell more intuitive
#1279 Remove unnecessary empty value check code
#1276 Regexp.prototype.exec should generate return array with [[DefineOwnProperty]], not [[Put]]
| Nominating Young-il Choi (@yichoi) to become a JerryScript maintainer | https://api.github.com/repos/jerryscript-project/jerryscript/issues/1325/comments | 4 | 2016-09-06T12:23:30Z | 2016-09-19T13:43:01Z | https://github.com/jerryscript-project/jerryscript/issues/1325 | 175,233,462 | 1,325 |
[
"jerryscript-project",
"jerryscript"
] | I would like to nominate Robert Sipka to become a committer. He already has 39 patches:
#1317 Add missing jerry-libm include path to jerry-core target.
#1291 Remove unused JERRY_ENABLE_PRETTY_PRINTER from the build system.
#1263 Remove unused ecma-helpers functions
#1259 Remove needless toolchain files and variable settings.
#1238 Remove compact profile.
#1231 Complete the getting-started documentation after the build-system update.
#1230 Comment fixes which are left behind after the API update.
#1229 Change the CONFIG_ECMA_NUMBER_TYPE default value to CONFIG_ECMA_NUMBER_FLOAT64.
#1228 Build fix for RIOT target after the modifications of the build system
#1192 Re-thinking the build system to bring it more into line with the conventions.
#1159 Build fix for ALL_IN_ONE and COMPILER_DEFAULT_LIBC
#1133 Rename 'jerry_api_' prefix to 'jerry_' in the main-riotos.c file
#1130 Added target to compile RIOT-OS against jerryscript
#1115 Insert parameters between the pair of parentheses in the JERRY_MIN and JERRY_MAX definitions.
#1114 Use 'ecma_get_float_from_value' instead of 'ecma_get_number_from_value' in the ToString operation.
#1098 Optimising the ToString operation
#1066 Unify the condition form within the asserts
#1043 Initialize the timeval struct fields, because the gettimeofday() may not fill these.
#1040 Unified the commenting form of the internal properties and removed the unused types.
#1036 Improve the string descriptor.
#1033 Check whether the aligned pointers value of the internal properties can be stored directly
#1026 Store aligned pointers directly in ecma_value_t if it is possible.
#1020 Don't use pointer compression where the ecma_value can store pointer value directly.
#1014 Use 'ECMA_VALUE_CAN_STORE_UINTPTR_VALUE_DIRECTLY' instead of comparision with 'sizeof'
#1010 Set the correct pointer value in 'ecma_copy_ecma_string' function.
#1007 Remove the unused LIT_STRING_HASH_LAST_BYTES_COUNT define macro
#938 Warning fixes.
#935 Build fix for mbedk64f target
#921 Warning fix for ALL_IN_ONE.
#916 Add another argument for the JERRY_STATIC_ASSERT with the description of the assert statement.
#885 Warning fixes.
#876 Eliminate cpp featureset
#863 Use 'static inline' for function definitions that are in header files.
#862 Use simple types instead of reference types.
#861 Use type cast to avoid conversation error with C99 standard.
#860 Add forward declaration for mem_pool_chunk struct.
#859 Merge the js-parser and parser files
#851 Remove unnecessary variable length arrays.
#838 Fix the correct number of command line arguments check.
| Nominating Robert Sipka (@robertsipka) to become a JerryScript committer | https://api.github.com/repos/jerryscript-project/jerryscript/issues/1321/comments | 8 | 2016-09-05T12:13:16Z | 2016-09-19T13:43:16Z | https://github.com/jerryscript-project/jerryscript/issues/1321 | 175,058,822 | 1,321 |
[
"jerryscript-project",
"jerryscript"
] | suppose I have a huge struct to export to javascript, but i don't want javascript to modify the value.
seems now every value have to make a copy to vm, two copy in C and jerrry is a waste memory and it's hard to sync every value changed to jerry.
| how can i share a c variable to jerry readonly | https://api.github.com/repos/jerryscript-project/jerryscript/issues/1319/comments | 4 | 2016-09-05T03:01:23Z | 2016-09-06T05:52:22Z | https://github.com/jerryscript-project/jerryscript/issues/1319 | 174,987,261 | 1,319 |
[
"jerryscript-project",
"jerryscript"
] | I would like to nominate Tilmann Scheller (@tilmannOSG) to become a member of the Steering Committee. Tilmann has been leading the SRUK OSG JerryScript team for more than 1.5 years now and has been actively participating in the community through reviews and discussions and also contributed several patches in the last months. He helped organize the first JerryScript workshop earlier this year and has given several talks to promote JerryScript at conferences like FOSDEM and the OpenIoT Summit.
Any seconds?
Thanks in advance!
| Nominating Tilmann Scheller (@tilmannOSG) to become a JerryScript maintainer | https://api.github.com/repos/jerryscript-project/jerryscript/issues/1315/comments | 9 | 2016-09-01T13:55:42Z | 2016-09-06T01:28:41Z | https://github.com/jerryscript-project/jerryscript/issues/1315 | 174,530,146 | 1,315 |
[
"jerryscript-project",
"jerryscript"
] | Current code doesn't check the completion value of ecma_op_to_string correctly.
| vm_op_set_value should be able to throw error when ecma_op_to_string throws | https://api.github.com/repos/jerryscript-project/jerryscript/issues/1309/comments | 1 | 2016-08-31T12:05:57Z | 2016-08-31T13:29:16Z | https://github.com/jerryscript-project/jerryscript/issues/1309 | 174,255,873 | 1,309 |
[
"jerryscript-project",
"jerryscript"
] | `The charCodeAt() method returns an integer between 0 and 65535 representing the UTF-16 code unit at the given index (the UTF-16 code unit matches the Unicode code point for code points representable in a single UTF-16 code unit, but might also be the first code unit of a surrogate pair for code points not representable in a single UTF-16 code unit, e.g. Unicode code points > 0x10000). If you want the entire code point value, use codePointAt().`
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/charCodeAt
| Implement String.prototype.charCodeAt() | https://api.github.com/repos/jerryscript-project/jerryscript/issues/1305/comments | 8 | 2016-08-30T16:10:09Z | 2016-09-01T05:31:45Z | https://github.com/jerryscript-project/jerryscript/issues/1305 | 174,061,022 | 1,305 |
[
"jerryscript-project",
"jerryscript"
] | Below code fails on `JERRY_ASSERT` in debug mode,
(Assertion 'context_p->stack_depth == context_p->context_stack_depth' failed)
and returns wrong result in release mode.
("prop" is not assigned into array[0][0])
```
var array = [ [0] ];
var obj = { prop : "" };
var i = 0;
for (array[0][i] in obj)
/* do something */
assert(array[0][0] == "prop");
```
| for-in fails on some code | https://api.github.com/repos/jerryscript-project/jerryscript/issues/1300/comments | 1 | 2016-08-30T04:11:01Z | 2016-08-30T08:37:25Z | https://github.com/jerryscript-project/jerryscript/issues/1300 | 173,925,905 | 1,300 |
[
"jerryscript-project",
"jerryscript"
] | The 1.0 release is approaching, but before it happens, we might reconsider the name of the public API header of the JerryScript library. Now, it is called jerry-api.h, which is somewhat unusual. For an ordinary library user, writing `#include <jerry.h>` might be more intuitive.
The time of the release is close and the change might need adaptation at various places of the project, but we should think about it since whatever we choose will most probably stay with us for good (or, for a long time, at least), as the name of the header is also part of the fixed API.
(Note: I'm not proposing to change the name of jerry-port.h. That's OK, IMHO, as it is important for and used by port developers only.)
| Change name of public API header? | https://api.github.com/repos/jerryscript-project/jerryscript/issues/1297/comments | 5 | 2016-08-29T19:46:35Z | 2017-03-04T06:15:01Z | https://github.com/jerryscript-project/jerryscript/issues/1297 | 173,856,055 | 1,297 |
[
"jerryscript-project",
"jerryscript"
] | Currently, OS X Travis CI jobs may fail without turning the build status red. However, the landing of #1269 made OS X jobs pass. The question is whether we should "promote" OS X jobs to voting status?
Cons:
- OS X is not on the list of official development environments.
Pros:
- It can give a better test coverage. (E.g., the issue fixed by #1269 was core the memory subsystem, still, no test environment revealed it but OS X.)
- If the OS X jobs remain in the "allow failures" category, the current good status may degrade easily. (It is easy to focus on the general green/red status indicator at PRs and not check all CI jobs one-by-one.)
| Disallow failures of Travis CI jobs on OS X? | https://api.github.com/repos/jerryscript-project/jerryscript/issues/1296/comments | 6 | 2016-08-29T19:30:16Z | 2016-08-31T09:42:18Z | https://github.com/jerryscript-project/jerryscript/issues/1296 | 173,852,649 | 1,296 |
[
"jerryscript-project",
"jerryscript"
] | The CMakeLists of jerry-core calculates and defines `JERRY_BUILD_DATE`, `JERRY_COMMIT_HASH`, and `JERRY_BRANCH_NAME`. I recall having some const strings in the past with these values which allowed the identification of the build during runtime, but they are not used in the code anymore anywhere. Instead, we have `JERRY_API_*_VERSION` defined in jerry-api.h (`jerry -v` prints "Version: 1.0" now).
Shall we keep the build ID macros in the build system and re-introduce the variables (e.g., into jerry-api.h and jerry.c), or are they not needed anymore? (In which case the related logic could be removed from CMakeLists.)
| Unused build ID defines | https://api.github.com/repos/jerryscript-project/jerryscript/issues/1295/comments | 4 | 2016-08-29T16:39:29Z | 2016-09-07T09:31:16Z | https://github.com/jerryscript-project/jerryscript/issues/1295 | 173,817,133 | 1,295 |
[
"jerryscript-project",
"jerryscript"
] | As ECMAScript 5 section 13 describes,
FunctionExpression name identifier binding should be immutable.
Example code is :
```
(function funcExpr() {
assert(typeof funcExpr == "function");
funcExpr = 123;
assert(typeof funcExpr == "function");
})();
```
| Function expression name binding should be immutable | https://api.github.com/repos/jerryscript-project/jerryscript/issues/1292/comments | 0 | 2016-08-29T10:37:38Z | 2016-09-01T11:11:21Z | https://github.com/jerryscript-project/jerryscript/issues/1292 | 173,745,643 | 1,292 |
[
"jerryscript-project",
"jerryscript"
] | `eval` called as a bound function shoud be indirect eval.
```
var builtinEval = eval;
var eval = builtinEval.bind(undefined, "context");
var context = "global";
function checkIfDirectEval() {
var context = "function";
return (eval() == "function");
}
```
| Eval called as a bound function shoud be indirect eval | https://api.github.com/repos/jerryscript-project/jerryscript/issues/1286/comments | 0 | 2016-08-25T09:31:07Z | 2016-08-26T09:22:53Z | https://github.com/jerryscript-project/jerryscript/issues/1286 | 173,155,773 | 1,286 |
[
"jerryscript-project",
"jerryscript"
] | In Spec 15.4.5.1, both step 3.c and 3.d must call [[DefaultValue]] internal method.
(step 3.c : ToUint32() -> ToNumber() -> ToPrimitive() -> [[DefaultValue]],
step 3.d : ToNumer() -> ToPrimitive()-> [[DefaultValue]])
And considering the side effect of [[DefaultValue]], which calls 'toString' or 'valueOf' operation,
It should not be simplified like : https://github.com/Samsung/jerryscript/blob/master/jerry-core/ecma/operations/ecma-array-object.c#L201.
Test case is:
```
var count = 0;
[].length = { valueOf: function() { count++; return 1; } };
assert(count == 2);
```
| [[DefineOwnProperty]] of "length" property of Array objects doesn't work correctly. | https://api.github.com/repos/jerryscript-project/jerryscript/issues/1284/comments | 0 | 2016-08-25T03:09:00Z | 2016-08-26T09:22:20Z | https://github.com/jerryscript-project/jerryscript/issues/1284 | 173,104,557 | 1,284 |
[
"jerryscript-project",
"jerryscript"
] | Property name can be one of : IdentifierName, StringLiteral, NumericLiteral,
as stated in ECMAScript 5.1 section 11.1.5.
But current jerryscript doesn't accept numeric literal as valid property name.
```
var obj = { get 0() { }};
obj[0];
```
| Numeric literals cannot be used as property name in object literal | https://api.github.com/repos/jerryscript-project/jerryscript/issues/1282/comments | 0 | 2016-08-25T02:53:09Z | 2016-08-26T09:21:44Z | https://github.com/jerryscript-project/jerryscript/issues/1282 | 173,103,061 | 1,282 |
[
"jerryscript-project",
"jerryscript"
] | REPL mode of jerry shell doesn't print unhandled exception.
And when read_file fails in main-unix.c, the execution doesn't stop right away.
| REPL mode of jerry shell doesn't print unhandled exception | https://api.github.com/repos/jerryscript-project/jerryscript/issues/1280/comments | 0 | 2016-08-25T02:48:25Z | 2016-08-26T11:18:17Z | https://github.com/jerryscript-project/jerryscript/issues/1280 | 173,102,592 | 1,280 |
[
"jerryscript-project",
"jerryscript"
] | In trying to do some performance testing I noted that when trying to build a large string it gets silently truncated to zero bytes:
```
var txt = 'xy';
for (var i = 0; i < 20; i++) {
print(i, txt.length);
txt = txt + txt;
}
print(txt.length);
```
This should print:
```
0 2
1 4
2 8
3 16
4 32
5 64
6 128
7 256
8 512
9 1024
10 2048
11 4096
12 8192
13 16384
14 32768
15 65536
16 131072
17 262144
18 524288
19 1048576
2097152
2097152
```
But prints:
```
0 2
1 4
2 8
3 16
4 32
5 64
6 128
7 256
8 512
9 1024
10 2048
11 4096
12 8192
13 16384
14 32768
15 0
16 0
17 0
18 0
19 0
0
```
This is probably caused by an internal limitation on string length? What was confusing and is a bit dangerous is that the result is silently truncated rather than triggering a `RangeError`.
What seems to happen is an overflow in the length field because the result is not always zero length. For example:
```
x = 'x'; while (x.length < 65530) x += 'y';
print(x.length);
x += 'dummydummy';
print(x.length);
print(x);
```
This prints:
```
65530
4
xyyy
```
So that the contents are from the beginning of the original string before appending.
Assuming this is a simple 16-bit overflow, the string append processing should check for overflow and cause a RangeError if there would be an overflow. Without the error the behavior is a bit dangerous; in performance testing it caused the test to run but with incorrect inputs, for instance.
| Large string truncated without error | https://api.github.com/repos/jerryscript-project/jerryscript/issues/1274/comments | 3 | 2016-08-18T11:13:35Z | 2016-08-23T17:15:58Z | https://github.com/jerryscript-project/jerryscript/issues/1274 | 171,876,815 | 1,274 |
[
"jerryscript-project",
"jerryscript"
] | I suppose this must already be well-understood, but I left a test with a counter running over the weekend, and it got stuck at 16777216. Doing 16777216 + 1 returns 16777216. I discovered this is due to the resolution limitation of the 32-bit float.
I see in the JerryScript internals docs that this is an intentional decision, following one of the two formats from IEEE 754. However, when I look here it seems to suggest that ECMAScript is supposed to use the 64-bit format.
http://www.ecma-international.org/ecma-262/5.1/#sec-4.3.19
It sure seems like 16 million is pretty low for math to stop working. Is this seen as acceptable and a limitation JerryScript programmers should be aware of?
| Number as a 32-bit float | https://api.github.com/repos/jerryscript-project/jerryscript/issues/1270/comments | 4 | 2016-08-16T15:46:57Z | 2016-08-23T06:49:05Z | https://github.com/jerryscript-project/jerryscript/issues/1270 | 171,449,313 | 1,270 |
[
"jerryscript-project",
"jerryscript"
] | It wasn't obvious to me the resulting string for APIs like `jerry_string_to_char_buffer()` isn't actually UTF-8 encoded, but CESU-8. (FWIW, I understand and agree with the rationale behind using CESU-8 vs UTF-8 (as per the discussion in https://github.com/Samsung/jerryscript/pull/616).)
It also seems like in the implementation itself, functions are sometimes labeled with `..._utf8_...`, but in reality use CESU-8 (for example `ecma_string_copy_to_utf8_buffer()`).
I would like to suggest 3 things:
1. Rename all symbols (functions names, types, etc) that "falsely advertise" that they are dealing with UTF-8. For people that are new to the project and don't know about the recent transition from using UTF-8 to CESU-8 internally, this is very confusing.
2. Clarify in the docstrings with each API that can hand back/copy out a string to the client of JerryScript, is CESU-8 encoded, and for APIs that use strings as input, specify that they need to be CESU-encoded.
3. Over time, add APIs/wrappers for converting between CESU-8 <=> UTF-8.
| Rename symbols from `...utf8...` to `...cesu8...` | https://api.github.com/repos/jerryscript-project/jerryscript/issues/1268/comments | 8 | 2016-08-15T13:36:32Z | 2017-01-31T13:27:24Z | https://github.com/jerryscript-project/jerryscript/issues/1268 | 171,171,549 | 1,268 |
[
"jerryscript-project",
"jerryscript"
] | While applying new build system, I get this error when compiling `esp8266/user` folder.
```
make[1]: Entering directory '/home/maxwell/usbdisk/x86/harmony/jerryscript/targets/esp8266/user'
Makefile:42: *** Too many open files. Stop.
make[1]: Leaving directory '/home/maxwell/usbdisk/x86/harmony/jerryscript/targets/esp8266/user'
/opt/Espressif/ESP8266_SDK/Makefile:317: recipe for target '.subdirs' failed
make: *** [.subdirs] Error 2
```
commit https://github.com/Samsung/jerryscript/commit/23db8b5544133cc5791e513300eb7bfd2adb1d3b#diff-93f1dba5fbae34b11a322c6bd3269549
seems the reason.
```
INCLUDES := $(INCLUDES) -I $(PDIR)include
-INCLUDES += -I ./ -I ../include
-PDIR := ../$(PDIR)
+INCLUDES += -I ./ -I ../include -I../../../
sinclude $(PDIR)Makefile
```
`PDIR := ../$(PDIR)` line should not be removed.
I'll make a PR fixing this error and for the new build system.
| [esp8266] build failure | https://api.github.com/repos/jerryscript-project/jerryscript/issues/1264/comments | 2 | 2016-08-13T06:44:30Z | 2017-01-31T13:22:31Z | https://github.com/jerryscript-project/jerryscript/issues/1264 | 170,996,412 | 1,264 |
[
"jerryscript-project",
"jerryscript"
] | After I analyze the memory management code of jerryscript, I've got a question about WHITE_GRAY GC pool and BLACK GC pool.
According to the code, the objects in WHITE_GRAY pool are gonna be swept after visiting process and ones in BLACK pool remain in memory. However, once gc process done, BLACK pool is converted to WHITE_GRAY pool as below in order to check them at later GC.
```
[jerry-core/ecma/base/ecma-gc.c (ecma_gc_run:577)]
/* Unmarking all objects */
ecma_object_t *black_objects = JERRY_CONTEXT (ecma_gc_objects_lists) [ECMA_GC_COLOR_BLACK];
JERRY_CONTEXT (ecma_gc_objects_lists)[ECMA_GC_COLOR_WHITE_GRAY] = black_objects;
JERRY_CONTEXT (ecma_gc_objects_lists) [ECMA_GC_COLOR_BLACK] = NULL;
```
**Question is here**. It seems insufficient to regard current jerryscript GC as a generational GC, even though it runs GC in SEVERITY_LOW condition only if newly allocated objects are more than threshold and it only checks WHTE_GRAY pool in GC process because **there's no object in BLACK pool at start of GC**.
**What if the objects in BLACK pool is not moved to WHITE_GRAY pool after each GC so as not to check older objects in the memory at later GC?** I think it makes the GC more generational, despite of no assurance about perf and memory usage before check. :)
If I understood the GC process wrongly, please fix me.
| [Q & Suggestion] Does jerryscript run generational GC? | https://api.github.com/repos/jerryscript-project/jerryscript/issues/1262/comments | 2 | 2016-08-12T04:18:42Z | 2017-01-31T13:24:29Z | https://github.com/jerryscript-project/jerryscript/issues/1262 | 170,796,277 | 1,262 |
[
"jerryscript-project",
"jerryscript"
] | The web site jerryscript.net has bad links giving 404 errors. For example the Internals link send you to http://jerryscript.net/jerryscript/internals/ instead of http://jerryscript.net/internals/ ditto for all other links on the home page.
| jerryscript.net links all give 404 errors | https://api.github.com/repos/jerryscript-project/jerryscript/issues/1248/comments | 4 | 2016-08-06T18:12:04Z | 2016-11-16T08:02:48Z | https://github.com/jerryscript-project/jerryscript/issues/1248 | 169,758,933 | 1,248 |
[
"jerryscript-project",
"jerryscript"
] | Would it make sense to have wrappers for `ecma_make_nan_value()` and `ecma_number_make_infinity()` ?
| Add jerry_... APIs to create NaN and inf | https://api.github.com/repos/jerryscript-project/jerryscript/issues/1247/comments | 7 | 2016-08-05T13:42:44Z | 2016-08-20T08:17:23Z | https://github.com/jerryscript-project/jerryscript/issues/1247 | 169,610,078 | 1,247 |
[
"jerryscript-project",
"jerryscript"
] | I am trying to use JerryScript on ESP8266 device. This device has around 40K free. My app, without JerryScript compiled in it, has around 35032 bytes free heap. Just by adding JerryScript with CONFIG_MEM_HEAP_AREA_SIZE = 10K my free heap decreased to 8976 bytes. I tried to use all compact options and decrease the CONFIG_MEM_HEAP_AREA_SIZE to 4K and ended up with 14680 bytes free heap. Decreasing CONFIG_MEM_HEAP_AREA_SIZE further down did not bring any improvement.
Which means that minimum initial heap usage from JerryScript for me was 35032 - 14680 = 20352 bytes.
My question is - are there other options to decrease the initial heap usage from JerryScript? Why JerryScript is reserving so much initial memory? Is it possible to decrease the initial heap size and expand it when it is needed?
| Question: Ways to decrease the initial heap consumption? | https://api.github.com/repos/jerryscript-project/jerryscript/issues/1224/comments | 14 | 2016-07-24T17:10:17Z | 2017-01-31T13:24:06Z | https://github.com/jerryscript-project/jerryscript/issues/1224 | 167,243,019 | 1,224 |
[
"jerryscript-project",
"jerryscript"
] | Hi,
I would like to nominate Somang Park(@somang-park) to become a member of [Steering Committee](https://github.com/Samsung/jerryscript/wiki/Governance#steering-committee), as the main role of Community Strategy Director. She already work for JerryScript project as a community maintainer in Samsung Open Source Group and willing to actively expand her work to make JerryScript be a one of successful public open source project in the world.
Here attaches her letters for joining steering committee.
Evgeny Gavrin(@egavrin), Zoltan Herczeg(@zherczeg) and all the contributors of JerryScript, I'm asking your opinion respectfully.
Thank you in advance.
——
Letters from Somang Park
> Hi, I'm responsible for discovering the new open source projects from Samsung. Also I'm fully involved in launching number of new open source projects and supporting open source communities including PR for projects.
> Now I'm concentrating on the Jerryscript.
>
> I've been encouraging the participant company's activity for JerryScript so that it can be further growth as a representative technology of JavaScript in IoT and Wearables finally. For this, I've discussed with the companies which are already interested in JerryScript such as Intel, Pebble, ARM, and have plan putting it in Open Source Foundation (Now, It's jQuery Foundation but, might be changed to cover not only jQuery but also whole JavaScript technology) to include a large number of developers and echo.
>
> Currently, JerryScript is under the mentorship program of jQuery Foundation. I'm willing to make JerryScript more neutral project. So after graduating the mentorship program and satisfying the condition for re-launching the project in jQuery Foundation, JerryScipt will move out of "github/samsung".
>
> From very first step of this plan, I've working on with Min-Jung Kim(@minjung978), the former community maintainer of JerryScript, who successfully conducted the first [JerryScript Public Workshop](https://github.com/Samsung/jerryscript/wiki/JerryScriptWorkshopApril2016) on this April.
> I've made plan and shared with other companies, also prepared to be participate in the foundation, supported the mentorship program and all process. I'll manage overall contents or issues which can be occurred during the mentorship program such as IP, Infra, Governance including cooperation with partners in future as a steering committee member.
> So community of users and contributors through evangelism and marketing efforts grows and gets stability by ensuring continuity through supporting efforts.
>
> I expect my role makes easier to operate project with a number of member companies, be accepted our(JerryScript side) requests in community, gather members, and arrange effective PR in representative open source events such as Node.js Interactive, OSCON or ApacheCon.
>
> Thank you,
> Somang Park
| Nominating Somang Park for JerryScript Steering Committee Member | https://api.github.com/repos/jerryscript-project/jerryscript/issues/1223/comments | 6 | 2016-07-22T07:20:32Z | 2016-07-29T02:26:22Z | https://github.com/jerryscript-project/jerryscript/issues/1223 | 166,985,160 | 1,223 |
[
"jerryscript-project",
"jerryscript"
] | When implementing Promises, I found that a JS script will not run at all if there is a native function named "catch". For promises, this is needed in order to by syntactically correct e.g.
mypromise.then(function(ret) {
. . .
}).**catch**(function(error) {
. . .
});
| Native functions cannot be named "catch" | https://api.github.com/repos/jerryscript-project/jerryscript/issues/1221/comments | 5 | 2016-07-21T15:56:13Z | 2016-07-21T18:34:13Z | https://github.com/jerryscript-project/jerryscript/issues/1221 | 166,855,477 | 1,221 |
[
"jerryscript-project",
"jerryscript"
] | Hi,
I would like to nominate Dániel Bátyai to become a JerryScript maintainer. He already have reviewed 73 pull requests, and landed 56 patches. The list of these follows.
Reviews:
#1208 Remove arbitrary case conversion tests.
#1204 Improve resolve reference.
#1203 Minor fixes in API reference
#1201 Implement IO port API
#1200 Improve the construction of "length" built-in strings.
#1197 Update API reference to the new API
#1195 More gc-friendly property hashmap allocation.
#1192 WIP: Re-thinking the build system to bring it more into line with the conv…
#1189 Simplify string management.
#1186 Small performance optimizations of the interpreter.
#1183 Optimize comparison in VM.
#1177 Jerry API update
#1173 Optimize arithmetic in VM.
#1170 Sixteen bit hash for strings
#1169 Fix memcpy return value.
#1168 Optimize literal storage.
#1167 Check error values in API functions
#1166 Documentation is moved to docs.
#1165 Four byte optimized memcpy.
#1164 Remove ECMA_OBJECT_TYPE_BUILT_IN_FUNCTION to free an object type.
#1163 Create extended objects instead of internal properties.
#1161 Add new API function
#1160 Update API reference
#1157 Update API examples
#1154 Remove LIST_LAZY_PROPERTY_NAMES_ROUTINE_NAME macro function.
#1150 Add conversion API functions
#1149 Improve builtin-property construction.
#1147 Update jerry API
#1142 Remove string copy
#1140 Rename ecma_is_value_error to ECMA_IS_VALUE_ERROR.
#1138 Use 'ecma_value_t' in Jerry API
#1137 Rename try_give_memory_back to a better free_unused_memory.
#1136 Improve get-value
#1135 Optimize put result phase in the interpreter.
#1132 Parser improvements.
#1127 Move branches into a separate interpreter group.
#1126 Optimize add operation.
#1124 Update API functions
#1122 Remove last_completion_value.
#1121 Reduce the default LCache size by half. From 4Kbyte to 2Kbyte.
#1120 Improve equal operations.
#1119 Modify the usage of ecma_string_to_utf8_string()
#1116 Optimize LCache operation.
#1113 Improve empty checks of ecma string
#1107 Optimize uint32 hash computation.
#1105 Remove ECMA_STRING_CONTAINER_HEAP_NUMBER.
#1104 Optimize conditional jumps.
#1101 Code simplification
#1100 Replace multiple boolean arguments to one uint8_t.
#1093 Fix value passing in JerryScript
#1039 Introduce integer ecma-value representation to reduce the double allocations
#1034 Add context support for memory allocator
#976 Remove MEM_HEAP_PTR_64 macro
#635 Remove ECMA_STRING_CONTAINER_CONCATENATION type from ecma_string
#633 Check setTime call's this_arg
#631 Fix tr arguments in the Makefile bug infrastructure
#629 Check if there is really an old bytecode when recompiling a regexp
#606 Global object unescape routine development ecma builtins normal
#569 Fix undefined initialValue handling in Array.prototype.reduce and reduceRight function
#562 Fix the this argument passed to string replace callbacks.
#543 Use ecma-collection in JSON.
#512 Fix regexp match on right brackets
#467 Make parseInt unicode tolerant
#455 Implement Date.prototype.toJSON()
#452 Improve Infinity handling in Math.min/max methods
#443 Implement String.prototype.match
#430 Fix parseInt when passing empty string
#315 Fix ecma_op_array_object_define_own_property
#199 Implement Date object helper functions
#124 Implement Object.keys and Object.getOwnPropertyNames
#99 Implement Object.prototype.propertyIsEnumerable().
#96 Implement Array.prototoype.toLocaleString()
#86 Implement Array.prototype.splice().
#38 Implement Array.prototype.join
He also did major contributions to JerryScript such as creating a memory allocator or CESU-8 string optimizations:
Pull requests:
#1207 Optimize ecma_string_get_array_index
#1024 Add some asserts to check heap structure consistency
#1004 Print unhandled errors in REPL mode
#1000 Add help flag and usage to UNIX Jerry standalone.
#999 Fix syscall assertion when input file does not exist
#874 New Allocator and improved String handling.
#678 Use heap allocated buffer instead of char collection in ecma_strings
#616 Change internal encoding of strings to CESU-8
#579 Implement AnnexB RegExp.prototype.compile()
#568 Fix undefined fromIndex in Array.prototype.lastIndexOf()
#567 Parse integer numbers from back to front.
#554 Fix RegExp literal parsing
#552 Fix invalid control escapes during RegExp parsing.
#547 Fix bound function length
#539 Trim whitespace from argument names in Function constructor
#527 Fix assertion fails in parseInt()
#518 Fix array index normalize in case index is negative zero
#493 Use ToNumber when checking lastIndex during RegExp exec()
#492 Fix RegExp constructor when called with undefined arguments
#481 Handle Unicode characters in parseFloat()
#462 Fix push() and unshift() in case result length is larger than UINT_MAX
#458 Use [[DefineOwnProperty]] in Array builtins where necessary.
#457 Fix Array index normalize helper when index is large.
#450 Fix Array.prototype.toLocaleString() when toLocaleString returns non-string.
#449 Fix buffer size calculation in Number.prototype.toString()
#441 Fix Number.prototype.toString() when radix is undefined.
#434 Returned array of Array.prototype.map() should have same length as original.
#427 Fix leak in Array.prototype.indexOf()
#415 Fix Array.prototype.concat() when 'this' is not an array.
#400 Fix Array.prototype.concat() argument array length.
#382 Number.prototype functions should throw TypeError if 'this' is not number.
#335 Array.prototype.sort() should sort in place.
#326 Add length property to Array constructor
#325 Fix [[Class]] property of builtin constructors
#306 Implement printing in the specified radix for Number.prototype.toString().
#298 Fix Number.prototype.toFixed if argument is outside int32 range
#238 Implement Number.prototype.toPrecision()
#225 Fix buffer size in Number.prototype.toFixed()
#224 Implement Number.prototype.toExponential()
#207 Implement printing in the specified radix for Number.prototype.toString().
#190 Implement parseFloat()
#167 Implement parseInt()
#98 Implemented Array.prototype.concat()
#95 Implemented Array.prototype.sort()
#90 Implemented Array.prototype.reverse()
#89 Implemented Array.prototype.filter()
#85 Implemented Array.prototype.some()
#84 Implemented Array.prototype.every()
#77 Implemented Array.prototype.lastIndexOf().
#39 Implemented Array.prototype.forEach().
#26 Implemented Array.prototype.indexOf().
#25 Implemented Array.prototype.unshift().
#24 Array.prototype.shift().
#23 Implemented [[HasProperty]] for Objects.
#22 Implemented Array.prototype.pop().
(Note: this is a retroactive nomination)
| Nominating Dániel Bátyai (dbatyai) for JerryScript Maintainer status | https://api.github.com/repos/jerryscript-project/jerryscript/issues/1220/comments | 6 | 2016-07-20T13:55:53Z | 2016-08-01T11:20:08Z | https://github.com/jerryscript-project/jerryscript/issues/1220 | 166,587,384 | 1,220 |
[
"jerryscript-project",
"jerryscript"
] | Now that the jerryscript.net domain has been enabled the web site is working again. However there seem to be some path issues with the web site e.g. if you access it through jerryscript.net the browser can't find the CSS style sheet anymore.
Visiting http://jerryscript.net should show exactly the same web site as is shown when visiting through http://samsung.github.io/jerryscript.
| JerryScript web site broken | https://api.github.com/repos/jerryscript-project/jerryscript/issues/1218/comments | 7 | 2016-07-20T07:46:33Z | 2016-07-28T06:30:41Z | https://github.com/jerryscript-project/jerryscript/issues/1218 | 166,517,740 | 1,218 |
[
"jerryscript-project",
"jerryscript"
] | I tried to build JerryScript for ESP8266 by following the [readme](https://github.com/Samsung/jerryscript/blob/master/targets/esp8266/readme.md) file. I have setup the ESP8266 toolchain but when I try to compile JerryScript I end up with the following error:
```
[ 0%] Building C object CMakeFiles/release.external-entry.dir/targets/esp8266/source/jerry_extapi.c.obj
/xyz/dev/jerryscript/targets/esp8266/source/jerry_extapi.c:19:30: fatal error: jerry-core/jerry.h: No such file or directory
#include "jerry-core/jerry.h"
^
compilation terminated.
```
I could not find the `jerry.h` file in the project. Any ideas what am I doing wrong?
| Building JerryScript for ESP8266 fails with: Missing jerry.h | https://api.github.com/repos/jerryscript-project/jerryscript/issues/1211/comments | 1 | 2016-07-16T08:02:17Z | 2016-07-27T13:52:40Z | https://github.com/jerryscript-project/jerryscript/issues/1211 | 165,918,315 | 1,211 |
[
"jerryscript-project",
"jerryscript"
] | Nuttx target isn't working. It must be updated to the latest API and improve the how-to documentation.
| Fix NuttX target | https://api.github.com/repos/jerryscript-project/jerryscript/issues/1202/comments | 3 | 2016-07-13T15:24:26Z | 2021-01-24T07:14:30Z | https://github.com/jerryscript-project/jerryscript/issues/1202 | 165,349,308 | 1,202 |
[
"jerryscript-project",
"jerryscript"
] | ###### Jerry version:
```
Checked revision: 9bce5b0
Build: debug.linux
```
###### OS:
```
Ubuntu 15.10, x86_64
```
###### Test case:
``` javascript
Array.prototype.push("");
try { constructor.freeze(Array.prototype)() } catch($){}
new RegExp().constructor.prototype.exec();
```
###### Backtrace:
```
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):72.
Error: ERR_FAILED_INTERNAL_ASSERTION
Program received signal SIGABRT, Aborted.
0x0000000000476525 in syscall_2 () at jerryscript/jerry-libc/target/posix/jerry-asm.S:60
60 SYSCALL_2
#0 0x0000000000476525 in syscall_2 () at jerryscript/jerry-libc/target/posix/jerry-asm.S:60
#1 0x000000000040037f in raise (sig=6) at jerryscript/jerry-libc/target/posix/jerry-libc-target.c:92
#2 0x0000000000400351 in abort () at jerryscript/jerry-libc/target/posix/jerry-libc-target.c:78
#3 0x000000000041474b in jerry_port_fatal (code=ERR_FAILED_INTERNAL_ASSERTION) at jerryscript/targets/default/jerry-port-default-fatal.c:54
#4 0x000000000041438c in jerry_fatal (code=ERR_FAILED_INTERNAL_ASSERTION) at jerryscript/jerry-core/jrt/jrt-fatals.c:68
#5 0x00000000004143d3 in jerry_assert_fail (assertion=0x48afa8 "ECMA_STRING_IS_REF_EQUALS_TO_ONE (string_p)", file=0x48af48 "jerryscript/jerry-core/ecma/base/ecma-literal-storage.c", function=0x47cad0 <__func__.2820.lto_priv.112> "ecma_free_string_list", line=72) at jerryscript/jerry-core/jrt/jrt-fatals.c:95
#6 0x00000000004317f1 in ecma_free_string_list (string_list_p=0x89d3a8 <jmem_heap+808>) at jerryscript/jerry-core/ecma/base/ecma-literal-storage.c:72
#7 0x000000000043186d in ecma_finalize_lit_storage () at jerryscript/jerry-core/ecma/base/ecma-literal-storage.c:89
#8 0x00000000004323d1 in ecma_finalize () at jerryscript/jerry-core/ecma/base/ecma-init-finalize.c:58
#9 0x0000000000475d44 in jerry_cleanup () at jerryscript/jerry-core/jerry.c:196
#10 0x0000000000475c79 in main (argc=3, argv=0x7fffffffd358) at jerryscript/main-unix.c:500
```
| Assertion 'ECMA_STRING_IS_REF_EQUALS_TO_ONE (string_p)' failed in ecma_free_string_list | https://api.github.com/repos/jerryscript-project/jerryscript/issues/1196/comments | 1 | 2016-07-12T08:28:30Z | 2016-08-29T17:25:22Z | https://github.com/jerryscript-project/jerryscript/issues/1196 | 165,021,406 | 1,196 |
[
"jerryscript-project",
"jerryscript"
] | Add regression tests for recently closed fuzzer bugs | https://api.github.com/repos/jerryscript-project/jerryscript/issues/1193/comments | 2 | 2016-07-08T12:24:28Z | 2016-11-25T06:26:51Z | https://github.com/jerryscript-project/jerryscript/issues/1193 | 164,520,037 | 1,193 |
|
[
"jerryscript-project",
"jerryscript"
] | I have been trying to add external function handlers but without success. I saw that there is already an external function declared in main-unix.c. When i write a small test script to check that the assert function works it also gives me "uncaughtException: ReferenceError" (same as when I try to add an external function myself).
I am building and testing this on Ubuntu 14.04 and jerryscript is built and run through iotjs as a dependence.
Am I doing something wrong or is there some issues with the jerry_create_external_function?
| main-unix.c on Ubuntu: jerry_create_external_function assert not reachable (reference error) | https://api.github.com/repos/jerryscript-project/jerryscript/issues/1188/comments | 7 | 2016-07-06T07:14:47Z | 2016-07-06T13:41:54Z | https://github.com/jerryscript-project/jerryscript/issues/1188 | 164,013,282 | 1,188 |
[
"jerryscript-project",
"jerryscript"
] | In the Travis CI ARM build of https://github.com/Samsung/jerryscript/pull/1182, the following test failed:
[37/266] build/bin/debug.linux/jerry --exec-snapshot date-tostring.t9Fkk0uDHJ.snapshot: FAIL (1)
Script error: assertion failed
The full log is available at https://travis-ci.org/Samsung/jerryscript/jobs/142165136.
It's pretty much impossible that https://github.com/Samsung/jerryscript/pull/1182 actually caused this failure since it only changed a Zephyr-specific Makefile and a README, e.g. no code changes.
This is either a recently introduced non-deterministic regression or an issue with our test harness.
| Test failure: jerry --exec-snapshot date-tostring triggers assertion | https://api.github.com/repos/jerryscript-project/jerryscript/issues/1184/comments | 9 | 2016-07-04T11:19:49Z | 2018-02-16T10:52:04Z | https://github.com/jerryscript-project/jerryscript/issues/1184 | 163,656,154 | 1,184 |
[
"jerryscript-project",
"jerryscript"
] | $ make prerequisites
```
Prerequisites setup failed. See /home/fmj/osokay/jerryscript/build/prerequisites/prerequisites.log for details.
Makefile:396: recipe for target 'prerequisites' failed
make: *** [prerequisites] Error 1
```
$ cat ./build/prerequisites/prerequisites.log
```
Setting up stm32f3 prerequisite
--2016-07-01 20:29:16-- http://www.st.com/st-web-ui/static/active/en/st_prod_software_internet/resource/technical/software/firmware/stm32f3discovery_fw.zip
Resolving www.st.com (www.st.com)... 114.80.90.218, 114.80.90.216
Connecting to www.st.com (www.st.com)|114.80.90.218|:80... connected.
HTTP request sent, awaiting response... 301 Moved Permanently
Location: http://www.st.com/web/en/st_prod_software_internet/resource/technical/software/firmware/stm32f3discovery_fw.zip [following]
--2016-07-01 20:29:16-- http://www.st.com/web/en/st_prod_software_internet/resource/technical/software/firmware/stm32f3discovery_fw.zip
Reusing existing connection to www.st.com:80.
HTTP request sent, awaiting response... 404 Not Found
2016-07-01 20:29:16 ERROR 404: Not Found.
Failed to setup 'stm32f3' prerequisite. Cannot download 'http://www.st.com/st-web-ui/static/active/en/st_prod_software_internet/resource/technical/software/firmware/stm32f3discovery_fw.zip' zip archive.
```
## Test2
i use browser download the url is error too.
## Test3
I use curl . begin 301. Then 404.
```
curl http://www.st.com/st-web-ui/static/active/en/st_prod_software_internet/resource/technical/software/firmware/stm32f3discovery_fw.zip
```
## Test4
Because I come from China. I use the lantern or no Lantern is Error Too.
| I can't download the stm32f3discovery_fw.zip | https://api.github.com/repos/jerryscript-project/jerryscript/issues/1180/comments | 6 | 2016-07-01T12:33:12Z | 2016-08-19T18:47:26Z | https://github.com/jerryscript-project/jerryscript/issues/1180 | 163,386,295 | 1,180 |
[
"jerryscript-project",
"jerryscript"
] | I've got a compile error in the vm.c with GCC 6.x:
```
jerry-core/vm/vm.c: In function ‘vm_loop’:
jerry-core/vm/vm.c:1222:57: error: left shift of negative value [-Werror=shift-negative-value]
if (int_value <= (ECMA_INTEGER_NUMBER_MIN << ECMA_DIRECT_SHIFT))
^~
cc1: all warnings being treated as errors
```
| Compile error in vm.c with GCC 6 | https://api.github.com/repos/jerryscript-project/jerryscript/issues/1174/comments | 0 | 2016-06-30T08:33:54Z | 2016-11-25T06:26:50Z | https://github.com/jerryscript-project/jerryscript/issues/1174 | 163,110,394 | 1,174 |
[
"jerryscript-project",
"jerryscript"
] | ### Planned API changes
- [x] Change 'jerry_api' prefix to 'jerry_' #1124
- [x] Unify error handling #1147
- [x] Use const object parameters in getter API functions #1047 (wontfix)
- [x] Remove unnecessary or internal functions/structures from public API
- [x] Remove 'jerry_value_t' structure from API #1138
- [x] Remove 'jerry_string_t' and 'jerry_object_t' #1177
- [x] Add missing API functions
- [x] Converter functions (ToBoolean, ToNumber, ToObject) #1150
- [x] Array helpers (ex.: GetLength, GetElements) #1161
- [x] Get/set prototype #1177
- [x] Define and get properties #1177
- [x] Update API references and examples #1157, #1160, #1197
- [x] Add more unit tests #1177
| Jerry API v1.0 | https://api.github.com/repos/jerryscript-project/jerryscript/issues/1148/comments | 6 | 2016-06-15T12:37:40Z | 2016-07-20T12:03:25Z | https://github.com/jerryscript-project/jerryscript/issues/1148 | 160,411,680 | 1,148 |
[
"jerryscript-project",
"jerryscript"
] | Details: https://github.com/Samsung/jerryscript/pull/1138#issuecomment-225802981
> I think the general direction is very good. However, I feel people will not understand how the exception handling works in Jerry. Namely a value has an exception bit, and a value with an exception bit set cannot be passed to any function as input argument.
>
> I am open to other ideas, but I see two directions at this moment:
> - all functions should return with a bool (exception or not), and a value as an output argument. The output contains the exception value in case of exception, but the exception bit is cleared, so they can pass it to other functions.
> - all functions return with a jerry value, where the exception bit can be set. There is an API function to check exceptions. For all input arguments the exception bit is cleared manually (so people cannot accidentally pass exception objects as values when setting a field of an object).
| Fix error handling in API | https://api.github.com/repos/jerryscript-project/jerryscript/issues/1141/comments | 0 | 2016-06-14T11:27:02Z | 2016-07-12T13:22:36Z | https://github.com/jerryscript-project/jerryscript/issues/1141 | 160,157,758 | 1,141 |
[
"jerryscript-project",
"jerryscript"
] | This issue is created to collect all the tasks we need to do before the first release of the engine.
### Documentation
- [x] GitHub wiki
- [x] gh-pages (http://samsung.github.io/jerryscript)
- [x] In source documentation
- [x] Comments in public headers files
- [x] Markdown files under docs folder (internals doc. and API examples&references)
- [x] Target porting how-to. See: #1313
### Jerry API
- [x] Finalize Jerry API. See: #1148
### Jerry Port API
- [x] Finalize Jerry Port API. See: #964
### Refactor the build system
- [x] Create new build system. See: #998, #1192
- [x] Provide instructions or automate build for the NuttX/RIOT configuration on the STM32F4 board
### Release criteria
- [x] Regression tests pass on x86-32 Linux
- [x] Regression tests pass on x86-64 Linux
- [x] Regression tests pass on ARMv7 Linux
- [x] SunSpider benchmark produces correct results running on top of NuttX on the STM32F4 board
- [x] RIOT port passes smoke test (running a hello world script)
### Community feedback
- mbed OS 3.0 has been tested and works (running a blinking LED test)
- Various versions of Zephyr have been tested and work (see comments below)
### Needs testing support/feedback from the community
- ESP8266, see #1264
| Prepare the engine for release 1.0 | https://api.github.com/repos/jerryscript-project/jerryscript/issues/1125/comments | 27 | 2016-06-06T10:21:59Z | 2016-09-02T16:06:31Z | https://github.com/jerryscript-project/jerryscript/issues/1125 | 158,645,443 | 1,125 |
[
"jerryscript-project",
"jerryscript"
] | #1109 was a quick fix, we should refactor it, as Laszlo mentioned. https://github.com/Samsung/jerryscript/pull/1109#issuecomment-222696851
| Rework of JSON-parse | https://api.github.com/repos/jerryscript-project/jerryscript/issues/1110/comments | 1 | 2016-05-31T14:33:17Z | 2017-01-31T13:22:59Z | https://github.com/jerryscript-project/jerryscript/issues/1110 | 157,686,760 | 1,110 |
[
"jerryscript-project",
"jerryscript"
] | I have build the jerryscript in ubuntu15.04 system, when I try extent the jerryscript with the jerry_api_create_external_function method, I found a strange phenomenon:
- If I set the external function between jerry_init and jerry_parse, it look fine;
- If I set the external function after jerry_parse, it will halt;
- If I set the external function after jerry_run, it will halt also;
My question is, is it possible to set the external function after jerry_run? thanks.
| what is the jerry_api_create_external_function invoking timing? | https://api.github.com/repos/jerryscript-project/jerryscript/issues/1102/comments | 1 | 2016-05-26T12:51:38Z | 2016-05-27T01:47:43Z | https://github.com/jerryscript-project/jerryscript/issues/1102 | 156,976,389 | 1,102 |
[
"jerryscript-project",
"jerryscript"
] | ###### Jerry version:
```
Checked revision: ac3aa30
Build: debug.linux
```
###### OS:
```
Ubuntu 15.10, x86_64
```
###### Test case:
``` javascript
try { new (this.Array)() .constructor .prototype .push (this.decodeURI .$) } catch($){}
try { this.Object .freeze (this.Array .prototype) .$ () } catch($){}
try { this.RegExp .prototype .exec () } catch($){}
```
###### Backtrace:
```
ICE: Assertion 'jmem_heap_allocated_size == 0' failed at jerryscript/jerry-core/jmem/jmem-heap.c(jmem_heap_finalize):228.
Error: ERR_FAILED_INTERNAL_ASSERTION
Program received signal SIGABRT, Aborted.
0x0000000000485190 in syscall_2 () at jerryscript/jerry-libc/target/posix/jerry-asm.S:60
60 SYSCALL_2
#0 0x0000000000485190 in syscall_2 () at jerryscript/jerry-libc/target/posix/jerry-asm.S:60
#1 0x000000000040037f in raise (sig=6) at jerryscript/jerry-libc/target/posix/jerry-libc-target.c:92
#2 0x0000000000400351 in abort () at jerryscript/jerry-libc/target/posix/jerry-libc-target.c:78
#3 0x000000000041d00e in jerry_port_fatal (code=ERR_FAILED_INTERNAL_ASSERTION) at jerryscript/targets/default/jerry-port-default-fatal.c:54
#4 0x000000000041cc4f in jerry_fatal (code=ERR_FAILED_INTERNAL_ASSERTION) at jerryscript/jerry-core/jrt/jrt-fatals.c:68
#5 0x000000000041cc96 in jerry_assert_fail (assertion=0x4a8572 "jmem_heap_allocated_size == 0", file=0x4a8528 "jerryscript/jerry-core/jmem/jmem-heap.c", function=0x486b10 <__func__.1957.lto_priv.812> "jmem_heap_finalize", line=228) at jerryscript/jerry-core/jrt/jrt-fatals.c:95
#6 0x0000000000484965 in jmem_heap_finalize () at jerryscript/jerry-core/jmem/jmem-heap.c:228
#7 0x0000000000479e90 in jmem_finalize (is_show_mem_stats=false) at jerryscript/jerry-core/jmem/jmem-allocator.c:63
#8 0x0000000000480e5f in jerry_cleanup () at jerryscript/jerry-core/jerry.c:1670
#9 0x000000000047f377 in main (argc=3, argv=0x7fffffffd378) at jerryscript/main-unix.c:490
```
| Assertion 'jmem_heap_allocated_size == 0' failed in jmem_heap_finalize | https://api.github.com/repos/jerryscript-project/jerryscript/issues/1096/comments | 1 | 2016-05-25T11:02:22Z | 2016-08-29T17:16:43Z | https://github.com/jerryscript-project/jerryscript/issues/1096 | 156,722,134 | 1,096 |
[
"jerryscript-project",
"jerryscript"
] | Hi
My understanding about snapshot is below, please correct me if anything wrong.
- snapshot consists of 3 parts: byte-code, literal-refs and literal-storage-data
- When call `jerry_exec_snapshot`, if we set the `copy_bytecode`, then all 3 parts will load into mem_heap, and if we unset the `copy_bytecode`, then the literal-refs and literal-storage-data will load into the mem_heap
So the snapshot's benefits are
1. for performance, save the parser time
2. for flash size, maybe the size of snapshot will samller than size of js code
3. **for mem_heap (RAM), if we unset `copy_bytecode`, we can save the space for bytecode only. We still need mem_heap to store the literal-refs and literal-storage-data**
Thanks
Zidong
| Understanding about snapshot | https://api.github.com/repos/jerryscript-project/jerryscript/issues/1094/comments | 2 | 2016-05-25T03:06:36Z | 2016-05-26T02:08:42Z | https://github.com/jerryscript-project/jerryscript/issues/1094 | 156,653,724 | 1,094 |
[
"jerryscript-project",
"jerryscript"
] | Currently there are 26 open branches in Jerry. Several of them are 8 months old, and unlikely to be updated. Since we moved to fork model, it would be good to only have a master branch, and perhaps each release could have one. What do you think?
| Close dead branches | https://api.github.com/repos/jerryscript-project/jerryscript/issues/1092/comments | 19 | 2016-05-23T11:10:24Z | 2016-09-07T21:01:44Z | https://github.com/jerryscript-project/jerryscript/issues/1092 | 156,255,997 | 1,092 |
[
"jerryscript-project",
"jerryscript"
] | On the [benchmark page](http://samsung.github.io/jerryscript/benchmark/benchmark.html), there is a huge performance regression recently.
This issue occurs snapshot mode only. Here are recent patches related to snapshot mode.
- e1c8a2ec96c29a8bf7fbe8a853bc3f9e18ed795b
- 7cf8b79429e3279d3de0e6f55e92a21212dc3304
cc: @LaszloLango. @zherczeg
| Huge performance regression of snapshot mode | https://api.github.com/repos/jerryscript-project/jerryscript/issues/1086/comments | 7 | 2016-05-20T07:07:02Z | 2016-05-26T05:00:37Z | https://github.com/jerryscript-project/jerryscript/issues/1086 | 155,900,373 | 1,086 |
[
"jerryscript-project",
"jerryscript"
] | ###### Jerry version:
```
Checked revision: e1c8a2e
Build: debug.linux
```
###### OS:
```
Ubuntu 15.10, x86_64
```
###### Test case:
``` javascript
try { ; } catch (A) {}
try { new (this.String)().A.A.A (A) } catch (A) {}
try { ; } catch (A) {}
try { new (this.RegExp)().A () } catch (A) {}
try { A.A.A () } catch (A) {}
try { } catch (A) {}
try { ; } catch (A) {}
try { ; } catch (A) {}
try { ; } catch (A) {}
try { ; } catch (A) {}
try { new A.A () } catch (A) {}
try { new (this.Date)().setMinutes (this.RegExp.prototype) } catch (A) {}
try { this.A (A) } catch (A) {}
try { new A.A () } catch (A) {}
try { this.isNaN (this.RegExp.prototype.compile (this.RegExp.prototype)) } catch (A) {}
try { ; } catch (A) {}
try { A.A.A(A) } catch (A) {}
```
###### Backtrace:
```
ICE: Unreachable control path at jerryscript/jerry-core/ecma/base/ecma-helpers.c(ecma_free_property):916 was executed.
Error: ERR_FAILED_INTERNAL_ASSERTION
Program received signal SIGABRT, Aborted.
0x0000000000485b37 in syscall_2 () at jerryscript/jerry-libc/target/posix/jerry-asm.S:60
60 SYSCALL_2
(gdb) bt
#0 0x0000000000485b37 in syscall_2 () at jerryscript/jerry-libc/target/posix/jerry-asm.S:60
#1 0x000000000040037f in raise (sig=6) at jerryscript/jerry-libc/target/posix/jerry-libc-target.c:92
#2 0x0000000000400351 in abort () at jerryscript/jerry-libc/target/posix/jerry-libc-target.c:78
#3 0x000000000041d117 in jerry_port_fatal (code=ERR_FAILED_INTERNAL_ASSERTION)
at jerryscript/targets/default/jerry-port-default-fatal.c:54
#4 0x000000000041cd58 in jerry_fatal (code=ERR_FAILED_INTERNAL_ASSERTION) at jerryscript/jerry-core/jrt/jrt-fatals.c:68
#5 0x000000000041ce09 in jerry_unreachable (comment=0x0, file=0x49d6e0 "jerryscript/jerry-core/ecma/base/ecma-helpers.c",
function=0x48bfd0 <__func__.3605.lto_priv.149> "ecma_free_property", line=916)
at jerryscript/jerry-core/jrt/jrt-fatals.c:122
#6 0x0000000000444958 in ecma_free_property (object_p=0x8b3790 <mem_heap+1808>, name_p=0x0, property_p=0x8b3829 <mem_heap+1961>)
at jerryscript/jerry-core/ecma/base/ecma-helpers.c:916
#7 0x000000000044ad76 in ecma_gc_sweep.lto_priv.505 (object_p=0x8b3790 <mem_heap+1808>)
at jerryscript/jerry-core/ecma/base/ecma-gc.c:451
#8 0x0000000000441f31 in ecma_gc_run () at jerryscript/jerry-core/ecma/base/ecma-gc.c:549
#9 0x0000000000437648 in ecma_finalize () at jerryscript/jerry-core/ecma/base/ecma-init-finalize.c:56
#10 0x0000000000481858 in jerry_cleanup () at jerryscript/jerry-core/jerry.c:1668
#11 0x000000000047fd85 in main (argc=3, argv=0x7fffffffd318) at jerryscript/main-unix.c:591
```
| Unreachable control path in ecma_free_property | https://api.github.com/repos/jerryscript-project/jerryscript/issues/1083/comments | 1 | 2016-05-19T14:52:19Z | 2016-07-08T11:02:54Z | https://github.com/jerryscript-project/jerryscript/issues/1083 | 155,756,656 | 1,083 |
[
"jerryscript-project",
"jerryscript"
] | ###### Jerry version:
```
Checked revision: e1c8a2e
Build: debug.linux
```
###### OS:
```
Ubuntu 15.10, x86_64
```
###### Test case:
``` javascript
try { new (String)().A.A.A (A) } catch (A) {}
try { new (this.RegExp)().A () } catch (A) {}
try { A.A.A () } catch (A) {}
try { ; } catch (A) {}
try { new A.A () } catch (A) {}
try { new (this.Date)().setMinutes (this.RegExp.prototype) } catch (A) {}
try { ; } catch (A) {}
try { ; } catch (A) {}
try { new A.A (A) } catch (A) {}
try { this.A (A) } catch (A) {}
try { new A.A () } catch (A) {}
try { ; } catch (A) {}
try { ; } catch (A) {}
try { ; } catch (A) {}
try { ; } catch (A) {}
try { ; } catch (A) {}
try { ; } catch (A) {}
try { ; } catch (A) {}
try { ; } catch (A) {}
try { new A().A () } catch (A) {}
try { new A().A () } catch (A) {}
try { this.isNaN (this.RegExp.prototype.compile (this.RegExp.prototype)) } catch (A) {}
try { ; } catch (A) {}
try { A.A.A (A) } catch (A) {}
```
###### Backtrace:
```
ICE: Assertion 'is_retrieved' failed at jerryscript/jerry-core/ecma/base/ecma-gc.c(ecma_gc_sweep):417.
Error: ERR_FAILED_INTERNAL_ASSERTION
Program received signal SIGABRT, Aborted.
0x0000000000485b37 in syscall_2 () at jerryscript/jerry-libc/target/posix/jerry-asm.S:60
60 SYSCALL_2
(gdb) bt
#0 0x0000000000485b37 in syscall_2 () at jerryscript/jerry-libc/target/posix/jerry-asm.S:60
#1 0x000000000040037f in raise (sig=6) at jerryscript/jerry-libc/target/posix/jerry-libc-target.c:92
#2 0x0000000000400351 in abort () at jerryscript/jerry-libc/target/posix/jerry-libc-target.c:78
#3 0x000000000041d117 in jerry_port_fatal (code=ERR_FAILED_INTERNAL_ASSERTION)
at jerryscript/targets/default/jerry-port-default-fatal.c:54
#4 0x000000000041cd58 in jerry_fatal (code=ERR_FAILED_INTERNAL_ASSERTION) at jerryscript/jerry-core/jrt/jrt-fatals.c:68
#5 0x000000000041cd9f in jerry_assert_fail (assertion=0x49ef4d "is_retrieved",
file=0x49ece0 "jerryscript/jerry-core/ecma/base/ecma-gc.c",
function=0x48ba60 <__func__.3599.lto_priv.0> "ecma_gc_sweep", line=417) at jerryscript/jerry-core/jrt/jrt-fatals.c:95
#6 0x000000000044abed in ecma_gc_sweep.lto_priv.505 (object_p=0x8b3890 <mem_heap+2064>)
at jerryscript/jerry-core/ecma/base/ecma-gc.c:417
#7 0x0000000000441f31 in ecma_gc_run () at jerryscript/jerry-core/ecma/base/ecma-gc.c:549
#8 0x0000000000437648 in ecma_finalize () at jerryscript/jerry-core/ecma/base/ecma-init-finalize.c:56
#9 0x0000000000481858 in jerry_cleanup () at jerryscript/jerry-core/jerry.c:1668
#10 0x000000000047fd85 in main (argc=3, argv=0x7fffffffd318) at jerryscript/main-unix.c:591
```
| Assertion 'is_retrieved' failed in ecma_gc_sweep | https://api.github.com/repos/jerryscript-project/jerryscript/issues/1082/comments | 1 | 2016-05-19T14:49:00Z | 2016-07-08T11:02:45Z | https://github.com/jerryscript-project/jerryscript/issues/1082 | 155,755,790 | 1,082 |
[
"jerryscript-project",
"jerryscript"
] | ###### Jerry version:
```
Checked revision: e1c8a2e
Build: debug.linux
```
###### OS:
```
Ubuntu 15.10, x86_64
```
###### Test case:
``` javascript
try { new RegExp().compile(A) } catch (err) {}
try { A } catch (err) {}
try { new RegExp().constructor.prototype.toString() } catch (A) {}
try { A } catch (err) {}
try { new RegExp(1, "g").exec(1) } catch (A) {}
try { A } catch (err) {}
try { A } catch (A) {}
try { A } catch (A) {}
try { new (Boolean.constructor.prototype) } catch (err) {}
try { Boolean } catch (A) {}
try { A } catch(A) {}
try { new RegExp().compile(new (RegExp)()) } catch (A) {}
try { Math.max().constructor.seal(A) } catch (err) {}
try { Date.parse(RegExp.prototype.compile(RegExp.prototype)) } catch(A) {}
try { Boolean.A() } catch (err) {}
```
###### Backtrace:
```
ICE: Assertion 'object_p->type_flags_refs >= ECMA_OBJECT_REF_ONE' failed at jerryscript/jerry-core/ecma/base/ecma-gc.c(ecma_deref_object):186.
Error: ERR_FAILED_INTERNAL_ASSERTION
Program received signal SIGABRT, Aborted.
0x0000000000485b37 in syscall_2 () at jerryscript/jerry-libc/target/posix/jerry-asm.S:60
60 SYSCALL_2
(gdb) bt
#0 0x0000000000485b37 in syscall_2 () at jerryscript/jerry-libc/target/posix/jerry-asm.S:60
#1 0x000000000040037f in raise (sig=6) at jerryscript/jerry-libc/target/posix/jerry-libc-target.c:92
#2 0x0000000000400351 in abort () at jerryscript/jerry-libc/target/posix/jerry-libc-target.c:78
#3 0x000000000041d117 in jerry_port_fatal (code=ERR_FAILED_INTERNAL_ASSERTION)
at jerryscript/targets/default/jerry-port-default-fatal.c:54
#4 0x000000000041cd58 in jerry_fatal (code=ERR_FAILED_INTERNAL_ASSERTION) at jerryscript/jerry-core/jrt/jrt-fatals.c:68
#5 0x000000000041cd9f in jerry_assert_fail (assertion=0x49edb0 "object_p->type_flags_refs >= ECMA_OBJECT_REF_ONE",
file=0x49ece0 "jerryscript/jerry-core/ecma/base/ecma-gc.c",
function=0x48b9f0 <__func__.3536.lto_priv.512> "ecma_deref_object", line=186)
at jerryscript/jerry-core/jrt/jrt-fatals.c:95
#6 0x000000000044a60d in ecma_deref_object (object_p=0x8b3b88 <mem_heap+2824>)
at jerryscript/jerry-core/ecma/base/ecma-gc.c:186
#7 0x000000000040e069 in ecma_lcache_invalidate_entry (entry_p=0x933810 <ecma_lcache_hash_table.lto_priv+1424>)
at jerryscript/jerry-core/ecma/base/ecma-lcache.c:88
#8 0x000000000040e3fc in ecma_lcache_insert (object_p=0x8b3870 <mem_heap+2032>, prop_name_p=0x8b3b88 <mem_heap+2824>, prop_p=0x0)
at jerryscript/jerry-core/ecma/base/ecma-lcache.c:204
#9 0x0000000000444423 in ecma_find_named_property (obj_p=0x8b3870 <mem_heap+2032>, name_p=0x8b3b88 <mem_heap+2824>)
at jerryscript/jerry-core/ecma/base/ecma-helpers.c:727
#10 0x0000000000444009 in ecma_create_named_data_property (object_p=0x8b3870 <mem_heap+2032>, name_p=0x8b3b88 <mem_heap+2824>, is_writable=true,
is_enumerable=false, is_configurable=false) at jerryscript/jerry-core/ecma/base/ecma-helpers.c:584
#11 0x0000000000432e3d in ecma_op_create_mutable_binding (lex_env_p=0x8b3870 <mem_heap+2032>, name_p=0x8b3b88 <mem_heap+2824>, is_deletable=false)
at jerryscript/jerry-core/ecma/operations/ecma-lex-env.c:138
#12 0x000000000047ecc2 in vm_loop.lto_priv.800 (frame_ctx_p=0x7fffffffcba0) at jerryscript/jerry-core/vm/vm.c:2377
#13 0x000000000047a0c7 in vm_execute (frame_ctx_p=0x7fffffffcba0, arg_p=0x0, arg_list_len=0)
at jerryscript/jerry-core/vm/vm.c:2495
#14 0x000000000047a1bf in vm_run_with_inline_stack.lto_priv.796 (frame_ctx_p=0x7fffffffcba0, arg_p=0x0, arg_list_len=1)
at jerryscript/jerry-core/vm/vm.c:2540
#15 0x00000000004766d0 in vm_run (bytecode_header_p=0x8b34b8 <mem_heap+1080>, this_binding_value=35, lex_env_p=0x8b30b8 <mem_heap+56>, is_eval_code=false,
arg_list_p=0x0, arg_list_len=1) at jerryscript/jerry-core/vm/vm.c:2614
#16 0x000000000047a9d2 in vm_run_global (error_value_p=0x7fffffffcc88) at jerryscript/jerry-core/vm/vm.c:190
#17 0x000000000048194a in jerry_run (error_value_p=0x7fffffffce20) at jerryscript/jerry-core/jerry.c:1748
#18 0x000000000047fbc2 in main (argc=3, argv=0x7fffffffd318) at jerryscript/main-unix.c:511
```
| Assertion 'object_p->type_flags_refs >= ECMA_OBJECT_REF_ONE' failed in ecma_deref_object | https://api.github.com/repos/jerryscript-project/jerryscript/issues/1081/comments | 3 | 2016-05-19T11:40:57Z | 2017-08-21T07:08:58Z | https://github.com/jerryscript-project/jerryscript/issues/1081 | 155,716,519 | 1,081 |
[
"jerryscript-project",
"jerryscript"
] | ###### Jerry version:
```
Checked revision: e1c8a2e
Build: debug.linux
```
###### OS:
```
Ubuntu 15.10, x86_64
```
###### Test case:
``` javascript
((new RegExp("}").constructor)("a", "g").constructor)(undefined).constructor.prototype.toString();
new Date("2015-07-09T12:13:14.121+01:30").toISOString();
RegExp(new RegExp("a", "g")).constructor("").constructor.prototype.compile(RegExp.prototype);
new Date("2015-09-17").getUTCFullYear();
```
The place of the segfault is the same as in #1072 but the reason (at least the traces) looks different.
###### Backtrace:
```
Program received signal SIGSEGV, Segmentation fault.
0x000000000047a61d in mem_pools_alloc () at jerryscript/jerry-core/mem/mem-poolman.c:147
147 mem_free_chunk_p = chunk_p->next_p;
#0 0x000000000047a61d in mem_pools_alloc () at jerryscript/jerry-core/mem/mem-poolman.c:147
#1 0x000000000044a0dc in ecma_alloc_number () at jerryscript/jerry-core/ecma/base/ecma-alloc.c:92
#2 0x0000000000442505 in ecma_create_float_number (ecma_number=1442448000000) at jerryscript/jerry-core/ecma/base/ecma-helpers-value.c:346
#3 0x000000000044262a in ecma_make_number_value (ecma_number=1442448000000) at jerryscript/jerry-core/ecma/base/ecma-helpers-value.c:412
#4 0x000000000046421c in ecma_builtin_date_parse (this_arg=2323, arg=2002) at jerryscript/jerry-core/ecma/builtin-objects/ecma-builtin-date.c:383
#5 0x00000000004645d9 in ecma_builtin_date_dispatch_construct (arguments_list_p=0x7fffffffcbd4, arguments_list_len=1) at jerryscript/jerry-core/ecma/builtin-objects/ecma-builtin-date.c:505
#6 0x00000000004748bc in ecma_builtin_dispatch_construct (obj_p=0x8b37c0 <mem_heap+1856>, arguments_list_p=0x7fffffffcbd4, arguments_list_len=1) at jerryscript/jerry-core/ecma/builtin-objects/ecma-builtins.inc.h:153
#7 0x0000000000431b10 in ecma_op_function_construct (func_obj_p=0x8b37c0 <mem_heap+1856>, arguments_list_p=0x7fffffffcbd4, arguments_list_len=1) at jerryscript/jerry-core/ecma/operations/ecma-function-object.c:844
#8 0x000000000047aed1 in opfunc_construct.lto_priv.798 (frame_ctx_p=0x7fffffffcc50) at jerryscript/jerry-core/vm/vm.c:437
#9 0x000000000047a139 in vm_execute (frame_ctx_p=0x7fffffffcc50, arg_p=0x0, arg_list_len=0) at jerryscript/jerry-core/vm/vm.c:2509
#10 0x000000000047a1bf in vm_run_with_inline_stack.lto_priv.796 (frame_ctx_p=0x7fffffffcc50, arg_p=0x0, arg_list_len=1) at jerryscript/jerry-core/vm/vm.c:2540
#11 0x00000000004766d0 in vm_run (bytecode_header_p=0x8b3378 <mem_heap+760>, this_binding_value=35, lex_env_p=0x8b30b8 <mem_heap+56>, is_eval_code=false, arg_list_p=0x0, arg_list_len=1) at jerryscript/jerry-core/vm/vm.c:2614
#12 0x000000000047a9d2 in vm_run_global (error_value_p=0x7fffffffcd38) at jerryscript/jerry-core/vm/vm.c:190
#13 0x000000000048194a in jerry_run (error_value_p=0x7fffffffced0) at jerryscript/jerry-core/jerry.c:1748
#14 0x000000000047fbc2 in main (argc=2, argv=0x7fffffffd3c8) at jerryscript/main-unix.c:511
```
| Segmentation fault in mem_pools_alloc (from ecma_alloc_number) | https://api.github.com/repos/jerryscript-project/jerryscript/issues/1080/comments | 1 | 2016-05-19T10:11:04Z | 2016-07-08T11:02:24Z | https://github.com/jerryscript-project/jerryscript/issues/1080 | 155,700,655 | 1,080 |
[
"jerryscript-project",
"jerryscript"
] | ###### Jerry version:
```
Checked revision: e1c8a2e
Build: debug.linux
```
###### OS:
```
Ubuntu 15.10, x86_64
```
###### Test case:
``` javascript
try { Array.prototype.reverse().push(1) } catch($){}
try { Object.freeze(Array.prototype) } catch($){}
try { new RegExp().constructor.prototype.exec() } catch($){}
```
###### Backtrace:
```
ICE: Assertion 'mem_heap_allocated_size == 0' failed at jerryscript/jerry-core/mem/mem-heap.c(mem_heap_finalize):228.
Error: ERR_FAILED_INTERNAL_ASSERTION
Program received signal SIGABRT, Aborted.
0x0000000000485b37 in syscall_2 () at jerryscript/jerry-libc/target/posix/jerry-asm.S:60
60 SYSCALL_2
(gdb) bt
#0 0x0000000000485b37 in syscall_2 () at jerryscript/jerry-libc/target/posix/jerry-asm.S:60
#1 0x000000000040037f in raise (sig=6) at jerryscript/jerry-libc/target/posix/jerry-libc-target.c:92
#2 0x0000000000400351 in abort () at jerryscript/jerry-libc/target/posix/jerry-libc-target.c:78
#3 0x000000000041d117 in jerry_port_fatal (code=ERR_FAILED_INTERNAL_ASSERTION)
at jerryscript/targets/default/jerry-port-default-fatal.c:54
#4 0x000000000041cd58 in jerry_fatal (code=ERR_FAILED_INTERNAL_ASSERTION) at jerryscript/jerry-core/jrt/jrt-fatals.c:68
#5 0x000000000041cd9f in jerry_assert_fail (assertion=0x4a8cf0 "mem_heap_allocated_size == 0",
file=0x4a8ca8 "jerryscript/jerry-core/mem/mem-heap.c",
function=0x4874d0 <__func__.1965.lto_priv.820> "mem_heap_finalize", line=228)
at jerryscript/jerry-core/jrt/jrt-fatals.c:95
#6 0x000000000048536e in mem_heap_finalize () at jerryscript/jerry-core/mem/mem-heap.c:228
#7 0x000000000047a48f in mem_finalize (is_show_mem_stats=false) at jerryscript/jerry-core/mem/mem-allocator.c:63
#8 0x000000000048186d in jerry_cleanup () at jerryscript/jerry-core/jerry.c:1670
#9 0x000000000047fd85 in main (argc=3, argv=0x7fffffffd318) at jerryscript/main-unix.c:591
```
| Assertion 'mem_heap_allocated_size == 0' failed in mem_heap_finalize | https://api.github.com/repos/jerryscript-project/jerryscript/issues/1079/comments | 0 | 2016-05-19T09:27:30Z | 2016-07-19T14:01:03Z | https://github.com/jerryscript-project/jerryscript/issues/1079 | 155,691,755 | 1,079 |
[
"jerryscript-project",
"jerryscript"
] | ###### Jerry version:
```
Checked revision: e1c8a2e
Build: debug.linux
```
###### OS:
```
Ubuntu 15.10, x86_64
```
###### Test case:
``` javascript
try { Array.prototype.splice(Function.prototype, 1, this) } catch($){}
try { Object.freeze(Array.prototype) } catch($){}
try { new String().split (new RegExp()) } catch($){}
```
###### Backtrace:
```
ICE: Assertion 'property_p != NULL' failed at jerryscript/jerry-core/ecma/base/ecma-helpers.c(ecma_get_named_property):750.
Error: ERR_FAILED_INTERNAL_ASSERTION
Program received signal SIGABRT, Aborted.
0x0000000000485b37 in syscall_2 () at jerryscript/jerry-libc/target/posix/jerry-asm.S:60
60 SYSCALL_2
(gdb) bt
#0 0x0000000000485b37 in syscall_2 () at jerryscript/jerry-libc/target/posix/jerry-asm.S:60
#1 0x000000000040037f in raise (sig=6) at jerryscript/jerry-libc/target/posix/jerry-libc-target.c:92
#2 0x0000000000400351 in abort () at jerryscript/jerry-libc/target/posix/jerry-libc-target.c:78
#3 0x000000000041d117 in jerry_port_fatal (code=ERR_FAILED_INTERNAL_ASSERTION)
at jerryscript/targets/default/jerry-port-default-fatal.c:54
#4 0x000000000041cd58 in jerry_fatal (code=ERR_FAILED_INTERNAL_ASSERTION) at jerryscript/jerry-core/jrt/jrt-fatals.c:68
#5 0x000000000041cd9f in jerry_assert_fail (assertion=0x49dad5 "property_p != NULL",
file=0x49d6e0 "jerryscript/jerry-core/ecma/base/ecma-helpers.c",
function=0x48bf50 <__func__.3558.lto_priv.9> "ecma_get_named_property", line=750)
at jerryscript/jerry-core/jrt/jrt-fatals.c:95
#6 0x00000000004444cb in ecma_get_named_property (obj_p=0x8b3a80 <mem_heap+2560>, name_p=0x8b3a50 <mem_heap+2512>)
at jerryscript/jerry-core/ecma/base/ecma-helpers.c:750
#7 0x0000000000458a4d in ecma_builtin_helper_split_match (input_string=866, start_idx=0, separator=1027)
at jerryscript/jerry-core/ecma/builtin-objects/ecma-builtin-string-prototype.c:1520
#8 0x0000000000459135 in ecma_builtin_string_prototype_object_split.lto_priv.670 (this_arg=899, arg1=1027, arg2=24)
at jerryscript/jerry-core/ecma/builtin-objects/ecma-builtin-string-prototype.c:1703
#9 0x000000000045d6b7 in ecma_builtin_string_prototype_dispatch_routine (builtin_routine_id=136, this_arg_value=899, arguments_list=0x7fffffffcb34,
arguments_number=1) at jerryscript/jerry-core/ecma/builtin-objects/ecma-builtin-string-prototype.inc.h:75
#10 0x0000000000474aab in ecma_builtin_dispatch_routine (builtin_object_id=ECMA_BUILTIN_ID_STRING_PROTOTYPE, builtin_routine_id=136, this_arg_value=899,
arguments_list=0x7fffffffcb34, arguments_number=1) at jerryscript/jerry-core/ecma/builtin-objects/ecma-builtins.inc.h:55
#11 0x000000000047442c in ecma_builtin_dispatch_call (obj_p=0x8b3430 <mem_heap+944>, this_arg_value=899, arguments_list_p=0x7fffffffcb34,
arguments_list_len=1) at jerryscript/jerry-core/ecma/builtin-objects/ecma-builtins.c:531
#12 0x000000000043a430 in ecma_op_function_call (func_obj_p=0x8b3430 <mem_heap+944>, this_arg_value=899, arguments_list_p=0x7fffffffcb34,
arguments_list_len=1) at jerryscript/jerry-core/ecma/operations/ecma-function-object.c:649
#13 0x000000000047ad99 in opfunc_call.lto_priv.799 (frame_ctx_p=0x7fffffffcba0) at jerryscript/jerry-core/vm/vm.c:379
#14 0x000000000047a0f7 in vm_execute (frame_ctx_p=0x7fffffffcba0, arg_p=0x0, arg_list_len=0)
at jerryscript/jerry-core/vm/vm.c:2504
#15 0x000000000047a1bf in vm_run_with_inline_stack.lto_priv.796 (frame_ctx_p=0x7fffffffcba0, arg_p=0x0, arg_list_len=1)
at jerryscript/jerry-core/vm/vm.c:2540
#16 0x00000000004766d0 in vm_run (bytecode_header_p=0x8b3300 <mem_heap+640>, this_binding_value=35, lex_env_p=0x8b30b8 <mem_heap+56>, is_eval_code=false,
arg_list_p=0x0, arg_list_len=1) at jerryscript/jerry-core/vm/vm.c:2614
#17 0x000000000047a9d2 in vm_run_global (error_value_p=0x7fffffffcc88) at jerryscript/jerry-core/vm/vm.c:190
#18 0x000000000048194a in jerry_run (error_value_p=0x7fffffffce20) at jerryscript/jerry-core/jerry.c:1748
#19 0x000000000047fbc2 in main (argc=3, argv=0x7fffffffd318) at jerryscript/main-unix.c:511
```
| Assertion 'property_p != NULL' failed in ecma_get_named_property | https://api.github.com/repos/jerryscript-project/jerryscript/issues/1078/comments | 1 | 2016-05-19T09:21:29Z | 2016-08-25T23:10:07Z | https://github.com/jerryscript-project/jerryscript/issues/1078 | 155,690,546 | 1,078 |
[
"jerryscript-project",
"jerryscript"
] | ###### Jerry version:
```
Checked revision: e1c8a2e
Build: debug.linux
```
###### OS:
```
Ubuntu 15.10, x86_64
```
###### Test case:
``` javascript
new Array(752692953).join(Date);
```
###### Backtrace:
```
ICE: Assertion 'new_size <= UINT16_MAX' failed at jerryscript/jerry-core/ecma/base/ecma-helpers-string.c(ecma_concat_ecma_strings):363.
Error: ERR_FAILED_INTERNAL_ASSERTION
Program received signal SIGABRT, Aborted.
0x0000000000485b37 in syscall_2 () at jerryscript/jerry-libc/target/posix/jerry-asm.S:60
60 SYSCALL_2
(gdb) bt
#0 0x0000000000485b37 in syscall_2 () at jerryscript/jerry-libc/target/posix/jerry-asm.S:60
#1 0x000000000040037f in raise (sig=6) at jerryscript/jerry-libc/target/posix/jerry-libc-target.c:92
#2 0x0000000000400351 in abort () at jerryscript/jerry-libc/target/posix/jerry-libc-target.c:78
#3 0x000000000041d117 in jerry_port_fatal (code=ERR_FAILED_INTERNAL_ASSERTION)
at jerryscript/targets/default/jerry-port-default-fatal.c:54
#4 0x000000000041cd58 in jerry_fatal (code=ERR_FAILED_INTERNAL_ASSERTION) at jerryscript/jerry-core/jrt/jrt-fatals.c:68
#5 0x000000000041cd9f in jerry_assert_fail (assertion=0x49c89f "new_size <= UINT16_MAX",
file=0x49c710 "jerryscript/jerry-core/ecma/base/ecma-helpers-string.c",
function=0x48c8d0 <__func__.3589.lto_priv.5> "ecma_concat_ecma_strings", line=363)
at jerryscript/jerry-core/jrt/jrt-fatals.c:95
#6 0x000000000043bf00 in ecma_concat_ecma_strings (string1_p=0x8b3570 <mem_heap+1264>, string2_p=0x8b3200 <mem_heap+384>)
at jerryscript/jerry-core/ecma/base/ecma-helpers-string.c:363
#7 0x000000000047363c in ecma_builtin_array_prototype_join (this_arg=227, separator_arg=315)
at jerryscript/jerry-core/ecma/builtin-objects/ecma-builtin-array-prototype.c:411
#8 0x00000000004725e8 in ecma_builtin_array_prototype_dispatch_routine (builtin_routine_id=113, this_arg_value=227, arguments_list=0x7fffffffcb2c,
arguments_number=1) at jerryscript/jerry-core/ecma/builtin-objects/ecma-builtin-array-prototype.inc.h:65
#9 0x0000000000474a77 in ecma_builtin_dispatch_routine (builtin_object_id=ECMA_BUILTIN_ID_ARRAY_PROTOTYPE, builtin_routine_id=113, this_arg_value=227,
arguments_list=0x7fffffffcb2c, arguments_number=1) at jerryscript/jerry-core/ecma/builtin-objects/ecma-builtins.inc.h:37
#10 0x000000000047442c in ecma_builtin_dispatch_call (obj_p=0x8b3188 <mem_heap+264>, this_arg_value=227, arguments_list_p=0x7fffffffcb2c,
arguments_list_len=1) at jerryscript/jerry-core/ecma/builtin-objects/ecma-builtins.c:531
#11 0x000000000043a430 in ecma_op_function_call (func_obj_p=0x8b3188 <mem_heap+264>, this_arg_value=227, arguments_list_p=0x7fffffffcb2c,
arguments_list_len=1) at jerryscript/jerry-core/ecma/operations/ecma-function-object.c:649
#12 0x000000000047ad99 in opfunc_call.lto_priv.799 (frame_ctx_p=0x7fffffffcba0) at jerryscript/jerry-core/vm/vm.c:379
#13 0x000000000047a0f7 in vm_execute (frame_ctx_p=0x7fffffffcba0, arg_p=0x0, arg_list_len=0)
at jerryscript/jerry-core/vm/vm.c:2504
#14 0x000000000047a1bf in vm_run_with_inline_stack.lto_priv.796 (frame_ctx_p=0x7fffffffcba0, arg_p=0x0, arg_list_len=1)
at jerryscript/jerry-core/vm/vm.c:2540
#15 0x00000000004766d0 in vm_run (bytecode_header_p=0x8b3258 <mem_heap+472>, this_binding_value=35, lex_env_p=0x8b30b8 <mem_heap+56>, is_eval_code=false,
arg_list_p=0x0, arg_list_len=1) at jerryscript/jerry-core/vm/vm.c:2614
#16 0x000000000047a9d2 in vm_run_global (error_value_p=0x7fffffffcc88) at jerryscript/jerry-core/vm/vm.c:190
#17 0x000000000048194a in jerry_run (error_value_p=0x7fffffffce20) at jerryscript/jerry-core/jerry.c:1748
#18 0x000000000047fbc2 in main (argc=3, argv=0x7fffffffd318) at jerryscript/main-unix.c:511
```
| Assertion 'new_size <= UINT16_MAX' failed in ecma_concat_ecma_strings | https://api.github.com/repos/jerryscript-project/jerryscript/issues/1077/comments | 1 | 2016-05-19T09:16:20Z | 2016-08-29T17:10:55Z | https://github.com/jerryscript-project/jerryscript/issues/1077 | 155,689,517 | 1,077 |
[
"jerryscript-project",
"jerryscript"
] | ###### Jerry version:
```
Checked revision: e1c8a2e
Build: debug.linux
```
###### OS:
```
Ubuntu 15.10, x86_64
```
###### Test case:
``` javascript
try { Array.prototype.unshift(1) } catch($){}
try { Object.freeze(this.Array.prototype)() } catch($){}
try { new String(1).split("") } catch($){}
```
###### Backtrace:
```
ICE: Assertion 'ecma_get_value_type_field (value) == ECMA_TYPE_STRING' failed at jerryscript/jerry-core/ecma/base/ecma-helpers-value.c(ecma_get_string_from_value):548.
Error: ERR_FAILED_INTERNAL_ASSERTION
Program received signal SIGABRT, Aborted.
0x0000000000485b37 in syscall_2 () at jerryscript/jerry-libc/target/posix/jerry-asm.S:60
60 SYSCALL_2
(gdb) bt
#0 0x0000000000485b37 in syscall_2 () at jerryscript/jerry-libc/target/posix/jerry-asm.S:60
#1 0x000000000040037f in raise (sig=6) at jerryscript/jerry-libc/target/posix/jerry-libc-target.c:92
#2 0x0000000000400351 in abort () at jerryscript/jerry-libc/target/posix/jerry-libc-target.c:78
#3 0x000000000041d117 in jerry_port_fatal (code=ERR_FAILED_INTERNAL_ASSERTION)
at jerryscript/targets/default/jerry-port-default-fatal.c:54
#4 0x000000000041cd58 in jerry_fatal (code=ERR_FAILED_INTERNAL_ASSERTION) at jerryscript/jerry-core/jrt/jrt-fatals.c:68
#5 0x000000000041cd9f in jerry_assert_fail (assertion=0x49d650 "ecma_get_value_type_field (value) == ECMA_TYPE_STRING",
file=0x49d468 "jerryscript/jerry-core/ecma/base/ecma-helpers-value.c",
function=0x48bbf0 <__func__.3353.lto_priv.489> "ecma_get_string_from_value", line=548)
at jerryscript/jerry-core/jrt/jrt-fatals.c:95
#6 0x0000000000442a12 in ecma_get_string_from_value (value=16) at jerryscript/jerry-core/ecma/base/ecma-helpers-value.c:548
#7 0x00000000004592b9 in ecma_builtin_string_prototype_object_split.lto_priv.670 (this_arg=627, arg1=858, arg2=24)
at jerryscript/jerry-core/ecma/builtin-objects/ecma-builtin-string-prototype.c:1769
#8 0x000000000045d6b7 in ecma_builtin_string_prototype_dispatch_routine (builtin_routine_id=136, this_arg_value=627, arguments_list=0x7fffffffcb34,
arguments_number=1) at jerryscript/jerry-core/ecma/builtin-objects/ecma-builtin-string-prototype.inc.h:75
#9 0x0000000000474aab in ecma_builtin_dispatch_routine (builtin_object_id=ECMA_BUILTIN_ID_STRING_PROTOTYPE, builtin_routine_id=136, this_arg_value=627,
arguments_list=0x7fffffffcb34, arguments_number=1) at jerryscript/jerry-core/ecma/builtin-objects/ecma-builtins.inc.h:55
#10 0x000000000047442c in ecma_builtin_dispatch_call (obj_p=0x8b33c8 <mem_heap+840>, this_arg_value=627, arguments_list_p=0x7fffffffcb34,
arguments_list_len=1) at jerryscript/jerry-core/ecma/builtin-objects/ecma-builtins.c:531
#11 0x000000000043a430 in ecma_op_function_call (func_obj_p=0x8b33c8 <mem_heap+840>, this_arg_value=627, arguments_list_p=0x7fffffffcb34,
arguments_list_len=1) at jerryscript/jerry-core/ecma/operations/ecma-function-object.c:649
#12 0x000000000047ad99 in opfunc_call.lto_priv.799 (frame_ctx_p=0x7fffffffcba0) at jerryscript/jerry-core/vm/vm.c:379
#13 0x000000000047a0f7 in vm_execute (frame_ctx_p=0x7fffffffcba0, arg_p=0x0, arg_list_len=0)
at jerryscript/jerry-core/vm/vm.c:2504
#14 0x000000000047a1bf in vm_run_with_inline_stack.lto_priv.796 (frame_ctx_p=0x7fffffffcba0, arg_p=0x0, arg_list_len=1)
at jerryscript/jerry-core/vm/vm.c:2540
#15 0x00000000004766d0 in vm_run (bytecode_header_p=0x8b3300 <mem_heap+640>, this_binding_value=35, lex_env_p=0x8b30b8 <mem_heap+56>, is_eval_code=false,
arg_list_p=0x0, arg_list_len=1) at jerryscript/jerry-core/vm/vm.c:2614
#16 0x000000000047a9d2 in vm_run_global (error_value_p=0x7fffffffcc88) at jerryscript/jerry-core/vm/vm.c:190
#17 0x000000000048194a in jerry_run (error_value_p=0x7fffffffce20) at jerryscript/jerry-core/jerry.c:1748
#18 0x000000000047fbc2 in main (argc=3, argv=0x7fffffffd318) at jerryscript/main-unix.c:511
```
| Assertion 'ecma_get_value_type_field (value) == ECMA_TYPE_STRING' failed in ecma_get_string_from_value | https://api.github.com/repos/jerryscript-project/jerryscript/issues/1076/comments | 2 | 2016-05-19T09:09:38Z | 2016-09-06T06:48:04Z | https://github.com/jerryscript-project/jerryscript/issues/1076 | 155,688,159 | 1,076 |
[
"jerryscript-project",
"jerryscript"
] | ###### Jerry version:
```
Checked revision: e1c8a2e
Build: debug.linux
```
###### OS:
```
Ubuntu 15.10, x86_64
```
###### Test case:
``` javascript
try { new (RegExp)().$() } catch($){}
try { RegExp.prototype.compile() } catch($){}
try { new (this.$)(1, RegExp.prototype.compile(RegExp.prototype)) } catch($){}
```
###### Backtrace:
```
ICE: Assertion 'mem_is_heap_pointer (MEM_HEAP_GET_ADDR_FROM_OFFSET (next_offset)) || next_offset == MEM_HEAP_GET_OFFSET_FROM_ADDR (MEM_HEAP_END_OF_LIST)' failed at jerryscript/jerry-core/mem/mem-heap.c(mem_heap_alloc_block_internal):298.
Error: ERR_FAILED_INTERNAL_ASSERTION
Program received signal SIGABRT, Aborted.
0x0000000000485b37 in syscall_2 () at jerryscript/jerry-libc/target/posix/jerry-asm.S:60
60 SYSCALL_2
(gdb) bt
#0 0x0000000000485b37 in syscall_2 () at jerryscript/jerry-libc/target/posix/jerry-asm.S:60
#1 0x000000000040037f in raise (sig=6) at jerryscript/jerry-libc/target/posix/jerry-libc-target.c:92
#2 0x0000000000400351 in abort () at jerryscript/jerry-libc/target/posix/jerry-libc-target.c:78
#3 0x000000000041d117 in jerry_port_fatal (code=ERR_FAILED_INTERNAL_ASSERTION)
at jerryscript/targets/default/jerry-port-default-fatal.c:54
#4 0x000000000041cd58 in jerry_fatal (code=ERR_FAILED_INTERNAL_ASSERTION) at jerryscript/jerry-core/jrt/jrt-fatals.c:68
#5 0x000000000041cd9f in jerry_assert_fail (
assertion=0x4a8d80 "mem_is_heap_pointer (MEM_HEAP_GET_ADDR_FROM_OFFSET (next_offset)) || next_offset == MEM_HEAP_GET_OFFSET_FROM_ADDR (MEM_HEAP_END_OF_LIST)", file=0x4a8ca8 "jerryscript/jerry-core/mem/mem-heap.c",
function=0x4874f0 <__func__.1971.lto_priv.819> "mem_heap_alloc_block_internal", line=298)
at jerryscript/jerry-core/jrt/jrt-fatals.c:95
#6 0x000000000048558c in mem_heap_alloc_block_internal (size=16) at jerryscript/jerry-core/mem/mem-heap.c:297
#7 0x000000000048571a in mem_heap_alloc_block (size=16) at jerryscript/jerry-core/mem/mem-heap.c:391
#8 0x000000000044a2f9 in ecma_alloc_property_pair () at jerryscript/jerry-core/ecma/base/ecma-alloc.c:107
#9 0x0000000000443c47 in ecma_create_property (object_p=0x8b34a0 <mem_heap+1056>, name_p=0x0, type_and_flags=1 '\001', value=...)
at jerryscript/jerry-core/ecma/base/ecma-helpers.c:456
#10 0x0000000000443dd4 in ecma_create_internal_property (object_p=0x8b34a0 <mem_heap+1056>, property_id=ECMA_INTERNAL_PROPERTY_CLASS)
at jerryscript/jerry-core/ecma/base/ecma-helpers.c:504
#11 0x000000000043209f in ecma_new_standard_error (error_type=ECMA_ERROR_TYPE)
at jerryscript/jerry-core/ecma/operations/ecma-exceptions.c:96
#12 0x00000000004321b5 in ecma_raise_standard_error (error_type=ECMA_ERROR_TYPE, msg_p=0x0)
at jerryscript/jerry-core/ecma/operations/ecma-exceptions.c:153
#13 0x000000000043227f in ecma_raise_type_error (msg_p=0x0) at jerryscript/jerry-core/ecma/operations/ecma-exceptions.c:238
#14 0x000000000047aea8 in opfunc_construct.lto_priv.798 (frame_ctx_p=0x7fffffffcba0) at jerryscript/jerry-core/vm/vm.c:431
#15 0x000000000047a139 in vm_execute (frame_ctx_p=0x7fffffffcba0, arg_p=0x0, arg_list_len=0)
at jerryscript/jerry-core/vm/vm.c:2509
#16 0x000000000047a1bf in vm_run_with_inline_stack.lto_priv.796 (frame_ctx_p=0x7fffffffcba0, arg_p=0x0, arg_list_len=1)
at jerryscript/jerry-core/vm/vm.c:2540
#17 0x00000000004766d0 in vm_run (bytecode_header_p=0x8b3288 <mem_heap+520>, this_binding_value=35, lex_env_p=0x8b30b8 <mem_heap+56>, is_eval_code=false,
arg_list_p=0x0, arg_list_len=1) at jerryscript/jerry-core/vm/vm.c:2614
#18 0x000000000047a9d2 in vm_run_global (error_value_p=0x7fffffffcc88) at jerryscript/jerry-core/vm/vm.c:190
#19 0x000000000048194a in jerry_run (error_value_p=0x7fffffffce20) at jerryscript/jerry-core/jerry.c:1748
#20 0x000000000047fbc2 in main (argc=3, argv=0x7fffffffd318) at jerryscript/main-unix.c:511
```
| Assertion 'mem_is_heap_pointer (MEM_HEAP_GET_ADDR_FROM_OFFSET (next_offset)) || next_offset == MEM_HEAP_GET_OFFSET_FROM_ADDR (MEM_HEAP_END_OF_LIST)' in mem_heap_alloc_block_internal | https://api.github.com/repos/jerryscript-project/jerryscript/issues/1075/comments | 1 | 2016-05-19T09:02:58Z | 2016-07-08T12:23:06Z | https://github.com/jerryscript-project/jerryscript/issues/1075 | 155,686,842 | 1,075 |
[
"jerryscript-project",
"jerryscript"
] | ###### Jerry version:
```
Checked revision: e1c8a2e
Build: debug.linux
```
###### OS:
```
Ubuntu 15.10, x86_64
```
###### Test case:
``` javascript
try { this.Date.prototype.$ (this.isNaN.length, this.String.fromCharCode.length) } catch($){}
try { this.String.prototype.constructor.prototype.$(new (this.RegExp)()) } catch($){}
try { this.RegExp.prototype.constructor.prototype.compile () } catch($){}
try { this.isNaN (undefined) } catch($){}
try { new (this.Date)("2015-09-17").constructor.parse() } catch($){}
try { this.isNaN(this.RegExp.prototype.compile(this.RegExp.prototype)) } catch($){}
try { new $.$ () } catch($){}
```
###### Backtrace:
```
ICE: Assertion 'ECMA_PROPERTY_IS_PROPERTY_PAIR (prop_iter_p)' failed at jerryscript/jerry-core/ecma/base/ecma-helpers.c(ecma_find_internal_property):530.
Error: ERR_FAILED_INTERNAL_ASSERTION
Program received signal SIGABRT, Aborted.
0x0000000000485b37 in syscall_2 () at jerryscript/jerry-libc/target/posix/jerry-asm.S:60
60 SYSCALL_2
(gdb) bt
#0 0x0000000000485b37 in syscall_2 () at jerryscript/jerry-libc/target/posix/jerry-asm.S:60
#1 0x000000000040037f in raise (sig=6) at jerryscript/jerry-libc/target/posix/jerry-libc-target.c:92
#2 0x0000000000400351 in abort () at jerryscript/jerry-libc/target/posix/jerry-libc-target.c:78
#3 0x000000000041d117 in jerry_port_fatal (code=ERR_FAILED_INTERNAL_ASSERTION)
at jerryscript/targets/default/jerry-port-default-fatal.c:54
#4 0x000000000041cd58 in jerry_fatal (code=ERR_FAILED_INTERNAL_ASSERTION) at jerryscript/jerry-core/jrt/jrt-fatals.c:68
#5 0x000000000041cd9f in jerry_assert_fail (assertion=0x49daa8 "ECMA_PROPERTY_IS_PROPERTY_PAIR (prop_iter_p)",
file=0x49d6e0 "jerryscript/jerry-core/ecma/base/ecma-helpers.c",
function=0x48bea0 <__func__.3506.lto_priv.475> "ecma_find_internal_property", line=530)
at jerryscript/jerry-core/jrt/jrt-fatals.c:95
#6 0x0000000000443eac in ecma_find_internal_property (object_p=0x8b35f8 <mem_heap+1400>, property_id=ECMA_INTERNAL_PROPERTY_FREE_CALLBACK)
at jerryscript/jerry-core/ecma/base/ecma-helpers.c:530
#7 0x0000000000445da3 in ecma_get_external_pointer_value (obj_p=0x8b35f8 <mem_heap+1400>, id=ECMA_INTERNAL_PROPERTY_FREE_CALLBACK,
out_pointer_p=0x7fffffffcbe8) at jerryscript/jerry-core/ecma/base/ecma-helpers-external-pointers.c:116
#8 0x000000000044aba4 in ecma_gc_sweep.lto_priv.505 (object_p=0x8b35f8 <mem_heap+1400>)
at jerryscript/jerry-core/ecma/base/ecma-gc.c:409
#9 0x0000000000441f31 in ecma_gc_run () at jerryscript/jerry-core/ecma/base/ecma-gc.c:549
#10 0x0000000000437648 in ecma_finalize () at jerryscript/jerry-core/ecma/base/ecma-init-finalize.c:56
#11 0x0000000000481858 in jerry_cleanup () at jerryscript/jerry-core/jerry.c:1668
#12 0x000000000047fd85 in main (argc=3, argv=0x7fffffffd318) at jerryscript/main-unix.c:591
```
| Assertion 'ECMA_PROPERTY_IS_PROPERTY_PAIR (prop_iter_p)' failed in ecma_find_internal_property | https://api.github.com/repos/jerryscript-project/jerryscript/issues/1074/comments | 1 | 2016-05-19T08:56:35Z | 2016-07-08T12:22:57Z | https://github.com/jerryscript-project/jerryscript/issues/1074 | 155,685,566 | 1,074 |
[
"jerryscript-project",
"jerryscript"
] | ###### Jerry version:
```
Checked revision: e1c8a2e
Build: debug.linux
```
###### OS:
```
Ubuntu 15.10, x86_64
```
###### Test case:
``` javascript
try { String.prototype(new (RegExp)()) } catch($){}
try { RegExp.prototype.compile() } catch($){}
try { isNaN(RegExp.prototype.compile(RegExp.prototype)) } catch($){}
```
###### Backtrace:
```
Program received signal SIGSEGV, Segmentation fault.
0x000000000047a675 in mem_pools_collect_empty () at jerryscript/jerry-core/mem/mem-poolman.c:187
187 mem_pools_chunk_t *const next_p = mem_free_chunk_p->next_p;
(gdb) bt
#0 0x000000000047a675 in mem_pools_collect_empty () at jerryscript/jerry-core/mem/mem-poolman.c:187
#1 0x000000000047a5ca in mem_pools_finalize () at jerryscript/jerry-core/mem/mem-poolman.c:121
#2 0x000000000047a48a in mem_finalize (is_show_mem_stats=false) at jerryscript/jerry-core/mem/mem-allocator.c:52
#3 0x000000000048186d in jerry_cleanup () at jerryscript/jerry-core/jerry.c:1670
#4 0x000000000047fd85 in main (argc=2, argv=0x7fffffffd328) at jerryscript/main-unix.c:591
```
| Segmentation fault in mem_pools_collect_empty | https://api.github.com/repos/jerryscript-project/jerryscript/issues/1073/comments | 1 | 2016-05-19T08:51:18Z | 2016-07-08T12:22:48Z | https://github.com/jerryscript-project/jerryscript/issues/1073 | 155,684,508 | 1,073 |
[
"jerryscript-project",
"jerryscript"
] | ###### Jerry version:
```
Checked revision: e1c8a2e
Build: debug.linux
```
###### OS:
```
Ubuntu 15.10, x86_64
```
###### Test case:
``` javascript
try { new (this.$)(new (this.RegExp)().ignoreCase).$ () } catch($){}
try { new (this.String)() .constructor.prototype.match() } catch($){}
try { this.RegExp().compile() } catch($){}
try { this.$(this.RegExp.prototype .compile (this.RegExp.prototype)) } catch($){}
```
###### Backtrace:
```
Program received signal SIGSEGV, Segmentation fault.
0x000000000047a61d in mem_pools_alloc () at jerryscript/jerry-core/mem/mem-poolman.c:147
147 mem_free_chunk_p = chunk_p->next_p;
(gdb) bt
#0 0x000000000047a61d in mem_pools_alloc () at jerryscript/jerry-core/mem/mem-poolman.c:147
#1 0x000000000044a1ea in ecma_alloc_string () at jerryscript/jerry-core/ecma/base/ecma-alloc.c:95
#2 0x000000000043bdc2 in ecma_new_ecma_string_from_magic_string_id (id=LIT_MAGIC_STRING_MULTILINE)
at jerryscript/jerry-core/ecma/base/ecma-helpers-string.c:315
#3 0x0000000000436ff2 in ecma_get_magic_string (id=LIT_MAGIC_STRING_MULTILINE)
at jerryscript/jerry-core/ecma/base/ecma-helpers-string.c:1416
#4 0x000000000042e83f in re_initialize_props (re_obj_p=0x8b3150 <mem_heap+208>, source_p=0x8b36f8 <mem_heap+1656>, flags=0)
at jerryscript/jerry-core/ecma/operations/ecma-regexp-object.c:189
#5 0x0000000000475e83 in ecma_builtin_regexp_prototype_compile (this_arg=211, pattern_arg=211, flags_arg=24)
at jerryscript/jerry-core/ecma/builtin-objects/ecma-builtin-regexp-prototype.c:149
#6 0x0000000000475a4e in ecma_builtin_regexp_prototype_dispatch_routine (builtin_routine_id=201, this_arg_value=211, arguments_list=0x7fffffffcb60,
arguments_number=1) at jerryscript/jerry-core/ecma/builtin-objects/ecma-builtin-regexp-prototype.inc.h:90
#7 0x0000000000474be3 in ecma_builtin_dispatch_routine (builtin_object_id=ECMA_BUILTIN_ID_REGEXP_PROTOTYPE, builtin_routine_id=201, this_arg_value=211,
arguments_list=0x7fffffffcb60, arguments_number=1)
at jerryscript/jerry-core/ecma/builtin-objects/ecma-builtins.inc.h:163
#8 0x000000000047442c in ecma_builtin_dispatch_call (obj_p=0x8b3688 <mem_heap+1544>, this_arg_value=211, arguments_list_p=0x7fffffffcb60,
arguments_list_len=1) at jerryscript/jerry-core/ecma/builtin-objects/ecma-builtins.c:531
#9 0x000000000043a430 in ecma_op_function_call (func_obj_p=0x8b3688 <mem_heap+1544>, this_arg_value=211, arguments_list_p=0x7fffffffcb60,
arguments_list_len=1) at jerryscript/jerry-core/ecma/operations/ecma-function-object.c:649
#10 0x000000000047ad99 in opfunc_call.lto_priv.799 (frame_ctx_p=0x7fffffffcbc0) at jerryscript/jerry-core/vm/vm.c:379
#11 0x000000000047a0f7 in vm_execute (frame_ctx_p=0x7fffffffcbc0, arg_p=0x0, arg_list_len=0)
at jerryscript/jerry-core/vm/vm.c:2504
#12 0x000000000047a1bf in vm_run_with_inline_stack.lto_priv.796 (frame_ctx_p=0x7fffffffcbc0, arg_p=0x0, arg_list_len=1)
at jerryscript/jerry-core/vm/vm.c:2540
#13 0x00000000004766d0 in vm_run (bytecode_header_p=0x8b3340 <mem_heap+704>, this_binding_value=35, lex_env_p=0x8b30b8 <mem_heap+56>, is_eval_code=false,
arg_list_p=0x0, arg_list_len=1) at jerryscript/jerry-core/vm/vm.c:2614
#14 0x000000000047a9d2 in vm_run_global (error_value_p=0x7fffffffcca8) at jerryscript/jerry-core/vm/vm.c:190
#15 0x000000000048194a in jerry_run (error_value_p=0x7fffffffce40) at jerryscript/jerry-core/jerry.c:1748
#16 0x000000000047fbc2 in main (argc=2, argv=0x7fffffffd338) at jerryscript/main-unix.c:511
```
| Segmentation fault in mem_pools_alloc (from ecma_alloc_string) | https://api.github.com/repos/jerryscript-project/jerryscript/issues/1072/comments | 0 | 2016-05-19T08:40:56Z | 2016-05-24T09:28:48Z | https://github.com/jerryscript-project/jerryscript/issues/1072 | 155,682,531 | 1,072 |
[
"jerryscript-project",
"jerryscript"
] | ###### Jerry version:
```
Checked revision: 7cf8b79
Build: debug.linux
```
###### OS:
```
Ubuntu 15.10, x86_64
```
###### Description:
Running the following test takes a long time (I killed it after 5 minutes):
``` javascript
new Date(864858163349847396, 1, 1, 1, 1, 1, 1, 1)
```
| Hang when creating Date with huge year value | https://api.github.com/repos/jerryscript-project/jerryscript/issues/1071/comments | 0 | 2016-05-18T22:00:55Z | 2016-06-16T06:27:39Z | https://github.com/jerryscript-project/jerryscript/issues/1071 | 155,611,689 | 1,071 |
[
"jerryscript-project",
"jerryscript"
] | Hi,
At the moment in the mbed target build, the behaviour when loading JS files is to execute main.js first, and then evaluate all the other js files (in whichever order they were turned into C files by js2c). This can leave some applications rather fragile, if their execution depends on the order in which their scripts are evaluated.
Is there a plan to introduce a function that allows explicit inclusion of files like 'require()' to this jerryscript target, or is that more intended for iot.js? Thanks.
| mbed target script importing | https://api.github.com/repos/jerryscript-project/jerryscript/issues/1067/comments | 11 | 2016-05-18T12:48:08Z | 2017-01-31T13:36:14Z | https://github.com/jerryscript-project/jerryscript/issues/1067 | 155,492,778 | 1,067 |
[
"jerryscript-project",
"jerryscript"
] | ###### Jerry version:
```
Checked revision: 7cf8b79
Build: debug.linux
```
###### OS:
```
Ubuntu 15.10, x86_64
```
###### Test case:
``` javascript
new (new (new RegExp().constructor)().constructor)().constructor.prototype.toString()
RegExp().constructor().constructor.prototype.compile(RegExp.prototype)
```
###### Backtrace:
```
ICE: Assertion 'ECMA_PROPERTY_GET_TYPE (prop_p) == ECMA_PROPERTY_TYPE_NAMEDDATA' failed at jerryscript/jerry-core/ecma/operations/ecma-regexp-object.c(re_initialize_props):219.
Error: ERR_FAILED_INTERNAL_ASSERTION
Program received signal SIGABRT, Aborted.
0x0000000000485af2 in syscall_2 () at jerryscript/jerry-libc/target/posix/jerry-asm.S:60
60 SYSCALL_2
(gdb) bt
#0 0x0000000000485af2 in syscall_2 () at jerryscript/jerry-libc/target/posix/jerry-asm.S:60
#1 0x000000000040037f in raise (sig=6) at jerryscript/jerry-libc/target/posix/jerry-libc-target.c:92
#2 0x0000000000400351 in abort () at jerryscript/jerry-libc/target/posix/jerry-libc-target.c:78
#3 0x000000000041d3fd in jerry_port_fatal (code=ERR_FAILED_INTERNAL_ASSERTION)
at jerryscript/targets/default/jerry-port-default-fatal.c:54
#4 0x000000000041d03e in jerry_fatal (code=ERR_FAILED_INTERNAL_ASSERTION) at jerryscript/jerry-core/jrt/jrt-fatals.c:68
#5 0x000000000041d085 in jerry_assert_fail (assertion=0x49a430 "ECMA_PROPERTY_GET_TYPE (prop_p) == ECMA_PROPERTY_TYPE_NAMEDDATA",
file=0x49a3a0 "jerryscript/jerry-core/ecma/operations/ecma-regexp-object.c",
function=0x48d570 <__func__.4119.lto_priv.364> "re_initialize_props", line=219)
at jerryscript/jerry-core/jrt/jrt-fatals.c:95
#6 0x000000000042eb8e in re_initialize_props (re_obj_p=0x8b3148 <mem_heap+200>, source_p=0x8b34b0 <mem_heap+1072>, flags=0)
at jerryscript/jerry-core/ecma/operations/ecma-regexp-object.c:219
#7 0x0000000000476019 in ecma_builtin_regexp_prototype_compile (this_arg=203, pattern_arg=203, flags_arg=8)
at jerryscript/jerry-core/ecma/builtin-objects/ecma-builtin-regexp-prototype.c:149
#8 0x0000000000475be4 in ecma_builtin_regexp_prototype_dispatch_routine (builtin_routine_id=201, this_arg_value=203, arguments_list=0x7fffffffcb3c,
arguments_number=1) at jerryscript/jerry-core/ecma/builtin-objects/ecma-builtin-regexp-prototype.inc.h:90
#9 0x0000000000474d45 in ecma_builtin_dispatch_routine (builtin_object_id=ECMA_BUILTIN_ID_REGEXP_PROTOTYPE, builtin_routine_id=201, this_arg_value=203,
arguments_list=0x7fffffffcb3c, arguments_number=1)
at jerryscript/jerry-core/ecma/builtin-objects/ecma-builtins.inc.h:163
#10 0x000000000047458e in ecma_builtin_dispatch_call (obj_p=0x8b3608 <mem_heap+1416>, this_arg_value=203, arguments_list_p=0x7fffffffcb3c,
arguments_list_len=1) at jerryscript/jerry-core/ecma/builtin-objects/ecma-builtins.c:535
#11 0x000000000043a768 in ecma_op_function_call (func_obj_p=0x8b3608 <mem_heap+1416>, this_arg_value=203, arguments_list_p=0x7fffffffcb3c,
arguments_list_len=1) at jerryscript/jerry-core/ecma/operations/ecma-function-object.c:651
#12 0x0000000000480c47 in opfunc_call.lto_priv.784 (frame_ctx_p=0x7fffffffcbb0) at jerryscript/jerry-core/vm/vm.c:379
#13 0x0000000000476dce in vm_execute (frame_ctx_p=0x7fffffffcbb0, arg_p=0x0, arg_list_len=0)
at jerryscript/jerry-core/vm/vm.c:2431
#14 0x0000000000476e96 in vm_run_with_inline_stack (frame_ctx_p=0x7fffffffcbb0, arg_p=0x0, arg_list_len=1)
at jerryscript/jerry-core/vm/vm.c:2467
#15 0x000000000047707e in vm_run (bytecode_header_p=0x8b3248 <mem_heap+456>, this_binding_value=35, lex_env_p=0x8b30b8 <mem_heap+56>, is_eval_code=false,
arg_list_p=0x0, arg_list_len=1) at jerryscript/jerry-core/vm/vm.c:2541
#16 0x0000000000480880 in vm_run_global (error_value_p=0x7fffffffcc98) at jerryscript/jerry-core/vm/vm.c:190
#17 0x0000000000483e7c in jerry_run (error_value_p=0x7fffffffce30) at jerryscript/jerry-core/jerry.c:1759
#18 0x000000000048204e in main (argc=3, argv=0x7fffffffd328) at jerryscript/main-unix.c:511
```
| Assertion 'ECMA_PROPERTY_GET_TYPE (prop_p) == ECMA_PROPERTY_TYPE_NAMEDDATA' failed in re_initialize_props | https://api.github.com/repos/jerryscript-project/jerryscript/issues/1065/comments | 1 | 2016-05-18T07:29:31Z | 2016-07-08T12:22:39Z | https://github.com/jerryscript-project/jerryscript/issues/1065 | 155,433,921 | 1,065 |