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"
] | Refactor the lexer's code so that iterator is checked for EOS only in one place.
| Remove redundant !lit_utf8_iterator_is_eos (&source_str_iter) checks from lexer | https://api.github.com/repos/jerryscript-project/jerryscript/issues/384/comments | 2 | 2015-07-13T15:13:53Z | 2016-02-08T09:18:15Z | https://github.com/jerryscript-project/jerryscript/issues/384 | 94,744,164 | 384 |
[
"jerryscript-project",
"jerryscript"
] | ###### Jerry version:
```
Checked revision: 13cf314
Build: debug.linux
```
###### OS:
```
Ubuntu 15.04, x86_64
```
###### Test case:
``` javascript
function f_0(){
'use strict';
var v_0 = {
p_0: function(a_0, a_1) {}
};
f_1(function(a_2) {});
}
```
###### Backtrace:
``` javascript
ICE: Assertion 'STACK_ELEMENT (props, j).type == VARG' failed at jerryscript/jerry-core/parser/js/syntax-errors.cpp(syntax_check_for_syntax_errors_in_formal_param_list):220.
Error: ERR_FAILED_INTERNAL_ASSERTION
Program received signal SIGABRT, Aborted.
0x0000000000499b11 in syscall_2_asm () at jerryscript/jerry-libc/target/linux/jerry-asm.S:32
32 SYSCALL_2
(gdb) bt
#0 0x0000000000499b11 in syscall_2_asm () at jerryscript/jerry-libc/target/linux/jerry-asm.S:32
#1 0x00000000004003c2 in syscall_2 (syscall_no=62, arg1=24749, arg2=6) at jerryscript/jerry-libc/target/linux/jerry-libc-target.c:96
#2 0x0000000000400563 in abort () at jerryscript/jerry-libc/target/linux/jerry-libc-target.c:175
#3 0x0000000000442455 in jerry_fatal (code=ERR_FAILED_INTERNAL_ASSERTION) at jerryscript/jerry-core/jrt/jrt-fatals.cpp:65
#4 0x00000000004424a4 in jerry_assert_fail (assertion=0x4a6820 "STACK_ELEMENT (props, j).type == VARG",
file=0x4a6508 "jerryscript/jerry-core/parser/js/syntax-errors.cpp",
function=0x4a16e0 <_ZZ51syntax_check_for_syntax_errors_in_formal_param_listb23lit_utf8_iterator_pos_tE8__func__.lto_priv.293> "syntax_check_for_syntax_errors_in_formal_param_list", line=220) at jerryscript/jerry-core/jrt/jrt-fatals.cpp:92
#5 0x000000000041d8d7 in syntax_check_for_syntax_errors_in_formal_param_list (is_strict=true, loc=...)
at jerryscript/jerry-core/parser/js/syntax-errors.cpp:220
#6 0x0000000000447240 in parse_function_declaration () at jerryscript/jerry-core/parser/js/parser.cpp:662
#7 0x000000000044a8a8 in parse_source_element () at jerryscript/jerry-core/parser/js/parser.cpp:2831
#8 0x000000000044ad55 in parse_source_element_list(bool) [clone .lto_priv.560] (is_global=true)
at jerryscript/jerry-core/parser/js/parser.cpp:3074
#9 0x000000000044aee9 in parser_parse_program (
source_p=0x6cb780 <_ZL13source_buffer.lto_priv.1117> "function f_0(){\n 'use strict';\n var v_0 = {\n p_0: function(a_0, a_1) {}\n };\n f_1(function(a_2) {});\n}", source_size=120, in_function=false, in_eval=false, is_strict=false, out_opcodes_p=0x7fffffffd640)
at jerryscript/jerry-core/parser/js/parser.cpp:3134
#10 0x000000000044b068 in parser_parse_script (
source=0x6cb780 <_ZL13source_buffer.lto_priv.1117> "function f_0(){\n 'use strict';\n var v_0 = {\n p_0: function(a_0, a_1) {}\n };\n f_1(function(a_2) {});\n}", source_size=120, opcodes_p=0x7fffffffd640) at jerryscript/jerry-core/parser/js/parser.cpp:3203
#11 0x0000000000499221 in jerry_parse (
source_p=0x6cb780 <_ZL13source_buffer.lto_priv.1117> "function f_0(){\n 'use strict';\n var v_0 = {\n p_0: function(a_0, a_1) {}\n };\n f_1(function(a_2) {});\n}", source_size=120) at jerryscript/jerry-core/jerry.cpp:1341
#12 0x0000000000497e2e in main (argc=3, argv=0x7fffffffd8e8) at jerryscript/main-linux.cpp:285
```
| Assertion 'STACK_ELEMENT (props, j).type == VARG' failed in syntax_check_for_syntax_errors_in_formal_param_list | https://api.github.com/repos/jerryscript-project/jerryscript/issues/381/comments | 2 | 2015-07-13T09:06:36Z | 2016-11-25T06:26:33Z | https://github.com/jerryscript-project/jerryscript/issues/381 | 94,673,423 | 381 |
[
"jerryscript-project",
"jerryscript"
] | ###### Jerry version:
```
Checked revision: 13cf314
Build: debug.linux
```
###### OS:
```
Ubuntu 15.04, x86_64
```
###### Test case:
``` javascript
var v_0 = [];
var v_1 = [['\u200E', '\u0601', '\u0602', '\u0603', '\u06DD', '\u070F'],[0x1107, 0x1175, 0x11B0]];
v_0[v_1];
```
###### Backtrace:
``` javascript
ICE: Assertion 'copied > 0' failed at jerryscript/jerry-core/ecma/base/ecma-helpers-string.cpp(ecma_is_string_magic_longpath):1675.
Error: ERR_FAILED_INTERNAL_ASSERTION
Program received signal SIGABRT, Aborted.
0x0000000000499b11 in syscall_2_asm () at jerryscript/jerry-libc/target/linux/jerry-asm.S:32
32 SYSCALL_2
(gdb) bt
#0 0x0000000000499b11 in syscall_2_asm () at jerryscript/jerry-libc/target/linux/jerry-asm.S:32
#1 0x00000000004003c2 in syscall_2 (syscall_no=62, arg1=23442, arg2=6) at jerryscript/jerry-libc/target/linux/jerry-libc-target.c:96
#2 0x0000000000400563 in abort () at jerryscript/jerry-libc/target/linux/jerry-libc-target.c:175
#3 0x0000000000442455 in jerry_fatal (code=ERR_FAILED_INTERNAL_ASSERTION) at jerryscript/jerry-core/jrt/jrt-fatals.cpp:65
#4 0x00000000004424a4 in jerry_assert_fail (assertion=0x4b09de "copied > 0",
file=0x4b0238 "jerryscript/jerry-core/ecma/base/ecma-helpers-string.cpp",
function=0x49deb0 <_ZZL29ecma_is_string_magic_longpathPK13ecma_string_tP21lit_magic_string_id_tE8__func__.lto_priv.708> "ecma_is_string_magic_longpath",
line=1675) at jerryscript/jerry-core/jrt/jrt-fatals.cpp:92
#5 0x000000000045b09e in ecma_is_string_magic_longpath (string_p=0x7cc158 <_ZL13mem_heap_area.lto_priv.1056+1432>, out_id_p=0x7fffffffd144)
at jerryscript/jerry-core/ecma/base/ecma-helpers-string.cpp:1675
#6 0x000000000045b1ca in ecma_is_string_magic (string_p=0x7cc158 <_ZL13mem_heap_area.lto_priv.1056+1432>, out_id_p=0x7fffffffd144)
at jerryscript/jerry-core/ecma/base/ecma-helpers-string.cpp:1723
#7 0x0000000000438b0b in ecma_builtin_array_prototype_try_to_instantiate_property (obj_p=0x7cbc80 <_ZL13mem_heap_area.lto_priv.1056+192>,
prop_name_p=0x7cc158 <_ZL13mem_heap_area.lto_priv.1056+1432>)
at jerryscript/jerry-core/ecma/builtin-objects/ecma-builtin-internal-routines-template.inc.h:112
#8 0x000000000048970a in ecma_builtin_try_to_instantiate_property (object_p=0x7cbc80 <_ZL13mem_heap_area.lto_priv.1056+192>,
string_p=0x7cc158 <_ZL13mem_heap_area.lto_priv.1056+1432>) at jerryscript/jerry-core/ecma/builtin-objects/ecma-builtins.inc.h:37
#9 0x0000000000456a60 in ecma_op_object_get_own_property_longpath (obj_p=0x7cbc80 <_ZL13mem_heap_area.lto_priv.1056+192>,
property_name_p=0x7cc158 <_ZL13mem_heap_area.lto_priv.1056+1432>) at jerryscript/jerry-core/ecma/operations/ecma-objects.cpp:145
#10 0x0000000000456b2c in ecma_op_object_get_own_property (obj_p=0x7cbc80 <_ZL13mem_heap_area.lto_priv.1056+192>,
property_name_p=0x7cc158 <_ZL13mem_heap_area.lto_priv.1056+1432>) at jerryscript/jerry-core/ecma/operations/ecma-objects.cpp:177
#11 0x000000000044ca8a in ecma_op_general_object_get_property (obj_p=0x7cbc80 <_ZL13mem_heap_area.lto_priv.1056+192>,
property_name_p=0x7cc158 <_ZL13mem_heap_area.lto_priv.1056+1432>)
at jerryscript/jerry-core/ecma/operations/ecma-objects-general.cpp:225
#12 0x0000000000456bd7 in ecma_op_object_get_property (obj_p=0x7cbc80 <_ZL13mem_heap_area.lto_priv.1056+192>,
property_name_p=0x7cc158 <_ZL13mem_heap_area.lto_priv.1056+1432>) at jerryscript/jerry-core/ecma/operations/ecma-objects.cpp:218
#13 0x000000000044cac5 in ecma_op_general_object_get_property (obj_p=0x7cbc90 <_ZL13mem_heap_area.lto_priv.1056+208>,
property_name_p=0x7cc158 <_ZL13mem_heap_area.lto_priv.1056+1432>)
at jerryscript/jerry-core/ecma/operations/ecma-objects-general.cpp:239
#14 0x0000000000456bd7 in ecma_op_object_get_property (obj_p=0x7cbc90 <_ZL13mem_heap_area.lto_priv.1056+208>,
property_name_p=0x7cc158 <_ZL13mem_heap_area.lto_priv.1056+1432>) at jerryscript/jerry-core/ecma/operations/ecma-objects.cpp:218
#15 0x000000000044c8d9 in ecma_op_general_object_get (obj_p=0x7cbc90 <_ZL13mem_heap_area.lto_priv.1056+208>,
property_name_p=0x7cc158 <_ZL13mem_heap_area.lto_priv.1056+1432>)
at jerryscript/jerry-core/ecma/operations/ecma-objects-general.cpp:149
#16 0x0000000000456962 in ecma_op_object_get (obj_p=0x7cbc90 <_ZL13mem_heap_area.lto_priv.1056+208>,
property_name_p=0x7cc158 <_ZL13mem_heap_area.lto_priv.1056+1432>) at jerryscript/jerry-core/ecma/operations/ecma-objects.cpp:80
#17 0x0000000000457478 in ecma_op_get_value_object_base (ref=...) at jerryscript/jerry-core/ecma/operations/ecma-get-put-value.cpp:103
#18 0x000000000043dd0c in opfunc_prop_getter (opdata=..., int_data=0x7fffffffd520) at jerryscript/jerry-core/vm/opcodes.cpp:1234
#19 0x00000000004909be in vm_loop (int_data_p=0x7fffffffd520, run_scope_p=0x0) at jerryscript/jerry-core/vm/vm.cpp:466
#20 0x0000000000490c4b in vm_run_from_pos (opcodes_p=0x7cbdd8 <_ZL13mem_heap_area.lto_priv.1056+536>, start_pos=1, this_binding_value=23,
lex_env_p=0x7cbbf8 <_ZL13mem_heap_area.lto_priv.1056+56>, is_strict=false, is_eval_code=false)
at jerryscript/jerry-core/vm/vm.cpp:556
#21 0x0000000000490828 in vm_run_global () at jerryscript/jerry-core/vm/vm.cpp:395
#22 0x000000000049926e in jerry_run () at jerryscript/jerry-core/jerry.cpp:1373
#23 0x0000000000497e4d in main (argc=3, argv=0x7fffffffd8e8) at jerryscript/main-linux.cpp:294
```
| Assertion 'copied > 0' failed in ecma_is_string_magic_longpath | https://api.github.com/repos/jerryscript-project/jerryscript/issues/380/comments | 3 | 2015-07-13T08:56:00Z | 2016-11-25T06:26:33Z | https://github.com/jerryscript-project/jerryscript/issues/380 | 94,671,294 | 380 |
[
"jerryscript-project",
"jerryscript"
] | ###### Jerry version:
```
Checked revision: 13cf314
Build: debug.linux
```
###### OS:
```
Ubuntu 15.04, x86_64
```
###### Test case:
``` javascript
JSON.stringify([[0xeff1],[0xD6C3]]);
```
###### Backtrace:
``` javascript
Program received signal SIGSEGV, Segmentation fault.
0x0000000000423c78 in list_has_element (ctx_p=0x7fffffffd158, element_p=0x7cbe48 <_ZL13mem_heap_area.lto_priv.1056+648>)
at jerryscript/jerry-core/ecma/builtin-objects/ecma-builtin-helpers-json.cpp:90
90 if (*current_p == element_p)
(gdb) bt
#0 0x0000000000423c78 in list_has_element (ctx_p=0x7fffffffd158, element_p=0x7cbe48 <_ZL13mem_heap_area.lto_priv.1056+648>)
at jerryscript/jerry-core/ecma/builtin-objects/ecma-builtin-helpers-json.cpp:90
#1 0x000000000046cd70 in ecma_builtin_json_array(ecma_object_t*, stringify_context_t*) [clone .lto_priv.810] (
obj_p=0x7cbe48 <_ZL13mem_heap_area.lto_priv.1056+648>, context_p=0x7fffffffd140)
at jerryscript/jerry-core/ecma/builtin-objects/ecma-builtin-json.cpp:1662
#2 0x0000000000476c41 in ecma_builtin_json_str(ecma_string_t*, ecma_object_t*, stringify_context_t*) [clone .lto_priv.797] (
key_p=0x7cbef8 <_ZL13mem_heap_area.lto_priv.1056+824>, holder_p=0x7cbcd0 <_ZL13mem_heap_area.lto_priv.1056+272>, context_p=0x7fffffffd140)
at jerryscript/jerry-core/ecma/builtin-objects/ecma-builtin-json.cpp:1420
#3 0x000000000046d07b in ecma_builtin_json_array(ecma_object_t*, stringify_context_t*) [clone .lto_priv.810] (
obj_p=0x7cbcd0 <_ZL13mem_heap_area.lto_priv.1056+272>, context_p=0x7fffffffd140)
at jerryscript/jerry-core/ecma/builtin-objects/ecma-builtin-json.cpp:1708
#4 0x0000000000476c41 in ecma_builtin_json_str(ecma_string_t*, ecma_object_t*, stringify_context_t*) [clone .lto_priv.797] (
key_p=0x7cbec8 <_ZL13mem_heap_area.lto_priv.1056+776>, holder_p=0x7cbec0 <_ZL13mem_heap_area.lto_priv.1056+768>, context_p=0x7fffffffd140)
at jerryscript/jerry-core/ecma/builtin-objects/ecma-builtin-json.cpp:1420
#5 0x0000000000475d65 in ecma_builtin_json_stringify (this_arg=95, arg1=139, arg2=4, arg3=4)
at jerryscript/jerry-core/ecma/builtin-objects/ecma-builtin-json.cpp:1087
#6 0x0000000000473912 in ecma_builtin_json_dispatch_routine (builtin_routine_id=46, this_arg_value=95,
arguments_list=0x80bb50 <_ZL13mem_heap_area.lto_priv.1056+262032>, arguments_number=1)
at jerryscript/jerry-core/ecma/builtin-objects/ecma-builtin-json.inc.h:47
#7 0x000000000048a6e6 in ecma_builtin_dispatch_routine (builtin_object_id=ECMA_BUILTIN_ID_JSON, builtin_routine_id=46, this_arg_value=95,
arguments_list=0x80bb50 <_ZL13mem_heap_area.lto_priv.1056+262032>, arguments_number=1)
at jerryscript/jerry-core/ecma/builtin-objects/ecma-builtins.inc.h:135
#8 0x0000000000489ce7 in ecma_builtin_dispatch_call (obj_p=0x7cbca0 <_ZL13mem_heap_area.lto_priv.1056+224>, this_arg_value=95,
arguments_list_p=0x80bb50 <_ZL13mem_heap_area.lto_priv.1056+262032>, arguments_list_len=1)
at jerryscript/jerry-core/ecma/builtin-objects/ecma-builtins.cpp:414
#9 0x000000000044bbcf in ecma_op_function_call (func_obj_p=0x7cbca0 <_ZL13mem_heap_area.lto_priv.1056+224>, this_arg_value=95,
arguments_list_p=0x80bb50 <_ZL13mem_heap_area.lto_priv.1056+262032>, arguments_list_len=1)
at jerryscript/jerry-core/ecma/operations/ecma-function-object.cpp:714
#10 0x000000000043ca41 in opfunc_call_n (opdata=..., int_data=0x7fffffffd520) at jerryscript/jerry-core/vm/opcodes.cpp:817
#11 0x00000000004909be in vm_loop (int_data_p=0x7fffffffd520, run_scope_p=0x0) at jerryscript/jerry-core/vm/vm.cpp:466
#12 0x0000000000490c4b in vm_run_from_pos (opcodes_p=0x7cbd58 <_ZL13mem_heap_area.lto_priv.1056+408>, start_pos=1, this_binding_value=23,
lex_env_p=0x7cbbf8 <_ZL13mem_heap_area.lto_priv.1056+56>, is_strict=false, is_eval_code=false)
at jerryscript/jerry-core/vm/vm.cpp:556
#13 0x0000000000490828 in vm_run_global () at jerryscript/jerry-core/vm/vm.cpp:395
#14 0x000000000049926e in jerry_run () at jerryscript/jerry-core/jerry.cpp:1373
#15 0x0000000000497e4d in main (argc=2, argv=0x7fffffffd8e8) at jerryscript/main-linux.cpp:294
```
| Segmentation fault in list_has_element | https://api.github.com/repos/jerryscript-project/jerryscript/issues/379/comments | 1 | 2015-07-13T08:46:53Z | 2016-11-25T06:26:33Z | https://github.com/jerryscript-project/jerryscript/issues/379 | 94,669,482 | 379 |
[
"jerryscript-project",
"jerryscript"
] | ###### Jerry version:
```
Checked revision: 13cf314
Build: debug.linux
```
###### OS:
```
Ubuntu 15.04, x86_64
```
###### Test case:
``` javascript
JSON.stringify("");
```
###### Backtrace:
``` javascript
ICE: Assertion 'bytes_copied > 0' failed at jerryscript/jerry-core/ecma/builtin-objects/ecma-builtin-json.cpp(ecma_builtin_json_quote):1132.
Error: ERR_FAILED_INTERNAL_ASSERTION
Program received signal SIGABRT, Aborted.
0x0000000000499b11 in syscall_2_asm () at jerryscript/jerry-libc/target/linux/jerry-asm.S:32
32 SYSCALL_2
(gdb) bt
#0 0x0000000000499b11 in syscall_2_asm () at jerryscript/jerry-libc/target/linux/jerry-asm.S:32
#1 0x00000000004003c2 in syscall_2 (syscall_no=62, arg1=21502, arg2=6) at jerryscript/jerry-libc/target/linux/jerry-libc-target.c:96
#2 0x0000000000400563 in abort () at jerryscript/jerry-libc/target/linux/jerry-libc-target.c:175
#3 0x0000000000442455 in jerry_fatal (code=ERR_FAILED_INTERNAL_ASSERTION) at jerryscript/jerry-core/jrt/jrt-fatals.cpp:65
#4 0x00000000004424a4 in jerry_assert_fail (assertion=0x4b4354 "bytes_copied > 0",
file=0x4b3de8 "jerryscript/jerry-core/ecma/builtin-objects/ecma-builtin-json.cpp",
function=0x49d0b0 <_ZZL23ecma_builtin_json_quoteP13ecma_string_tE8__func__.lto_priv.800> "ecma_builtin_json_quote", line=1132)
at jerryscript/jerry-core/jrt/jrt-fatals.cpp:92
#5 0x0000000000475f11 in ecma_builtin_json_quote (string_p=0x7cbcd0 <_ZL13mem_heap_area.lto_priv.1056+272>)
at jerryscript/jerry-core/ecma/builtin-objects/ecma-builtin-json.cpp:1132
#6 0x0000000000476ace in ecma_builtin_json_str(ecma_string_t*, ecma_object_t*, stringify_context_t*) [clone .lto_priv.797] (
key_p=0x7cbcf0 <_ZL13mem_heap_area.lto_priv.1056+304>, holder_p=0x7cbce8 <_ZL13mem_heap_area.lto_priv.1056+296>, context_p=0x7fffffffd130)
at jerryscript/jerry-core/ecma/builtin-objects/ecma-builtin-json.cpp:1391
#7 0x0000000000475d65 in ecma_builtin_json_stringify (this_arg=95, arg1=138, arg2=4, arg3=4)
at jerryscript/jerry-core/ecma/builtin-objects/ecma-builtin-json.cpp:1087
#8 0x0000000000473912 in ecma_builtin_json_dispatch_routine (builtin_routine_id=46, this_arg_value=95,
arguments_list=0x80bb50 <_ZL13mem_heap_area.lto_priv.1056+262032>, arguments_number=1)
at jerryscript/jerry-core/ecma/builtin-objects/ecma-builtin-json.inc.h:47
#9 0x000000000048a6e6 in ecma_builtin_dispatch_routine (builtin_object_id=ECMA_BUILTIN_ID_JSON, builtin_routine_id=46, this_arg_value=95,
arguments_list=0x80bb50 <_ZL13mem_heap_area.lto_priv.1056+262032>, arguments_number=1)
at jerryscript/jerry-core/ecma/builtin-objects/ecma-builtins.inc.h:135
#10 0x0000000000489ce7 in ecma_builtin_dispatch_call (obj_p=0x7cbca0 <_ZL13mem_heap_area.lto_priv.1056+224>, this_arg_value=95,
arguments_list_p=0x80bb50 <_ZL13mem_heap_area.lto_priv.1056+262032>, arguments_list_len=1)
at jerryscript/jerry-core/ecma/builtin-objects/ecma-builtins.cpp:414
#11 0x000000000044bbcf in ecma_op_function_call (func_obj_p=0x7cbca0 <_ZL13mem_heap_area.lto_priv.1056+224>, this_arg_value=95,
arguments_list_p=0x80bb50 <_ZL13mem_heap_area.lto_priv.1056+262032>, arguments_list_len=1)
at jerryscript/jerry-core/ecma/operations/ecma-function-object.cpp:714
#12 0x000000000043ca41 in opfunc_call_n (opdata=..., int_data=0x7fffffffd510) at jerryscript/jerry-core/vm/opcodes.cpp:817
#13 0x00000000004909be in vm_loop (int_data_p=0x7fffffffd510, run_scope_p=0x0) at jerryscript/jerry-core/vm/vm.cpp:466
#14 0x0000000000490c4b in vm_run_from_pos (opcodes_p=0x7cbd58 <_ZL13mem_heap_area.lto_priv.1056+408>, start_pos=1, this_binding_value=23,
lex_env_p=0x7cbbf8 <_ZL13mem_heap_area.lto_priv.1056+56>, is_strict=false, is_eval_code=false)
at jerryscript/jerry-core/vm/vm.cpp:556
#15 0x0000000000490828 in vm_run_global () at jerryscript/jerry-core/vm/vm.cpp:395
#16 0x000000000049926e in jerry_run () at jerryscript/jerry-core/jerry.cpp:1373
#17 0x0000000000497e4d in main (argc=3, argv=0x7fffffffd8d8) at jerryscript/main-linux.cpp:294
```
| Assertion 'bytes_copied > 0' failed in ecma_builtin_json_quote | https://api.github.com/repos/jerryscript-project/jerryscript/issues/378/comments | 3 | 2015-07-13T08:42:43Z | 2015-07-15T15:30:25Z | https://github.com/jerryscript-project/jerryscript/issues/378 | 94,668,830 | 378 |
[
"jerryscript-project",
"jerryscript"
] | The testcase:
``` js
var func = new Function("return 2");
```
reports the following error:
```
^
ERROR: Ln 1, Col 9: Expected either ';' or newline token
```
However this should not cause any errors.
| Incorrect parser error when calling Function constructor | https://api.github.com/repos/jerryscript-project/jerryscript/issues/364/comments | 2 | 2015-07-10T12:18:27Z | 2015-07-20T14:22:45Z | https://github.com/jerryscript-project/jerryscript/issues/364 | 94,296,307 | 364 |
[
"jerryscript-project",
"jerryscript"
] | Built-in functions that require us to iterate over Arrays currently do so by iterating over the whole length of the array. Most of the time this is necessary, but there are some function where we can get away with only iterating over the defined properties. This should be done wherever possible, since this could greatly decrease runtime in case the array is sparse.
For example:
```
var a = new Array ();
a[100000] = 1;
a[1000000] = 2;
a.sort ();
```
Functions where this could be done:
- Array.prototype.indexOf
- Array.prototype.lastIndexOf
- Array.prototype.shift
- Array.prototype.unshift
- Array.prototype.sort
| Iterating over sparse Arrays | https://api.github.com/repos/jerryscript-project/jerryscript/issues/362/comments | 1 | 2015-07-10T11:34:59Z | 2016-10-17T05:52:10Z | https://github.com/jerryscript-project/jerryscript/issues/362 | 94,289,966 | 362 |
[
"jerryscript-project",
"jerryscript"
] | ###### Jerry version:
```
Checked revision: 9b24d8f
Build: debug.linux
```
###### OS:
```
Ubuntu 15.04, x86_64
```
###### Test case:
``` javascript
function f_0(a_0) {
"use strict";
Object.freeze({a: "foo"});
}
```
###### Backtrace:
``` javascript
ICE: Assertion 'STACK_ELEMENT (props, i).type == VARG' failed at jerryscript/jerry-core/parser/js/syntax-errors.cpp(syntax_check_for_syntax_errors_in_formal_param_list):213.
Error: ERR_FAILED_INTERNAL_ASSERTION
Program received signal SIGABRT, Aborted.
0x0000000000499ae6 in syscall_2_asm () at jerryscript/jerry-libc/target/linux/jerry-asm.S:32
32 SYSCALL_2
(gdb) bt
#0 0x0000000000499ae6 in syscall_2_asm () at jerryscript/jerry-libc/target/linux/jerry-asm.S:32
#1 0x00000000004003c2 in syscall_2 (syscall_no=62, arg1=10514, arg2=6) at jerryscript/jerry-libc/target/linux/jerry-libc-target.c:96
#2 0x0000000000400563 in abort () at jerryscript/jerry-libc/target/linux/jerry-libc-target.c:175
#3 0x000000000044242f in jerry_fatal (code=ERR_FAILED_INTERNAL_ASSERTION) at jerryscript/jerry-core/jrt/jrt-fatals.cpp:65
#4 0x000000000044247e in jerry_assert_fail (assertion=0x4a66f8 "STACK_ELEMENT (props, i).type == VARG",
file=0x4a6488 "jerryscript/jerry-core/parser/js/syntax-errors.cpp",
function=0x4a16a0 <_ZZ51syntax_check_for_syntax_errors_in_formal_param_listb23lit_utf8_iterator_pos_tE8__func__.lto_priv.293> "syntax_check_for_syntax_errors_in_formal_param_list", line=213) at jerryscript/jerry-core/jrt/jrt-fatals.cpp:92
#5 0x000000000041d7ea in syntax_check_for_syntax_errors_in_formal_param_list (is_strict=true, loc=...)
at jerryscript/jerry-core/parser/js/syntax-errors.cpp:213
#6 0x000000000044721a in parse_function_declaration () at jerryscript/jerry-core/parser/js/parser.cpp:662
#7 0x000000000044a882 in parse_source_element () at jerryscript/jerry-core/parser/js/parser.cpp:2831
#8 0x000000000044ad2f in parse_source_element_list(bool) [clone .lto_priv.560] (is_global=true)
at jerryscript/jerry-core/parser/js/parser.cpp:3074
#9 0x000000000044aec3 in parser_parse_program (
source_p=0x6cb780 <_ZL13source_buffer.lto_priv.1117> "function f_0(a_0) {\n \"use strict\";\n Object.freeze({a: \"foo\"});\n}", source_size=70,
in_function=false, in_eval=false, is_strict=false, out_opcodes_p=0x7fffffffd620) at jerryscript/jerry-core/parser/js/parser.cpp:3134
#10 0x000000000044b042 in parser_parse_script (
source=0x6cb780 <_ZL13source_buffer.lto_priv.1117> "function f_0(a_0) {\n \"use strict\";\n Object.freeze({a: \"foo\"});\n}", source_size=70,
opcodes_p=0x7fffffffd620) at jerryscript/jerry-core/parser/js/parser.cpp:3203
#11 0x00000000004991f6 in jerry_parse (
source_p=0x6cb780 <_ZL13source_buffer.lto_priv.1117> "function f_0(a_0) {\n \"use strict\";\n Object.freeze({a: \"foo\"});\n}", source_size=70)
at jerryscript/jerry-core/jerry.cpp:1341
#12 0x0000000000497e03 in main (argc=3, argv=0x7fffffffd8c8) at jerryscript/main-linux.cpp:285
```
| Assertion 'STACK_ELEMENT (props, i).type == VARG' failed in syntax_check_for_syntax_errors_in_formal_param_list | https://api.github.com/repos/jerryscript-project/jerryscript/issues/359/comments | 1 | 2015-07-10T08:51:10Z | 2015-11-19T11:16:26Z | https://github.com/jerryscript-project/jerryscript/issues/359 | 94,253,872 | 359 |
[
"jerryscript-project",
"jerryscript"
] | ###### Jerry version:
```
Checked revision: 9b24d8f
Build: debug.linux
```
###### OS:
```
Ubuntu 15.04, x86_64
```
###### Test case:
``` javascript
label_0:
if (false)
do {
continue label_0;
} while (false);
```
###### Backtrace:
``` javascript
ICE: Assertion 'label_p->continue_tgt_oc != MAX_OPCODES' failed at jerryscript/jerry-core/parser/js/jsp-label.cpp(jsp_label_rewrite_jumps_and_pop):125.
Error: ERR_FAILED_INTERNAL_ASSERTION
Program received signal SIGABRT, Aborted.
0x0000000000499ae6 in syscall_2_asm () at jerryscript/jerry-libc/target/linux/jerry-asm.S:32
32 SYSCALL_2
(gdb) bt
#0 0x0000000000499ae6 in syscall_2_asm () at jerryscript/jerry-libc/target/linux/jerry-asm.S:32
#1 0x00000000004003c2 in syscall_2 (syscall_no=62, arg1=9091, arg2=6) at jerryscript/jerry-libc/target/linux/jerry-libc-target.c:96
#2 0x0000000000400563 in abort () at jerryscript/jerry-libc/target/linux/jerry-libc-target.c:175
#3 0x000000000044242f in jerry_fatal (code=ERR_FAILED_INTERNAL_ASSERTION) at jerryscript/jerry-core/jrt/jrt-fatals.cpp:65
#4 0x000000000044247e in jerry_assert_fail (assertion=0x4a6350 "label_p->continue_tgt_oc != MAX_OPCODES",
file=0x4a6210 "jerryscript/jerry-core/parser/js/jsp-label.cpp",
function=0x4a1560 <_ZZ31jsp_label_rewrite_jumps_and_popP11jsp_label_ttE8__func__.lto_priv.303> "jsp_label_rewrite_jumps_and_pop", line=125)
at jerryscript/jerry-core/jrt/jrt-fatals.cpp:92
#5 0x000000000041c6cf in jsp_label_rewrite_jumps_and_pop (label_p=0x7fffffffd3d0, break_tgt_oc=7)
at jerryscript/jerry-core/parser/js/jsp-label.cpp:125
#6 0x000000000044a7df in parse_statement (outermost_stmt_label_p=0x0) at jerryscript/jerry-core/parser/js/parser.cpp:2795
#7 0x000000000044a88e in parse_source_element () at jerryscript/jerry-core/parser/js/parser.cpp:2835
#8 0x000000000044ad2f in parse_source_element_list(bool) [clone .lto_priv.560] (is_global=true)
at jerryscript/jerry-core/parser/js/parser.cpp:3074
#9 0x000000000044aec3 in parser_parse_program (
source_p=0x6cb780 <_ZL13source_buffer.lto_priv.1117> "label_0: \n if (false)\n do {\n", ' ' <repeats 12 times>, "continue label_0;\n } while (false);", source_size=93, in_function=false, in_eval=false, is_strict=false, out_opcodes_p=0x7fffffffd620)
at jerryscript/jerry-core/parser/js/parser.cpp:3134
#10 0x000000000044b042 in parser_parse_script (
source=0x6cb780 <_ZL13source_buffer.lto_priv.1117> "label_0: \n if (false)\n do {\n", ' ' <repeats 12 times>, "continue label_0;\n } while (false);", source_size=93, opcodes_p=0x7fffffffd620) at jerryscript/jerry-core/parser/js/parser.cpp:3203
#11 0x00000000004991f6 in jerry_parse (
source_p=0x6cb780 <_ZL13source_buffer.lto_priv.1117> "label_0: \n if (false)\n do {\n", ' ' <repeats 12 times>, "continue label_0;\n } while (false);", source_size=93) at jerryscript/jerry-core/jerry.cpp:1341
#12 0x0000000000497e03 in main (argc=3, argv=0x7fffffffd8c8) at jerryscript/main-linux.cpp:285
```
| Assertion 'label_p->continue_tgt_oc != MAX_OPCODES' failed in jsp_label_rewrite_jumps_and_pop | https://api.github.com/repos/jerryscript-project/jerryscript/issues/358/comments | 5 | 2015-07-10T08:45:22Z | 2016-11-25T06:26:32Z | https://github.com/jerryscript-project/jerryscript/issues/358 | 94,252,854 | 358 |
[
"jerryscript-project",
"jerryscript"
] | In js it is possible to create arrays with unset values.
Example:
``` js
var data = [0,,,'3'];
```
In this case the `data` array's `1` and `2` properties **should not** exist.
``` js
data.hasOwnProperty(1) == false
data.hasOwnProperty(2) == false
```
Currently both the 1 and 2 is set to undefined which is incorrect.
However the `data.length` should be `4` and when accessing the `data[1]` and `data[2]` should return `undefined`
Testcase:
``` js
var data = [0,,,'3'];
if (!(data.hasOwnProperty(0) && data.hasOwnProperty(3))
{
print("Error, index 0 and 3 does not exist");
}
if (data.hasOwnProperty(1) !== false)
{
print("Error, index 1 should not be set");
}
if (data.hasOwnProperty(2) !== false)
{
print("Error, index 2 should not be set");
}
if (data.length !== 4)
{
print("Error, array's length should be 4");
}
```
| Allow unset values when creating arrays | https://api.github.com/repos/jerryscript-project/jerryscript/issues/356/comments | 4 | 2015-07-10T07:57:57Z | 2016-11-25T06:26:32Z | https://github.com/jerryscript-project/jerryscript/issues/356 | 94,242,989 | 356 |
[
"jerryscript-project",
"jerryscript"
] | When I do pre-commit test I get
```
make[1]: Entering directory `/.../harmony/jerryscript'
Running ./build/bin/unittests/unit-test-api... OK
Running ./build/bin/unittests/unit-test-date-helpers... FAILED
Unit tests run failed. See ./build/bin/unittests/unit_tests_run.log for details.
make[1]: *** [unittests_run] Error 1
```
`./build/bin/unittests/unit_tests_run.log` says
```
ICE: Assertion 'ecma_date_day (MS_PER_DAY) == 1' failed at /.../harmony/jerryscript/tests/unit/test-date-helpers.cpp(main):32.
Error: ERR_FAILED_INTERNAL_ASSERTION
```
is this a problem for only me or a bug? or duplicate issue?
| unittests/unit-test-date-helpers fail for 32bit | https://api.github.com/repos/jerryscript-project/jerryscript/issues/355/comments | 3 | 2015-07-10T00:37:03Z | 2015-07-24T09:21:45Z | https://github.com/jerryscript-project/jerryscript/issues/355 | 94,182,751 | 355 |
[
"jerryscript-project",
"jerryscript"
] | If a js source contains an object with more than 255 key then the engine goes into infinite loop in the `syntax_check_for_duplication_of_prop_names` function (`jerry-core/parser/js/syntax-errors.cpp`).
Testcase:
``` js
var data = {
'1': '', '2': '', '3': '', '4': '', '5': '', '6': '', '7': '', '8': '',
'9': '', '10': '', '11': '', '12': '', '13': '', '14': '', '15': '', '16': '',
'17': '', '18': '', '19': '', '20': '', '21': '', '22': '', '23': '', '24': '',
'25': '', '26': '', '27': '', '28': '', '29': '', '30': '', '31': '', '32': '',
'33': '', '34': '', '35': '', '36': '', '37': '', '38': '', '39': '', '40': '',
'41': '', '42': '', '43': '', '44': '', '45': '', '46': '', '47': '', '48': '',
'49': '', '50': '', '51': '', '52': '', '53': '', '54': '', '55': '', '56': '',
'57': '', '58': '', '59': '', '60': '', '61': '', '62': '', '63': '', '64': '',
'65': '', '66': '', '67': '', '68': '', '69': '', '70': '', '71': '', '72': '',
'73': '', '74': '', '75': '', '76': '', '77': '', '78': '', '79': '', '80': '',
'81': '', '82': '', '83': '', '84': '', '85': '', '86': '', '87': '', '88': '',
'89': '', '90': '', '91': '', '92': '', '93': '', '94': '', '95': '', '96': '',
'97': '', '98': '', '99': '', '100': '', '101': '', '102': '', '103': '', '104': '',
'105': '', '106': '', '107': '', '108': '', '109': '', '110': '', '111': '', '112': '',
'113': '', '114': '', '115': '', '116': '', '117': '', '118': '', '119': '', '120': '',
'121': '', '122': '', '123': '', '124': '', '125': '', '126': '', '127': '', '128': '',
'129': '', '130': '', '131': '', '132': '', '133': '', '134': '', '135': '', '136': '',
'137': '', '138': '', '139': '', '140': '', '141': '', '142': '', '143': '', '144': '',
'145': '', '146': '', '147': '', '148': '', '149': '', '150': '', '151': '', '152': '',
'153': '', '154': '', '155': '', '156': '', '157': '', '158': '', '159': '', '160': '',
'161': '', '162': '', '163': '', '164': '', '165': '', '166': '', '167': '', '168': '',
'169': '', '170': '', '171': '', '172': '', '173': '', '174': '', '175': '', '176': '',
'177': '', '178': '', '179': '', '180': '', '181': '', '182': '', '183': '', '184': '',
'185': '', '186': '', '187': '', '188': '', '189': '', '190': '', '191': '', '192': '',
'193': '', '194': '', '195': '', '196': '', '197': '', '198': '', '199': '', '200': '',
'201': '', '202': '', '203': '', '204': '', '205': '', '206': '', '207': '', '208': '',
'209': '', '210': '', '211': '', '212': '', '213': '', '214': '', '215': '', '216': '',
'217': '', '218': '', '219': '', '220': '', '221': '', '222': '', '223': '', '224': '',
'225': '', '226': '', '227': '', '228': '', '229': '', '230': '', '231': '', '232': '',
'233': '', '234': '', '235': '', '236': '', '237': '', '238': '', '239': '', '240': '',
'241': '', '242': '', '243': '', '244': '', '245': '', '246': '', '247': '', '248': '',
'249': '', '250': '', '251': '', '252': '', '253': '', '254': '', '255': '',
'256': '',
};
```
| Support arguments lists longer than 255 in byte-code | https://api.github.com/repos/jerryscript-project/jerryscript/issues/354/comments | 5 | 2015-07-09T17:16:54Z | 2016-11-25T06:26:32Z | https://github.com/jerryscript-project/jerryscript/issues/354 | 94,105,271 | 354 |
[
"jerryscript-project",
"jerryscript"
] | ### Test:
`assert (isNaN(Date.prototype.valueOf.call(Date.prototype)));`
### ECMA:
http://www.ecma-international.org/ecma-262/5.1/#sec-15.9.5
| Internal value of Date.prototype should be NaN. | https://api.github.com/repos/jerryscript-project/jerryscript/issues/351/comments | 2 | 2015-07-09T13:04:19Z | 2016-11-25T06:26:32Z | https://github.com/jerryscript-project/jerryscript/issues/351 | 94,042,638 | 351 |
[
"jerryscript-project",
"jerryscript"
] | ###### Jerry version:
```
Checked revision: 146ac15
Build: debug.linux
```
###### OS:
```
Ubuntu 15.04, x86_64
```
###### Test case:
``` javascript
new Date(20000000, 0, 1);
```
###### Backtrace:
``` javascript
ICE: Assertion 'ecma_date_year_from_time (time) == ym' failed at jerryscript/jerry-core/ecma/builtin-objects/ecma-builtin-helpers-date.cpp(ecma_date_make_day):634.
Error: ERR_FAILED_INTERNAL_ASSERTION
Program received signal SIGABRT, Aborted.
0x0000000000497a28 in syscall_2_asm () at jerryscript/jerry-libc/target/linux/jerry-asm.S:32
32 SYSCALL_2
(gdb) bt
#0 0x0000000000497a28 in syscall_2_asm () at jerryscript/jerry-libc/target/linux/jerry-asm.S:32
#1 0x00000000004003c2 in syscall_2 (syscall_no=62, arg1=32710, arg2=6) at jerryscript/jerry-libc/target/linux/jerry-libc-target.c:96
#2 0x0000000000400563 in abort () at jerryscript/jerry-libc/target/linux/jerry-libc-target.c:175
#3 0x0000000000447ae3 in jerry_fatal (code=ERR_FAILED_INTERNAL_ASSERTION) at jerryscript/jerry-core/jrt/jrt-fatals.cpp:65
#4 0x0000000000447b32 in jerry_assert_fail (assertion=0x4a4f10 "ecma_date_year_from_time (time) == ym",
file=0x4a4dd8 "jerryscript/jerry-core/ecma/builtin-objects/ecma-builtin-helpers-date.cpp",
function=0x49f3e0 <_ZZ18ecma_date_make_daydddE8__func__.lto_priv.313> "ecma_date_make_day", line=634)
at jerryscript/jerry-core/jrt/jrt-fatals.cpp:92
#5 0x0000000000423bc9 in ecma_date_make_day (year=20000000, month=0, date=1)
at jerryscript/jerry-core/ecma/builtin-objects/ecma-builtin-helpers-date.cpp:634
#6 0x000000000042c287 in ecma_date_construct_helper(unsigned int const*, unsigned int) [clone .lto_priv.320] (
args=0x808b50 <_ZL13mem_heap_area.lto_priv.1031+262032>, args_len=3)
at jerryscript/jerry-core/ecma/builtin-objects/ecma-builtin-date.cpp:165
#7 0x000000000042203d in ecma_builtin_date_dispatch_construct (arguments_list_p=0x808b50 <_ZL13mem_heap_area.lto_priv.1031+262032>, arguments_list_len=3)
at jerryscript/jerry-core/ecma/builtin-objects/ecma-builtin-date.cpp:541
#8 0x000000000048757c in ecma_builtin_dispatch_construct (obj_p=0x7c8c70 <_ZL13mem_heap_area.lto_priv.1031+176>,
arguments_list_p=0x808b50 <_ZL13mem_heap_area.lto_priv.1031+262032>, arguments_list_len=3)
at jerryscript/jerry-core/ecma/builtin-objects/ecma-builtins.inc.h:153
#9 0x000000000044fef0 in ecma_op_function_construct (func_obj_p=0x7c8c70 <_ZL13mem_heap_area.lto_priv.1031+176>,
arguments_list_p=0x808b50 <_ZL13mem_heap_area.lto_priv.1031+262032>, arguments_list_len=3)
at jerryscript/jerry-core/ecma/operations/ecma-function-object.cpp:855
#10 0x00000000004440e1 in opfunc_construct_n (opdata=..., int_data=0x7fffffffd520) at jerryscript/jerry-core/vm/opcodes.cpp:908
#11 0x000000000048e8f3 in vm_loop (int_data_p=0x7fffffffd520, run_scope_p=0x0) at jerryscript/jerry-core/vm/vm.cpp:466
#12 0x000000000048eb80 in vm_run_from_pos (opcodes_p=0x7c8d58 <_ZL13mem_heap_area.lto_priv.1031+408>, start_pos=1, this_binding_value=23,
lex_env_p=0x7c8bf8 <_ZL13mem_heap_area.lto_priv.1031+56>, is_strict=false, is_eval_code=false)
at jerryscript/jerry-core/vm/vm.cpp:556
#13 0x000000000048e75d in vm_run_global () at jerryscript/jerry-core/vm/vm.cpp:395
#14 0x0000000000497185 in jerry_run () at jerryscript/jerry-core/jerry.cpp:1373
#15 0x0000000000495d64 in main (argc=3, argv=0x7fffffffd8e8) at jerryscript/main-linux.cpp:294
```
| Assertion 'ecma_date_year_from_time (time) == ym' failed in ecma_date_make_day | https://api.github.com/repos/jerryscript-project/jerryscript/issues/348/comments | 1 | 2015-07-09T08:34:50Z | 2016-11-25T06:26:32Z | https://github.com/jerryscript-project/jerryscript/issues/348 | 93,990,780 | 348 |
[
"jerryscript-project",
"jerryscript"
] | var str1 = "\ud801\udc00";
var str2 = "\ud801";
var str3 = "\udc00";
print(str1 == str2 + str3);
should be true, not false
Actually I need a similar technique for implementing toLowerCase/toUpperCase, and would like to mimic what the concatenation does. Unfortunately concatenation does not work at the moment.
| concatenating surrogates fails | https://api.github.com/repos/jerryscript-project/jerryscript/issues/346/comments | 1 | 2015-07-09T06:43:16Z | 2016-11-25T06:26:32Z | https://github.com/jerryscript-project/jerryscript/issues/346 | 93,970,272 | 346 |
[
"jerryscript-project",
"jerryscript"
] | iotjs build is using nuttx parts in cmake scripts and as #330 landed iotjs nuttx build fails by the changes.
I'm trying to fix the scripts with using `PLATFORM` as `EXTERNAL` and not getting anywhere.
@egavrin , can you please quick fix this?
there are items that needs some fix
- using `CMAKE_SYSTEM_VERSION` as platform name
- complicate mode and hard tracking built target
| iotjs build break for nuttx | https://api.github.com/repos/jerryscript-project/jerryscript/issues/344/comments | 6 | 2015-07-09T05:14:14Z | 2016-11-25T06:26:32Z | https://github.com/jerryscript-project/jerryscript/issues/344 | 93,957,105 | 344 |
[
"jerryscript-project",
"jerryscript"
] | Nuttx heap memory size limit is now gone for #313, commit 8a815fe35742fb45070ccf461998f137aa9b3e9e
it would be nice to set CONFIG_MEM_HEAP_AREA_SIZE from command line.
I couldn't find an issue about it so I'm adding this one.
| Heap size limit for embed system | https://api.github.com/repos/jerryscript-project/jerryscript/issues/342/comments | 5 | 2015-07-08T23:04:36Z | 2016-11-25T06:26:32Z | https://github.com/jerryscript-project/jerryscript/issues/342 | 93,909,751 | 342 |
[
"jerryscript-project",
"jerryscript"
] | ###### Jerry version:
```
Checked revision: 146ac15
Build: debug.linux
```
###### OS:
```
Ubuntu 15.04, x86_64
```
###### Test case:
``` javascript
�
```
Hex: BF 0A 0A
###### Backtrace:
``` javascript
^
ERROR: Ln 1, Col 1: Invalid source encoding
Program received signal SIGSEGV, Segmentation fault.
0x0000000000497a84 in longjmp () at jerryscript/jerry-libc/target/linux/jerry-asm.S:69
69 _LONGJMP
(gdb) bt
#0 0x0000000000497a84 in longjmp () at jerryscript/jerry-libc/target/linux/jerry-asm.S:69
Backtrace stopped: Cannot access memory at address 0x0
```
| Segmentation fault in longjmp | https://api.github.com/repos/jerryscript-project/jerryscript/issues/341/comments | 3 | 2015-07-08T20:57:35Z | 2016-11-25T06:26:32Z | https://github.com/jerryscript-project/jerryscript/issues/341 | 93,889,014 | 341 |
[
"jerryscript-project",
"jerryscript"
] | ###### Jerry version:
```
Checked revision: 146ac15
Build: debug.linux
```
###### OS:
```
Ubuntu 15.04, x86_64
```
###### Test case:
``` javascript
'\0'+'456';
```
###### Backtrace:
``` javascript
ICE: Assertion '!lit_utf8_iterator_is_eos (iter_p)' failed at jerryscript/jerry-core/lit/lit-strings.cpp(lit_utf8_iterator_read_next):406.
Error: ERR_FAILED_INTERNAL_ASSERTION
Program received signal SIGABRT, Aborted.
0x0000000000497a28 in syscall_2_asm () at jerryscript/jerry-libc/target/linux/jerry-asm.S:32
32 SYSCALL_2
(gdb) bt
#0 0x0000000000497a28 in syscall_2_asm () at jerryscript/jerry-libc/target/linux/jerry-asm.S:32
#1 0x00000000004003c2 in syscall_2 (syscall_no=62, arg1=17991, arg2=6) at jerryscript/jerry-libc/target/linux/jerry-libc-target.c:96
#2 0x0000000000400563 in abort () at jerryscript/jerry-libc/target/linux/jerry-libc-target.c:175
#3 0x0000000000447ae3 in jerry_fatal (code=ERR_FAILED_INTERNAL_ASSERTION) at jerryscript/jerry-core/jrt/jrt-fatals.cpp:65
#4 0x0000000000447b32 in jerry_assert_fail (assertion=0x4b7b70 "!lit_utf8_iterator_is_eos (iter_p)", file=0x4b7b28 "jerryscript/jerry-core/lit/lit-strings.cpp",
function=0x497e30 <_ZZ27lit_utf8_iterator_read_nextP19lit_utf8_iterator_tE8__func__.lto_priv.1068> "lit_utf8_iterator_read_next", line=406) at jerryscript/jerry-core/jrt/jrt-fatals.cpp:92
#5 0x0000000000491fc7 in lit_utf8_iterator_read_next (iter_p=0x7fffffffd740) at jerryscript/jerry-core/lit/lit-strings.cpp:406
#6 0x0000000000491f3c in lit_utf8_iterator_incr (iter_p=0x7fffffffd740) at jerryscript/jerry-core/lit/lit-strings.cpp:373
#7 0x000000000041ac96 in lexer_transform_escape_sequences (source_str_p=0x6c8781 <_ZL13source_buffer.lto_priv.1092+1> "\\0'+'456';", source_str_size=2,
output_str_buf_p=0x808694 <_ZL13mem_heap_area.lto_priv.1031+260820> "") at jerryscript/jerry-core/parser/js/lexer.cpp:387
#8 0x000000000041af4c in lexer_create_token_for_charset_transform_escape_sequences(token_type, unsigned char const*, unsigned int) [clone .lto_priv.176] (tt=TOK_STRING,
charset_p=0x6c8781 <_ZL13source_buffer.lto_priv.1092+1> "\\0'+'456';", size=2) at jerryscript/jerry-core/parser/js/lexer.cpp:478
#9 0x00000000004114da in lexer_parse_string () at jerryscript/jerry-core/parser/js/lexer.cpp:1062
#10 0x0000000000411b33 in lexer_parse_token () at jerryscript/jerry-core/parser/js/lexer.cpp:1258
#11 0x0000000000412916 in lexer_next_token() () at jerryscript/jerry-core/parser/js/lexer.cpp:1483
#12 0x000000000044ad92 in skip_token() [clone .lto_priv.539] () at jerryscript/jerry-core/parser/js/parser.cpp:102
#13 0x000000000044afd2 in skip_newlines() [clone .lto_priv.535] () at jerryscript/jerry-core/parser/js/parser.cpp:135
#14 0x000000000044693f in parser_parse_program (source_p=0x6c8780 <_ZL13source_buffer.lto_priv.1092> "'\\0'+'456';", source_size=11, in_function=false, in_eval=false, is_strict=false, out_opcodes_p=0x7fffffffdcb0)
at jerryscript/jerry-core/parser/js/parser.cpp:3119
#15 0x0000000000446ac8 in parser_parse_script (source=0x6c8780 <_ZL13source_buffer.lto_priv.1092> "'\\0'+'456';", source_size=11, opcodes_p=0x7fffffffdcb0)
at jerryscript/jerry-core/parser/js/parser.cpp:3189
#16 0x0000000000497138 in jerry_parse (source_p=0x6c8780 <_ZL13source_buffer.lto_priv.1092> "'\\0'+'456';", source_size=11) at jerryscript/jerry-core/jerry.cpp:1341
#17 0x0000000000495d45 in main (argc=3, argv=0x7fffffffdf58) at jerryscript/main-linux.cpp:285
```
| Assertion '!lit_utf8_iterator_is_eos (iter_p)' failed in lit_utf8_iterator_read_next | https://api.github.com/repos/jerryscript-project/jerryscript/issues/340/comments | 1 | 2015-07-08T20:40:15Z | 2016-11-25T06:26:32Z | https://github.com/jerryscript-project/jerryscript/issues/340 | 93,885,935 | 340 |
[
"jerryscript-project",
"jerryscript"
] | ###### Jerry version:
```
Checked revision: 146ac15
Build: debug.linux
```
###### OS:
```
Ubuntu 15.04, x86_64
```
###### Test case:
``` javascript
y = 4e;
```
###### Backtrace:
``` javascript
ICE: Assertion '!ecma_number_is_nan (res)' failed at jerryscript/jerry-core/parser/js/lexer.cpp(lexer_parse_number):943.
Error: ERR_FAILED_INTERNAL_ASSERTION
Program received signal SIGABRT, Aborted.
0x0000000000497a28 in syscall_2_asm () at jerryscript/jerry-libc/target/linux/jerry-asm.S:32
32 SYSCALL_2
(gdb) bt
#0 0x0000000000497a28 in syscall_2_asm () at jerryscript/jerry-libc/target/linux/jerry-asm.S:32
#1 0x00000000004003c2 in syscall_2 (syscall_no=62, arg1=32682, arg2=6) at jerryscript/jerry-libc/target/linux/jerry-libc-target.c:96
#2 0x0000000000400563 in abort () at jerryscript/jerry-libc/target/linux/jerry-libc-target.c:175
#3 0x0000000000447ae3 in jerry_fatal (code=ERR_FAILED_INTERNAL_ASSERTION) at jerryscript/jerry-core/jrt/jrt-fatals.cpp:65
#4 0x0000000000447b32 in jerry_assert_fail (assertion=0x4a4011 "!ecma_number_is_nan (res)", file=0x4a35e0 "jerryscript/jerry-core/parser/js/lexer.cpp",
function=0x49fc10 <_ZZL18lexer_parse_numbervE8__func__.lto_priv.177> "lexer_parse_number", line=943) at jerryscript/jerry-core/jrt/jrt-fatals.cpp:92
#5 0x000000000041ba82 in lexer_parse_number() [clone .lto_priv.171] () at jerryscript/jerry-core/parser/js/lexer.cpp:943
#6 0x0000000000411ae0 in lexer_parse_token () at jerryscript/jerry-core/parser/js/lexer.cpp:1241
#7 0x0000000000412916 in lexer_next_token() () at jerryscript/jerry-core/parser/js/lexer.cpp:1483
#8 0x000000000044ad92 in skip_token() [clone .lto_priv.539] () at jerryscript/jerry-core/parser/js/parser.cpp:102
#9 0x000000000044afd2 in skip_newlines() [clone .lto_priv.535] () at jerryscript/jerry-core/parser/js/parser.cpp:135
#10 0x00000000004466c2 in preparse_scope (is_global=true) at jerryscript/jerry-core/parser/js/parser.cpp:3005
#11 0x0000000000446784 in parse_source_element_list(bool) [clone .lto_priv.566] (is_global=true) at jerryscript/jerry-core/parser/js/parser.cpp:3049
#12 0x0000000000446949 in parser_parse_program (source_p=0x6c8780 <_ZL13source_buffer.lto_priv.1092> "y = 4e;\n", source_size=8, in_function=false, in_eval=false, is_strict=false, out_opcodes_p=0x7fffffffdcb0)
at jerryscript/jerry-core/parser/js/parser.cpp:3120
#13 0x0000000000446ac8 in parser_parse_script (source=0x6c8780 <_ZL13source_buffer.lto_priv.1092> "y = 4e;\n", source_size=8, opcodes_p=0x7fffffffdcb0)
at jerryscript/jerry-core/parser/js/parser.cpp:3189
#14 0x0000000000497138 in jerry_parse (source_p=0x6c8780 <_ZL13source_buffer.lto_priv.1092> "y = 4e;\n", source_size=8) at jerryscript/jerry-core/jerry.cpp:1341
#15 0x0000000000495d45 in main (argc=3, argv=0x7fffffffdf58) at jerryscript/main-linux.cpp:285
```
| Assertion '!ecma_number_is_nan (res)' failed in lexer_parse_number | https://api.github.com/repos/jerryscript-project/jerryscript/issues/339/comments | 1 | 2015-07-08T20:22:51Z | 2016-11-25T06:26:32Z | https://github.com/jerryscript-project/jerryscript/issues/339 | 93,881,525 | 339 |
[
"jerryscript-project",
"jerryscript"
] | Do you know any fuzzers or stress testing suites that can useful for us?
- jsfunfuzz - https://www.squarefree.com/2007/08/02/introducing-jsfunfuzz/
- afl-fuzz for javascript - https://github.com/tunz/afl-fuzz-js
| Stress testing of the engine | https://api.github.com/repos/jerryscript-project/jerryscript/issues/333/comments | 7 | 2015-07-08T10:37:22Z | 2016-04-20T12:44:28Z | https://github.com/jerryscript-project/jerryscript/issues/333 | 93,758,560 | 333 |
[
"jerryscript-project",
"jerryscript"
] | JerryScript requires CMake 2.8.12.
```
cmake_minimum_required (VERSION 2.8.12)
```
However, It seems like some version of ubuntu only support CMake 2.8.7 with 'apt-get' that developers running such ubuntu should manually download and build CMake 2.8.12.
Is there any problem lowering minimum required version of CMake to 2.8? If there are no problems why don't we lower the required version.
| Lowering required CMake version | https://api.github.com/repos/jerryscript-project/jerryscript/issues/332/comments | 3 | 2015-07-08T02:06:24Z | 2016-11-25T06:26:32Z | https://github.com/jerryscript-project/jerryscript/issues/332 | 93,673,082 | 332 |
[
"jerryscript-project",
"jerryscript"
] | String manipulation functions and regular expressions require lowercase/uppercase conversion. See
http://www.ecma-international.org/ecma-262/5.1/#sec-15.5.4.16
To implement them, we need some utilities in the core.
1) We need a variant, which converts a character to its uppercase described in (starting from Canonicalize part)
http://www.ecma-international.org/ecma-262/5.1/#sec-15.10.2.8
2) We also need variants, which converts characters to 1 or more upper/lowercase characters. E.g. the uppercase form of german sharp s is SS. This is needed for String.prototype.toUpperCase String.prototype.toLowerCase.
3) Fortunately LocaleCompare is platform dependent.
Could you raise the priority of implementing these functions in the core?
| Implement toLowerCase and toUpperCase | https://api.github.com/repos/jerryscript-project/jerryscript/issues/323/comments | 6 | 2015-07-07T12:53:20Z | 2017-02-15T14:57:56Z | https://github.com/jerryscript-project/jerryscript/issues/323 | 93,524,187 | 323 |
[
"jerryscript-project",
"jerryscript"
] | ###### Jerry version:
```
Checked revision: 4e5e7bb
Build: debug.linux
```
###### OS:
```
Ubuntu 14.10, x86_64
```
###### Test case:
``` javascript
RegExp(Date.prototype,35826);
```
###### Backtrace:
``` javascript
ICE: Assertion 'ecma_builtin_is (obj_p, ECMA_BUILTIN_ID_GLOBAL)' failed at jerryscript/jerry-core/ecma/operations/ecma-objects.cpp(ecma_object_get_class_name):692.
Error: ERR_FAILED_INTERNAL_ASSERTION
Program received signal SIGABRT, Aborted.
0x000000000048edab in syscall_2_asm () at jerryscript/jerry-libc/target/linux/jerry-asm.S:32
32 SYSCALL_2
(gdb) bt
#0 0x000000000048edab in syscall_2_asm () at jerryscript/jerry-libc/target/linux/jerry-asm.S:32
#1 0x00000000004003c2 in syscall_2 (syscall_no=62, arg1=5158, arg2=6) at jerryscript/jerry-libc/target/linux/jerry-libc-target.c:96
#2 0x0000000000400563 in abort () at jerryscript/jerry-libc/target/linux/jerry-libc-target.c:175
#3 0x000000000043f5da in jerry_fatal (code=ERR_FAILED_INTERNAL_ASSERTION) at jerryscript/jerry-core/jrt/jrt-fatals.cpp:65
#4 0x000000000043f629 in jerry_assert_fail (assertion=0x4a3b10 "ecma_builtin_is (obj_p, ECMA_BUILTIN_ID_GLOBAL)",
file=0x4a3850 "jerryscript/jerry-core/ecma/operations/ecma-objects.cpp",
function=0x493d90 <_ZZ26ecma_object_get_class_nameP13ecma_object_tE8__func__.lto_priv.595> "ecma_object_get_class_name", line=692)
at jerryscript/jerry-core/jrt/jrt-fatals.cpp:92
#5 0x000000000045358c in ecma_object_get_class_name(ecma_object_t*) (obj_p=0x7bec88 <_ZL13mem_heap_area.lto_priv.1003+264>)
at jerryscript/jerry-core/ecma/operations/ecma-objects.cpp:692
#6 0x00000000004269f9 in ecma_builtin_regexp_dispatch_construct (arguments_list_p=0x7feb10 <_ZL13mem_heap_area.lto_priv.1003+262032>, arguments_list_len=2)
at jerryscript/jerry-core/ecma/builtin-objects/ecma-builtin-regexp.cpp:88
#7 0x000000000042694b in ecma_builtin_regexp_dispatch_call (arguments_list_p=0x7feb10 <_ZL13mem_heap_area.lto_priv.1003+262032>, arguments_list_len=2)
at jerryscript/jerry-core/ecma/builtin-objects/ecma-builtin-regexp.cpp:54
#8 0x000000000047df47 in ecma_builtin_dispatch_call (obj_p=0x7bec30 <_ZL13mem_heap_area.lto_priv.1003+176>, this_arg_value=4,
arguments_list_p=0x7feb10 <_ZL13mem_heap_area.lto_priv.1003+262032>, arguments_list_len=2)
at jerryscript/jerry-core/ecma/builtin-objects/ecma-builtins.inc.h:161
#9 0x0000000000451284 in ecma_op_function_call (func_obj_p=0x7bec30 <_ZL13mem_heap_area.lto_priv.1003+176>, this_arg_value=4,
arguments_list_p=0x7feb10 <_ZL13mem_heap_area.lto_priv.1003+262032>, arguments_list_len=2)
at jerryscript/jerry-core/ecma/operations/ecma-function-object.cpp:631
#10 0x000000000043a079 in opfunc_call_n (opdata=..., int_data=0x7fffffffd520) at jerryscript/jerry-core/vm/opcodes.cpp:817
#11 0x0000000000485d08 in vm_loop (int_data_p=0x7fffffffd520, run_scope_p=0x0) at jerryscript/jerry-core/vm/vm.cpp:466
#12 0x0000000000485f95 in vm_run_from_pos (opcodes_p=0x7bed18 <_ZL13mem_heap_area.lto_priv.1003+408>, start_pos=1, this_binding_value=23,
lex_env_p=0x7bebb8 <_ZL13mem_heap_area.lto_priv.1003+56>, is_strict=false, is_eval_code=false)
at jerryscript/jerry-core/vm/vm.cpp:556
#13 0x0000000000485b72 in vm_run_global () at jerryscript/jerry-core/vm/vm.cpp:395
#14 0x000000000048e5af in jerry_run () at jerryscript/jerry-core/jerry.cpp:1373
#15 0x000000000048d18e in main (argc=3, argv=0x7fffffffd8e8) at jerryscript/main-linux.cpp:291
```
| Assertion 'ecma_builtin_is (obj_p, ECMA_BUILTIN_ID_GLOBAL)' failed in ecma_object_get_class_name | https://api.github.com/repos/jerryscript-project/jerryscript/issues/317/comments | 1 | 2015-07-06T13:30:38Z | 2016-11-25T06:26:32Z | https://github.com/jerryscript-project/jerryscript/issues/317 | 93,279,169 | 317 |
[
"jerryscript-project",
"jerryscript"
] | ###### Jerry version:
```
Checked revision: 4e5e7bb
Build: debug.linux
```
###### OS:
```
Ubuntu 14.10, x86_64
```
###### Test case:
``` javascript
v_1 = RegExp.prototype.test;
v_1(ReferenceError);
```
###### Backtrace:
``` javascript
ICE: Assertion 'ecma_get_value_type_field (value) == ECMA_TYPE_OBJECT' failed at jerryscript/jerry-core/ecma/base/ecma-helpers-value.cpp(ecma_get_object_from_value):316.
Error: ERR_FAILED_INTERNAL_ASSERTION
Program received signal SIGABRT, Aborted.
0x000000000048edab in syscall_2_asm () at jerryscript/jerry-libc/target/linux/jerry-asm.S:32
32 SYSCALL_2
(gdb) bt
#0 0x000000000048edab in syscall_2_asm () at jerryscript/jerry-libc/target/linux/jerry-asm.S:32
#1 0x00000000004003c2 in syscall_2 (syscall_no=62, arg1=30890, arg2=6) at jerryscript/jerry-libc/target/linux/jerry-libc-target.c:96
#2 0x0000000000400563 in abort () at jerryscript/jerry-libc/target/linux/jerry-libc-target.c:175
#3 0x000000000043f5da in jerry_fatal (code=ERR_FAILED_INTERNAL_ASSERTION) at jerryscript/jerry-core/jrt/jrt-fatals.cpp:65
#4 0x000000000043f629 in jerry_assert_fail (assertion=0x4a5a28 "ecma_get_value_type_field (value) == ECMA_TYPE_OBJECT",
file=0x4a5880 "jerryscript/jerry-core/ecma/base/ecma-helpers-value.cpp",
function=0x493a90 <_ZZ26ecma_get_object_from_valuejE8__func__.lto_priv.624> "ecma_get_object_from_value", line=316)
at jerryscript/jerry-core/jrt/jrt-fatals.cpp:92
#5 0x000000000045b274 in ecma_get_object_from_value (value=4) at jerryscript/jerry-core/ecma/base/ecma-helpers-value.cpp:316
#6 0x000000000042a7e8 in ecma_builtin_regexp_prototype_exec (this_arg=4, arg=303)
at jerryscript/jerry-core/ecma/builtin-objects/ecma-builtin-regexp-prototype.cpp:61
#7 0x000000000042aaf0 in ecma_builtin_regexp_prototype_test (this_arg=4, arg=303)
at jerryscript/jerry-core/ecma/builtin-objects/ecma-builtin-regexp-prototype.cpp:116
#8 0x000000000042a79f in ecma_builtin_regexp_prototype_dispatch_routine (builtin_routine_id=194, this_arg_value=4,
arguments_list=0x7feb10 <_ZL13mem_heap_area.lto_priv.1003+262032>, arguments_number=1)
at jerryscript/jerry-core/ecma/builtin-objects/ecma-builtin-regexp-prototype.inc.h:43
#9 0x000000000047e716 in ecma_builtin_dispatch_routine (builtin_object_id=ECMA_BUILTIN_ID_REGEXP_PROTOTYPE, builtin_routine_id=194, this_arg_value=4,
arguments_list=0x7feb10 <_ZL13mem_heap_area.lto_priv.1003+262032>, arguments_number=1)
at jerryscript/jerry-core/ecma/builtin-objects/ecma-builtins.inc.h:153
#10 0x000000000047dd15 in ecma_builtin_dispatch_call (obj_p=0x7bec88 <_ZL13mem_heap_area.lto_priv.1003+264>, this_arg_value=4,
arguments_list_p=0x7feb10 <_ZL13mem_heap_area.lto_priv.1003+262032>, arguments_list_len=1)
at jerryscript/jerry-core/ecma/builtin-objects/ecma-builtins.cpp:414
#11 0x000000000045155f in ecma_op_function_call (func_obj_p=0x7bec88 <_ZL13mem_heap_area.lto_priv.1003+264>, this_arg_value=4,
arguments_list_p=0x7feb10 <_ZL13mem_heap_area.lto_priv.1003+262032>, arguments_list_len=1)
at jerryscript/jerry-core/ecma/operations/ecma-function-object.cpp:714
#12 0x000000000043a079 in opfunc_call_n (opdata=..., int_data=0x7fffffffd520) at jerryscript/jerry-core/vm/opcodes.cpp:817
#13 0x0000000000485d08 in vm_loop (int_data_p=0x7fffffffd520, run_scope_p=0x0) at jerryscript/jerry-core/vm/vm.cpp:466
#14 0x0000000000485f95 in vm_run_from_pos (opcodes_p=0x7bed18 <_ZL13mem_heap_area.lto_priv.1003+408>, start_pos=1, this_binding_value=23,
lex_env_p=0x7bebb8 <_ZL13mem_heap_area.lto_priv.1003+56>, is_strict=false, is_eval_code=false)
at jerryscript/jerry-core/vm/vm.cpp:556
#15 0x0000000000485b72 in vm_run_global () at jerryscript/jerry-core/vm/vm.cpp:395
#16 0x000000000048e5af in jerry_run () at jerryscript/jerry-core/jerry.cpp:1373
#17 0x000000000048d18e in main (argc=3, argv=0x7fffffffd8e8) at jerryscript/main-linux.cpp:291
```
| Assertion 'ecma_get_value_type_field (value) == ECMA_TYPE_OBJECT' failed in ecma_get_object_from_value | https://api.github.com/repos/jerryscript-project/jerryscript/issues/316/comments | 1 | 2015-07-06T13:26:36Z | 2016-11-25T06:26:32Z | https://github.com/jerryscript-project/jerryscript/issues/316 | 93,278,325 | 316 |
[
"jerryscript-project",
"jerryscript"
] | ###### Jerry version:
```
Checked revision: 4e5e7bb
Build: debug.linux
```
###### OS:
```
Ubuntu 14.10, x86_64
```
###### Test case:
``` javascript
Math.round(RegExp.prototype);
```
###### Backtrace:
``` javascript
Program received signal SIGSEGV, Segmentation fault.
0x000000000042acc9 in ecma_builtin_regexp_prototype_to_string (this_arg=275)
at jerryscript/jerry-core/ecma/builtin-objects/ecma-builtin-regexp-prototype.cpp:166
166 ecma_string_t *source_str_p = ecma_get_string_from_value (source_prop_p->u.named_data_property.value);
(gdb) bt
#0 0x000000000042acc9 in ecma_builtin_regexp_prototype_to_string (this_arg=275)
at jerryscript/jerry-core/ecma/builtin-objects/ecma-builtin-regexp-prototype.cpp:166
#1 0x000000000042a7ab in ecma_builtin_regexp_prototype_dispatch_routine (builtin_routine_id=102, this_arg_value=275, arguments_list=0x0, arguments_number=0)
at jerryscript/jerry-core/ecma/builtin-objects/ecma-builtin-regexp-prototype.inc.h:44
#2 0x000000000047e716 in ecma_builtin_dispatch_routine (builtin_object_id=ECMA_BUILTIN_ID_REGEXP_PROTOTYPE, builtin_routine_id=102, this_arg_value=275,
arguments_list=0x0, arguments_number=0) at jerryscript/jerry-core/ecma/builtin-objects/ecma-builtins.inc.h:153
#3 0x000000000047dd15 in ecma_builtin_dispatch_call (obj_p=0x7bee08 <_ZL13mem_heap_area.lto_priv.1003+648>, this_arg_value=275, arguments_list_p=0x0,
arguments_list_len=0) at jerryscript/jerry-core/ecma/builtin-objects/ecma-builtins.cpp:414
#4 0x000000000045155f in ecma_op_function_call (func_obj_p=0x7bee08 <_ZL13mem_heap_area.lto_priv.1003+648>, this_arg_value=275, arguments_list_p=0x0,
arguments_list_len=0) at jerryscript/jerry-core/ecma/operations/ecma-function-object.cpp:714
#5 0x0000000000449e52 in ecma_op_general_object_default_value (obj_p=0x7beda0 <_ZL13mem_heap_area.lto_priv.1003+544>, hint=ECMA_PREFERRED_TYPE_NUMBER)
at jerryscript/jerry-core/ecma/operations/ecma-objects-general.cpp:572
#6 0x0000000000453160 in ecma_op_object_default_value(ecma_object_t*, ecma_preferred_type_hint_t) (obj_p=0x7beda0 <_ZL13mem_heap_area.lto_priv.1003+544>,
hint=ECMA_PREFERRED_TYPE_NUMBER) at jerryscript/jerry-core/ecma/operations/ecma-objects.cpp:388
#7 0x000000000044e50e in ecma_op_to_primitive (value=275, preferred_type=ECMA_PREFERRED_TYPE_NUMBER)
at jerryscript/jerry-core/ecma/operations/ecma-conversion.cpp:169
#8 0x000000000044e78e in ecma_op_to_number (value=275) at jerryscript/jerry-core/ecma/operations/ecma-conversion.cpp:272
#9 0x0000000000429b7d in ecma_builtin_math_object_round (this_arg=95, arg=275)
at jerryscript/jerry-core/ecma/builtin-objects/ecma-builtin-math.cpp:574
#10 0x00000000004279d3 in ecma_builtin_math_dispatch_routine (builtin_routine_id=96, this_arg_value=95,
arguments_list=0x7feb10 <_ZL13mem_heap_area.lto_priv.1003+262032>, arguments_number=1)
at jerryscript/jerry-core/ecma/builtin-objects/ecma-builtin-math.inc.h:118
#11 0x000000000047e6c8 in ecma_builtin_dispatch_routine (builtin_object_id=ECMA_BUILTIN_ID_MATH, builtin_routine_id=96, this_arg_value=95,
arguments_list=0x7feb10 <_ZL13mem_heap_area.lto_priv.1003+262032>, arguments_number=1)
at jerryscript/jerry-core/ecma/builtin-objects/ecma-builtins.inc.h:125
#12 0x000000000047dd15 in ecma_builtin_dispatch_call (obj_p=0x7bec60 <_ZL13mem_heap_area.lto_priv.1003+224>, this_arg_value=95,
arguments_list_p=0x7feb10 <_ZL13mem_heap_area.lto_priv.1003+262032>, arguments_list_len=1)
at jerryscript/jerry-core/ecma/builtin-objects/ecma-builtins.cpp:414
#13 0x000000000045155f in ecma_op_function_call (func_obj_p=0x7bec60 <_ZL13mem_heap_area.lto_priv.1003+224>, this_arg_value=95,
arguments_list_p=0x7feb10 <_ZL13mem_heap_area.lto_priv.1003+262032>, arguments_list_len=1)
at jerryscript/jerry-core/ecma/operations/ecma-function-object.cpp:714
#14 0x000000000043a079 in opfunc_call_n (opdata=..., int_data=0x7fffffffd520) at jerryscript/jerry-core/vm/opcodes.cpp:817
#15 0x0000000000485d08 in vm_loop (int_data_p=0x7fffffffd520, run_scope_p=0x0) at jerryscript/jerry-core/vm/vm.cpp:466
#16 0x0000000000485f95 in vm_run_from_pos (opcodes_p=0x7bed18 <_ZL13mem_heap_area.lto_priv.1003+408>, start_pos=1, this_binding_value=23,
lex_env_p=0x7bebb8 <_ZL13mem_heap_area.lto_priv.1003+56>, is_strict=false, is_eval_code=false)
at jerryscript/jerry-core/vm/vm.cpp:556
#17 0x0000000000485b72 in vm_run_global () at jerryscript/jerry-core/vm/vm.cpp:395
#18 0x000000000048e5af in jerry_run () at jerryscript/jerry-core/jerry.cpp:1373
#19 0x000000000048d18e in main (argc=2, argv=0x7fffffffd8e8) at jerryscript/main-linux.cpp:291
```
| Segmentation fault in ecma_builtin_regexp_prototype_to_string | https://api.github.com/repos/jerryscript-project/jerryscript/issues/314/comments | 1 | 2015-07-06T13:17:42Z | 2016-11-25T06:26:32Z | https://github.com/jerryscript-project/jerryscript/issues/314 | 93,276,845 | 314 |
[
"jerryscript-project",
"jerryscript"
] | Prerequisite script fails with the following message:
```
Cloning into './tmp.viAM17He42/nuttx'...
fatal: reference is not a tree: 36a655eddec29754cc93631b6083fe6409817861
Failed to setup 'nuttx' prerequisite. Failed to prepare nuttx headers
```
| Prerequisite script fails. | https://api.github.com/repos/jerryscript-project/jerryscript/issues/313/comments | 4 | 2015-07-06T13:16:01Z | 2016-11-25T06:26:32Z | https://github.com/jerryscript-project/jerryscript/issues/313 | 93,276,620 | 313 |
[
"jerryscript-project",
"jerryscript"
] | ###### Jerry version:
```
Checked revision: 4e5e7bb
Build: debug.linux
```
###### OS:
```
Ubuntu 14.10, x86_64
```
###### Test case:
``` javascript
RegExp.prototype.exec(10);
```
###### Backtrace:
``` javascript
ICE: Assertion 'property_p != NULL' failed at jerryscript/jerry-core/ecma/base/ecma-helpers.cpp(ecma_get_internal_property):492.
Error: ERR_FAILED_INTERNAL_ASSERTION
Program received signal SIGABRT, Aborted.
0x0000000000498fbe in syscall_2_asm () at jerryscript/jerry-libc/target/linux/jerry-asm.S:32
32 SYSCALL_2
(gdb) bt
#0 0x0000000000498fbe in syscall_2_asm () at jerryscript/jerry-libc/target/linux/jerry-asm.S:32
#1 0x00000000004003c2 in syscall_2 (syscall_no=62, arg1=13388, arg2=6) at jerryscript/jerry-libc/target/linux/jerry-libc-target.c:96
#2 0x0000000000400563 in abort () at jerryscript/jerry-libc/target/linux/jerry-libc-target.c:175
#3 0x000000000044788f in jerry_fatal (code=ERR_FAILED_INTERNAL_ASSERTION) at jerryscript/jerry-core/jrt/jrt-fatals.cpp:65
#4 0x00000000004478de in jerry_assert_fail (assertion=0x4b1ad4 "property_p != NULL",
file=0x4b16e0 "jerryscript/jerry-core/ecma/base/ecma-helpers.cpp",
function=0x49dcc0 <_ZZ26ecma_get_internal_propertyP13ecma_object_t27ecma_internal_property_id_tE8__func__.lto_priv.722> "ecma_get_internal_property",
line=492) at jerryscript/jerry-core/jrt/jrt-fatals.cpp:92
#5 0x0000000000460b80 in ecma_get_internal_property (object_p=0x7cdcd0 <_ZL13mem_heap_area.lto_priv.1129+8528>,
property_id=ECMA_INTERNAL_PROPERTY_REGEXP_BYTECODE) at jerryscript/jerry-core/ecma/base/ecma-helpers.cpp:492
#6 0x000000000042aa81 in ecma_builtin_regexp_prototype_exec (this_arg=4267, arg=6205)
at jerryscript/jerry-core/ecma/builtin-objects/ecma-builtin-regexp-prototype.cpp:70
#7 0x000000000042a92f in ecma_builtin_regexp_prototype_dispatch_routine (builtin_routine_id=193, this_arg_value=4267,
arguments_list=0x80bb10 <_ZL13mem_heap_area.lto_priv.1129+262032>, arguments_number=1)
at jerryscript/jerry-core/ecma/builtin-objects/ecma-builtin-regexp-prototype.inc.h:42
#8 0x0000000000487e20 in ecma_builtin_dispatch_routine (builtin_object_id=ECMA_BUILTIN_ID_REGEXP_PROTOTYPE, builtin_routine_id=193, this_arg_value=4267,
arguments_list=0x80bb10 <_ZL13mem_heap_area.lto_priv.1129+262032>, arguments_number=1)
at jerryscript/jerry-core/ecma/builtin-objects/ecma-builtins.inc.h:153
#9 0x000000000048741f in ecma_builtin_dispatch_call (obj_p=0x7cdd30 <_ZL13mem_heap_area.lto_priv.1129+8624>, this_arg_value=4267,
arguments_list_p=0x80bb10 <_ZL13mem_heap_area.lto_priv.1129+262032>, arguments_list_len=1)
at jerryscript/jerry-core/ecma/builtin-objects/ecma-builtins.cpp:419
#10 0x000000000044f95c in ecma_op_function_call (func_obj_p=0x7cdd30 <_ZL13mem_heap_area.lto_priv.1129+8624>, this_arg_value=4267,
arguments_list_p=0x80bb10 <_ZL13mem_heap_area.lto_priv.1129+262032>, arguments_list_len=1)
at jerryscript/jerry-core/ecma/operations/ecma-function-object.cpp:714
#11 0x0000000000443ace in opfunc_call_n (opdata=..., int_data=0x7fffffffd530) at jerryscript/jerry-core/vm/opcodes.cpp:817
#12 0x0000000000496863 in vm_loop (int_data_p=0x7fffffffd530, run_scope_p=0x0) at jerryscript/jerry-core/vm/vm.cpp:466
#13 0x000000000048f8b1 in vm_run_from_pos (opcodes_p=0x7ceb58 <_ZL13mem_heap_area.lto_priv.1129+12248>, start_pos=1, this_binding_value=835,
lex_env_p=0x7ceaa8 <_ZL13mem_heap_area.lto_priv.1129+12072>, is_strict=false, is_eval_code=false)
at jerryscript/jerry-core/vm/vm.cpp:556
#14 0x00000000004966cd in vm_run_global () at jerryscript/jerry-core/vm/vm.cpp:395
#15 0x0000000000498403 in jerry_run () at jerryscript/jerry-core/jerry.cpp:1373
#16 0x0000000000496fe2 in main (argc=3, argv=0x7fffffffd8f8) at jerryscript/main-linux.cpp:291
```
| Assertion 'property_p != NULL' failed in ecma_get_internal_property | https://api.github.com/repos/jerryscript-project/jerryscript/issues/312/comments | 1 | 2015-07-06T13:13:34Z | 2016-11-25T06:26:32Z | https://github.com/jerryscript-project/jerryscript/issues/312 | 93,276,097 | 312 |
[
"jerryscript-project",
"jerryscript"
] | After append is added to ecma collections (#310), JSON should use it instead of its own collection.
| JSON should use ecma collections | https://api.github.com/repos/jerryscript-project/jerryscript/issues/311/comments | 2 | 2015-07-06T13:08:31Z | 2015-08-07T13:58:12Z | https://github.com/jerryscript-project/jerryscript/issues/311 | 93,274,825 | 311 |
[
"jerryscript-project",
"jerryscript"
] | Currently ecma collections has no append (update/remove) functionality. Append is required by JSON.
Test cases are required for testing append as well.
| Add functionality to append or remove last element of ecma-collections | https://api.github.com/repos/jerryscript-project/jerryscript/issues/310/comments | 3 | 2015-07-06T13:06:48Z | 2016-11-25T06:26:31Z | https://github.com/jerryscript-project/jerryscript/issues/310 | 93,274,510 | 310 |
[
"jerryscript-project",
"jerryscript"
] | Please read https://github.com/Samsung/iotjs/issues/117#issuecomment-118208460 for details.
JerryScript standalone built for arm-linux running in RPi2 is ok.
| Segment fault with arm-linux in iotjs | https://api.github.com/repos/jerryscript-project/jerryscript/issues/304/comments | 9 | 2015-07-06T04:44:42Z | 2015-07-14T07:22:14Z | https://github.com/jerryscript-project/jerryscript/issues/304 | 93,186,067 | 304 |
[
"jerryscript-project",
"jerryscript"
] | Fails to run when build for arm-linux hard float
cross compile for arm linux with hard-float
```
make debug.linux TOOLCHAIN=./build/configs/toolchain_linux_armv7l-hf.cmake
```
copy `build/bin/debug.linux/jerry` to raspberry-pi 2 and run with any script, such as `print("hello");`
result:
```
ICE: Assertion 'al != null_list' failed at /.../jerry-core/parser/js/collections/array-list.cpp(extract_header):30.
Error: ERR_FAILED_INTERNAL_ASSERTION
```
Related issue: #1
| Cross compile for arm-linux fails for hard-float | https://api.github.com/repos/jerryscript-project/jerryscript/issues/296/comments | 0 | 2015-07-02T09:21:49Z | 2016-11-25T06:26:31Z | https://github.com/jerryscript-project/jerryscript/issues/296 | 92,591,967 | 296 |
[
"jerryscript-project",
"jerryscript"
] | ###### Jerry version:
```
Checked revision: 017aa6b
Build: debug.linux
```
###### OS:
```
Ubuntu 14.10, x86_64
```
###### Test case:
``` javascript
function f_0() {
try {
Function("for(w in\\");
} catch (e) {}
}
f_0();
f_0();
```
###### Backtrace:
``` javascript
for(w in\
^
ERROR: Ln 1, Col 7: Malformed escape sequence
ICE: Assertion 'token_start == NULL' failed at jerryscript/jerry-core/parser/js/lexer.cpp(lexer_next_token_private):1100.
Error: ERR_FAILED_INTERNAL_ASSERTION
Program received signal SIGABRT, Aborted.
0x0000000000487139 in syscall_2_asm () at jerryscript/jerry-libc/target/linux/jerry-asm.S:32
32 SYSCALL_2
(gdb) bt
#0 0x0000000000487139 in syscall_2_asm () at jerryscript/jerry-libc/target/linux/jerry-asm.S:32
#1 0x00000000004003c2 in syscall_2 (syscall_no=62, arg1=17362, arg2=6) at jerryscript/jerry-libc/target/linux/jerry-libc-target.c:96
#2 0x0000000000400563 in abort () at jerryscript/jerry-libc/target/linux/jerry-libc-target.c:175
#3 0x000000000043c365 in jerry_fatal (code=ERR_FAILED_INTERNAL_ASSERTION) at jerryscript/jerry-core/jrt/jrt-fatals.cpp:65
#4 0x000000000043c3b4 in jerry_assert_fail (assertion=0x4918da "token_start == NULL",
file=0x491448 "jerryscript/jerry-core/parser/js/lexer.cpp",
function=0x48efe0 <_ZZL24lexer_next_token_privatevE8__func__.lto_priv.164> "lexer_next_token_private", line=1100)
at jerryscript/jerry-core/jrt/jrt-fatals.cpp:92
#5 0x000000000040df8d in lexer_next_token_private () at jerryscript/jerry-core/parser/js/lexer.cpp:1100
#6 0x000000000040f1f2 in lexer_next_token () at jerryscript/jerry-core/parser/js/lexer.cpp:1286
#7 0x000000000044650a in skip_token() [clone .lto_priv.520] () at jerryscript/jerry-core/parser/js/parser.cpp:102
#8 0x0000000000446749 in skip_newlines() [clone .lto_priv.516] () at jerryscript/jerry-core/parser/js/parser.cpp:135
#9 0x000000000043b1c7 in parser_parse_program (source_p=0x7f69d0 <_ZL13mem_heap_area.lto_priv.1062+261712> "for(w in\\", source_size=9, in_function=true,
in_eval=false, is_strict=false, out_opcodes_p=0x7fffffffcf18) at jerryscript/jerry-core/parser/js/parser.cpp:3114
#10 0x000000000043b476 in parser_parse_new_function (params=0x7f6a50 <_ZL13mem_heap_area.lto_priv.1062+261840>,
params_size=0x7f6a10 <_ZL13mem_heap_area.lto_priv.1062+261776>, params_count=1, out_opcodes_p=0x7fffffffcf18)
at jerryscript/jerry-core/parser/js/parser.cpp:3234
#11 0x0000000000469643 in ecma_builtin_function_dispatch_construct (arguments_list_p=0x7f6ad0 <_ZL13mem_heap_area.lto_priv.1062+261968>, arguments_list_len=1)
at jerryscript/jerry-core/ecma/builtin-objects/ecma-builtin-function.cpp:144
#12 0x00000000004692a1 in ecma_builtin_function_dispatch_call (arguments_list_p=0x7f6ad0 <_ZL13mem_heap_area.lto_priv.1062+261968>, arguments_list_len=1)
at jerryscript/jerry-core/ecma/builtin-objects/ecma-builtin-function.cpp:55
#13 0x00000000004784aa in ecma_builtin_dispatch_call (obj_p=0x7b6dd8 <_ZL13mem_heap_area.lto_priv.1062+600>, this_arg_value=4,
arguments_list_p=0x7f6ad0 <_ZL13mem_heap_area.lto_priv.1062+261968>, arguments_list_len=1)
at jerryscript/jerry-core/ecma/builtin-objects/ecma-builtins.inc.h:116
#14 0x0000000000442c10 in ecma_op_function_call(ecma_object_t*, unsigned int, unsigned int const*, unsigned int) (
func_obj_p=0x7b6dd8 <_ZL13mem_heap_area.lto_priv.1062+600>, this_arg_value=4, arguments_list_p=0x7f6ad0 <_ZL13mem_heap_area.lto_priv.1062+261968>,
arguments_list_len=1) at jerryscript/jerry-core/ecma/operations/ecma-function-object.cpp:631
#15 0x00000000004389b2 in opfunc_call_n (opdata=..., int_data=0x7fffffffd2b0) at jerryscript/jerry-core/vm/opcodes.cpp:817
#16 0x000000000047e546 in vm_loop (int_data_p=0x7fffffffd2b0, run_scope_p=0x7fffffffd200) at jerryscript/jerry-core/vm/vm.cpp:466
#17 0x000000000048080b in opfunc_try_block (opdata=..., int_data=0x7fffffffd2b0)
at jerryscript/jerry-core/vm/opcodes-ecma-try-catch-finally.cpp:41
#18 0x000000000047e546 in vm_loop (int_data_p=0x7fffffffd2b0, run_scope_p=0x0) at jerryscript/jerry-core/vm/vm.cpp:466
#19 0x000000000047e7d3 in vm_run_from_pos (opcodes_p=0x7b6d18 <_ZL13mem_heap_area.lto_priv.1062+408>, start_pos=5, this_binding_value=15,
lex_env_p=0x7b6ca0 <_ZL13mem_heap_area.lto_priv.1062+288>, is_strict=false, is_eval_code=false)
at jerryscript/jerry-core/vm/vm.cpp:556
#20 0x0000000000442e6a in ecma_op_function_call(ecma_object_t*, unsigned int, unsigned int const*, unsigned int) (
func_obj_p=0x7b6c28 <_ZL13mem_heap_area.lto_priv.1062+168>, this_arg_value=4, arguments_list_p=0x0, arguments_list_len=0)
at jerryscript/jerry-core/ecma/operations/ecma-function-object.cpp:692
#21 0x00000000004389b2 in opfunc_call_n (opdata=..., int_data=0x7fffffffd500) at jerryscript/jerry-core/vm/opcodes.cpp:817
#22 0x000000000047e546 in vm_loop (int_data_p=0x7fffffffd500, run_scope_p=0x0) at jerryscript/jerry-core/vm/vm.cpp:466
#23 0x000000000047e7d3 in vm_run_from_pos (opcodes_p=0x7b6d18 <_ZL13mem_heap_area.lto_priv.1062+408>, start_pos=1, this_binding_value=15,
lex_env_p=0x7b6ba8 <_ZL13mem_heap_area.lto_priv.1062+40>, is_strict=false, is_eval_code=false)
at jerryscript/jerry-core/vm/vm.cpp:556
#24 0x000000000048508b in vm_run_global() () at jerryscript/jerry-core/vm/vm.cpp:395
#25 0x0000000000486c43 in jerry_run () at jerryscript/jerry-core/jerry.cpp:1373
#26 0x0000000000485822 in main (argc=3, argv=0x7fffffffd8c8) at jerryscript/main-linux.cpp:291
```
| Assertion 'token_start == NULL' failed in lexer_next_token_private | https://api.github.com/repos/jerryscript-project/jerryscript/issues/295/comments | 2 | 2015-07-02T08:05:24Z | 2015-11-19T11:57:55Z | https://github.com/jerryscript-project/jerryscript/issues/295 | 92,576,603 | 295 |
[
"jerryscript-project",
"jerryscript"
] | Let's continue the discussion from #273 here.
> > Btw the engine suffers a lot from these reversed order construction mechanics. Could we globally change that?
>
> @zherczeg, could you, please, provide more details on the issue?
| Improvement of ecma/operations/* logic. | https://api.github.com/repos/jerryscript-project/jerryscript/issues/287/comments | 6 | 2015-07-01T12:05:53Z | 2016-11-25T06:26:31Z | https://github.com/jerryscript-project/jerryscript/issues/287 | 92,365,477 | 287 |
[
"jerryscript-project",
"jerryscript"
] | ###### Jerry version:
```
Checked revision: 505bead
Build: debug.linux
```
###### OS:
```
Ubuntu 14.10, x86_64
```
###### Test case:
``` javascript
switch(foo){
default:
while(false)
foo() {
case a : {}
}
}
```
###### Backtrace:
``` javascript
ICE: Assertion 'jmp_op_meta.op.op_idx == OPCODE (is_true_jmp_down)' failed at jerryscript/jerry-core/parser/js/opcodes-dumper.cpp(rewrite_case_clause):2321.
Error: ERR_FAILED_INTERNAL_ASSERTION
Program received signal SIGABRT, Aborted.
0x0000000000485d22 in syscall_2_asm () at jerryscript/jerry-libc/target/linux/jerry-asm.S:32
32 SYSCALL_2
(gdb) bt
#0 0x0000000000485d22 in syscall_2_asm () at jerryscript/jerry-libc/target/linux/jerry-asm.S:32
#1 0x00000000004003c2 in syscall_2 (syscall_no=62, arg1=30900, arg2=6)
at jerryscript/jerry-libc/target/linux/jerry-libc-target.c:96
#2 0x0000000000400563 in abort () at jerryscript/jerry-libc/target/linux/jerry-libc-target.c:175
#3 0x000000000043a7db in jerry_fatal (code=ERR_FAILED_INTERNAL_ASSERTION) at jerryscript/jerry-core/jrt/jrt-fatals.cpp:65
#4 0x000000000043a82a in jerry_assert_fail (assertion=0x4910f0 "jmp_op_meta.op.op_idx == OPCODE (is_true_jmp_down)",
file=0x491000 "jerryscript/jerry-core/parser/js/opcodes-dumper.cpp",
function=0x48d910 <_ZZ19rewrite_case_clausevE8__func__.lto_priv.224> "rewrite_case_clause", line=2321)
at jerryscript/jerry-core/jrt/jrt-fatals.cpp:92
#5 0x00000000004128a2 in rewrite_case_clause() () at jerryscript/jerry-core/parser/js/opcodes-dumper.cpp:2321
#6 0x000000000043fe3c in parse_switch_statement () at jerryscript/jerry-core/parser/js/parser.cpp:2368
#7 0x000000000044095f in parse_statement (outermost_stmt_label_p=0x0) at jerryscript/jerry-core/parser/js/parser.cpp:2744
#8 0x0000000000440c18 in parse_source_element () at jerryscript/jerry-core/parser/js/parser.cpp:2820
#9 0x000000000044109a in parse_source_element_list(bool) [clone .lto_priv.559] (is_global=true)
at jerryscript/jerry-core/parser/js/parser.cpp:3045
#10 0x000000000044123b in parser_parse_program (
source_p=0x6b5780 <_ZL13source_buffer.lto_priv.1070> "switch(foo){ \n default:\n while(false)\n", ' ' <repeats 12 times>, "foo() {\n", ' ' <repeats 16 times>, "case a : {}\n", ' ' <repeats 12 times>, "}\n}", source_size=111, in_function=false, in_eval=false, is_strict=false,
out_opcodes_p=0x7fffffffd5d0) at jerryscript/jerry-core/parser/js/parser.cpp:3105
#11 0x00000000004413ba in parser_parse_script (
source=0x6b5780 <_ZL13source_buffer.lto_priv.1070> "switch(foo){ \n default:\n while(false)\n", ' ' <repeats 12 times>, "foo() {\n", ' ' <repeats 16 times>, "case a : {}\n", ' ' <repeats 12 times>, "}\n}", source_size=111, opcodes_p=0x7fffffffd5d0)
at jerryscript/jerry-core/parser/js/parser.cpp:3174
#12 0x00000000004857df in jerry_parse (
source_p=0x6b5780 <_ZL13source_buffer.lto_priv.1070> "switch(foo){ \n default:\n while(false)\n", ' ' <repeats 12 times>, "foo() {\n", ' ' <repeats 16 times>, "case a : {}\n", ' ' <repeats 12 times>, "}\n}", source_size=111) at jerryscript/jerry-core/jerry.cpp:1341
#13 0x00000000004843ec in main (argc=3, argv=0x7fffffffd878) at jerryscript/main-linux.cpp:282
```
###### Note:
Removing the case branch from the test we get another assertion failure:
``` javascript
switch(foo){
default:
while(false)
foo() {}
}
```
###### Backtrace:
``` javascript
ICE: Assertion 'token_is (TOK_EOF)' failed at jerryscript/jerry-core/parser/js/parser.cpp(parser_parse_program):3108.
Error: ERR_FAILED_INTERNAL_ASSERTION
Program received signal SIGABRT, Aborted.
0x0000000000485d22 in syscall_2_asm () at jerryscript/jerry-libc/target/linux/jerry-asm.S:32
32 SYSCALL_2
(gdb) bt
#0 0x0000000000485d22 in syscall_2_asm () at jerryscript/jerry-libc/target/linux/jerry-asm.S:32
#1 0x00000000004003c2 in syscall_2 (syscall_no=62, arg1=32025, arg2=6)
at jerryscript/jerry-libc/target/linux/jerry-libc-target.c:96
#2 0x0000000000400563 in abort () at jerryscript/jerry-libc/target/linux/jerry-libc-target.c:175
#3 0x000000000043a7db in jerry_fatal (code=ERR_FAILED_INTERNAL_ASSERTION) at jerryscript/jerry-core/jrt/jrt-fatals.cpp:65
#4 0x000000000043a82a in jerry_assert_fail (assertion=0x498c48 "token_is (TOK_EOF)",
file=0x4989d8 "jerryscript/jerry-core/parser/js/parser.cpp",
function=0x48b7c0 <_ZZL20parser_parse_programPKhmbbbPPK8opcode_tE8__func__.lto_priv.509> "parser_parse_program", line=3108)
at jerryscript/jerry-core/jrt/jrt-fatals.cpp:92
#5 0x0000000000441273 in parser_parse_program (
source_p=0x6b5780 <_ZL13source_buffer.lto_priv.1070> "switch(foo){ \n default:\n while(false)\n", ' ' <repeats 12 times>, "foo() {}\n}", source_size=70, in_function=false, in_eval=false, is_strict=false, out_opcodes_p=0x7fffffffd5d0)
at jerryscript/jerry-core/parser/js/parser.cpp:3108
#6 0x00000000004413ba in parser_parse_script (
source=0x6b5780 <_ZL13source_buffer.lto_priv.1070> "switch(foo){ \n default:\n while(false)\n", ' ' <repeats 12 times>, "foo() {}\n}",
source_size=70, opcodes_p=0x7fffffffd5d0) at jerryscript/jerry-core/parser/js/parser.cpp:3174
#7 0x00000000004857df in jerry_parse (
source_p=0x6b5780 <_ZL13source_buffer.lto_priv.1070> "switch(foo){ \n default:\n while(false)\n", ' ' <repeats 12 times>, "foo() {}\n}", source_size=70) at jerryscript/jerry-core/jerry.cpp:1341
#8 0x00000000004843ec in main (argc=3, argv=0x7fffffffd878) at jerryscript/main-linux.cpp:282
```
| Assertion 'jmp_op_meta.op.op_idx == OPCODE (is_true_jmp_down)' failed in rewrite_case_clause | https://api.github.com/repos/jerryscript-project/jerryscript/issues/286/comments | 2 | 2015-07-01T08:41:28Z | 2015-11-19T11:20:00Z | https://github.com/jerryscript-project/jerryscript/issues/286 | 92,316,876 | 286 |
[
"jerryscript-project",
"jerryscript"
] | ###### Jerry version:
```
Checked revision: 505bead
Build: debug.linux
```
###### OS:
```
Ubuntu 14.10, x86_64
```
###### Test case:
``` javascript
NaN == RegExp;
```
###### Backtrace:
``` javascript
ICE: Assertion 'builtin_id == ECMA_BUILTIN_ID_TYPE_ERROR_THROWER' failed at jerryscript/jerry-core/ecma/operations/ecma-objects.cpp(ecma_object_get_class_name):612.
Error: ERR_FAILED_INTERNAL_ASSERTION
Program received signal SIGABRT, Aborted.
0x0000000000485d22 in syscall_2_asm () at jerryscript/jerry-libc/target/linux/jerry-asm.S:32
32 SYSCALL_2
(gdb) bt
#0 0x0000000000485d22 in syscall_2_asm () at jerryscript/jerry-libc/target/linux/jerry-asm.S:32
#1 0x00000000004003c2 in syscall_2 (syscall_no=62, arg1=4299, arg2=6)
at jerryscript/jerry-libc/target/linux/jerry-libc-target.c:96
#2 0x0000000000400563 in abort () at jerryscript/jerry-libc/target/linux/jerry-libc-target.c:175
#3 0x000000000043a7db in jerry_fatal (code=ERR_FAILED_INTERNAL_ASSERTION) at jerryscript/jerry-core/jrt/jrt-fatals.cpp:65
#4 0x000000000043a82a in jerry_assert_fail (assertion=0x49aa90 "builtin_id == ECMA_BUILTIN_ID_TYPE_ERROR_THROWER",
file=0x49a830 "jerryscript/jerry-core/ecma/operations/ecma-objects.cpp",
function=0x48acd0 <_ZZ26ecma_object_get_class_nameP13ecma_object_tE8__func__.lto_priv.605> "ecma_object_get_class_name", line=612)
at jerryscript/jerry-core/jrt/jrt-fatals.cpp:92
#5 0x000000000044a86e in ecma_object_get_class_name (obj_p=0x7b5c60 <_ZL13mem_heap_area.lto_priv.1016+224>)
at jerryscript/jerry-core/ecma/operations/ecma-objects.cpp:612
#6 0x000000000044248b in ecma_op_general_object_default_value (obj_p=0x7b5c60 <_ZL13mem_heap_area.lto_priv.1016+224>, hint=ECMA_PREFERRED_TYPE_NO)
at jerryscript/jerry-core/ecma/operations/ecma-objects-general.cpp:529
#7 0x000000000044a54a in ecma_op_object_default_value (obj_p=0x7b5c60 <_ZL13mem_heap_area.lto_priv.1016+224>, hint=ECMA_PREFERRED_TYPE_NO)
at jerryscript/jerry-core/ecma/operations/ecma-objects.cpp:388
#8 0x00000000004462ed in ecma_op_to_primitive (value=115, preferred_type=ECMA_PREFERRED_TYPE_NO)
at jerryscript/jerry-core/ecma/operations/ecma-conversion.cpp:169
#9 0x000000000044368e in ecma_op_abstract_equality_compare (x=101, y=115)
at jerryscript/jerry-core/ecma/operations/ecma-comparison.cpp:183
#10 0x000000000047af84 in opfunc_equal_value (opdata=..., int_data=0x7fffffffd4b0)
at jerryscript/jerry-core/vm/opcodes-ecma-equality.cpp:39
#11 0x000000000047e88e in vm_loop (int_data_p=0x7fffffffd4b0, run_scope_p=0x0) at jerryscript/jerry-core/vm/vm.cpp:466
#12 0x000000000047eb1b in vm_run_from_pos (opcodes_p=0x7b5d18 <_ZL13mem_heap_area.lto_priv.1016+408>, start_pos=1, this_binding_value=15,
lex_env_p=0x7b5ba8 <_ZL13mem_heap_area.lto_priv.1016+40>, is_strict=false, is_eval_code=false)
at jerryscript/jerry-core/vm/vm.cpp:556
#13 0x000000000047e6f8 in vm_run_global () at jerryscript/jerry-core/vm/vm.cpp:395
#14 0x000000000048582c in jerry_run () at jerryscript/jerry-core/jerry.cpp:1373
#15 0x000000000048440b in main (argc=3, argv=0x7fffffffd878) at jerryscript/main-linux.cpp:291
```
| Assertion 'builtin_id == ECMA_BUILTIN_ID_TYPE_ERROR_THROWER' failed in ecma_object_get_class_name | https://api.github.com/repos/jerryscript-project/jerryscript/issues/285/comments | 2 | 2015-07-01T07:33:34Z | 2016-11-25T06:26:31Z | https://github.com/jerryscript-project/jerryscript/issues/285 | 92,301,159 | 285 |
[
"jerryscript-project",
"jerryscript"
] | ###### Jerry version:
```
Checked revision: ec02ace
Build: debug.linux
```
###### OS:
```
Ubuntu 14.10, x86_64
```
###### Test case:
``` javascript
v_0 = {a: Math, /[]/ };
```
###### Backtrace:
``` javascript
v_0 = {a: Math, /[]/ };
^
ERROR: Ln 1, Col 18: ICE: Unreachable control path at jerryscript/jerry-core/parser/js/lexer.cpp(lexer_token_type_to_string):1500 was executed.
Error: ERR_FAILED_INTERNAL_ASSERTION
Program received signal SIGABRT, Aborted.
0x0000000000485ccd in syscall_2_asm () at jerryscript/jerry-libc/target/linux/jerry-asm.S:32
32 SYSCALL_2
(gdb) bt
#0 0x0000000000485ccd in syscall_2_asm () at jerryscript/jerry-libc/target/linux/jerry-asm.S:32
#1 0x00000000004003c2 in syscall_2 (syscall_no=62, arg1=19133, arg2=6)
at jerryscript/jerry-libc/target/linux/jerry-libc-target.c:96
#2 0x0000000000400563 in abort () at jerryscript/jerry-libc/target/linux/jerry-libc-target.c:175
#3 0x000000000043a7db in jerry_fatal (code=ERR_FAILED_INTERNAL_ASSERTION) at jerryscript/jerry-core/jrt/jrt-fatals.cpp:65
#4 0x000000000043a894 in jerry_unreachable (comment=0x0, file=0x48ffc8 "jerryscript/jerry-core/parser/js/lexer.cpp",
function=0x48dbe0 <_ZZ26lexer_token_type_to_string10token_typeE8__func__.lto_priv.157> "lexer_token_type_to_string", line=1500)
at jerryscript/jerry-core/jrt/jrt-fatals.cpp:119
#5 0x000000000040f7c8 in lexer_token_type_to_string (tt=TOK_REGEXP) at jerryscript/jerry-core/parser/js/lexer.cpp:1500
#6 0x0000000000444f4c in parse_property_name () at jerryscript/jerry-core/parser/js/parser.cpp:318
#7 0x0000000000444f81 in parse_property_name_and_value () at jerryscript/jerry-core/parser/js/parser.cpp:329
#8 0x00000000004451ae in parse_property_assignment () at jerryscript/jerry-core/parser/js/parser.cpp:419
#9 0x0000000000445490 in parse_argument_list(varg_list_type, operand, unsigned char*, operand*) [clone .lto_priv.537] (vlt=VARG_OBJ_DECL, obj=...,
args_count=0x0, this_arg_p=0x0) at jerryscript/jerry-core/parser/js/parser.cpp:560
#10 0x00000000004458e4 in parse_object_literal() [clone .lto_priv.540] () at jerryscript/jerry-core/parser/js/parser.cpp:738
#11 0x000000000043d907 in parse_primary_expression () at jerryscript/jerry-core/parser/js/parser.cpp:794
#12 0x000000000043dad5 in parse_member_expression (this_arg=0x7fffffffcfd0, prop_gl=0x7fffffffd040)
at jerryscript/jerry-core/parser/js/parser.cpp:861
#13 0x000000000043ddc6 in parse_call_expression (this_arg_gl=0x7fffffffd050, prop_gl=0x7fffffffd040)
at jerryscript/jerry-core/parser/js/parser.cpp:932
#14 0x000000000043df7e in parse_left_hand_side_expression (this_arg=0x7fffffffd050, prop=0x7fffffffd040)
at jerryscript/jerry-core/parser/js/parser.cpp:995
#15 0x000000000043dfac in parse_postfix_expression () at jerryscript/jerry-core/parser/js/parser.cpp:1005
#16 0x000000000043e3c5 in parse_unary_expression (this_arg_gl=0x0, prop_gl=0x0)
at jerryscript/jerry-core/parser/js/parser.cpp:1133
#17 0x000000000043e42e in parse_multiplicative_expression () at jerryscript/jerry-core/parser/js/parser.cpp:1165
#18 0x000000000043e529 in parse_additive_expression () at jerryscript/jerry-core/parser/js/parser.cpp:1211
#19 0x000000000043e5d2 in parse_shift_expression () at jerryscript/jerry-core/parser/js/parser.cpp:1250
#20 0x000000000043e6ad in parse_relational_expression (in_allowed=true) at jerryscript/jerry-core/parser/js/parser.cpp:1296
#21 0x000000000043e840 in parse_equality_expression (in_allowed=true) at jerryscript/jerry-core/parser/js/parser.cpp:1370
#22 0x000000000043e97e in parse_bitwise_and_expression (in_allowed=true) at jerryscript/jerry-core/parser/js/parser.cpp:1423
#23 0x000000000043ea00 in parse_bitwise_xor_expression (in_allowed=true) at jerryscript/jerry-core/parser/js/parser.cpp:1450
#24 0x000000000043ea82 in parse_bitwise_or_expression (in_allowed=true) at jerryscript/jerry-core/parser/js/parser.cpp:1477
#25 0x000000000043eb04 in parse_logical_and_expression (in_allowed=true) at jerryscript/jerry-core/parser/js/parser.cpp:1504
#26 0x000000000043ebde in parse_logical_or_expression (in_allowed=true) at jerryscript/jerry-core/parser/js/parser.cpp:1539
#27 0x000000000043ecbc in parse_conditional_expression (in_allowed=true, is_conditional=0x7fffffffd31e)
at jerryscript/jerry-core/parser/js/parser.cpp:1574
#28 0x000000000043ed8c in parse_assignment_expression(bool) [clone .lto_priv.560] (in_allowed=true)
at jerryscript/jerry-core/parser/js/parser.cpp:1610
#29 0x000000000043ee2d in parse_assignment_expression(bool) [clone .lto_priv.560] (in_allowed=true)
at jerryscript/jerry-core/parser/js/parser.cpp:1636
#30 0x000000000043efe3 in parse_expression (in_allowed=true, dump_eval_ret_store=JSP_EVAL_RET_STORE_DUMP)
at jerryscript/jerry-core/parser/js/parser.cpp:1710
#31 0x0000000000440b72 in parse_statement (outermost_stmt_label_p=0x0) at jerryscript/jerry-core/parser/js/parser.cpp:2786
#32 0x0000000000440c18 in parse_source_element () at jerryscript/jerry-core/parser/js/parser.cpp:2820
#33 0x000000000044109a in parse_source_element_list(bool) [clone .lto_priv.559] (is_global=true)
at jerryscript/jerry-core/parser/js/parser.cpp:3045
#34 0x000000000044123b in parser_parse_program (source_p=0x6b5780 <_ZL13source_buffer.lto_priv.1070> "v_0 = {a: Math, /[]/ };", source_size=23,
in_function=false, in_eval=false, is_strict=false, out_opcodes_p=0x7fffffffd5e0)
at jerryscript/jerry-core/parser/js/parser.cpp:3105
#35 0x00000000004413ba in parser_parse_script (source=0x6b5780 <_ZL13source_buffer.lto_priv.1070> "v_0 = {a: Math, /[]/ };", source_size=23,
opcodes_p=0x7fffffffd5e0) at jerryscript/jerry-core/parser/js/parser.cpp:3174
#36 0x000000000048578a in jerry_parse (source_p=0x6b5780 <_ZL13source_buffer.lto_priv.1070> "v_0 = {a: Math, /[]/ };", source_size=23)
at jerryscript/jerry-core/jerry.cpp:1341
#37 0x0000000000484397 in main (argc=3, argv=0x7fffffffd888) at jerryscript/main-linux.cpp:282
```
| Unreachable control path at lexer_token_type_to_string | https://api.github.com/repos/jerryscript-project/jerryscript/issues/284/comments | 0 | 2015-06-30T17:29:42Z | 2016-11-25T06:26:31Z | https://github.com/jerryscript-project/jerryscript/issues/284 | 92,152,103 | 284 |
[
"jerryscript-project",
"jerryscript"
] | ###### Jerry version:
```
Checked revision: ec02ace
Build: debug.linux
```
###### OS:
```
Ubuntu 14.10, x86_64
```
###### Test case:
``` javascript
switch(foo){} {}
```
###### Backtrace:
``` javascript
ICE: Assertion 'token_is (TOK_EOF)' failed at jerryscript/jerry-core/parser/js/parser.cpp(parser_parse_program):3108.
Error: ERR_FAILED_INTERNAL_ASSERTION
Program received signal SIGABRT, Aborted.
0x0000000000485ccd in syscall_2_asm () at jerryscript/jerry-libc/target/linux/jerry-asm.S:32
32 SYSCALL_2
(gdb) bt
#0 0x0000000000485ccd in syscall_2_asm () at jerryscript/jerry-libc/target/linux/jerry-asm.S:32
#1 0x00000000004003c2 in syscall_2 (syscall_no=62, arg1=3261, arg2=6)
at jerryscript/jerry-libc/target/linux/jerry-libc-target.c:96
#2 0x0000000000400563 in abort () at jerryscript/jerry-libc/target/linux/jerry-libc-target.c:175
#3 0x000000000043a7db in jerry_fatal (code=ERR_FAILED_INTERNAL_ASSERTION) at jerryscript/jerry-core/jrt/jrt-fatals.cpp:65
#4 0x000000000043a82a in jerry_assert_fail (assertion=0x498bc8 "token_is (TOK_EOF)",
file=0x498958 "jerryscript/jerry-core/parser/js/parser.cpp",
function=0x48b740 <_ZZL20parser_parse_programPKhmbbbPPK8opcode_tE8__func__.lto_priv.509> "parser_parse_program", line=3108)
at jerryscript/jerry-core/jrt/jrt-fatals.cpp:92
#5 0x0000000000441273 in parser_parse_program (source_p=0x6b5780 <_ZL13source_buffer.lto_priv.1070> "switch(foo){} {}", source_size=16,
in_function=false, in_eval=false, is_strict=false, out_opcodes_p=0x7fffffffd5f0)
at jerryscript/jerry-core/parser/js/parser.cpp:3108
#6 0x00000000004413ba in parser_parse_script (source=0x6b5780 <_ZL13source_buffer.lto_priv.1070> "switch(foo){} {}", source_size=16,
opcodes_p=0x7fffffffd5f0) at jerryscript/jerry-core/parser/js/parser.cpp:3174
#7 0x000000000048578a in jerry_parse (source_p=0x6b5780 <_ZL13source_buffer.lto_priv.1070> "switch(foo){} {}", source_size=16)
at jerryscript/jerry-core/jerry.cpp:1341
#8 0x0000000000484397 in main (argc=3, argv=0x7fffffffd898) at jerryscript/main-linux.cpp:282
```
| Assertion 'token_is (TOK_EOF)' failed in parser_parse_program | https://api.github.com/repos/jerryscript-project/jerryscript/issues/282/comments | 2 | 2015-06-30T17:18:06Z | 2015-11-19T12:00:29Z | https://github.com/jerryscript-project/jerryscript/issues/282 | 92,148,860 | 282 |
[
"jerryscript-project",
"jerryscript"
] | ###### Jerry version:
```
Checked revision: ec02ace
Build: debug.linux
```
###### OS:
```
Ubuntu 14.10, x86_64
```
###### Test case:
``` javascript
while(false) foo
```
###### Backtrace:
``` javascript
ICE: Assertion 'locus < buffer_size' failed at jerryscript/jerry-core/parser/js/lexer.cpp(lexer_seek):1313.
Error: ERR_FAILED_INTERNAL_ASSERTION
Program received signal SIGABRT, Aborted.
0x0000000000485ccd in syscall_2_asm () at jerryscript/jerry-libc/target/linux/jerry-asm.S:32
32 SYSCALL_2
(gdb) bt
#0 0x0000000000485ccd in syscall_2_asm () at jerryscript/jerry-libc/target/linux/jerry-asm.S:32
#1 0x00000000004003c2 in syscall_2 (syscall_no=62, arg1=11434, arg2=6)
at jerryscript/jerry-libc/target/linux/jerry-libc-target.c:96
#2 0x0000000000400563 in abort () at jerryscript/jerry-libc/target/linux/jerry-libc-target.c:175
#3 0x000000000043a7db in jerry_fatal (code=ERR_FAILED_INTERNAL_ASSERTION) at jerryscript/jerry-core/jrt/jrt-fatals.cpp:65
#4 0x000000000043a82a in jerry_assert_fail (assertion=0x4907ce "locus < buffer_size",
file=0x48ffc8 "jerryscript/jerry-core/parser/js/lexer.cpp",
function=0x48db91 <_ZZ10lexer_seekmE8__func__.lto_priv.161> "lexer_seek", line=1313)
at jerryscript/jerry-core/jrt/jrt-fatals.cpp:92
#5 0x000000000040f232 in lexer_seek (locus=16) at jerryscript/jerry-core/parser/js/lexer.cpp:1313
#6 0x000000000043fa83 in parse_while_statement (outermost_stmt_label_p=0x7fffffffd380)
at jerryscript/jerry-core/parser/js/parser.cpp:2251
#7 0x0000000000440315 in parse_iterational_statement (outermost_named_stmt_label_p=0x0)
at jerryscript/jerry-core/parser/js/parser.cpp:2540
#8 0x00000000004404df in parse_statement (outermost_stmt_label_p=0x0) at jerryscript/jerry-core/parser/js/parser.cpp:2668
#9 0x0000000000440c18 in parse_source_element () at jerryscript/jerry-core/parser/js/parser.cpp:2820
#10 0x000000000044109a in parse_source_element_list(bool) [clone .lto_priv.559] (is_global=true)
at jerryscript/jerry-core/parser/js/parser.cpp:3045
#11 0x000000000044123b in parser_parse_program (source_p=0x6b5780 <_ZL13source_buffer.lto_priv.1070> "while(false) foo", source_size=16,
in_function=false, in_eval=false, is_strict=false, out_opcodes_p=0x7fffffffd5f0)
at jerryscript/jerry-core/parser/js/parser.cpp:3105
#12 0x00000000004413ba in parser_parse_script (source=0x6b5780 <_ZL13source_buffer.lto_priv.1070> "while(false) foo", source_size=16,
opcodes_p=0x7fffffffd5f0) at jerryscript/jerry-core/parser/js/parser.cpp:3174
#13 0x000000000048578a in jerry_parse (source_p=0x6b5780 <_ZL13source_buffer.lto_priv.1070> "while(false) foo", source_size=16)
at jerryscript/jerry-core/jerry.cpp:1341
#14 0x0000000000484397 in main (argc=3, argv=0x7fffffffd898) at jerryscript/main-linux.cpp:282
```
| Assertion 'locus < buffer_size' failed in lexer_seek | https://api.github.com/repos/jerryscript-project/jerryscript/issues/281/comments | 2 | 2015-06-30T16:59:34Z | 2015-11-19T10:55:09Z | https://github.com/jerryscript-project/jerryscript/issues/281 | 92,144,650 | 281 |
[
"jerryscript-project",
"jerryscript"
] | ###### Jerry version:
```
Checked revision: ec02ace
Build: debug.linux
```
###### OS:
```
Ubuntu 14.10, x86_64
```
###### Test case:
``` javascript
v_0 = {0: delete 3. instanceof foo() ^ {} }
```
###### Backtrace:
``` javascript
ICE: Assertion 'lit->get_type () == LIT_STR_T' failed at jerryscript/jerry-core/ecma/base/ecma-helpers-string.cpp(ecma_init_ecma_string_from_lit_cp):347.
Error: ERR_FAILED_INTERNAL_ASSERTION
Program received signal SIGABRT, Aborted.
0x0000000000485ccd in syscall_2_asm () at jerryscript/jerry-libc/target/linux/jerry-asm.S:32
32 SYSCALL_2
(gdb) bt
#0 0x0000000000485ccd in syscall_2_asm () at jerryscript/jerry-libc/target/linux/jerry-asm.S:32
#1 0x00000000004003c2 in syscall_2 (syscall_no=62, arg1=1476, arg2=6)
at jerryscript/jerry-libc/target/linux/jerry-libc-target.c:96
#2 0x0000000000400563 in abort () at jerryscript/jerry-libc/target/linux/jerry-libc-target.c:175
#3 0x000000000043a7db in jerry_fatal (code=ERR_FAILED_INTERNAL_ASSERTION) at jerryscript/jerry-core/jrt/jrt-fatals.cpp:65
#4 0x000000000043a82a in jerry_assert_fail (assertion=0x49cbea "lit->get_type () == LIT_STR_T",
file=0x49c9e0 "jerryscript/jerry-core/ecma/base/ecma-helpers-string.cpp",
function=0x4899e0 <_ZZL33ecma_init_ecma_string_from_lit_cpP13ecma_string_tN15rcs_recordset_t8record_t10cpointer_tEbE8__func__.lto_priv.734> "ecma_init_ecma_string_from_lit_cp", line=347) at jerryscript/jerry-core/jrt/jrt-fatals.cpp:92
#5 0x0000000000453c4a in ecma_init_ecma_string_from_lit_cp (string_p=0x7b5c30 <_ZL13mem_heap_area.lto_priv.1016+176>, lit_cp=..., is_stack_var=false)
at jerryscript/jerry-core/ecma/base/ecma-helpers-string.cpp:347
#6 0x00000000004543de in ecma_new_ecma_string_from_lit_cp (lit_cp=...)
at jerryscript/jerry-core/ecma/base/ecma-helpers-string.cpp:571
#7 0x0000000000430342 in opfunc_delete_var (opdata=..., int_data=0x7fffffffd4d0) at jerryscript/jerry-core/vm/opcodes.cpp:1617
#8 0x000000000047e839 in vm_loop (int_data_p=0x7fffffffd4d0, run_scope_p=0x0) at jerryscript/jerry-core/vm/vm.cpp:466
#9 0x00000000004387e7 in opfunc_obj_decl (opdata=..., int_data=0x7fffffffd4d0) at jerryscript/jerry-core/vm/opcodes.cpp:1030
#10 0x000000000047e839 in vm_loop (int_data_p=0x7fffffffd4d0, run_scope_p=0x0) at jerryscript/jerry-core/vm/vm.cpp:466
#11 0x000000000047eac6 in vm_run_from_pos (opcodes_p=0x7b5d58 <_ZL13mem_heap_area.lto_priv.1016+472>, start_pos=1, this_binding_value=15,
lex_env_p=0x7b5ba8 <_ZL13mem_heap_area.lto_priv.1016+40>, is_strict=false, is_eval_code=false)
at jerryscript/jerry-core/vm/vm.cpp:556
#12 0x000000000047e6a3 in vm_run_global () at jerryscript/jerry-core/vm/vm.cpp:395
#13 0x00000000004857d7 in jerry_run () at jerryscript/jerry-core/jerry.cpp:1373
#14 0x00000000004843b6 in main (argc=3, argv=0x7fffffffd898) at jerryscript/main-linux.cpp:291
```
| Assertion 'lit->get_type () == LIT_STR_T' failed in ecma_init_ecma_string_from_lit_cp | https://api.github.com/repos/jerryscript-project/jerryscript/issues/280/comments | 6 | 2015-06-30T16:45:48Z | 2016-02-08T10:10:10Z | https://github.com/jerryscript-project/jerryscript/issues/280 | 92,141,148 | 280 |
[
"jerryscript-project",
"jerryscript"
] | ###### Jerry version:
```
Checked revision: 2aa0485
Build: debug.linux
```
###### OS:
```
Ubuntu 14.10, x86_64
```
###### Test case:
``` javascript
parseInt(RegExp("\u2029"));
```
###### Backtrace:
``` javascript
ICE: Assertion 'bytes_copied >= 0' failed at jerryscript/jerry-core/ecma/builtin-objects/ecma-builtin-global.cpp(ecma_builtin_global_object_parse_int):119.
Error: ERR_FAILED_INTERNAL_ASSERTION
Program received signal SIGABRT, Aborted.
0x0000000000485c23 in syscall_2_asm () at jerryscript/jerry-libc/target/linux/jerry-asm.S:32
32 SYSCALL_2
(gdb) bt
#0 0x0000000000485c23 in syscall_2_asm () at jerryscript/jerry-libc/target/linux/jerry-asm.S:32
#1 0x00000000004003c2 in syscall_2 (syscall_no=62, arg1=30132, arg2=6)
at jerryscript/jerry-libc/target/linux/jerry-libc-target.c:96
#2 0x0000000000400563 in abort () at jerryscript/jerry-libc/target/linux/jerry-libc-target.c:175
#3 0x000000000043a7c7 in jerry_fatal (code=ERR_FAILED_INTERNAL_ASSERTION) at jerryscript/jerry-core/jrt/jrt-fatals.cpp:65
#4 0x000000000043a816 in jerry_assert_fail (assertion=0x4a2138 "bytes_copied >= 0",
file=0x4a2068 "jerryscript/jerry-core/ecma/builtin-objects/ecma-builtin-global.cpp",
function=0x486d80 <_ZZL36ecma_builtin_global_object_parse_intjjjE8__func__.lto_priv.952> "ecma_builtin_global_object_parse_int", line=119)
at jerryscript/jerry-core/jrt/jrt-fatals.cpp:92
#5 0x000000000047495a in ecma_builtin_global_object_parse_int (this_arg=4, string=151, radix=4)
at jerryscript/jerry-core/ecma/builtin-objects/ecma-builtin-global.cpp:119
#6 0x000000000047475f in ecma_builtin_global_dispatch_routine (builtin_routine_id=47, this_arg_value=4,
arguments_list=0x7f5b10 <_ZL13mem_heap_area.lto_priv.1016+262032>, arguments_number=1)
at jerryscript/jerry-core/ecma/builtin-objects/ecma-builtin-global.inc.h:230
#7 0x000000000047a6fb in ecma_builtin_dispatch_routine (builtin_object_id=ECMA_BUILTIN_ID_GLOBAL, builtin_routine_id=47, this_arg_value=4,
arguments_list=0x7f5b10 <_ZL13mem_heap_area.lto_priv.1016+262032>, arguments_number=1)
at jerryscript/jerry-core/ecma/builtin-objects/ecma-builtins.inc.h:302
#8 0x0000000000479b49 in ecma_builtin_dispatch_call (obj_p=0x7b5c30 <_ZL13mem_heap_area.lto_priv.1016+176>, this_arg_value=4,
arguments_list_p=0x7f5b10 <_ZL13mem_heap_area.lto_priv.1016+262032>, arguments_list_len=1)
at jerryscript/jerry-core/ecma/builtin-objects/ecma-builtins.cpp:414
#9 0x0000000000449387 in ecma_op_function_call (func_obj_p=0x7b5c30 <_ZL13mem_heap_area.lto_priv.1016+176>, this_arg_value=4,
arguments_list_p=0x7f5b10 <_ZL13mem_heap_area.lto_priv.1016+262032>, arguments_list_len=1)
at jerryscript/jerry-core/ecma/operations/ecma-function-object.cpp:696
#10 0x0000000000437fa2 in opfunc_call_n (opdata=..., int_data=0x7fffffffd4e0) at jerryscript/jerry-core/vm/opcodes.cpp:817
#11 0x000000000047e78f in vm_loop (int_data_p=0x7fffffffd4e0, run_scope_p=0x0) at jerryscript/jerry-core/vm/vm.cpp:466
#12 0x000000000047ea1c in vm_run_from_pos (opcodes_p=0x7b5d18 <_ZL13mem_heap_area.lto_priv.1016+408>, start_pos=1, this_binding_value=15,
lex_env_p=0x7b5ba8 <_ZL13mem_heap_area.lto_priv.1016+40>, is_strict=false, is_eval_code=false)
at jerryscript/jerry-core/vm/vm.cpp:556
#13 0x000000000047e5f9 in vm_run_global () at jerryscript/jerry-core/vm/vm.cpp:395
#14 0x000000000048572d in jerry_run () at jerryscript/jerry-core/jerry.cpp:1373
#15 0x000000000048430c in main (argc=3, argv=0x7fffffffd8a8) at jerryscript/main-linux.cpp:291
```
| Assertion 'bytes_copied >= 0' failed in ecma_builtin_global_object_parse_int | https://api.github.com/repos/jerryscript-project/jerryscript/issues/279/comments | 2 | 2015-06-30T13:09:46Z | 2016-11-25T06:26:31Z | https://github.com/jerryscript-project/jerryscript/issues/279 | 92,088,990 | 279 |
[
"jerryscript-project",
"jerryscript"
] | ###### Jerry version:
```
Checked revision: 2aa0485
Build: debug.linux
```
###### OS:
```
Ubuntu 14.10, x86_64
```
###### Test case:
``` javascript
eval(String());
```
###### Backtrace:
``` javascript
ICE: Assertion 'code_p != NULL' failed at jerryscript/jerry-core/ecma/operations/ecma-eval.cpp(ecma_op_eval_chars_buffer):85.
Error: ERR_FAILED_INTERNAL_ASSERTION
Program received signal SIGABRT, Aborted.
0x0000000000485c23 in syscall_2_asm () at jerryscript/jerry-libc/target/linux/jerry-asm.S:32
32 SYSCALL_2
(gdb) bt
#0 0x0000000000485c23 in syscall_2_asm () at jerryscript/jerry-libc/target/linux/jerry-asm.S:32
#1 0x00000000004003c2 in syscall_2 (syscall_no=62, arg1=24981, arg2=6)
at jerryscript/jerry-libc/target/linux/jerry-libc-target.c:96
#2 0x0000000000400563 in abort () at jerryscript/jerry-libc/target/linux/jerry-libc-target.c:175
#3 0x000000000043a7c7 in jerry_fatal (code=ERR_FAILED_INTERNAL_ASSERTION) at jerryscript/jerry-core/jrt/jrt-fatals.cpp:65
#4 0x000000000043a816 in jerry_assert_fail (assertion=0x49a067 "code_p != NULL",
file=0x499fc0 "jerryscript/jerry-core/ecma/operations/ecma-eval.cpp",
function=0x48b0e0 <_ZZ25ecma_op_eval_chars_bufferPKhmbbE8__func__.lto_priv.574> "ecma_op_eval_chars_buffer", line=85)
at jerryscript/jerry-core/jrt/jrt-fatals.cpp:92
#5 0x0000000000447e44 in ecma_op_eval_chars_buffer (code_p=0x0, code_buffer_size=0, is_direct=true, is_called_from_strict_mode_code=false)
at jerryscript/jerry-core/ecma/operations/ecma-eval.cpp:85
#6 0x0000000000447d94 in ecma_op_eval (code_p=0x7b5c90 <_ZL13mem_heap_area.lto_priv.1016+272>, is_direct=true, is_called_from_strict_mode_code=false)
at jerryscript/jerry-core/ecma/operations/ecma-eval.cpp:63
#7 0x0000000000474802 in ecma_builtin_global_object_eval (this_arg=4, x=138)
at jerryscript/jerry-core/ecma/builtin-objects/ecma-builtin-global.cpp:86
#8 0x00000000004745fa in ecma_builtin_global_dispatch_routine (builtin_routine_id=1, this_arg_value=4,
arguments_list=0x7f5b10 <_ZL13mem_heap_area.lto_priv.1016+262032>, arguments_number=1)
at jerryscript/jerry-core/ecma/builtin-objects/ecma-builtin-global.inc.h:222
#9 0x000000000047a6fb in ecma_builtin_dispatch_routine (builtin_object_id=ECMA_BUILTIN_ID_GLOBAL, builtin_routine_id=1, this_arg_value=4,
arguments_list=0x7f5b10 <_ZL13mem_heap_area.lto_priv.1016+262032>, arguments_number=1)
at jerryscript/jerry-core/ecma/builtin-objects/ecma-builtins.inc.h:302
#10 0x0000000000479b49 in ecma_builtin_dispatch_call (obj_p=0x7b5c30 <_ZL13mem_heap_area.lto_priv.1016+176>, this_arg_value=4,
arguments_list_p=0x7f5b10 <_ZL13mem_heap_area.lto_priv.1016+262032>, arguments_list_len=1)
at jerryscript/jerry-core/ecma/builtin-objects/ecma-builtins.cpp:414
#11 0x0000000000449387 in ecma_op_function_call (func_obj_p=0x7b5c30 <_ZL13mem_heap_area.lto_priv.1016+176>, this_arg_value=4,
arguments_list_p=0x7f5b10 <_ZL13mem_heap_area.lto_priv.1016+262032>, arguments_list_len=1)
at jerryscript/jerry-core/ecma/operations/ecma-function-object.cpp:696
#12 0x0000000000437fa2 in opfunc_call_n (opdata=..., int_data=0x7fffffffd4e0) at jerryscript/jerry-core/vm/opcodes.cpp:817
#13 0x000000000047e78f in vm_loop (int_data_p=0x7fffffffd4e0, run_scope_p=0x0) at jerryscript/jerry-core/vm/vm.cpp:466
#14 0x000000000047ea1c in vm_run_from_pos (opcodes_p=0x7b5d18 <_ZL13mem_heap_area.lto_priv.1016+408>, start_pos=1, this_binding_value=15,
lex_env_p=0x7b5ba8 <_ZL13mem_heap_area.lto_priv.1016+40>, is_strict=false, is_eval_code=false)
at jerryscript/jerry-core/vm/vm.cpp:556
#15 0x000000000047e5f9 in vm_run_global () at jerryscript/jerry-core/vm/vm.cpp:395
#16 0x000000000048572d in jerry_run () at jerryscript/jerry-core/jerry.cpp:1373
#17 0x000000000048430c in main (argc=3, argv=0x7fffffffd8a8) at jerryscript/main-linux.cpp:291
```
| Assertion 'code_p != NULL' failed in ecma_op_eval_chars_buffer | https://api.github.com/repos/jerryscript-project/jerryscript/issues/278/comments | 2 | 2015-06-30T12:34:28Z | 2016-01-13T15:12:08Z | https://github.com/jerryscript-project/jerryscript/issues/278 | 92,080,906 | 278 |
[
"jerryscript-project",
"jerryscript"
] | ###### Jerry version:
```
Checked revision: 2aa0485
Build: debug.linux
```
###### OS:
```
Ubuntu 14.10, x86_64
```
###### Test case:
``` javascript
/* 256 "a" in the array */
try {
["a", "a", "a", "a", "a", "a", "a", "a", "a", "a", "a", "a", "a", "a", "a", "a", "a", "a", "a", "a", "a", "a", "a", "a", "a", "a", "a", "a", "a", "a", "a", "a", "a", "a", "a", "a", "a", "a", "a", "a", "a", "a", "a", "a", "a", "a", "a", "a", "a", "a", "a", "a", "a", "a", "a", "a", "a", "a", "a", "a", "a", "a", "a", "a", "a", "a", "a", "a", "a", "a", "a", "a", "a", "a", "a", "a", "a", "a", "a", "a", "a", "a", "a", "a", "a", "a", "a", "a", "a", "a", "a", "a", "a", "a", "a", "a", "a", "a", "a", "a", "a", "a", "a", "a", "a", "a", "a", "a", "a", "a", "a", "a", "a", "a", "a", "a", "a", "a", "a", "a", "a", "a", "a", "a", "a", "a", "a", "a", "a", "a", "a", "a", "a", "a", "a", "a", "a", "a", "a", "a", "a", "a", "a", "a", "a", "a", "a", "a", "a", "a", "a", "a", "a", "a", "a", "a", "a", "a", "a", "a", "a", "a", "a", "a", "a", "a", "a", "a", "a", "a", "a", "a", "a", "a", "a", "a", "a", "a", "a", "a", "a", "a", "a", "a", "a", "a", "a", "a", "a", "a", "a", "a", "a", "a", "a", "a", "a", "a", "a", "a", "a", "a", "a", "a", "a", "a", "a", "a", "a", "a", "a", "a", "a", "a", "a", "a", "a", "a", "a", "a", "a", "a", "a", "a", "a", "a", "a", "a", "a", "a", "a", "a", "a", "a", "a", "a", "a", "a", "a", "a", "a", "a", "a", "a", "a", "a", "a", "a", "a", "a", "a", "a", "a", "a", "a", "a"];
} catch(e) { }
```
###### Backtrace:
``` javascript
ICE: Assertion '(!ecma_is_completion_value_empty (try_completion) && int_data->pos <= try_end_oc) || (ecma_is_completion_value_empty (try_completion) && int_data->pos == try_end_oc)' failed at jerryscript/jerry-core/vm/opcodes-ecma-try-catch-finally.cpp(opfunc_try_block):43.
Error: ERR_FAILED_INTERNAL_ASSERTION
Program received signal SIGABRT, Aborted.
0x0000000000485c23 in syscall_2_asm () at jerryscript/jerry-libc/target/linux/jerry-asm.S:32
32 SYSCALL_2
(gdb) bt
#0 0x0000000000485c23 in syscall_2_asm () at jerryscript/jerry-libc/target/linux/jerry-asm.S:32
#1 0x00000000004003c2 in syscall_2 (syscall_no=62, arg1=10133, arg2=6)
at jerryscript/jerry-libc/target/linux/jerry-libc-target.c:96
#2 0x0000000000400563 in abort () at jerryscript/jerry-libc/target/linux/jerry-libc-target.c:175
#3 0x000000000043a7c7 in jerry_fatal (code=ERR_FAILED_INTERNAL_ASSERTION) at jerryscript/jerry-core/jrt/jrt-fatals.cpp:65
#4 0x000000000043a816 in jerry_assert_fail (
assertion=0x4a4a38 "(!ecma_is_completion_value_empty (try_completion) && int_data->pos <= try_end_oc) || (ecma_is_completion_value_empty (try_completion) && int_data->pos == try_end_oc)", file=0x4a49e0 "jerryscript/jerry-core/vm/opcodes-ecma-try-catch-finally.cpp",
function=0x4868f0 <_ZZ16opfunc_try_block8opcode_tP10int_data_tE8__func__.lto_priv.985> "opfunc_try_block", line=43)
at jerryscript/jerry-core/jrt/jrt-fatals.cpp:92
#5 0x0000000000480aca in opfunc_try_block (opdata=..., int_data=0x7fffffffd4c0)
at jerryscript/jerry-core/vm/opcodes-ecma-try-catch-finally.cpp:42
#6 0x000000000047e78f in vm_loop (int_data_p=0x7fffffffd4c0, run_scope_p=0x0) at jerryscript/jerry-core/vm/vm.cpp:466
#7 0x000000000047ea1c in vm_run_from_pos (opcodes_p=0x7b6dd8 <_ZL13mem_heap_area.lto_priv.1016+4696>, start_pos=1, this_binding_value=15,
lex_env_p=0x7b5ba8 <_ZL13mem_heap_area.lto_priv.1016+40>, is_strict=false, is_eval_code=false)
at jerryscript/jerry-core/vm/vm.cpp:556
#8 0x000000000047e5f9 in vm_run_global () at jerryscript/jerry-core/vm/vm.cpp:395
#9 0x000000000048572d in jerry_run () at jerryscript/jerry-core/jerry.cpp:1373
#10 0x000000000048430c in main (argc=3, argv=0x7fffffffd888) at jerryscript/main-linux.cpp:291
```
###### Notes
Removing the surrounding try block we get another assertion failure:
``` javascript
ICE: Assertion 'ecma_is_completion_value_throw (completion) || ecma_is_completion_value_return (completion)' failed at jerryscript/jerry-core/vm/vm.cpp(vm_run_from_pos):559.
Error: ERR_FAILED_INTERNAL_ASSERTION
Program received signal SIGABRT, Aborted.
0x0000000000485c23 in syscall_2_asm () at jerryscript/jerry-libc/target/linux/jerry-asm.S:32
32 SYSCALL_2
(gdb) bt
#0 0x0000000000485c23 in syscall_2_asm () at jerryscript/jerry-libc/target/linux/jerry-asm.S:32
#1 0x00000000004003c2 in syscall_2 (syscall_no=62, arg1=13111, arg2=6)
at jerryscript/jerry-libc/target/linux/jerry-libc-target.c:96
#2 0x0000000000400563 in abort () at jerryscript/jerry-libc/target/linux/jerry-libc-target.c:175
#3 0x000000000043a7c7 in jerry_fatal (code=ERR_FAILED_INTERNAL_ASSERTION) at jerryscript/jerry-core/jrt/jrt-fatals.cpp:65
#4 0x000000000043a816 in jerry_assert_fail (
assertion=0x4a44c0 "ecma_is_completion_value_throw (completion) || ecma_is_completion_value_return (completion)",
file=0x4a42a8 "jerryscript/jerry-core/vm/vm.cpp",
function=0x4866c0 <_ZZ15vm_run_from_posPK8opcode_ttjP13ecma_object_tbbE8__func__.lto_priv.1007> "vm_run_from_pos", line=559)
at jerryscript/jerry-core/jrt/jrt-fatals.cpp:92
#5 0x000000000047ea73 in vm_run_from_pos (opcodes_p=0x7b5d18 <_ZL13mem_heap_area.lto_priv.1016+408>, start_pos=1, this_binding_value=15,
lex_env_p=0x7b5ba8 <_ZL13mem_heap_area.lto_priv.1016+40>, is_strict=false, is_eval_code=false)
at jerryscript/jerry-core/vm/vm.cpp:558
#6 0x000000000047e5f9 in vm_run_global () at jerryscript/jerry-core/vm/vm.cpp:395
#7 0x000000000048572d in jerry_run () at jerryscript/jerry-core/jerry.cpp:1373
#8 0x000000000048430c in main (argc=3, argv=0x7fffffffd888) at jerryscript/main-linux.cpp:291
```
| Assertion '(!ecma_is_completion_value_empty (try_completion) && int_data->pos <= try_end_oc) || (ecma_is_completion_value_empty (try_completion) && int_data->pos == try_end_oc)' failed in opfunc_try_block | https://api.github.com/repos/jerryscript-project/jerryscript/issues/276/comments | 1 | 2015-06-30T11:35:33Z | 2015-11-19T10:50:43Z | https://github.com/jerryscript-project/jerryscript/issues/276 | 92,068,742 | 276 |
[
"jerryscript-project",
"jerryscript"
] | ###### Jerry version:
```
Checked revision: 2aa0485
Build: debug.linux
```
###### OS:
```
Ubuntu 14.10, x86_64
```
###### Test case:
``` javascript
'�'
```
Hex: 27 EF BF BD 27
###### Backtrace:
``` javascript
ICE: Assertion 'str_buf_iter_p <= str_buf_p + source_str_size' failed at jerryscript/jerry-core/parser/js/lexer.cpp(convert_string_to_token_transform_escape_seq):558.
Error: ERR_FAILED_INTERNAL_ASSERTION
Program received signal SIGABRT, Aborted.
0x0000000000485c23 in syscall_2_asm () at jerryscript/jerry-libc/target/linux/jerry-asm.S:32
32 SYSCALL_2
(gdb) bt
#0 0x0000000000485c23 in syscall_2_asm () at jerryscript/jerry-libc/target/linux/jerry-asm.S:32
#1 0x00000000004003c2 in syscall_2 (syscall_no=62, arg1=21158, arg2=6)
at jerryscript/jerry-libc/target/linux/jerry-libc-target.c:96
#2 0x0000000000400563 in abort () at jerryscript/jerry-libc/target/linux/jerry-libc-target.c:175
#3 0x000000000043a7c7 in jerry_fatal (code=ERR_FAILED_INTERNAL_ASSERTION) at jerryscript/jerry-core/jrt/jrt-fatals.cpp:65
#4 0x000000000043a816 in jerry_assert_fail (assertion=0x48ffe0 "str_buf_iter_p <= str_buf_p + source_str_size",
file=0x48ff88 "jerryscript/jerry-core/parser/js/lexer.cpp",
function=0x48daa0 <_ZZL44convert_string_to_token_transform_escape_seq10token_typePKhmE8__func__.lto_priv.171> "convert_string_to_token_transform_escape_seq", line=558) at jerryscript/jerry-core/jrt/jrt-fatals.cpp:92
#5 0x000000000040c2b4 in convert_string_to_token_transform_escape_seq (tok_type=TOK_STRING,
source_str_p=0x6b5781 <_ZL13source_buffer.lto_priv.1070+1> "\357\277\275'", source_str_size=3)
at jerryscript/jerry-core/parser/js/lexer.cpp:558
#6 0x000000000040d904 in parse_string () at jerryscript/jerry-core/parser/js/lexer.cpp:951
#7 0x000000000040dfaa in lexer_next_token_private () at jerryscript/jerry-core/parser/js/lexer.cpp:1125
#8 0x000000000040f142 in lexer_next_token () at jerryscript/jerry-core/parser/js/lexer.cpp:1286
#9 0x0000000000444612 in skip_token() [clone .lto_priv.528] () at jerryscript/jerry-core/parser/js/parser.cpp:102
#10 0x0000000000444851 in skip_newlines() [clone .lto_priv.524] () at jerryscript/jerry-core/parser/js/parser.cpp:135
#11 0x00000000004411e7 in parser_parse_program (source_p=0x6b5780 <_ZL13source_buffer.lto_priv.1070> "'\357\277\275'", source_size=5,
in_function=false, in_eval=false, is_strict=false, out_opcodes_p=0x7fffffffd5f0)
at jerryscript/jerry-core/parser/js/parser.cpp:3075
#12 0x0000000000441370 in parser_parse_script (source=0x6b5780 <_ZL13source_buffer.lto_priv.1070> "'\357\277\275'", source_size=5,
opcodes_p=0x7fffffffd5f0) at jerryscript/jerry-core/parser/js/parser.cpp:3145
#13 0x00000000004856e0 in jerry_parse (source_p=0x6b5780 <_ZL13source_buffer.lto_priv.1070> "'\357\277\275'", source_size=5)
at jerryscript/jerry-core/jerry.cpp:1341
#14 0x00000000004842ed in main (argc=3, argv=0x7fffffffd898) at jerryscript/main-linux.cpp:282
```
| Assertion 'str_buf_iter_p <= str_buf_p + source_str_size' failed in convert_string_to_token_transform_escape_seq | https://api.github.com/repos/jerryscript-project/jerryscript/issues/274/comments | 2 | 2015-06-30T10:03:23Z | 2016-11-25T06:26:31Z | https://github.com/jerryscript-project/jerryscript/issues/274 | 92,049,422 | 274 |
[
"jerryscript-project",
"jerryscript"
] | ###### Jerry version:
```
Checked revision: 06dffde
Build: debug.linux
```
###### OS:
```
Ubuntu 14.10, x86_64
```
###### Test case:
``` javascript
try {
RegExp("\u2029");
} catch(err) {}
try {
URIError(isNaN(__proto__));
} catch(err) {}
```
###### Backtrace:
``` javascript
ICE: Assertion '!ecma_gc_is_object_visited (obj_iter_p)' failed at jerryscript/jerry-core/ecma/base/ecma-gc.cpp(ecma_gc_run):417.
Error: ERR_FAILED_INTERNAL_ASSERTION
Program received signal SIGABRT, Aborted.
0x00000000004852f6 in syscall_2_asm () at jerryscript/jerry-libc/target/linux/jerry-asm.S:32
32 SYSCALL_2
(gdb) bt
#0 0x00000000004852f6 in syscall_2_asm () at jerryscript/jerry-libc/target/linux/jerry-asm.S:32
#1 0x00000000004003c2 in syscall_2 (syscall_no=62, arg1=19237, arg2=6)
at jerryscript/jerry-libc/target/linux/jerry-libc-target.c:96
#2 0x0000000000400563 in abort () at jerryscript/jerry-libc/target/linux/jerry-libc-target.c:175
#3 0x000000000043a9b7 in jerry_fatal (code=ERR_FAILED_INTERNAL_ASSERTION) at jerryscript/jerry-core/jrt/jrt-fatals.cpp:65
#4 0x000000000043aa06 in jerry_assert_fail (assertion=0x49b1a0 "!ecma_gc_is_object_visited (obj_iter_p)",
file=0x49af28 "jerryscript/jerry-core/ecma/base/ecma-gc.cpp",
function=0x489c2d <_ZZ11ecma_gc_runvE8__func__.lto_priv.636> "ecma_gc_run", line=417)
at jerryscript/jerry-core/jrt/jrt-fatals.cpp:92
#5 0x0000000000450433 in ecma_gc_run () at jerryscript/jerry-core/ecma/base/ecma-gc.cpp:417
#6 0x00000000004648f9 in ecma_finalize () at jerryscript/jerry-core/ecma/base/ecma-init-finalize.cpp:60
#7 0x0000000000484cf6 in jerry_cleanup () at jerryscript/jerry-core/jerry.cpp:1177
#8 0x0000000000483b1a in main (argc=3, argv=0x7fffffffd888) at jerryscript/main-linux.cpp:293
```
| Assertion '!ecma_gc_is_object_visited (obj_iter_p)' failed in ecma_gc_run | https://api.github.com/repos/jerryscript-project/jerryscript/issues/267/comments | 2 | 2015-06-29T19:08:05Z | 2015-06-30T10:30:55Z | https://github.com/jerryscript-project/jerryscript/issues/267 | 91,883,199 | 267 |
[
"jerryscript-project",
"jerryscript"
] | ###### Jerry version:
```
Checked revision: 06dffde
Build: debug.linux
```
###### OS:
```
Ubuntu 14.10, x86_64
```
###### Test case:
``` javascript
try {
String("test");
isNaN(__proto__);
} catch(err) {}
try {
SyntaxError(RegExp("[/]"));
} catch(err) {}
```
###### Backtrace:
``` javascript
ICE: Assertion 'property_p != NULL' failed at jerryscript/jerry-core/ecma/base/ecma-helpers.cpp(ecma_get_internal_property):492.
Error: ERR_FAILED_INTERNAL_ASSERTION
Program received signal SIGABRT, Aborted.
0x00000000004852f6 in syscall_2_asm () at jerryscript/jerry-libc/target/linux/jerry-asm.S:32
32 SYSCALL_2
(gdb) bt
#0 0x00000000004852f6 in syscall_2_asm () at jerryscript/jerry-libc/target/linux/jerry-asm.S:32
#1 0x00000000004003c2 in syscall_2 (syscall_no=62, arg1=18965, arg2=6)
at jerryscript/jerry-libc/target/linux/jerry-libc-target.c:96
#2 0x0000000000400563 in abort () at jerryscript/jerry-libc/target/linux/jerry-libc-target.c:175
#3 0x000000000043a9b7 in jerry_fatal (code=ERR_FAILED_INTERNAL_ASSERTION) at jerryscript/jerry-core/jrt/jrt-fatals.cpp:65
#4 0x000000000043aa06 in jerry_assert_fail (assertion=0x49d334 "property_p != NULL",
file=0x49cf40 "jerryscript/jerry-core/ecma/base/ecma-helpers.cpp",
function=0x4894e0 <_ZZ26ecma_get_internal_propertyP13ecma_object_t27ecma_internal_property_id_tE8__func__.lto_priv.685> "ecma_get_internal_property", line=492) at jerryscript/jerry-core/jrt/jrt-fatals.cpp:92
#5 0x00000000004561f7 in ecma_get_internal_property (object_p=0x7b48d0 <_ZL13mem_heap_area.lto_priv.1072+208>,
property_id=ECMA_INTERNAL_PROPERTY_BUILT_IN_ID) at jerryscript/jerry-core/ecma/base/ecma-helpers.cpp:492
#6 0x000000000047724a in ecma_builtin_try_to_instantiate_property (object_p=0x7b48d0 <_ZL13mem_heap_area.lto_priv.1072+208>,
string_p=0x7b4ba0 <_ZL13mem_heap_area.lto_priv.1072+928>)
at jerryscript/jerry-core/ecma/builtin-objects/ecma-builtins.cpp:285
#7 0x00000000004521c7 in ecma_op_object_get_own_property_longpath(ecma_object_t*, ecma_string_t*) [clone .lto_priv.616] (
obj_p=0x7b48d0 <_ZL13mem_heap_area.lto_priv.1072+208>, property_name_p=0x7b4ba0 <_ZL13mem_heap_area.lto_priv.1072+928>)
at jerryscript/jerry-core/ecma/operations/ecma-objects.cpp:145
#8 0x0000000000449a47 in ecma_op_object_get_own_property (obj_p=0x7b48d0 <_ZL13mem_heap_area.lto_priv.1072+208>,
property_name_p=0x7b4ba0 <_ZL13mem_heap_area.lto_priv.1072+928>)
at jerryscript/jerry-core/ecma/operations/ecma-objects.cpp:177
#9 0x0000000000441c65 in ecma_op_general_object_get_property (obj_p=0x7b48d0 <_ZL13mem_heap_area.lto_priv.1072+208>,
property_name_p=0x7b4ba0 <_ZL13mem_heap_area.lto_priv.1072+928>)
at jerryscript/jerry-core/ecma/operations/ecma-objects-general.cpp:225
#10 0x0000000000449af2 in ecma_op_object_get_property (obj_p=0x7b48d0 <_ZL13mem_heap_area.lto_priv.1072+208>,
property_name_p=0x7b4ba0 <_ZL13mem_heap_area.lto_priv.1072+928>)
at jerryscript/jerry-core/ecma/operations/ecma-objects.cpp:218
#11 0x0000000000441ca0 in ecma_op_general_object_get_property (obj_p=0x7b4b30 <_ZL13mem_heap_area.lto_priv.1072+816>,
property_name_p=0x7b4ba0 <_ZL13mem_heap_area.lto_priv.1072+928>)
at jerryscript/jerry-core/ecma/operations/ecma-objects-general.cpp:239
#12 0x0000000000449af2 in ecma_op_object_get_property (obj_p=0x7b4b30 <_ZL13mem_heap_area.lto_priv.1072+816>,
property_name_p=0x7b4ba0 <_ZL13mem_heap_area.lto_priv.1072+928>)
at jerryscript/jerry-core/ecma/operations/ecma-objects.cpp:218
#13 0x0000000000441ab4 in ecma_op_general_object_get (obj_p=0x7b4b30 <_ZL13mem_heap_area.lto_priv.1072+816>,
property_name_p=0x7b4ba0 <_ZL13mem_heap_area.lto_priv.1072+928>)
at jerryscript/jerry-core/ecma/operations/ecma-objects-general.cpp:149
#14 0x00000000004520c9 in ecma_op_object_get (obj_p=0x7b4b30 <_ZL13mem_heap_area.lto_priv.1072+816>,
property_name_p=0x7b4ba0 <_ZL13mem_heap_area.lto_priv.1072+928>)
at jerryscript/jerry-core/ecma/operations/ecma-objects.cpp:80
#15 0x000000000044234c in ecma_op_general_object_default_value (obj_p=0x7b4b30 <_ZL13mem_heap_area.lto_priv.1072+816>,
hint=ECMA_PREFERRED_TYPE_STRING) at jerryscript/jerry-core/ecma/operations/ecma-objects-general.cpp:555
#16 0x0000000000449dd3 in ecma_op_object_default_value (obj_p=0x7b4b30 <_ZL13mem_heap_area.lto_priv.1072+816>, hint=ECMA_PREFERRED_TYPE_STRING)
at jerryscript/jerry-core/ecma/operations/ecma-objects.cpp:388
#17 0x0000000000445ec7 in ecma_op_to_primitive (value=411, preferred_type=ECMA_PREFERRED_TYPE_STRING)
at jerryscript/jerry-core/ecma/operations/ecma-conversion.cpp:169
#18 0x00000000004462fb in ecma_op_to_string (value=411) at jerryscript/jerry-core/ecma/operations/ecma-conversion.cpp:330
#19 0x0000000000474bb0 in ecma_builtin_syntax_error_dispatch_call (arguments_list_p=0x7f4790 <_ZL13mem_heap_area.lto_priv.1072+262032>,
arguments_list_len=1) at jerryscript/jerry-core/ecma/builtin-objects/ecma-builtin-syntaxerror.cpp:62
#20 0x0000000000477be2 in ecma_builtin_dispatch_call (obj_p=0x7b4ad8 <_ZL13mem_heap_area.lto_priv.1072+728>, this_arg_value=4,
arguments_list_p=0x7f4790 <_ZL13mem_heap_area.lto_priv.1072+262032>, arguments_list_len=1)
at jerryscript/jerry-core/ecma/builtin-objects/ecma-builtins.inc.h:243
#21 0x0000000000448b8d in ecma_op_function_call (func_obj_p=0x7b4ad8 <_ZL13mem_heap_area.lto_priv.1072+728>, this_arg_value=4,
arguments_list_p=0x7f4790 <_ZL13mem_heap_area.lto_priv.1072+262032>, arguments_list_len=1)
at jerryscript/jerry-core/ecma/operations/ecma-function-object.cpp:613
#22 0x00000000004381fa in opfunc_call_n (opdata=..., int_data=0x7fffffffd4d0) at jerryscript/jerry-core/vm/opcodes.cpp:778
#23 0x00000000004826f9 in vm_loop (int_data_p=0x7fffffffd4d0, run_scope_p=0x7fffffffd420)
at jerryscript/jerry-core/vm/vm.cpp:466
#24 0x000000000047f111 in opfunc_try_block (opdata=..., int_data=0x7fffffffd4d0)
at jerryscript/jerry-core/vm/opcodes-ecma-try-catch-finally.cpp:41
#25 0x00000000004826f9 in vm_loop (int_data_p=0x7fffffffd4d0, run_scope_p=0x0) at jerryscript/jerry-core/vm/vm.cpp:466
#26 0x0000000000482986 in vm_run_from_pos (opcodes_p=0x7b49d8 <_ZL13mem_heap_area.lto_priv.1072+472>, start_pos=1, this_binding_value=15,
lex_env_p=0x7b4828 <_ZL13mem_heap_area.lto_priv.1072+40>, is_strict=false, is_eval_code=false)
at jerryscript/jerry-core/vm/vm.cpp:556
#27 0x0000000000482563 in vm_run_global () at jerryscript/jerry-core/vm/vm.cpp:395
#28 0x0000000000484e04 in jerry_run () at jerryscript/jerry-core/jerry.cpp:1271
#29 0x0000000000483b12 in main (argc=3, argv=0x7fffffffd898) at jerryscript/main-linux.cpp:289
```
| Assertion 'property_p != NULL' failed in ecma_get_internal_property | https://api.github.com/repos/jerryscript-project/jerryscript/issues/266/comments | 2 | 2015-06-29T18:21:12Z | 2015-06-30T10:31:53Z | https://github.com/jerryscript-project/jerryscript/issues/266 | 91,872,623 | 266 |
[
"jerryscript-project",
"jerryscript"
] | ###### Jerry version:
```
Checked revision: 06dffde
Build: debug.linux
```
###### OS:
```
Ubuntu 14.10, x86_64
```
###### Test case:
``` javascript
parseInt(NaN,RegExp("54"));
try {
parseInt(ArrayBuffer());
} catch(err) {}
try {
isNaN(__proto__);
} catch(err) {}
RangeError(parseInt(Infinity,readbuffer()));
```
###### Backtrace:
``` javascript
ICE: Assertion 'string1_p->hash == string2_p->hash' failed at jerryscript/jerry-core/ecma/base/ecma-helpers-string.cpp(ecma_compare_ecma_strings_equal_hashes):1312.
Error: ERR_FAILED_INTERNAL_ASSERTION
Program received signal SIGABRT, Aborted.
0x00000000004852f6 in syscall_2_asm () at jerryscript/jerry-libc/target/linux/jerry-asm.S:32
32 SYSCALL_2
(gdb) bt
#0 0x00000000004852f6 in syscall_2_asm () at jerryscript/jerry-libc/target/linux/jerry-asm.S:32
#1 0x00000000004003c2 in syscall_2 (syscall_no=62, arg1=24910, arg2=6)
at jerryscript/jerry-libc/target/linux/jerry-libc-target.c:96
#2 0x0000000000400563 in abort () at jerryscript/jerry-libc/target/linux/jerry-libc-target.c:175
#3 0x000000000043a9b7 in jerry_fatal (code=ERR_FAILED_INTERNAL_ASSERTION) at jerryscript/jerry-core/jrt/jrt-fatals.cpp:65
#4 0x000000000043aa06 in jerry_assert_fail (assertion=0x49bf10 "string1_p->hash == string2_p->hash",
file=0x49b7e8 "jerryscript/jerry-core/ecma/base/ecma-helpers-string.cpp",
function=0x489060 <_ZZ38ecma_compare_ecma_strings_equal_hashesPK13ecma_string_tS1_E8__func__.lto_priv.720> "ecma_compare_ecma_strings_equal_hashes", line=1312) at jerryscript/jerry-core/jrt/jrt-fatals.cpp:92
#5 0x0000000000453b9a in ecma_compare_ecma_strings_equal_hashes (string1_p=0x7fffffffd180, string2_p=0x7b4908 <_ZL13mem_heap_area.lto_priv.1072+264>)
at jerryscript/jerry-core/ecma/base/ecma-helpers-string.cpp:1312
#6 0x0000000000464ec0 in ecma_lcache_lookup (object_p=0x7b4818 <_ZL13mem_heap_area.lto_priv.1072+24>, prop_name_p=0x7fffffffd180,
prop_p_p=0x7fffffffd088) at jerryscript/jerry-core/ecma/base/ecma-lcache.cpp:258
#7 0x0000000000449a21 in ecma_op_object_get_own_property (obj_p=0x7b4818 <_ZL13mem_heap_area.lto_priv.1072+24>, property_name_p=0x7fffffffd180)
at jerryscript/jerry-core/ecma/operations/ecma-objects.cpp:171
#8 0x0000000000441c65 in ecma_op_general_object_get_property (obj_p=0x7b4818 <_ZL13mem_heap_area.lto_priv.1072+24>, property_name_p=0x7fffffffd180)
at jerryscript/jerry-core/ecma/operations/ecma-objects-general.cpp:225
#9 0x0000000000449af2 in ecma_op_object_get_property (obj_p=0x7b4818 <_ZL13mem_heap_area.lto_priv.1072+24>, property_name_p=0x7fffffffd180)
at jerryscript/jerry-core/ecma/operations/ecma-objects.cpp:218
#10 0x000000000044d083 in ecma_op_has_binding (lex_env_p=0x7b4828 <_ZL13mem_heap_area.lto_priv.1072+40>, name_p=0x7fffffffd180)
at jerryscript/jerry-core/ecma/operations/ecma-lex-env.cpp:131
#11 0x000000000044dae6 in ecma_op_resolve_reference_base (lex_env_p=0x7b4828 <_ZL13mem_heap_area.lto_priv.1072+40>, name_p=0x7fffffffd180)
at jerryscript/jerry-core/ecma/operations/ecma-reference.cpp:49
#12 0x000000000047ee43 in get_variable_value (int_data=0x7fffffffd4d0, var_idx=10 '\n', do_eval_or_arguments_check=false)
at jerryscript/jerry-core/vm/opcodes-helpers-variables.cpp:99
#13 0x0000000000437efb in opfunc_call_n (opdata=..., int_data=0x7fffffffd4d0) at jerryscript/jerry-core/vm/opcodes.cpp:712
#14 0x00000000004826f9 in vm_loop (int_data_p=0x7fffffffd4d0, run_scope_p=0x0) at jerryscript/jerry-core/vm/vm.cpp:466
#15 0x000000000047b3d9 in fill_varg_list(int_data_t*, unsigned short, unsigned int*, unsigned short*) (int_data=0x7fffffffd4d0, args_number=2,
arg_values=0x7f4750 <_ZL13mem_heap_area.lto_priv.1072+261968>, out_arg_number_p=0x7fffffffd2ee)
at jerryscript/jerry-core/vm/opcodes-varg.cpp:43
#16 0x00000000004380a8 in opfunc_call_n (opdata=..., int_data=0x7fffffffd4d0) at jerryscript/jerry-core/vm/opcodes.cpp:745
#17 0x00000000004826f9 in vm_loop (int_data_p=0x7fffffffd4d0, run_scope_p=0x0) at jerryscript/jerry-core/vm/vm.cpp:466
#18 0x000000000047b3d9 in fill_varg_list(int_data_t*, unsigned short, unsigned int*, unsigned short*) (int_data=0x7fffffffd4d0, args_number=1,
arg_values=0x7f4790 <_ZL13mem_heap_area.lto_priv.1072+262032>, out_arg_number_p=0x7fffffffd40e)
at jerryscript/jerry-core/vm/opcodes-varg.cpp:43
#19 0x00000000004380a8 in opfunc_call_n (opdata=..., int_data=0x7fffffffd4d0) at jerryscript/jerry-core/vm/opcodes.cpp:745
#20 0x00000000004826f9 in vm_loop (int_data_p=0x7fffffffd4d0, run_scope_p=0x0) at jerryscript/jerry-core/vm/vm.cpp:466
#21 0x0000000000482986 in vm_run_from_pos (opcodes_p=0x7b4a18 <_ZL13mem_heap_area.lto_priv.1072+536>, start_pos=1, this_binding_value=15,
lex_env_p=0x7b4828 <_ZL13mem_heap_area.lto_priv.1072+40>, is_strict=false, is_eval_code=false)
at jerryscript/jerry-core/vm/vm.cpp:556
#22 0x0000000000482563 in vm_run_global () at jerryscript/jerry-core/vm/vm.cpp:395
#23 0x0000000000484e04 in jerry_run () at jerryscript/jerry-core/jerry.cpp:1271
#24 0x0000000000483b12 in main (argc=3, argv=0x7fffffffd898) at jerryscript/main-linux.cpp:289
```
| Assertion 'string1_p->hash == string2_p->hash' failed in ecma_compare_ecma_strings_equal_hashes | https://api.github.com/repos/jerryscript-project/jerryscript/issues/265/comments | 2 | 2015-06-29T18:11:18Z | 2015-06-30T10:31:45Z | https://github.com/jerryscript-project/jerryscript/issues/265 | 91,870,638 | 265 |
[
"jerryscript-project",
"jerryscript"
] | ###### Jerry version:
```
Checked revision: 06dffde
Build: debug.linux
```
###### OS:
```
Ubuntu 14.10, x86_64
```
###### Test case:
``` javascript
try {
Boolean(decodeURI(decodeURIComponent(Number())));
} catch(err) {}
try {
ReferenceError(isNaN(__proto__));
} catch(err) {}
try {
isNaN(__proto__);
} catch(err) {}
try {
load();
} catch(err) {}
try {
RegExp("\n");
} catch(err) {}
try {
Set();
} catch(err) {}
try {
ReferenceError(performance.__proto__.isPrototypeOf(arguments.map(os)));
} catch(err) {}
try {
Float64Array(performance,WeakSet(),Infinity.valueOf());
} catch(err) {}
try {
arguments.push(Int8Array(Boolean(isFinite(quit())),ArrayBuffer(os.system()),Array(read())));
} catch(err) {}
try {
Boolean(encodeURI(DataView(ArrayBuffer(os),parseFloat(Set()),URIError(Object(Int8Array(Function(parseInt(write(),RangeError(__proto__.valueOf()))),Int16Array(Map(),__proto__.valueOf(),readbuffer()),Math))))));
} catch(err) {}
```
###### Backtrace:
``` javascript
ICE: Assertion 'string_desc_p->refs > 0' failed at jerryscript/jerry-core/ecma/base/ecma-helpers-string.cpp(ecma_copy_or_ref_ecma_string):846.
Error: ERR_FAILED_INTERNAL_ASSERTION
Program received signal SIGABRT, Aborted.
0x00000000004852f6 in syscall_2_asm () at jerryscript/jerry-libc/target/linux/jerry-asm.S:32
32 SYSCALL_2
(gdb) bt
#0 0x00000000004852f6 in syscall_2_asm () at jerryscript/jerry-libc/target/linux/jerry-asm.S:32
#1 0x00000000004003c2 in syscall_2 (syscall_no=62, arg1=16914, arg2=6)
at jerryscript/jerry-libc/target/linux/jerry-libc-target.c:96
#2 0x0000000000400563 in abort () at jerryscript/jerry-libc/target/linux/jerry-libc-target.c:175
#3 0x000000000043a9b7 in jerry_fatal (code=ERR_FAILED_INTERNAL_ASSERTION) at jerryscript/jerry-core/jrt/jrt-fatals.cpp:65
#4 0x000000000043aa06 in jerry_assert_fail (assertion=0x49b973 "string_desc_p->refs > 0",
file=0x49b7e8 "jerryscript/jerry-core/ecma/base/ecma-helpers-string.cpp",
function=0x488f50 <_ZZ28ecma_copy_or_ref_ecma_stringP13ecma_string_tE8__func__.lto_priv.726> "ecma_copy_or_ref_ecma_string", line=846)
at jerryscript/jerry-core/jrt/jrt-fatals.cpp:92
#5 0x0000000000452bb0 in ecma_copy_or_ref_ecma_string (string_desc_p=0x7b5018 <_ZL13mem_heap_area.lto_priv.1072+2072>)
at jerryscript/jerry-core/ecma/base/ecma-helpers-string.cpp:846
#6 0x00000000004562b6 in ecma_create_named_data_property (obj_p=0x7b4f68 <_ZL13mem_heap_area.lto_priv.1072+1896>,
name_p=0x7b5018 <_ZL13mem_heap_area.lto_priv.1072+2072>, is_writable=true, is_enumerable=false, is_configurable=false)
at jerryscript/jerry-core/ecma/base/ecma-helpers.cpp:517
#7 0x000000000044d141 in ecma_op_create_mutable_binding (lex_env_p=0x7b4f68 <_ZL13mem_heap_area.lto_priv.1072+1896>,
name_p=0x7b5018 <_ZL13mem_heap_area.lto_priv.1072+2072>, is_deletable=false)
at jerryscript/jerry-core/ecma/operations/ecma-lex-env.cpp:156
#8 0x000000000047f348 in opfunc_try_block (opdata=..., int_data=0x7fffffffd4d0)
at jerryscript/jerry-core/vm/opcodes-ecma-try-catch-finally.cpp:72
#9 0x00000000004826f9 in vm_loop (int_data_p=0x7fffffffd4d0, run_scope_p=0x0) at jerryscript/jerry-core/vm/vm.cpp:466
#10 0x0000000000482986 in vm_run_from_pos (opcodes_p=0x7b4b98 <_ZL13mem_heap_area.lto_priv.1072+920>, start_pos=1, this_binding_value=15,
lex_env_p=0x7b4828 <_ZL13mem_heap_area.lto_priv.1072+40>, is_strict=false, is_eval_code=false)
at jerryscript/jerry-core/vm/vm.cpp:556
#11 0x0000000000482563 in vm_run_global () at jerryscript/jerry-core/vm/vm.cpp:395
#12 0x0000000000484e04 in jerry_run () at jerryscript/jerry-core/jerry.cpp:1271
#13 0x0000000000483b12 in main (argc=3, argv=0x7fffffffd898) at jerryscript/main-linux.cpp:289
```
###### Note:
The test case is quite similar to #263 so the reason might be the same.
| Assertion 'string_desc_p->refs > 0' failed in ecma_copy_or_ref_ecma_string | https://api.github.com/repos/jerryscript-project/jerryscript/issues/264/comments | 2 | 2015-06-29T18:03:12Z | 2015-06-30T10:31:41Z | https://github.com/jerryscript-project/jerryscript/issues/264 | 91,868,885 | 264 |
[
"jerryscript-project",
"jerryscript"
] | ###### Jerry version:
```
Checked revision: 06dffde
Build: debug.linux
```
###### OS:
```
Ubuntu 14.10, x86_64
```
###### Test case:
``` javascript
try {
Boolean(decodeURI(decodeURIComponent(Number())));
} catch(err) {}
try {
ReferenceError(isNaN(__proto__));
} catch(err) {}
try {
isNaN(__proto__);
} catch(err) {}
try {
load();
} catch(err) {}
try {
RegExp("\n");
} catch(err) {}
try {} catch(err) {}
try {
ReferenceError(performance.__proto__.isPrototypeOf(arguments.map(os)));
} catch(err) {}
try {
Float64Array(performance,WeakSet(),Infinity.valueOf());
} catch(err) {}
try {
arguments.push(Int8Array(Boolean(isFinite(quit())),ArrayBuffer(os.system()),Array(read())));
} catch(err) {}
try {
Boolean(encodeURI(DataView(ArrayBuffer(os),parseFloat(Set()),URIError(Object(Int8Array(Function(parseInt(write(),RangeError(__proto__.valueOf()))),Int16Array(Map(),__proto__.valueOf(),readbuffer()),Math))))));
} catch(err) {}
```
###### Backtrace:
``` javascript
ICE: Assertion 'pool_p->free_chunks_number != 0' failed at jerryscript/jerry-core/mem/mem-pool.cpp(mem_pool_alloc_chunk):133.
Error: ERR_FAILED_INTERNAL_ASSERTION
Program received signal SIGABRT, Aborted.
0x00000000004852f6 in syscall_2_asm () at jerryscript/jerry-libc/target/linux/jerry-asm.S:32
32 SYSCALL_2
(gdb) bt
#0 0x00000000004852f6 in syscall_2_asm () at jerryscript/jerry-libc/target/linux/jerry-asm.S:32
#1 0x00000000004003c2 in syscall_2 (syscall_no=62, arg1=30348, arg2=6)
at jerryscript/jerry-libc/target/linux/jerry-libc-target.c:96
#2 0x0000000000400563 in abort () at jerryscript/jerry-libc/target/linux/jerry-libc-target.c:175
#3 0x000000000043a9b7 in jerry_fatal (code=ERR_FAILED_INTERNAL_ASSERTION) at jerryscript/jerry-core/jrt/jrt-fatals.cpp:65
#4 0x000000000043aa06 in jerry_assert_fail (assertion=0x495f20 "pool_p->free_chunks_number != 0",
file=0x495cd8 "jerryscript/jerry-core/mem/mem-pool.cpp",
function=0x48af80 <_ZZ20mem_pool_alloc_chunkP16mem_pool_state_tE8__func__.lto_priv.456> "mem_pool_alloc_chunk", line=133)
at jerryscript/jerry-core/jrt/jrt-fatals.cpp:92
#5 0x0000000000435fc7 in mem_pool_alloc_chunk (pool_p=0x7b4f10 <_ZL13mem_heap_area.lto_priv.1072+1808>)
at jerryscript/jerry-core/mem/mem-pool.cpp:133
#6 0x000000000048217d in mem_pools_alloc () at jerryscript/jerry-core/mem/mem-poolman.cpp:172
#7 0x0000000000459359 in ecma_alloc_string () at jerryscript/jerry-core/ecma/base/ecma-alloc.cpp:89
#8 0x000000000045260c in ecma_new_ecma_string_from_lit_cp (lit_cp=...)
at jerryscript/jerry-core/ecma/base/ecma-helpers-string.cpp:645
#9 0x000000000047f30d in opfunc_try_block (opdata=..., int_data=0x7fffffffd4d0)
at jerryscript/jerry-core/vm/opcodes-ecma-try-catch-finally.cpp:66
#10 0x00000000004826f9 in vm_loop (int_data_p=0x7fffffffd4d0, run_scope_p=0x0) at jerryscript/jerry-core/vm/vm.cpp:466
#11 0x0000000000482986 in vm_run_from_pos (opcodes_p=0x7b4b98 <_ZL13mem_heap_area.lto_priv.1072+920>, start_pos=1, this_binding_value=15,
lex_env_p=0x7b4828 <_ZL13mem_heap_area.lto_priv.1072+40>, is_strict=false, is_eval_code=false)
at jerryscript/jerry-core/vm/vm.cpp:556
#12 0x0000000000482563 in vm_run_global () at jerryscript/jerry-core/vm/vm.cpp:395
#13 0x0000000000484e04 in jerry_run () at jerryscript/jerry-core/jerry.cpp:1271
#14 0x0000000000483b12 in main (argc=3, argv=0x7fffffffd898) at jerryscript/main-linux.cpp:289
```
| Assertion 'pool_p->free_chunks_number != 0' failed in mem_pool_alloc_chunk | https://api.github.com/repos/jerryscript-project/jerryscript/issues/263/comments | 2 | 2015-06-29T17:53:35Z | 2015-06-30T10:31:34Z | https://github.com/jerryscript-project/jerryscript/issues/263 | 91,866,984 | 263 |
[
"jerryscript-project",
"jerryscript"
] | ###### Jerry version:
```
Checked revision: 06dffde
Build: debug.linux
```
###### OS:
```
Ubuntu 14.10, x86_64
```
###### Test case:
``` javascript
RegExp("");
eval(encodeURI(isNaN(__proto__)));
```
###### Backtrace:
``` javascript
ICE: Assertion 'compressed_pointer != MEM_CP_NULL' failed at jerryscript/jerry-core/mem/mem-allocator.cpp(mem_decompress_pointer):124.
Error: ERR_FAILED_INTERNAL_ASSERTION
Program received signal SIGABRT, Aborted.
0x00000000004852f6 in syscall_2_asm () at jerryscript/jerry-libc/target/linux/jerry-asm.S:32
32 SYSCALL_2
(gdb) bt
#0 0x00000000004852f6 in syscall_2_asm () at jerryscript/jerry-libc/target/linux/jerry-asm.S:32
#1 0x00000000004003c2 in syscall_2 (syscall_no=62, arg1=1777, arg2=6)
at jerryscript/jerry-libc/target/linux/jerry-libc-target.c:96
#2 0x0000000000400563 in abort () at jerryscript/jerry-libc/target/linux/jerry-libc-target.c:175
#3 0x000000000043a9b7 in jerry_fatal (code=ERR_FAILED_INTERNAL_ASSERTION) at jerryscript/jerry-core/jrt/jrt-fatals.cpp:65
#4 0x000000000043aa06 in jerry_assert_fail (assertion=0x4a53e8 "compressed_pointer != MEM_CP_NULL",
file=0x4a5328 "jerryscript/jerry-core/mem/mem-allocator.cpp",
function=0x4857b0 <_ZZ22mem_decompress_pointermE8__func__.lto_priv.1076> "mem_decompress_pointer", line=124)
at jerryscript/jerry-core/jrt/jrt-fatals.cpp:92
#5 0x0000000000481b96 in mem_decompress_pointer (compressed_pointer=0) at jerryscript/jerry-core/mem/mem-allocator.cpp:124
#6 0x0000000000450c81 in ecma_get_string_from_value (value=2) at jerryscript/jerry-core/ecma/base/ecma-helpers-value.cpp:304
#7 0x0000000000450e0b in ecma_free_value (value=2, do_deref_if_object=true)
at jerryscript/jerry-core/ecma/base/ecma-helpers-value.cpp:422
#8 0x0000000000438355 in opfunc_call_n (opdata=..., int_data=0x7fffffffd4d0) at jerryscript/jerry-core/vm/opcodes.cpp:815
#9 0x00000000004826f9 in vm_loop (int_data_p=0x7fffffffd4d0, run_scope_p=0x0) at jerryscript/jerry-core/vm/vm.cpp:466
#10 0x000000000047b3d9 in fill_varg_list(int_data_t*, unsigned short, unsigned int*, unsigned short*) (int_data=0x7fffffffd4d0, args_number=1,
arg_values=0x7f4750 <_ZL13mem_heap_area.lto_priv.1072+261968>, out_arg_number_p=0x7fffffffd2ee)
at jerryscript/jerry-core/vm/opcodes-varg.cpp:43
#11 0x00000000004380a8 in opfunc_call_n (opdata=..., int_data=0x7fffffffd4d0) at jerryscript/jerry-core/vm/opcodes.cpp:745
#12 0x00000000004826f9 in vm_loop (int_data_p=0x7fffffffd4d0, run_scope_p=0x0) at jerryscript/jerry-core/vm/vm.cpp:466
#13 0x000000000047b3d9 in fill_varg_list(int_data_t*, unsigned short, unsigned int*, unsigned short*) (int_data=0x7fffffffd4d0, args_number=1,
arg_values=0x7f4790 <_ZL13mem_heap_area.lto_priv.1072+262032>, out_arg_number_p=0x7fffffffd40e)
at jerryscript/jerry-core/vm/opcodes-varg.cpp:43
#14 0x00000000004380a8 in opfunc_call_n (opdata=..., int_data=0x7fffffffd4d0) at jerryscript/jerry-core/vm/opcodes.cpp:745
#15 0x00000000004826f9 in vm_loop (int_data_p=0x7fffffffd4d0, run_scope_p=0x0) at jerryscript/jerry-core/vm/vm.cpp:466
#16 0x0000000000482986 in vm_run_from_pos (opcodes_p=0x7b4998 <_ZL13mem_heap_area.lto_priv.1072+408>, start_pos=1, this_binding_value=15,
lex_env_p=0x7b4828 <_ZL13mem_heap_area.lto_priv.1072+40>, is_strict=false, is_eval_code=false)
at jerryscript/jerry-core/vm/vm.cpp:556
#17 0x0000000000482563 in vm_run_global () at jerryscript/jerry-core/vm/vm.cpp:395
#18 0x0000000000484e04 in jerry_run () at jerryscript/jerry-core/jerry.cpp:1271
#19 0x0000000000483b12 in main (argc=3, argv=0x7fffffffd898) at jerryscript/main-linux.cpp:289
```
| Assertion 'compressed_pointer != MEM_CP_NULL' failed in mem_decompress_pointer | https://api.github.com/repos/jerryscript-project/jerryscript/issues/262/comments | 2 | 2015-06-29T17:09:13Z | 2015-06-30T10:31:27Z | https://github.com/jerryscript-project/jerryscript/issues/262 | 91,858,621 | 262 |
[
"jerryscript-project",
"jerryscript"
] | ###### Jerry version:
```
Checked revision: 06dffde
Build: debug.linux
```
###### OS:
```
Ubuntu 14.10, x86_64
```
###### Test case:
``` javascript
SyntaxError(RegExp());
isFinite(foo);
```
###### Backtrace:
``` javascript
ICE: Assertion 'ecma_gc_get_object_refs (object_p) > 0' failed at jerryscript/jerry-core/ecma/base/ecma-gc.cpp(ecma_deref_object):202.
Error: ERR_FAILED_INTERNAL_ASSERTION
Program received signal SIGABRT, Aborted.
0x00000000004852f6 in syscall_2_asm () at jerryscript/jerry-libc/target/linux/jerry-asm.S:32
32 SYSCALL_2
(gdb) bt
#0 0x00000000004852f6 in syscall_2_asm () at jerryscript/jerry-libc/target/linux/jerry-asm.S:32
#1 0x00000000004003c2 in syscall_2 (syscall_no=62, arg1=16194, arg2=6)
at jerryscript/jerry-libc/target/linux/jerry-libc-target.c:96
#2 0x0000000000400563 in abort () at jerryscript/jerry-libc/target/linux/jerry-libc-target.c:175
#3 0x000000000043a9b7 in jerry_fatal (code=ERR_FAILED_INTERNAL_ASSERTION) at jerryscript/jerry-core/jrt/jrt-fatals.cpp:65
#4 0x000000000043aa06 in jerry_assert_fail (assertion=0x49afb8 "ecma_gc_get_object_refs (object_p) > 0",
file=0x49af28 "jerryscript/jerry-core/ecma/base/ecma-gc.cpp",
function=0x489c00 <_ZZ17ecma_deref_objectP13ecma_object_tE8__func__.lto_priv.640> "ecma_deref_object", line=202)
at jerryscript/jerry-core/jrt/jrt-fatals.cpp:92
#5 0x000000000044feca in ecma_deref_object (object_p=0x7b4930 <_ZL13mem_heap_area.lto_priv.1072+304>)
at jerryscript/jerry-core/ecma/base/ecma-gc.cpp:202
#6 0x0000000000464992 in ecma_lcache_invalidate_entry (entry_p=0x7f51f0 <_ZL22ecma_lcache_hash_table.lto_priv.790+2160>)
at jerryscript/jerry-core/ecma/base/ecma-lcache.cpp:93
#7 0x0000000000464a36 in ecma_lcache_invalidate_all () at jerryscript/jerry-core/ecma/base/ecma-lcache.cpp:121
#8 0x00000000004648f4 in ecma_finalize () at jerryscript/jerry-core/ecma/base/ecma-init-finalize.cpp:59
#9 0x0000000000484cf6 in jerry_cleanup () at jerryscript/jerry-core/jerry.cpp:1177
#10 0x0000000000483b1a in main (argc=3, argv=0x7fffffffd888) at jerryscript/main-linux.cpp:293
```
| Assertion 'ecma_gc_get_object_refs (object_p) > 0' failed in ecma_deref_object | https://api.github.com/repos/jerryscript-project/jerryscript/issues/261/comments | 2 | 2015-06-29T17:01:47Z | 2015-06-30T10:31:21Z | https://github.com/jerryscript-project/jerryscript/issues/261 | 91,857,498 | 261 |
[
"jerryscript-project",
"jerryscript"
] | ###### Jerry version:
```
Checked revision: 06dffde
Build: debug.linux
```
###### OS:
```
Ubuntu 14.10, x86_64
```
###### Test case:
``` javascript
isNaN(__proto__);
```
###### Backtrace:
``` javascript
ICE: Assertion 'string_p->refs != 0' failed at jerryscript/jerry-core/ecma/base/ecma-helpers-string.cpp(ecma_deref_ecma_string):891.
Error: ERR_FAILED_INTERNAL_ASSERTION
Program received signal SIGABRT, Aborted.
0x00000000004852f6 in syscall_2_asm () at jerryscript/jerry-libc/target/linux/jerry-asm.S:32
32 SYSCALL_2
(gdb) bt
#0 0x00000000004852f6 in syscall_2_asm () at jerryscript/jerry-libc/target/linux/jerry-asm.S:32
#1 0x00000000004003c2 in syscall_2 (syscall_no=62, arg1=25877, arg2=6)
at jerryscript/jerry-libc/target/linux/jerry-libc-target.c:96
#2 0x0000000000400563 in abort () at jerryscript/jerry-libc/target/linux/jerry-libc-target.c:175
#3 0x000000000043a9b7 in jerry_fatal (code=ERR_FAILED_INTERNAL_ASSERTION) at jerryscript/jerry-core/jrt/jrt-fatals.cpp:65
#4 0x000000000043aa06 in jerry_assert_fail (assertion=0x49ba31 "string_p->refs != 0",
file=0x49b7e8 "jerryscript/jerry-core/ecma/base/ecma-helpers-string.cpp",
function=0x488f70 <_ZZ22ecma_deref_ecma_stringP13ecma_string_tE8__func__.lto_priv.725> "ecma_deref_ecma_string", line=891)
at jerryscript/jerry-core/jrt/jrt-fatals.cpp:92
#5 0x0000000000452d42 in ecma_deref_ecma_string (string_p=0x7c47d0 <_ZL13mem_heap_area.lto_priv.1072+65488>)
at jerryscript/jerry-core/ecma/base/ecma-helpers-string.cpp:891
#6 0x0000000000450e1b in ecma_free_value (value=32746, do_deref_if_object=true)
at jerryscript/jerry-core/ecma/base/ecma-helpers-value.cpp:423
#7 0x0000000000438355 in opfunc_call_n (opdata=..., int_data=0x7fffffffd4d0) at jerryscript/jerry-core/vm/opcodes.cpp:815
#8 0x00000000004826f9 in vm_loop (int_data_p=0x7fffffffd4d0, run_scope_p=0x0) at jerryscript/jerry-core/vm/vm.cpp:466
#9 0x0000000000482986 in vm_run_from_pos (opcodes_p=0x7b4998 <_ZL13mem_heap_area.lto_priv.1072+408>, start_pos=1, this_binding_value=15,
lex_env_p=0x7b4828 <_ZL13mem_heap_area.lto_priv.1072+40>, is_strict=false, is_eval_code=false)
at jerryscript/jerry-core/vm/vm.cpp:556
#10 0x0000000000482563 in vm_run_global () at jerryscript/jerry-core/vm/vm.cpp:395
#11 0x0000000000484e04 in jerry_run () at jerryscript/jerry-core/jerry.cpp:1271
#12 0x0000000000483b12 in main (argc=3, argv=0x7fffffffd898) at jerryscript/main-linux.cpp:289
```
| Assertion 'string_p->refs != 0' failed in ecma_deref_ecma_string | https://api.github.com/repos/jerryscript-project/jerryscript/issues/260/comments | 2 | 2015-06-29T16:48:50Z | 2016-11-25T06:26:30Z | https://github.com/jerryscript-project/jerryscript/issues/260 | 91,855,000 | 260 |
[
"jerryscript-project",
"jerryscript"
] | ###### Jerry version:
```
Checked revision: 06dffde
Build: debug.linux
```
###### OS:
```
Ubuntu 14.10, x86_64
```
###### Test case:
``` javascript
new RegExp("]");
```
###### Backtrace:
``` javascript
ICE: Unreachable control path at jerryscript/jerry-core/parser/regexp/re-parser.cpp(re_parse_next_token):775 was executed.
Error: ERR_FAILED_INTERNAL_ASSERTION
Program received signal SIGABRT, Aborted.
0x00000000004852f6 in syscall_2_asm () at jerryscript/jerry-libc/target/linux/jerry-asm.S:32
32 SYSCALL_2
(gdb) bt
#0 0x00000000004852f6 in syscall_2_asm () at jerryscript/jerry-libc/target/linux/jerry-asm.S:32
#1 0x00000000004003c2 in syscall_2 (syscall_no=62, arg1=19754, arg2=6)
at jerryscript/jerry-libc/target/linux/jerry-libc-target.c:96
#2 0x0000000000400563 in abort () at jerryscript/jerry-libc/target/linux/jerry-libc-target.c:175
#3 0x000000000043a9b7 in jerry_fatal (code=ERR_FAILED_INTERNAL_ASSERTION) at jerryscript/jerry-core/jrt/jrt-fatals.cpp:65
#4 0x000000000043aa70 in jerry_unreachable (comment=0x0, file=0x48e4b8 "jerryscript/jerry-core/parser/regexp/re-parser.cpp",
function=0x48d1c0 <_ZZ19re_parse_next_tokenP15re_parser_ctx_tP10re_token_tE8__func__.lto_priv.124> "re_parse_next_token", line=775)
at jerryscript/jerry-core/jrt/jrt-fatals.cpp:119
#5 0x0000000000409166 in re_parse_next_token (parser_ctx_p=0x7fffffffd210, out_token_p=0x7fffffffd1f0)
at jerryscript/jerry-core/parser/regexp/re-parser.cpp:775
#6 0x00000000004071de in parse_alternative (re_ctx_p=0x7fffffffd1d0, expect_eof=true)
at jerryscript/jerry-core/parser/regexp/re-compiler.cpp:392
#7 0x0000000000407995 in re_compile_bytecode (bytecode_p=0x7b4a20 <_ZL13mem_heap_area.lto_priv.1072+544>,
pattern_str_p=0x7b48d0 <_ZL13mem_heap_area.lto_priv.1072+208>, flags=0 '\000')
at jerryscript/jerry-core/parser/regexp/re-compiler.cpp:654
#8 0x000000000041be4b in ecma_op_create_regexp_object (pattern_p=0x7b48d0 <_ZL13mem_heap_area.lto_priv.1072+208>, flags_str_p=0x0)
at jerryscript/jerry-core/ecma/operations/ecma-regexp-object.cpp:219
#9 0x0000000000427da6 in ecma_builtin_regexp_dispatch_construct (arguments_list_p=0x7f4790 <_ZL13mem_heap_area.lto_priv.1072+262032>,
arguments_list_len=1) at jerryscript/jerry-core/ecma/builtin-objects/ecma-builtin-regexp.cpp:122
#10 0x0000000000477f5c in ecma_builtin_dispatch_construct (obj_p=0x7b48b0 <_ZL13mem_heap_area.lto_priv.1072+176>,
arguments_list_p=0x7f4790 <_ZL13mem_heap_area.lto_priv.1072+262032>, arguments_list_len=1)
at jerryscript/jerry-core/ecma/builtin-objects/ecma-builtins.inc.h:161
#11 0x000000000044935b in ecma_op_function_construct (func_obj_p=0x7b48b0 <_ZL13mem_heap_area.lto_priv.1072+176>,
arguments_list_p=0x7f4790 <_ZL13mem_heap_area.lto_priv.1072+262032>, arguments_list_len=1)
at jerryscript/jerry-core/ecma/operations/ecma-function-object.cpp:837
#12 0x00000000004385d6 in opfunc_construct_n (opdata=..., int_data=0x7fffffffd4d0) at jerryscript/jerry-core/vm/opcodes.cpp:869
#13 0x00000000004826f9 in vm_loop (int_data_p=0x7fffffffd4d0, run_scope_p=0x0) at jerryscript/jerry-core/vm/vm.cpp:466
#14 0x0000000000482986 in vm_run_from_pos (opcodes_p=0x7b4998 <_ZL13mem_heap_area.lto_priv.1072+408>, start_pos=1, this_binding_value=15,
lex_env_p=0x7b4828 <_ZL13mem_heap_area.lto_priv.1072+40>, is_strict=false, is_eval_code=false)
at jerryscript/jerry-core/vm/vm.cpp:556
#15 0x0000000000482563 in vm_run_global () at jerryscript/jerry-core/vm/vm.cpp:395
#16 0x0000000000484e04 in jerry_run () at jerryscript/jerry-core/jerry.cpp:1271
#17 0x0000000000483b12 in main (argc=3, argv=0x7fffffffd898) at jerryscript/main-linux.cpp:289
```
| Unreachable path hit in re_parse_next_token | https://api.github.com/repos/jerryscript-project/jerryscript/issues/257/comments | 2 | 2015-06-29T13:50:49Z | 2015-08-05T07:02:14Z | https://github.com/jerryscript-project/jerryscript/issues/257 | 91,807,956 | 257 |
[
"jerryscript-project",
"jerryscript"
] | ###### Jerry version:
```
Checked revision: 06dffde
Build: debug.linux
```
###### OS:
```
Ubuntu 14.10, x86_64
```
###### Test case:
``` javascript
new RegExp("[K-V]{45,13}");
```
###### Backtrace:
``` javascript
ICE: Assertion 'ret_value == ecma_make_empty_completion_value ()' failed at jerryscript/jerry-core/parser/regexp/re-compiler.cpp(parse_alternative):395.
Error: ERR_FAILED_INTERNAL_ASSERTION
Program received signal SIGABRT, Aborted.
0x00000000004852f6 in syscall_2_asm () at jerryscript/jerry-libc/target/linux/jerry-asm.S:32
32 SYSCALL_2
(gdb) bt
#0 0x00000000004852f6 in syscall_2_asm () at jerryscript/jerry-libc/target/linux/jerry-asm.S:32
#1 0x00000000004003c2 in syscall_2 (syscall_no=62, arg1=8902, arg2=6)
at jerryscript/jerry-libc/target/linux/jerry-libc-target.c:96
#2 0x0000000000400563 in abort () at jerryscript/jerry-libc/target/linux/jerry-libc-target.c:175
#3 0x000000000043a9b7 in jerry_fatal (code=ERR_FAILED_INTERNAL_ASSERTION) at jerryscript/jerry-core/jrt/jrt-fatals.cpp:65
#4 0x000000000043aa06 in jerry_assert_fail (assertion=0x48e230 "ret_value == ecma_make_empty_completion_value ()",
file=0x48e1a8 "jerryscript/jerry-core/parser/regexp/re-compiler.cpp",
function=0x48d140 <_ZZL17parse_alternativeP17re_compiler_ctx_tbE8__func__.lto_priv.128> "parse_alternative", line=395)
at jerryscript/jerry-core/jrt/jrt-fatals.cpp:92
#5 0x00000000004071c3 in parse_alternative (re_ctx_p=0x7fffffffd1d0, expect_eof=true)
at jerryscript/jerry-core/parser/regexp/re-compiler.cpp:392
#6 0x0000000000407995 in re_compile_bytecode (bytecode_p=0x7b4a20 <_ZL13mem_heap_area.lto_priv.1072+544>,
pattern_str_p=0x7b48d0 <_ZL13mem_heap_area.lto_priv.1072+208>, flags=0 '\000')
at jerryscript/jerry-core/parser/regexp/re-compiler.cpp:654
#7 0x000000000041be4b in ecma_op_create_regexp_object (pattern_p=0x7b48d0 <_ZL13mem_heap_area.lto_priv.1072+208>, flags_str_p=0x0)
at jerryscript/jerry-core/ecma/operations/ecma-regexp-object.cpp:219
#8 0x0000000000427da6 in ecma_builtin_regexp_dispatch_construct (arguments_list_p=0x7f4790 <_ZL13mem_heap_area.lto_priv.1072+262032>,
arguments_list_len=1) at jerryscript/jerry-core/ecma/builtin-objects/ecma-builtin-regexp.cpp:122
#9 0x0000000000477f5c in ecma_builtin_dispatch_construct (obj_p=0x7b48b0 <_ZL13mem_heap_area.lto_priv.1072+176>,
arguments_list_p=0x7f4790 <_ZL13mem_heap_area.lto_priv.1072+262032>, arguments_list_len=1)
at jerryscript/jerry-core/ecma/builtin-objects/ecma-builtins.inc.h:161
#10 0x000000000044935b in ecma_op_function_construct (func_obj_p=0x7b48b0 <_ZL13mem_heap_area.lto_priv.1072+176>,
arguments_list_p=0x7f4790 <_ZL13mem_heap_area.lto_priv.1072+262032>, arguments_list_len=1)
at jerryscript/jerry-core/ecma/operations/ecma-function-object.cpp:837
#11 0x00000000004385d6 in opfunc_construct_n (opdata=..., int_data=0x7fffffffd4d0) at jerryscript/jerry-core/vm/opcodes.cpp:869
#12 0x00000000004826f9 in vm_loop (int_data_p=0x7fffffffd4d0, run_scope_p=0x0) at jerryscript/jerry-core/vm/vm.cpp:466
#13 0x0000000000482986 in vm_run_from_pos (opcodes_p=0x7b4998 <_ZL13mem_heap_area.lto_priv.1072+408>, start_pos=1, this_binding_value=15,
lex_env_p=0x7b4828 <_ZL13mem_heap_area.lto_priv.1072+40>, is_strict=false, is_eval_code=false)
at jerryscript/jerry-core/vm/vm.cpp:556
#14 0x0000000000482563 in vm_run_global () at jerryscript/jerry-core/vm/vm.cpp:395
#15 0x0000000000484e04 in jerry_run () at jerryscript/jerry-core/jerry.cpp:1271
#16 0x0000000000483b12 in main (argc=3, argv=0x7fffffffd898) at jerryscript/main-linux.cpp:289
```
| Assertion 'ret_value == ecma_make_empty_completion_value ()' failed in parse_alternative | https://api.github.com/repos/jerryscript-project/jerryscript/issues/256/comments | 1 | 2015-06-29T13:46:20Z | 2016-11-25T06:26:30Z | https://github.com/jerryscript-project/jerryscript/issues/256 | 91,807,134 | 256 |
[
"jerryscript-project",
"jerryscript"
] | ###### Jerry version:
```
Checked revision: 06dffde
Build: debug.linux
```
###### OS:
```
Ubuntu 14.10, x86_64
```
###### Test case:
``` javascript
v_0 = /(?!(?!l{666,}))/;
v_0.exec("llllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllll");
```
###### Backtrace:
``` javascript
ICE: Assertion 'mem_pools == NULL' failed at jerryscript/jerry-core/mem/mem-poolman.cpp(mem_pools_finalize):89.
Error: ERR_FAILED_INTERNAL_ASSERTION
Program received signal SIGABRT, Aborted.
0x00000000004852f6 in syscall_2_asm () at jerryscript/jerry-libc/target/linux/jerry-asm.S:32
32 SYSCALL_2
(gdb) bt
#0 0x00000000004852f6 in syscall_2_asm () at jerryscript/jerry-libc/target/linux/jerry-asm.S:32
#1 0x00000000004003c2 in syscall_2 (syscall_no=62, arg1=28622, arg2=6)
at jerryscript/jerry-libc/target/linux/jerry-libc-target.c:96
#2 0x0000000000400563 in abort () at jerryscript/jerry-libc/target/linux/jerry-libc-target.c:175
#3 0x000000000043a9b7 in jerry_fatal (code=ERR_FAILED_INTERNAL_ASSERTION) at jerryscript/jerry-core/jrt/jrt-fatals.cpp:65
#4 0x000000000043aa06 in jerry_assert_fail (assertion=0x4a54b1 "mem_pools == NULL",
file=0x4a5470 "jerryscript/jerry-core/mem/mem-poolman.cpp",
function=0x485850 <_ZZ18mem_pools_finalizevE8__func__.lto_priv.1071> "mem_pools_finalize", line=89)
at jerryscript/jerry-core/jrt/jrt-fatals.cpp:92
#5 0x0000000000481ce8 in mem_pools_finalize () at jerryscript/jerry-core/mem/mem-poolman.cpp:89
#6 0x0000000000481a5d in mem_finalize (is_show_mem_stats=false) at jerryscript/jerry-core/mem/mem-allocator.cpp:58
#7 0x0000000000484d06 in jerry_cleanup () at jerryscript/jerry-core/jerry.cpp:1179
#8 0x0000000000483b1a in main (argc=3, argv=0x7fffffffd8a8) at jerryscript/main-linux.cpp:293
```
| Assertion 'mem_pools == NULL' failed in mem_pools_finalize | https://api.github.com/repos/jerryscript-project/jerryscript/issues/255/comments | 0 | 2015-06-29T08:22:46Z | 2016-11-25T06:26:30Z | https://github.com/jerryscript-project/jerryscript/issues/255 | 91,734,884 | 255 |
[
"jerryscript-project",
"jerryscript"
] | ###### Jerry version:
```
Checked revision: e027b4d
Build: debug.linux
```
###### OS:
```
Ubuntu 14.10, x86_64
```
###### Test case:
``` javascript
v_0 = /N(?![^6](?:.)|(?!C[^k-o]*|p){0,}|H)|\\xDF\\db{0,}|i\\0?)/;
```
###### Backtrace:
``` javascript
ICE: Assertion '!bc_ctx_p->current_p && !bc_ctx_p->block_end_p && !bc_ctx_p->block_start_p' failed at jerryscript/jerry-core/parser/regexp/re-compiler.cpp(realloc_regexp_bytecode_block):50.
Error: ERR_FAILED_INTERNAL_ASSERTION
Program received signal SIGABRT, Aborted.
0x0000000000487307 in syscall_2_asm () at jerryscript/jerry-libc/target/linux/jerry-asm.S:32
32 SYSCALL_2
(gdb) bt
#0 0x0000000000487307 in syscall_2_asm () at jerryscript/jerry-libc/target/linux/jerry-asm.S:32
#1 0x00000000004003c2 in syscall_2 (syscall_no=62, arg1=25622, arg2=6)
at jerryscript/jerry-libc/target/linux/jerry-libc-target.c:96
#2 0x0000000000400563 in abort () at jerryscript/jerry-libc/target/linux/jerry-libc-target.c:175
#3 0x000000000043a617 in jerry_fatal (code=ERR_FAILED_INTERNAL_ASSERTION) at jerryscript/jerry-core/jrt/jrt-fatals.cpp:65
#4 0x000000000043a666 in jerry_assert_fail (assertion=0x4921d8 "!bc_ctx_p->current_p && !bc_ctx_p->block_end_p && !bc_ctx_p->block_start_p",
file=0x492150 "jerryscript/jerry-core/parser/regexp/re-compiler.cpp",
function=0x48f040 <_ZZL29realloc_regexp_bytecode_blockP17re_bytecode_ctx_tE8__func__.lto_priv.141> "realloc_regexp_bytecode_block", line=50)
at jerryscript/jerry-core/jrt/jrt-fatals.cpp:92
#5 0x00000000004101fb in realloc_regexp_bytecode_block (bc_ctx_p=0x7fffffffd270)
at jerryscript/jerry-core/parser/regexp/re-compiler.cpp:50
#6 0x0000000000410400 in bytecode_list_insert (bc_ctx_p=0x7fffffffd270, offset=240, bytecode_p=0x7fffffffd100 "", length=4)
at jerryscript/jerry-core/parser/regexp/re-compiler.cpp:104
#7 0x00000000004105ee in insert_u32(re_bytecode_ctx_t*, unsigned int, unsigned int) [clone .lto_priv.134] (bc_ctx_p=0x7fffffffd270, offset=240,
value=0) at jerryscript/jerry-core/parser/regexp/re-compiler.cpp:172
#8 0x0000000000406fb8 in insert_simple_iterator (re_ctx_p=0x7fffffffd210, new_atom_start_offset=240)
at jerryscript/jerry-core/parser/regexp/re-compiler.cpp:236
#9 0x000000000040759d in parse_alternative (re_ctx_p=0x7fffffffd210, expect_eof=true)
at jerryscript/jerry-core/parser/regexp/re-compiler.cpp:447
#10 0x0000000000407ba3 in re_compile_bytecode (bytecode_p=0x7b6a88 <_ZL13mem_heap_area.lto_priv.1080+648>,
pattern_str_p=0x7b68a8 <_ZL13mem_heap_area.lto_priv.1080+168>, flags=0 '\000')
at jerryscript/jerry-core/parser/regexp/re-compiler.cpp:654
#11 0x000000000041ca4a in ecma_op_create_regexp_object (pattern_p=0x7b68a8 <_ZL13mem_heap_area.lto_priv.1080+168>, flags_str_p=0x0)
at jerryscript/jerry-core/ecma/operations/ecma-regexp-object.cpp:219
#12 0x000000000043e5db in opfunc_assignment (opdata=..., int_data=0x7fffffffd4d0) at jerryscript/jerry-core/vm/opcodes.cpp:202
#13 0x0000000000486497 in vm_loop (int_data_p=0x7fffffffd4d0, run_scope_p=0x0) at jerryscript/jerry-core/vm/vm.cpp:471
#14 0x0000000000486724 in vm_run_from_pos (opcodes_p=0x7b69d8 <_ZL13mem_heap_area.lto_priv.1080+472>, start_pos=1, this_binding_value=15,
lex_env_p=0x7b6828 <_ZL13mem_heap_area.lto_priv.1080+40>, is_strict=false, is_eval_code=false)
at jerryscript/jerry-core/vm/vm.cpp:561
#15 0x000000000048631d in vm_run_global () at jerryscript/jerry-core/vm/vm.cpp:395
#16 0x000000000048429d in jerry_run () at jerryscript/jerry-core/jerry.cpp:1278
#17 0x0000000000482f8a in main (argc=3, argv=0x7fffffffd898) at jerryscript/main-linux.cpp:289
```
| Assertion '!bc_ctx_p->current_p && !bc_ctx_p->block_end_p && !bc_ctx_p->block_start_p' failed in realloc_regexp_bytecode_block | https://api.github.com/repos/jerryscript-project/jerryscript/issues/245/comments | 0 | 2015-06-26T15:57:57Z | 2016-11-25T06:26:30Z | https://github.com/jerryscript-project/jerryscript/issues/245 | 91,286,539 | 245 |
[
"jerryscript-project",
"jerryscript"
] | Hello.
Seems that current testing infrastructure provides no way to test the following example in run-time (not parser-only) mode:
`for(;;) {}`
It would be great to develop and add the support.
| Add support of testing 'infinite loop'-like cases | https://api.github.com/repos/jerryscript-project/jerryscript/issues/243/comments | 2 | 2015-06-26T12:29:16Z | 2017-01-31T13:35:29Z | https://github.com/jerryscript-project/jerryscript/issues/243 | 91,237,849 | 243 |
[
"jerryscript-project",
"jerryscript"
] | There used to be heap usage report when JERRY_FLAG_MEM_STATS was given.
Current code seems does not show them. Is it accidentally removed or intended?
| No memory information with JERRY_FLAG_MEM_STATS | https://api.github.com/repos/jerryscript-project/jerryscript/issues/242/comments | 5 | 2015-06-26T06:39:36Z | 2015-06-29T05:21:08Z | https://github.com/jerryscript-project/jerryscript/issues/242 | 91,172,140 | 242 |
[
"jerryscript-project",
"jerryscript"
] | I encountered a weird situation that I could not figure out what's going on that running a program ends with unexpected result runs good when added comments.
You may reproduce it by:
1. checkout iotjs/fs_readfile
2. build
- `$ ./tools/build.py`
3. goto test directory
- `$ cd test/run_pass`
4. run the program
- `$ ../../build/x86_64-linux/debug/iotjs/iotjs test_net.js`
If you see this:
```
uncaughtException: TypeError
uncaughtException: AssertionError: { actual: 1, expected: 0, operator: == }
```
It is the unexpected result.
If you change the program "test_net.js" slightly by adding comment like this:
```
process.on('exit', function(code) {
// comment meaning nothing.
assert.equal(code, 0);
assert.equal(msg, "Hello IoT.js");
});
```
The program will end good.
| Weird behavior that comment matters what's happening. | https://api.github.com/repos/jerryscript-project/jerryscript/issues/240/comments | 3 | 2015-06-25T09:38:07Z | 2015-06-29T05:24:21Z | https://github.com/jerryscript-project/jerryscript/issues/240 | 90,910,409 | 240 |
[
"jerryscript-project",
"jerryscript"
] | We should prepare for running the official test262 test suite with Jerry, to check if the already implemented features are correct.
| Running official test262 test suite with Jerry | https://api.github.com/repos/jerryscript-project/jerryscript/issues/239/comments | 2 | 2015-06-25T09:18:01Z | 2016-11-25T06:26:30Z | https://github.com/jerryscript-project/jerryscript/issues/239 | 90,905,590 | 239 |
[
"jerryscript-project",
"jerryscript"
] | Hello.
Revision:
c603d10360c51952fa8b5b80924ea58bd249681a
Test case:
```
flow = '';
a = {
get q ()
{
flow += 'get: ' + (typeof q);
return 0;
},
set q (v)
{
flow += ', set: ' + (typeof q);
}
};
a.q;
a.q = 1;
print (flow);
```
Output:
`get: function, set: function`
Expected output:
`get: undefined, set: undefined`
| Incorrect generation of function expressions, corresponding to getters / setters (in object literals) | https://api.github.com/repos/jerryscript-project/jerryscript/issues/234/comments | 2 | 2015-06-24T12:35:53Z | 2015-06-24T21:16:22Z | https://github.com/jerryscript-project/jerryscript/issues/234 | 90,663,216 | 234 |
[
"jerryscript-project",
"jerryscript"
] | The Date Prototype Object (15.9.5) has some getters (around 26), that are very similar. For now, I implemented most of them separately in [1]. Maybe we could generate them. The most different parts are in a try-catch block.
Could you give some ideas how I should generate these getter functions.
Some typically differences:
- the helper functions return value is: int or ecma_number_t
- Every getter function has a simple and an UTC version.
CC: @egavrin @ruben-ayrapetyan @galpeter @zherczeg @LaszloLango
[1] https://github.com/szledan/jerryscript/commit/51275ff06474372660db783d5789834a351041f4
| Generate builtin getters for Date object | https://api.github.com/repos/jerryscript-project/jerryscript/issues/233/comments | 4 | 2015-06-24T09:24:41Z | 2015-07-10T08:57:09Z | https://github.com/jerryscript-project/jerryscript/issues/233 | 90,622,349 | 233 |
[
"jerryscript-project",
"jerryscript"
] | With latest JerryScript, cannot build for nuttx cause of
```
jerry-core/parser/js/parser.cpp:2917: undefined reference to `setjmp'
jerry-core/parser/js/syntax-errors.cpp:67: undefined reference to `longjmp'
```
How to reproduce: with iotjs build for nuttx. Get latest iotjs source.
```
cd iotjs
git pull
./tools/build.py --buildtype=release \
--target-arch=arm --target-os=nuttx \
--nuttx-home=/home/(...)/harmony/nuttx/nuttx \
--buildlib --no-checktest
```
replace `--nuttx-home` value with your nuttx folder.
Please refer https://github.com/Samsung/iotjs/wiki/Build-for-NuttX page.
| Build for nuttx problem, undefined reference to 'setjmp' and 'longjmp' | https://api.github.com/repos/jerryscript-project/jerryscript/issues/231/comments | 25 | 2015-06-24T07:05:02Z | 2015-07-05T23:36:32Z | https://github.com/jerryscript-project/jerryscript/issues/231 | 90,588,614 | 231 |
[
"jerryscript-project",
"jerryscript"
] | ###### Jerry version:
```
Checked revision: 216dc25
Build: debug.linux
```
###### OS:
```
Ubuntu 14.10, x86_64
```
###### Test case:
``` javascript
Object.unobserve(undefined,print());
```
###### Backtrace:
``` javascript
ICE: Assertion '!ecma_is_value_empty (reg_value)' failed at jerryscript/jerry-core/vm/opcodes-helpers-variables.cpp(get_variable_value):87.
Error: ERR_FAILED_INTERNAL_ASSERTION
Program received signal SIGABRT, Aborted.
0x000000000047ef56 in syscall_2_asm () at jerryscript/jerry-libc/target/linux/jerry-asm.S:32
32 SYSCALL_2
(gdb) bt
#0 0x000000000047ef56 in syscall_2_asm () at jerryscript/jerry-libc/target/linux/jerry-asm.S:32
#1 0x00000000004003c2 in syscall_2 (syscall_no=62, arg1=670, arg2=6)
at jerryscript/jerry-libc/target/linux/jerry-libc-target.c:96
#2 0x0000000000400563 in abort () at jerryscript/jerry-libc/target/linux/jerry-libc-target.c:175
#3 0x000000000043a6f2 in jerry_fatal (code=ERR_FAILED_INTERNAL_ASSERTION) at jerryscript/jerry-core/jrt/jrt-fatals.cpp:65
#4 0x000000000043a741 in jerry_assert_fail (assertion=0x49c528 "!ecma_is_value_empty (reg_value)",
file=0x49c490 "jerryscript/jerry-core/vm/opcodes-helpers-variables.cpp",
function=0x47f930 <_ZZ18get_variable_valueP10int_data_thbE8__func__.lto_priv.998> "get_variable_value", line=87)
at jerryscript/jerry-core/jrt/jrt-fatals.cpp:92
#5 0x0000000000478da9 in get_variable_value (int_data=0x7fffffffd4f0, var_idx=132 '\204', do_eval_or_arguments_check=false)
at jerryscript/jerry-core/vm/opcodes-helpers-variables.cpp:87
#6 0x0000000000475ed9 in fill_varg_list(int_data_t*, unsigned short, unsigned int*, unsigned short*) (int_data=0x7fffffffd4f0, args_number=2,
arg_values=0x7eb790 <_ZL13mem_heap_area.lto_priv.1028+262032>, out_arg_number_p=0x7fffffffd42e)
at jerryscript/jerry-core/vm/opcodes-varg.cpp:53
#7 0x000000000042d96f in opfunc_call_n (opdata=..., int_data=0x7fffffffd4f0) at jerryscript/jerry-core/vm/opcodes.cpp:685
#8 0x000000000047c349 in vm_loop (int_data_p=0x7fffffffd4f0, run_scope_p=0x0) at jerryscript/jerry-core/vm/vm.cpp:471
#9 0x000000000047c5d6 in vm_run_from_pos (opcodes_p=0x7ab998 <_ZL13mem_heap_area.lto_priv.1028+408>, start_pos=1, this_binding_value=15,
lex_env_p=0x7ab828 <_ZL13mem_heap_area.lto_priv.1028+40>, is_strict=false, is_eval_code=false)
at jerryscript/jerry-core/vm/vm.cpp:561
#10 0x000000000047c1cf in vm_run_global () at jerryscript/jerry-core/vm/vm.cpp:395
#11 0x000000000047ea64 in jerry_run () at jerryscript/jerry-core/jerry.cpp:1278
#12 0x000000000047d751 in main (argc=3, argv=0x7fffffffd888) at jerryscript/main-linux.cpp:248
```
| Assertion '!ecma_is_value_empty (reg_value)' failed in get_variable_value | https://api.github.com/repos/jerryscript-project/jerryscript/issues/228/comments | 1 | 2015-06-23T11:16:40Z | 2015-09-03T07:44:10Z | https://github.com/jerryscript-project/jerryscript/issues/228 | 90,357,136 | 228 |
[
"jerryscript-project",
"jerryscript"
] | > There is one minor issue leftover: If we cross-compile to x86_64 then it is possible that the line
>
> ```
> find_program(CMAKE_STRIP NAMES x86_64-linux-gnu-strip x86_64-unknown-linux-gnu-strip strip)
> ```
>
> in the build/configs/toolchain_linux_x86_64.cmake file would make the `CMAKE_STRIP` to use the
> default `strip` binary, which could be incorrect for the given target, as the strip would be for the host.
Reported by @galpeter in comments to #71
| Cross compilation issue: strip detection | https://api.github.com/repos/jerryscript-project/jerryscript/issues/221/comments | 2 | 2015-06-21T11:31:01Z | 2016-02-12T11:53:40Z | https://github.com/jerryscript-project/jerryscript/issues/221 | 89,898,814 | 221 |
[
"jerryscript-project",
"jerryscript"
] | For Date object implementations we need few time functions and variables, example: `localtime_r`, `gmtime_r`, `daylight` for [1] functions.
These are system dependent features.
Could we somehow use the standard `<time.h>`?
[1] http://www.ecma-international.org/ecma-262/5.1/#sec-15.9.1.7
| Missing standard time functions in jerry-libc | https://api.github.com/repos/jerryscript-project/jerryscript/issues/213/comments | 3 | 2015-06-19T08:52:54Z | 2016-11-25T06:26:30Z | https://github.com/jerryscript-project/jerryscript/issues/213 | 89,509,917 | 213 |
[
"jerryscript-project",
"jerryscript"
] | ###### Jerry version:
```
Checked revision: 6027906
Build: debug.linux
```
###### OS:
```
Ubuntu 14.10, x86_64
```
###### Test case:
``` javascript
with(0xB276)
eval("foo = true;");
```
###### Backtrace:
``` javascript
ICE: Assertion '!(is_direct_eval && !ecma_is_value_undefined (this_arg))' failed at jerryscript/jerry-core/ecma/builtin-objects/ecma-builtin-global.cpp(ecma_builtin_global_object_eval):64.
Error: ERR_FAILED_INTERNAL_ASSERTION
Program received signal SIGABRT, Aborted.
0x000000000047fae7 in syscall_2_asm () at jerryscript/jerry-libc/target/linux/jerry-asm.S:32
32 SYSCALL_2
(gdb) bt
#0 0x000000000047fae7 in syscall_2_asm () at jerryscript/jerry-libc/target/linux/jerry-asm.S:32
#1 0x00000000004003c2 in syscall_2 (syscall_no=62, arg1=6522, arg2=6)
at jerryscript/jerry-libc/target/linux/jerry-libc-target.c:96
#2 0x0000000000400563 in abort () at jerryscript/jerry-libc/target/linux/jerry-libc-target.c:175
#3 0x000000000043aaf6 in jerry_fatal (code=ERR_FAILED_INTERNAL_ASSERTION) at jerryscript/jerry-core/jrt/jrt-fatals.cpp:70
#4 0x000000000043ab45 in jerry_assert_fail (assertion=0x49cb18 "!(is_direct_eval && !ecma_is_value_undefined (this_arg))",
file=0x49cab8 "jerryscript/jerry-core/ecma/builtin-objects/ecma-builtin-global.cpp",
function=0x4809c0 <_ZZL31ecma_builtin_global_object_evaljjE8__func__.lto_priv.1005> "ecma_builtin_global_object_eval", line=64)
at jerryscript/jerry-core/jrt/jrt-fatals.cpp:97
#5 0x0000000000474276 in ecma_builtin_global_object_eval (this_arg=67, x=130)
at jerryscript/jerry-core/ecma/builtin-objects/ecma-builtin-global.cpp:63
#6 0x000000000047407c in ecma_builtin_global_dispatch_routine (builtin_routine_id=1, this_arg_value=67,
arguments_list=0x7ed850 <_ZL13mem_heap_area.lto_priv.1074+261968>, arguments_number=1)
at jerryscript/jerry-core/ecma/builtin-objects/ecma-builtin-global.inc.h:227
#7 0x00000000004730ea in ecma_builtin_dispatch_routine (builtin_object_id=ECMA_BUILTIN_ID_GLOBAL, builtin_routine_id=1, this_arg_value=67,
arguments_list=0x7ed850 <_ZL13mem_heap_area.lto_priv.1074+261968>, arguments_number=1)
at jerryscript/jerry-core/ecma/builtin-objects/ecma-builtins.inc.h:284
#8 0x000000000047254f in ecma_builtin_dispatch_call (obj_p=0x7ad9c8 <_ZL13mem_heap_area.lto_priv.1074+200>, this_arg_value=67,
arguments_list_p=0x7ed850 <_ZL13mem_heap_area.lto_priv.1074+261968>, arguments_list_len=1)
at jerryscript/jerry-core/ecma/builtin-objects/ecma-builtins.cpp:414
#9 0x00000000004404bb in ecma_op_function_call (func_obj_p=0x7ad9c8 <_ZL13mem_heap_area.lto_priv.1074+200>, this_arg_value=67,
arguments_list_p=0x7ed850 <_ZL13mem_heap_area.lto_priv.1074+261968>, arguments_list_len=1)
at jerryscript/jerry-core/ecma/operations/ecma-function-object.cpp:696
#10 0x000000000043797c in opfunc_call_n (opdata=..., int_data=0x7fffffffd4c0) at jerryscript/jerry-core/vm/opcodes.cpp:718
#11 0x000000000047ec77 in vm_loop (int_data_p=0x7fffffffd4c0, run_scope_p=0x7fffffffd400)
at jerryscript/jerry-core/vm/vm.cpp:471
#12 0x000000000042fe65 in opfunc_with (opdata=..., int_data=0x7fffffffd4c0) at jerryscript/jerry-core/vm/opcodes.cpp:1352
#13 0x000000000047ec77 in vm_loop (int_data_p=0x7fffffffd4c0, run_scope_p=0x0) at jerryscript/jerry-core/vm/vm.cpp:471
#14 0x000000000047ef04 in vm_run_from_pos (opcodes_p=0x7adb58 <_ZL13mem_heap_area.lto_priv.1074+600>, start_pos=1, this_binding_value=15,
lex_env_p=0x7ad928 <_ZL13mem_heap_area.lto_priv.1074+40>, is_strict=false, is_eval_code=false)
at jerryscript/jerry-core/vm/vm.cpp:561
#15 0x000000000047eafd in vm_run_global () at jerryscript/jerry-core/vm/vm.cpp:395
#16 0x000000000047ca7d in jerry_run () at jerryscript/jerry-core/jerry.cpp:1290
#17 0x000000000047b67f in main (argc=3, argv=0x7fffffffd858) at jerryscript/main-linux.cpp:252
```
| Assertion '!(is_direct_eval && !ecma_is_value_undefined (this_arg))' failed in ecma_builtin_global_object_eval | https://api.github.com/repos/jerryscript-project/jerryscript/issues/212/comments | 2 | 2015-06-19T08:33:36Z | 2016-11-25T06:26:30Z | https://github.com/jerryscript-project/jerryscript/issues/212 | 89,505,804 | 212 |
[
"jerryscript-project",
"jerryscript"
] | Hi folks,
I have intention to remove `jerry-extension.h` and `jerry-extension.inc.h` from the project. This API is obsolete and can be fully replaced with existing `api.h`, which is more preferable and less ugly.
Does anyone has objections?
//CC @seanshpark is it used in IoTjs?
| Remove jerry-extension.h and jerry-extension.inc.h | https://api.github.com/repos/jerryscript-project/jerryscript/issues/210/comments | 3 | 2015-06-18T16:23:12Z | 2015-06-23T11:30:28Z | https://github.com/jerryscript-project/jerryscript/issues/210 | 89,335,624 | 210 |
[
"jerryscript-project",
"jerryscript"
] | Hi, I'm currently working on the Object.create built-in function and I've found that the following code cause below causes assertion.
The test:
```
var obj = Object.create(null);
Object.getPrototypeOf (obj);
```
The assertion:
```
ICE: Assertion 'object_p != NULL' failed at /home/kristof/work/jerryscript/jerry-core/ecma/base/ecma-helpers-value.cpp(ecma_make_object_value):267.
Error: ERR_FAILED_INTERNAL_ASSERTION
```
Backtrace:
```
#0 0x00000000004d9ae5 in syscall_2_asm () at /home/kristof/work/jerryscript/jerry-libc/target/linux/jerry-asm.S:32
#1 0x000000000040099a in syscall_2 (syscall_no=62, arg1=6944, arg2=6) at /home/kristof/work/jerryscript/jerry-libc/target/linux/jerry-libc-target.c:96
#2 0x0000000000400b3b in abort () at /home/kristof/work/jerryscript/jerry-libc/target/linux/jerry-libc-target.c:175
#3 0x000000000045c10b in jerry_fatal (code=ERR_FAILED_INTERNAL_ASSERTION) at /home/kristof/work/jerryscript/jerry-core/jrt/jrt-fatals.cpp:70
#4 0x000000000045c15a in jerry_assert_fail (assertion=0x4f2ce7 "object_p != NULL", file=0x4f2c78 "/home/kristof/work/jerryscript/jerry-core/ecma/base/ecma-helpers-value.cpp",
function=0x4dccf0 <_ZZ22ecma_make_object_valuePK13ecma_object_tE8__func__.25845> "ecma_make_object_value", line=267) at /home/kristof/work/jerryscript/jerry-core/jrt/jrt-fatals.cpp:97
#5 0x000000000048a97f in ecma_make_object_value (object_p=0x0) at /home/kristof/work/jerryscript/jerry-core/ecma/base/ecma-helpers-value.cpp:267
#6 0x00000000004223ec in ecma_builtin_object_object_get_prototype_of (this_arg=1807, arg=2855) at /home/kristof/work/jerryscript/jerry-core/ecma/builtin-objects/ecma-builtin-object.cpp:133
...
```
| Assert in Object.getPrototypeOf function | https://api.github.com/repos/jerryscript-project/jerryscript/issues/208/comments | 2 | 2015-06-18T13:39:29Z | 2015-06-26T11:38:49Z | https://github.com/jerryscript-project/jerryscript/issues/208 | 89,296,927 | 208 |
[
"jerryscript-project",
"jerryscript"
] | The General Assembly of Ecma International has announced the approval of ECMA-262 6th edition.
- http://www.infoq.com/news/2015/06/ecmascript-2015-es6
- http://www.ecma-international.org/publications/standards/Ecma-262.htm
Should we need to change our target to support ES6 immediately? or keep going to finish current target first?
Please share your opinion.
Thanks!
| Supporting ECMAScript 2015 | https://api.github.com/repos/jerryscript-project/jerryscript/issues/205/comments | 28 | 2015-06-18T10:45:59Z | 2017-03-28T13:19:53Z | https://github.com/jerryscript-project/jerryscript/issues/205 | 89,258,932 | 205 |
[
"jerryscript-project",
"jerryscript"
] | Today, I read an article about WebAssembly.
[Google, Microsoft, Mozilla And Others Team Up To Launch WebAssembly, A New Binary Format For The Web](http://goo.gl/RlVCbi)
What should we do for JerryScript with wasm?
Is it valuable for current target segment of JerryScript? or need to include to future roadmap?
Let’s discuss about it.
**Other references**
- [https://github.com/WebAssembly/design/blob/master/HighLevelGoals.md]
- [https://brendaneich.com/2015/06/from-asm-js-to-webassembly/]
| WebAssembly and JerryScript | https://api.github.com/repos/jerryscript-project/jerryscript/issues/204/comments | 6 | 2015-06-18T10:37:32Z | 2020-12-09T07:28:21Z | https://github.com/jerryscript-project/jerryscript/issues/204 | 89,257,476 | 204 |
[
"jerryscript-project",
"jerryscript"
] | When dump op codes with iotjs, I get below assert.
```
ICE: Assertion 'oc < bytecode_data.opcodes_count' failed at /.../iotjs/deps/jerry/jerry-core/parser/js/serializer.cpp(serializer_get_opcode)
```
how to reproduce
1) build iotjs
```
./tools/build.py --jerry-memstats --no-checktest
```
branch is c87ab8db64fc0f40a25b941510b3a119c831932a
2) run test
```
cd test/run_pass
../../build/(core)/debug/iotjs/iotjs test_net.js
```
where (core) depends on your build machine.
`oc` is 66 and `bytecode_data.opcodes_count` is 37 when assert failed
| Assert in serializer_get_opcode | https://api.github.com/repos/jerryscript-project/jerryscript/issues/203/comments | 2 | 2015-06-18T04:01:50Z | 2015-06-23T23:19:21Z | https://github.com/jerryscript-project/jerryscript/issues/203 | 89,191,447 | 203 |
[
"jerryscript-project",
"jerryscript"
] | We may introduce the following labels to reflect the state of PR:
- `waiting-for-review`
- `waiting-to-be-fixed`
- `make-push` or `OK-to-commit`
- etc?
I think it can be useful, both for developers and reviewers.
| New labels to reflect the state of PR | https://api.github.com/repos/jerryscript-project/jerryscript/issues/201/comments | 10 | 2015-06-17T15:22:45Z | 2015-10-20T15:08:15Z | https://github.com/jerryscript-project/jerryscript/issues/201 | 89,047,864 | 201 |
[
"jerryscript-project",
"jerryscript"
] | There are several places in `jerry-core/ecma` directory where the end of documentation groups are missing. For example:
- ecma-boolean-object.cpp
- ecma-number-object.cpp
### Task
We should check all files for this and fix this style issue in one commit.
### Solution
Insert to the end of files:
``` C++
/**
* @}
* @}
*/
```
| Missing end of groups in documentation comments | https://api.github.com/repos/jerryscript-project/jerryscript/issues/198/comments | 0 | 2015-06-17T08:51:54Z | 2016-02-11T14:02:12Z | https://github.com/jerryscript-project/jerryscript/issues/198 | 88,959,008 | 198 |
[
"jerryscript-project",
"jerryscript"
] | We need to prepare ARTIK 1, https://www.artik.io/, which uses two MIPS core.
- Nucleus OS
- C/C++
- ...
I'll add more informations as it arrives.
| MIPS core support for ARTIK 1 | https://api.github.com/repos/jerryscript-project/jerryscript/issues/197/comments | 8 | 2015-06-16T23:54:53Z | 2016-08-16T10:36:47Z | https://github.com/jerryscript-project/jerryscript/issues/197 | 88,869,635 | 197 |
[
"jerryscript-project",
"jerryscript"
] | ###### Jerry version:
```
Checked revision: 8a9633d
Build: debug.linux
```
###### OS:
```
Ubuntu 14.10, x86_64
```
###### Test case:
``` javascript
function Error() {}
```
###### Backtrace:
``` javascript
ICE: Assertion 'ecma_is_completion_value_empty (completion)' failed at jerryscript/jerry-core/ecma/operations/ecma-function-object.cpp(ecma_op_function_declaration):953.
Error: ERR_FAILED_INTERNAL_ASSERTION
Program received signal SIGABRT, Aborted.
0x000000000047c32b in syscall_2_asm () at jerryscript/jerry-libc/target/linux/jerry-asm.S:32
32 SYSCALL_2
(gdb) bt
#0 0x000000000047c32b in syscall_2_asm () at jerryscript/jerry-libc/target/linux/jerry-asm.S:32
#1 0x00000000004003c2 in syscall_2 (syscall_no=62, arg1=9459, arg2=6)
at jerryscript/jerry-libc/target/linux/jerry-libc-target.c:105
#2 0x0000000000400563 in abort () at jerryscript/jerry-libc/target/linux/jerry-libc-target.c:184
#3 0x0000000000435329 in jerry_fatal (code=ERR_FAILED_INTERNAL_ASSERTION) at jerryscript/jerry-core/jrt/jrt-fatals.cpp:70
#4 0x0000000000435378 in jerry_assert_fail (assertion=0x48e628 "ecma_is_completion_value_empty (completion)",
file=0x48e410 "jerryscript/jerry-core/ecma/operations/ecma-function-object.cpp",
function=0x480c90 <_ZZ28ecma_op_function_declarationP13ecma_object_tP13ecma_string_tPK8opcode_ttPS2_tbbbE8__func__.lto_priv.564> "ecma_op_function_declaration", line=953) at jerryscript/jerry-core/jrt/jrt-fatals.cpp:97
#5 0x000000000044403e in ecma_op_function_declaration (lex_env_p=0x7a77e8 <_ZL13mem_heap_area.lto_priv.972+40>,
function_name_p=0x7a77f8 <_ZL13mem_heap_area.lto_priv.972+56>, opcodes_p=0x7a7a18 <_ZL13mem_heap_area.lto_priv.972+600>,
function_code_opcode_idx=5, formal_parameter_list_p=0x0, formal_parameter_list_length=0, is_strict=false, do_instantiate_arguments_object=false,
is_configurable_bindings=false) at jerryscript/jerry-core/ecma/operations/ecma-function-object.cpp:953
#6 0x0000000000432030 in function_declaration (int_data=0x7fffffffd400, function_name_lit_cp=..., args_names=0x0, args_number=0)
at jerryscript/jerry-core/vm/opcodes.cpp:476
#7 0x0000000000432103 in opfunc_func_decl_n (opdata=..., int_data=0x7fffffffd400) at jerryscript/jerry-core/vm/opcodes.cpp:512
#8 0x000000000047988a in vm_loop (int_data_p=0x7fffffffd400, run_scope_p=0x0) at jerryscript/jerry-core/vm/vm.cpp:471
#9 0x0000000000479b17 in vm_run_from_pos (opcodes_p=0x7a7a18 <_ZL13mem_heap_area.lto_priv.972+600>, start_pos=1, this_binding_value=15,
lex_env_p=0x7a77e8 <_ZL13mem_heap_area.lto_priv.972+40>, is_strict=false, is_eval_code=false)
at jerryscript/jerry-core/vm/vm.cpp:561
#10 0x0000000000479710 in vm_run_global () at jerryscript/jerry-core/vm/vm.cpp:395
#11 0x000000000047be39 in jerry_run () at jerryscript/jerry-core/jerry.cpp:1265
#12 0x000000000047aa89 in main (argc=3, argv=0x7fffffffd798) at jerryscript/main-linux.cpp:252
```
| Assertion 'ecma_is_completion_value_empty (completion)' failed in ecma_op_function_declaration | https://api.github.com/repos/jerryscript-project/jerryscript/issues/195/comments | 2 | 2015-06-16T07:57:34Z | 2015-07-24T15:40:31Z | https://github.com/jerryscript-project/jerryscript/issues/195 | 88,650,354 | 195 |
[
"jerryscript-project",
"jerryscript"
] | ###### Jerry version:
```
Checked revision: 5d5e75f
Build: debug.linux
```
###### OS:
```
Ubuntu 14.10, x86_64
```
###### Test case:
``` javascript
write.call(eval.constructor(encodeURIComponent.__proto__.__proto__.isPrototypeOf(operation.__proto__.__defineGetter__.call.__proto__.constructor.getOwnPropertyDescriptor.__proto__.bind.__proto__.__defineSetter__(performance.__proto__.toLocaleString.__proto__.bind(Date(Infinity,ReferenceError.__proto__.prototype.toString(),NaN,eval(Function(isNaN.__proto__.call.bind.__proto__.toString.call.constructor.__proto__.toString.__proto__.call(eval.toString.toLocaleString.apply(Boolean.prototype.constructor(ReferenceError.__proto__.prototype),readbuffer.constructor(parseFloat(SyntaxError.__proto__.__proto__())))))),quit.apply.constructor.__proto__(),escape.__proto__.__lookupSetter__.__proto__.__proto__.toString(),SyntaxError.__proto__.apply(parseFloat.constructor(),Math.imul())))))));
```
###### Backtrace:
``` javascript
ICE: Assertion '!operand_is_empty (this_arg)' failed at jerryscript/jerry-core/parser/js/parser.cpp(parse_argument_list):390.
Error: ERR_FAILED_INTERNAL_ASSERTION
Program received signal SIGABRT, Aborted.
0x000000000047c32b in syscall_2_asm () at jerryscript/jerry-libc/target/linux/jerry-asm.S:32
32 SYSCALL_2
(gdb) bt
#0 0x000000000047c32b in syscall_2_asm () at jerryscript/jerry-libc/target/linux/jerry-asm.S:32
#1 0x00000000004003c2 in syscall_2 (syscall_no=62, arg1=5382, arg2=6)
at jerryscript/jerry-libc/target/linux/jerry-libc-target.c:105
#2 0x0000000000400563 in abort () at jerryscript/jerry-libc/target/linux/jerry-libc-target.c:184
#3 0x0000000000435329 in jerry_fatal (code=ERR_FAILED_INTERNAL_ASSERTION) at jerryscript/jerry-core/jrt/jrt-fatals.cpp:70
#4 0x0000000000435378 in jerry_assert_fail (assertion=0x48db9f "!operand_is_empty (this_arg)",
file=0x48da78 "jerryscript/jerry-core/parser/js/parser.cpp",
function=0x480f30 <_ZZL19parse_argument_list14varg_list_type7operandPhPS0_E8__func__.lto_priv.546> "parse_argument_list", line=390)
at jerryscript/jerry-core/jrt/jrt-fatals.cpp:97
#5 0x0000000000440014 in parse_argument_list(varg_list_type, operand, unsigned char*, operand*) [clone .lto_priv.542] (vlt=VARG_CALL_EXPR, obj=...,
args_count=0x0, this_arg_p=0x7fffffffa930) at jerryscript/jerry-core/parser/js/parser.cpp:390
#6 0x0000000000439593 in parse_call_expression (this_arg_gl=0x7fffffffa9b0, prop_gl=0x7fffffffa9a0)
at jerryscript/jerry-core/parser/js/parser.cpp:838
#7 0x00000000004396e6 in parse_left_hand_side_expression (this_arg=0x7fffffffa9b0, prop=0x7fffffffa9a0)
at jerryscript/jerry-core/parser/js/parser.cpp:887
#8 0x0000000000439714 in parse_postfix_expression () at jerryscript/jerry-core/parser/js/parser.cpp:897
#9 0x0000000000439b0f in parse_unary_expression (this_arg_gl=0x0, prop_gl=0x0)
at jerryscript/jerry-core/parser/js/parser.cpp:1023
#10 0x0000000000439b78 in parse_multiplicative_expression () at jerryscript/jerry-core/parser/js/parser.cpp:1055
#11 0x0000000000439c73 in parse_additive_expression () at jerryscript/jerry-core/parser/js/parser.cpp:1101
#12 0x0000000000439d1c in parse_shift_expression () at jerryscript/jerry-core/parser/js/parser.cpp:1140
#13 0x0000000000439df7 in parse_relational_expression (in_allowed=true) at jerryscript/jerry-core/parser/js/parser.cpp:1186
#14 0x0000000000439f8a in parse_equality_expression (in_allowed=true) at jerryscript/jerry-core/parser/js/parser.cpp:1260
#15 0x000000000043a0c8 in parse_bitwise_and_expression (in_allowed=true) at jerryscript/jerry-core/parser/js/parser.cpp:1313
#16 0x000000000043a14a in parse_bitwise_xor_expression (in_allowed=true) at jerryscript/jerry-core/parser/js/parser.cpp:1340
#17 0x000000000043a1cc in parse_bitwise_or_expression (in_allowed=true) at jerryscript/jerry-core/parser/js/parser.cpp:1367
#18 0x000000000043a24e in parse_logical_and_expression (in_allowed=true) at jerryscript/jerry-core/parser/js/parser.cpp:1394
#19 0x000000000043a328 in parse_logical_or_expression (in_allowed=true) at jerryscript/jerry-core/parser/js/parser.cpp:1429
#20 0x000000000043a406 in parse_conditional_expression (in_allowed=true, is_conditional=0x7fffffffad2f)
at jerryscript/jerry-core/parser/js/parser.cpp:1464
#21 0x000000000043a4df in parse_assignment_expression(bool) [clone .lto_priv.559] (in_allowed=true)
at jerryscript/jerry-core/parser/js/parser.cpp:1500
#22 0x0000000000440135 in parse_argument_list(varg_list_type, operand, unsigned char*, operand*) [clone .lto_priv.542] (vlt=VARG_CALL_EXPR, obj=...,
args_count=0x0, this_arg_p=0x7fffffffae00) at jerryscript/jerry-core/parser/js/parser.cpp:452
#23 0x0000000000439593 in parse_call_expression (this_arg_gl=0x7fffffffae80, prop_gl=0x7fffffffae70)
at jerryscript/jerry-core/parser/js/parser.cpp:838
#24 0x00000000004396e6 in parse_left_hand_side_expression (this_arg=0x7fffffffae80, prop=0x7fffffffae70)
at jerryscript/jerry-core/parser/js/parser.cpp:887
#25 0x0000000000439714 in parse_postfix_expression () at jerryscript/jerry-core/parser/js/parser.cpp:897
#26 0x0000000000439b0f in parse_unary_expression (this_arg_gl=0x0, prop_gl=0x0)
at jerryscript/jerry-core/parser/js/parser.cpp:1023
#27 0x0000000000439b78 in parse_multiplicative_expression () at jerryscript/jerry-core/parser/js/parser.cpp:1055
#28 0x0000000000439c73 in parse_additive_expression () at jerryscript/jerry-core/parser/js/parser.cpp:1101
#29 0x0000000000439d1c in parse_shift_expression () at jerryscript/jerry-core/parser/js/parser.cpp:1140
#30 0x0000000000439df7 in parse_relational_expression (in_allowed=true) at jerryscript/jerry-core/parser/js/parser.cpp:1186
#31 0x0000000000439f8a in parse_equality_expression (in_allowed=true) at jerryscript/jerry-core/parser/js/parser.cpp:1260
#32 0x000000000043a0c8 in parse_bitwise_and_expression (in_allowed=true) at jerryscript/jerry-core/parser/js/parser.cpp:1313
#33 0x000000000043a14a in parse_bitwise_xor_expression (in_allowed=true) at jerryscript/jerry-core/parser/js/parser.cpp:1340
#34 0x000000000043a1cc in parse_bitwise_or_expression (in_allowed=true) at jerryscript/jerry-core/parser/js/parser.cpp:1367
#35 0x000000000043a24e in parse_logical_and_expression (in_allowed=true) at jerryscript/jerry-core/parser/js/parser.cpp:1394
#36 0x000000000043a328 in parse_logical_or_expression (in_allowed=true) at jerryscript/jerry-core/parser/js/parser.cpp:1429
#37 0x000000000043a406 in parse_conditional_expression (in_allowed=true, is_conditional=0x7fffffffb1ff)
at jerryscript/jerry-core/parser/js/parser.cpp:1464
#38 0x000000000043a4df in parse_assignment_expression(bool) [clone .lto_priv.559] (in_allowed=true)
at jerryscript/jerry-core/parser/js/parser.cpp:1500
#39 0x0000000000440135 in parse_argument_list(varg_list_type, operand, unsigned char*, operand*) [clone .lto_priv.542] (vlt=VARG_CALL_EXPR, obj=...,
args_count=0x0, this_arg_p=0x7fffffffb2d0) at jerryscript/jerry-core/parser/js/parser.cpp:452
#40 0x0000000000439593 in parse_call_expression (this_arg_gl=0x7fffffffb350, prop_gl=0x7fffffffb340)
at jerryscript/jerry-core/parser/js/parser.cpp:838
#41 0x00000000004396e6 in parse_left_hand_side_expression (this_arg=0x7fffffffb350, prop=0x7fffffffb340)
at jerryscript/jerry-core/parser/js/parser.cpp:887
#42 0x0000000000439714 in parse_postfix_expression () at jerryscript/jerry-core/parser/js/parser.cpp:897
#43 0x0000000000439b0f in parse_unary_expression (this_arg_gl=0x0, prop_gl=0x0)
at jerryscript/jerry-core/parser/js/parser.cpp:1023
#44 0x0000000000439b78 in parse_multiplicative_expression () at jerryscript/jerry-core/parser/js/parser.cpp:1055
#45 0x0000000000439c73 in parse_additive_expression () at jerryscript/jerry-core/parser/js/parser.cpp:1101
#46 0x0000000000439d1c in parse_shift_expression () at jerryscript/jerry-core/parser/js/parser.cpp:1140
#47 0x0000000000439df7 in parse_relational_expression (in_allowed=true) at jerryscript/jerry-core/parser/js/parser.cpp:1186
#48 0x0000000000439f8a in parse_equality_expression (in_allowed=true) at jerryscript/jerry-core/parser/js/parser.cpp:1260
#49 0x000000000043a0c8 in parse_bitwise_and_expression (in_allowed=true) at jerryscript/jerry-core/parser/js/parser.cpp:1313
#50 0x000000000043a14a in parse_bitwise_xor_expression (in_allowed=true) at jerryscript/jerry-core/parser/js/parser.cpp:1340
#51 0x000000000043a1cc in parse_bitwise_or_expression (in_allowed=true) at jerryscript/jerry-core/parser/js/parser.cpp:1367
#52 0x000000000043a24e in parse_logical_and_expression (in_allowed=true) at jerryscript/jerry-core/parser/js/parser.cpp:1394
#53 0x000000000043a328 in parse_logical_or_expression (in_allowed=true) at jerryscript/jerry-core/parser/js/parser.cpp:1429
#54 0x000000000043a406 in parse_conditional_expression (in_allowed=true, is_conditional=0x7fffffffb6cf)
at jerryscript/jerry-core/parser/js/parser.cpp:1464
#55 0x000000000043a4df in parse_assignment_expression(bool) [clone .lto_priv.559] (in_allowed=true)
at jerryscript/jerry-core/parser/js/parser.cpp:1500
#56 0x0000000000440135 in parse_argument_list(varg_list_type, operand, unsigned char*, operand*) [clone .lto_priv.542] (vlt=VARG_CALL_EXPR, obj=...,
args_count=0x0, this_arg_p=0x7fffffffb7a0) at jerryscript/jerry-core/parser/js/parser.cpp:452
#57 0x0000000000439593 in parse_call_expression (this_arg_gl=0x7fffffffb820, prop_gl=0x7fffffffb810)
at jerryscript/jerry-core/parser/js/parser.cpp:838
#58 0x00000000004396e6 in parse_left_hand_side_expression (this_arg=0x7fffffffb820, prop=0x7fffffffb810)
at jerryscript/jerry-core/parser/js/parser.cpp:887
#59 0x0000000000439714 in parse_postfix_expression () at jerryscript/jerry-core/parser/js/parser.cpp:897
#60 0x0000000000439b0f in parse_unary_expression (this_arg_gl=0x0, prop_gl=0x0)
at jerryscript/jerry-core/parser/js/parser.cpp:1023
#61 0x0000000000439b78 in parse_multiplicative_expression () at jerryscript/jerry-core/parser/js/parser.cpp:1055
#62 0x0000000000439c73 in parse_additive_expression () at jerryscript/jerry-core/parser/js/parser.cpp:1101
#63 0x0000000000439d1c in parse_shift_expression () at jerryscript/jerry-core/parser/js/parser.cpp:1140
#64 0x0000000000439df7 in parse_relational_expression (in_allowed=true) at jerryscript/jerry-core/parser/js/parser.cpp:1186
#65 0x0000000000439f8a in parse_equality_expression (in_allowed=true) at jerryscript/jerry-core/parser/js/parser.cpp:1260
#66 0x000000000043a0c8 in parse_bitwise_and_expression (in_allowed=true) at jerryscript/jerry-core/parser/js/parser.cpp:1313
#67 0x000000000043a14a in parse_bitwise_xor_expression (in_allowed=true) at jerryscript/jerry-core/parser/js/parser.cpp:1340
#68 0x000000000043a1cc in parse_bitwise_or_expression (in_allowed=true) at jerryscript/jerry-core/parser/js/parser.cpp:1367
#69 0x000000000043a24e in parse_logical_and_expression (in_allowed=true) at jerryscript/jerry-core/parser/js/parser.cpp:1394
#70 0x000000000043a328 in parse_logical_or_expression (in_allowed=true) at jerryscript/jerry-core/parser/js/parser.cpp:1429
#71 0x000000000043a406 in parse_conditional_expression (in_allowed=true, is_conditional=0x7fffffffbb9f)
at jerryscript/jerry-core/parser/js/parser.cpp:1464
#72 0x000000000043a4df in parse_assignment_expression(bool) [clone .lto_priv.559] (in_allowed=true)
at jerryscript/jerry-core/parser/js/parser.cpp:1500
#73 0x0000000000440135 in parse_argument_list(varg_list_type, operand, unsigned char*, operand*) [clone .lto_priv.542] (vlt=VARG_CALL_EXPR, obj=...,
args_count=0x0, this_arg_p=0x7fffffffbc70) at jerryscript/jerry-core/parser/js/parser.cpp:452
#74 0x0000000000439593 in parse_call_expression (this_arg_gl=0x7fffffffbcf0, prop_gl=0x7fffffffbce0)
at jerryscript/jerry-core/parser/js/parser.cpp:838
#75 0x00000000004396e6 in parse_left_hand_side_expression (this_arg=0x7fffffffbcf0, prop=0x7fffffffbce0)
at jerryscript/jerry-core/parser/js/parser.cpp:887
#76 0x0000000000439714 in parse_postfix_expression () at jerryscript/jerry-core/parser/js/parser.cpp:897
#77 0x0000000000439b0f in parse_unary_expression (this_arg_gl=0x0, prop_gl=0x0)
at jerryscript/jerry-core/parser/js/parser.cpp:1023
#78 0x0000000000439b78 in parse_multiplicative_expression () at jerryscript/jerry-core/parser/js/parser.cpp:1055
#79 0x0000000000439c73 in parse_additive_expression () at jerryscript/jerry-core/parser/js/parser.cpp:1101
#80 0x0000000000439d1c in parse_shift_expression () at jerryscript/jerry-core/parser/js/parser.cpp:1140
#81 0x0000000000439df7 in parse_relational_expression (in_allowed=true) at jerryscript/jerry-core/parser/js/parser.cpp:1186
#82 0x0000000000439f8a in parse_equality_expression (in_allowed=true) at jerryscript/jerry-core/parser/js/parser.cpp:1260
#83 0x000000000043a0c8 in parse_bitwise_and_expression (in_allowed=true) at jerryscript/jerry-core/parser/js/parser.cpp:1313
#84 0x000000000043a14a in parse_bitwise_xor_expression (in_allowed=true) at jerryscript/jerry-core/parser/js/parser.cpp:1340
#85 0x000000000043a1cc in parse_bitwise_or_expression (in_allowed=true) at jerryscript/jerry-core/parser/js/parser.cpp:1367
#86 0x000000000043a24e in parse_logical_and_expression (in_allowed=true) at jerryscript/jerry-core/parser/js/parser.cpp:1394
#87 0x000000000043a328 in parse_logical_or_expression (in_allowed=true) at jerryscript/jerry-core/parser/js/parser.cpp:1429
#88 0x000000000043a406 in parse_conditional_expression (in_allowed=true, is_conditional=0x7fffffffc06f)
at jerryscript/jerry-core/parser/js/parser.cpp:1464
#89 0x000000000043a4df in parse_assignment_expression(bool) [clone .lto_priv.559] (in_allowed=true)
at jerryscript/jerry-core/parser/js/parser.cpp:1500
#90 0x0000000000440135 in parse_argument_list(varg_list_type, operand, unsigned char*, operand*) [clone .lto_priv.542] (vlt=VARG_CALL_EXPR, obj=...,
args_count=0x0, this_arg_p=0x7fffffffc140) at jerryscript/jerry-core/parser/js/parser.cpp:452
#91 0x0000000000439593 in parse_call_expression (this_arg_gl=0x7fffffffc1c0, prop_gl=0x7fffffffc1b0)
at jerryscript/jerry-core/parser/js/parser.cpp:838
#92 0x00000000004396e6 in parse_left_hand_side_expression (this_arg=0x7fffffffc1c0, prop=0x7fffffffc1b0)
at jerryscript/jerry-core/parser/js/parser.cpp:887
#93 0x0000000000439714 in parse_postfix_expression () at jerryscript/jerry-core/parser/js/parser.cpp:897
#94 0x0000000000439b0f in parse_unary_expression (this_arg_gl=0x0, prop_gl=0x0)
at jerryscript/jerry-core/parser/js/parser.cpp:1023
#95 0x0000000000439b78 in parse_multiplicative_expression () at jerryscript/jerry-core/parser/js/parser.cpp:1055
#96 0x0000000000439c73 in parse_additive_expression () at jerryscript/jerry-core/parser/js/parser.cpp:1101
#97 0x0000000000439d1c in parse_shift_expression () at jerryscript/jerry-core/parser/js/parser.cpp:1140
#98 0x0000000000439df7 in parse_relational_expression (in_allowed=true) at jerryscript/jerry-core/parser/js/parser.cpp:1186
#99 0x0000000000439f8a in parse_equality_expression (in_allowed=true) at jerryscript/jerry-core/parser/js/parser.cpp:1260
#100 0x000000000043a0c8 in parse_bitwise_and_expression (in_allowed=true) at jerryscript/jerry-core/parser/js/parser.cpp:1313
#101 0x000000000043a14a in parse_bitwise_xor_expression (in_allowed=true) at jerryscript/jerry-core/parser/js/parser.cpp:1340
#102 0x000000000043a1cc in parse_bitwise_or_expression (in_allowed=true) at jerryscript/jerry-core/parser/js/parser.cpp:1367
#103 0x000000000043a24e in parse_logical_and_expression (in_allowed=true) at jerryscript/jerry-core/parser/js/parser.cpp:1394
#104 0x000000000043a328 in parse_logical_or_expression (in_allowed=true) at jerryscript/jerry-core/parser/js/parser.cpp:1429
#105 0x000000000043a406 in parse_conditional_expression (in_allowed=true, is_conditional=0x7fffffffc53f)
at jerryscript/jerry-core/parser/js/parser.cpp:1464
#106 0x000000000043a4df in parse_assignment_expression(bool) [clone .lto_priv.559] (in_allowed=true)
at jerryscript/jerry-core/parser/js/parser.cpp:1500
#107 0x0000000000440135 in parse_argument_list(varg_list_type, operand, unsigned char*, operand*) [clone .lto_priv.542] (vlt=VARG_CALL_EXPR, obj=...,
args_count=0x0, this_arg_p=0x7fffffffc610) at jerryscript/jerry-core/parser/js/parser.cpp:452
#108 0x0000000000439593 in parse_call_expression (this_arg_gl=0x7fffffffc690, prop_gl=0x7fffffffc680)
at jerryscript/jerry-core/parser/js/parser.cpp:838
#109 0x00000000004396e6 in parse_left_hand_side_expression (this_arg=0x7fffffffc690, prop=0x7fffffffc680)
at jerryscript/jerry-core/parser/js/parser.cpp:887
#110 0x0000000000439714 in parse_postfix_expression () at jerryscript/jerry-core/parser/js/parser.cpp:897
#111 0x0000000000439b0f in parse_unary_expression (this_arg_gl=0x0, prop_gl=0x0)
at jerryscript/jerry-core/parser/js/parser.cpp:1023
#112 0x0000000000439b78 in parse_multiplicative_expression () at jerryscript/jerry-core/parser/js/parser.cpp:1055
#113 0x0000000000439c73 in parse_additive_expression () at jerryscript/jerry-core/parser/js/parser.cpp:1101
#114 0x0000000000439d1c in parse_shift_expression () at jerryscript/jerry-core/parser/js/parser.cpp:1140
#115 0x0000000000439df7 in parse_relational_expression (in_allowed=true) at jerryscript/jerry-core/parser/js/parser.cpp:1186
#116 0x0000000000439f8a in parse_equality_expression (in_allowed=true) at jerryscript/jerry-core/parser/js/parser.cpp:1260
#117 0x000000000043a0c8 in parse_bitwise_and_expression (in_allowed=true) at jerryscript/jerry-core/parser/js/parser.cpp:1313
#118 0x000000000043a14a in parse_bitwise_xor_expression (in_allowed=true) at jerryscript/jerry-core/parser/js/parser.cpp:1340
#119 0x000000000043a1cc in parse_bitwise_or_expression (in_allowed=true) at jerryscript/jerry-core/parser/js/parser.cpp:1367
#120 0x000000000043a24e in parse_logical_and_expression (in_allowed=true) at jerryscript/jerry-core/parser/js/parser.cpp:1394
#121 0x000000000043a328 in parse_logical_or_expression (in_allowed=true) at jerryscript/jerry-core/parser/js/parser.cpp:1429
#122 0x000000000043a406 in parse_conditional_expression (in_allowed=true, is_conditional=0x7fffffffca0f)
at jerryscript/jerry-core/parser/js/parser.cpp:1464
#123 0x000000000043a4df in parse_assignment_expression(bool) [clone .lto_priv.559] (in_allowed=true)
at jerryscript/jerry-core/parser/js/parser.cpp:1500
#124 0x0000000000440135 in parse_argument_list(varg_list_type, operand, unsigned char*, operand*) [clone .lto_priv.542] (vlt=VARG_CALL_EXPR, obj=...,
args_count=0x0, this_arg_p=0x7fffffffcae0) at jerryscript/jerry-core/parser/js/parser.cpp:452
#125 0x0000000000439593 in parse_call_expression (this_arg_gl=0x7fffffffcb60, prop_gl=0x7fffffffcb50)
at jerryscript/jerry-core/parser/js/parser.cpp:838
#126 0x00000000004396e6 in parse_left_hand_side_expression (this_arg=0x7fffffffcb60, prop=0x7fffffffcb50)
at jerryscript/jerry-core/parser/js/parser.cpp:887
#127 0x0000000000439714 in parse_postfix_expression () at jerryscript/jerry-core/parser/js/parser.cpp:897
#128 0x0000000000439b0f in parse_unary_expression (this_arg_gl=0x0, prop_gl=0x0)
at jerryscript/jerry-core/parser/js/parser.cpp:1023
#129 0x0000000000439b78 in parse_multiplicative_expression () at jerryscript/jerry-core/parser/js/parser.cpp:1055
#130 0x0000000000439c73 in parse_additive_expression () at jerryscript/jerry-core/parser/js/parser.cpp:1101
#131 0x0000000000439d1c in parse_shift_expression () at jerryscript/jerry-core/parser/js/parser.cpp:1140
#132 0x0000000000439df7 in parse_relational_expression (in_allowed=true) at jerryscript/jerry-core/parser/js/parser.cpp:1186
#133 0x0000000000439f8a in parse_equality_expression (in_allowed=true) at jerryscript/jerry-core/parser/js/parser.cpp:1260
#134 0x000000000043a0c8 in parse_bitwise_and_expression (in_allowed=true) at jerryscript/jerry-core/parser/js/parser.cpp:1313
#135 0x000000000043a14a in parse_bitwise_xor_expression (in_allowed=true) at jerryscript/jerry-core/parser/js/parser.cpp:1340
#136 0x000000000043a1cc in parse_bitwise_or_expression (in_allowed=true) at jerryscript/jerry-core/parser/js/parser.cpp:1367
#137 0x000000000043a24e in parse_logical_and_expression (in_allowed=true) at jerryscript/jerry-core/parser/js/parser.cpp:1394
#138 0x000000000043a328 in parse_logical_or_expression (in_allowed=true) at jerryscript/jerry-core/parser/js/parser.cpp:1429
#139 0x000000000043a406 in parse_conditional_expression (in_allowed=true, is_conditional=0x7fffffffcedf)
at jerryscript/jerry-core/parser/js/parser.cpp:1464
#140 0x000000000043a4df in parse_assignment_expression(bool) [clone .lto_priv.559] (in_allowed=true)
at jerryscript/jerry-core/parser/js/parser.cpp:1500
#141 0x0000000000440135 in parse_argument_list(varg_list_type, operand, unsigned char*, operand*) [clone .lto_priv.542] (vlt=VARG_CALL_EXPR, obj=...,
args_count=0x0, this_arg_p=0x7fffffffcfb0) at jerryscript/jerry-core/parser/js/parser.cpp:452
#142 0x0000000000439593 in parse_call_expression (this_arg_gl=0x7fffffffd030, prop_gl=0x7fffffffd020)
at jerryscript/jerry-core/parser/js/parser.cpp:838
#143 0x00000000004396e6 in parse_left_hand_side_expression (this_arg=0x7fffffffd030, prop=0x7fffffffd020)
at jerryscript/jerry-core/parser/js/parser.cpp:887
#144 0x0000000000439714 in parse_postfix_expression () at jerryscript/jerry-core/parser/js/parser.cpp:897
#145 0x0000000000439b0f in parse_unary_expression (this_arg_gl=0x0, prop_gl=0x0)
at jerryscript/jerry-core/parser/js/parser.cpp:1023
#146 0x0000000000439b78 in parse_multiplicative_expression () at jerryscript/jerry-core/parser/js/parser.cpp:1055
#147 0x0000000000439c73 in parse_additive_expression () at jerryscript/jerry-core/parser/js/parser.cpp:1101
#148 0x0000000000439d1c in parse_shift_expression () at jerryscript/jerry-core/parser/js/parser.cpp:1140
#149 0x0000000000439df7 in parse_relational_expression (in_allowed=true) at jerryscript/jerry-core/parser/js/parser.cpp:1186
#150 0x0000000000439f8a in parse_equality_expression (in_allowed=true) at jerryscript/jerry-core/parser/js/parser.cpp:1260
#151 0x000000000043a0c8 in parse_bitwise_and_expression (in_allowed=true) at jerryscript/jerry-core/parser/js/parser.cpp:1313
#152 0x000000000043a14a in parse_bitwise_xor_expression (in_allowed=true) at jerryscript/jerry-core/parser/js/parser.cpp:1340
#153 0x000000000043a1cc in parse_bitwise_or_expression (in_allowed=true) at jerryscript/jerry-core/parser/js/parser.cpp:1367
#154 0x000000000043a24e in parse_logical_and_expression (in_allowed=true) at jerryscript/jerry-core/parser/js/parser.cpp:1394
#155 0x000000000043a328 in parse_logical_or_expression (in_allowed=true) at jerryscript/jerry-core/parser/js/parser.cpp:1429
#156 0x000000000043a406 in parse_conditional_expression (in_allowed=true, is_conditional=0x7fffffffd3af)
at jerryscript/jerry-core/parser/js/parser.cpp:1464
#157 0x000000000043a4df in parse_assignment_expression(bool) [clone .lto_priv.559] (in_allowed=true)
at jerryscript/jerry-core/parser/js/parser.cpp:1500
#158 0x000000000043a7eb in parse_expression(bool, jsp_eval_ret_store_t) [clone .lto_priv.557] (in_allowed=true,
dump_eval_ret_store=JSP_EVAL_RET_STORE_DUMP) at jerryscript/jerry-core/parser/js/parser.cpp:1628
#159 0x000000000043c040 in parse_statement (outermost_stmt_label_p=0x0) at jerryscript/jerry-core/parser/js/parser.cpp:2515
#160 0x000000000043c0e6 in parse_source_element () at jerryscript/jerry-core/parser/js/parser.cpp:2549
#161 0x000000000043c892 in parse_source_element_list(bool) [clone .lto_priv.558] (is_global=true)
at jerryscript/jerry-core/parser/js/parser.cpp:2867
#162 0x000000000043c965 in parser_parse_program (
source=0x6a7740 <_ZL13source_buffer.lto_priv.1016> "write.call(eval.constructor(encodeURIComponent.__proto__.__proto__.isPrototypeOf(operation.__proto__.__defineGetter__.call.__proto__.constructor.getOwnPropertyDescriptor.__proto__.bind.__proto__.__def"..., source_size=799, in_new_function=false)
at jerryscript/jerry-core/parser/js/parser.cpp:2894
#163 0x000000000043ca56 in parser_parse_script(char const*, unsigned long) (
source=0x6a7740 <_ZL13source_buffer.lto_priv.1016> "write.call(eval.constructor(encodeURIComponent.__proto__.__proto__.isPrototypeOf(operation.__proto__.__defineGetter__.call.__proto__.constructor.getOwnPropertyDescriptor.__proto__.bind.__proto__.__def"..., source_size=799)
at jerryscript/jerry-core/parser/js/parser.cpp:2929
#164 0x000000000047bdee in jerry_parse (
source_p=0x6a7740 <_ZL13source_buffer.lto_priv.1016> "write.call(eval.constructor(encodeURIComponent.__proto__.__proto__.isPrototypeOf(operation.__
proto__.__defineGetter__.call.__proto__.constructor.getOwnPropertyDescriptor.__proto__.bind.__proto__.__def"..., source_size=799)
at jerryscript/jerry-core/jerry.cpp:1220
#165 0x000000000047aa6a in main (argc=3, argv=0x7fffffffd858) at jerryscript/main-linux.cpp:243
```
| Assertion '!operand_is_empty (this_arg)' failed in parse_argument_list | https://api.github.com/repos/jerryscript-project/jerryscript/issues/186/comments | 1 | 2015-06-15T09:53:38Z | 2016-11-25T06:26:29Z | https://github.com/jerryscript-project/jerryscript/issues/186 | 88,375,773 | 186 |
[
"jerryscript-project",
"jerryscript"
] | ###### Jerry version:
```
Checked revision: 5d5e75f
Build: debug.linux
```
###### OS:
```
Ubuntu 14.10, x86_64
```
###### Test case:
``` javascript
RegExp.prototype.__lookupGetter__.__proto__.__proto__.__defineGetter__(Error.toString.__proto__.constructor(JSON.parse.__proto__.__proto__.__defineGetter__.bind.__proto__.toLocaleString.__proto__.__proto__),String.fromCharCode(print.bind(operation.toFixed.__proto__.call(JSON.stringify(RangeError.stackTraceLimit,read.apply.__proto__.constructor.__lookupGetter__.__proto__.propertyIsEnumerable.__proto__.constructor.toString.toLocaleString.constructor(TypeError.__proto__(Map.prototype.entries())),parseInt(undefined,String.__lookupSetter__.apply.__defineSetter__(unescape(NaN.__proto__.constructor.__proto__.call(__proto__.__proto__)),performance.__proto__.__lookupSetter__.constructor.__proto__.constructor.keys.__proto__.call(Number.MIN_VALUE))))))));
```
###### Backtrace:
``` javascript
ICE: Assertion 'om->lit_id[i].packed_value != MEM_CP_NULL' failed at jerryscript/jerry-core/parser/js/scopes-tree.cpp(insert_uids_to_lit_id_map):192.
Error: ERR_FAILED_INTERNAL_ASSERTION
Program received signal SIGABRT, Aborted.
0x000000000047c32b in syscall_2_asm () at jerryscript/jerry-libc/target/linux/jerry-asm.S:32
32 SYSCALL_2
(gdb) bt
#0 0x000000000047c32b in syscall_2_asm () at jerryscript/jerry-libc/target/linux/jerry-asm.S:32
#1 0x00000000004003c2 in syscall_2 (syscall_no=62, arg1=30838, arg2=6)
at jerryscript/jerry-libc/target/linux/jerry-libc-target.c:105
#2 0x0000000000400563 in abort () at jerryscript/jerry-libc/target/linux/jerry-libc-target.c:184
#3 0x0000000000435329 in jerry_fatal (code=ERR_FAILED_INTERNAL_ASSERTION) at jerryscript/jerry-core/jrt/jrt-fatals.cpp:70
#4 0x0000000000435378 in jerry_assert_fail (assertion=0x485b30 "om->lit_id[i].packed_value != MEM_CP_NULL",
file=0x485aa0 "jerryscript/jerry-core/parser/js/scopes-tree.cpp",
function=0x4832e0 <_ZZL25insert_uids_to_lit_id_mapP7op_metatE8__func__.lto_priv.174> "insert_uids_to_lit_id_map", line=192)
at jerryscript/jerry-core/jrt/jrt-fatals.cpp:97
#5 0x000000000040d2ac in insert_uids_to_lit_id_map (om=0x7e6eb4 <_ZL13mem_heap_area.lto_priv.972+259828>, mask=272)
at jerryscript/jerry-core/parser/js/scopes-tree.cpp:192
#6 0x000000000040d68f in count_new_literals_in_opcode (tree=0x7e72d0 <_ZL13mem_heap_area.lto_priv.972+260880>, opc_index=50)
at jerryscript/jerry-core/parser/js/scopes-tree.cpp:417
#7 0x000000000040d8a5 in scopes_tree_count_literals_in_blocks(scopes_tree_int*) (tree=0x7e72d0 <_ZL13mem_heap_area.lto_priv.972+260880>)
at jerryscript/jerry-core/parser/js/scopes-tree.cpp:544
#8 0x0000000000434efe in serializer_merge_scopes_into_bytecode () at jerryscript/jerry-core/parser/js/serializer.cpp:90
#9 0x000000000043c9d2 in parser_parse_program (
source=0x6a7740 <_ZL13source_buffer.lto_priv.1016> "RegExp.prototype.__lookupGetter__.__proto__.__proto__.__defineGetter__(Error.toString.__proto__.constructor(JSON.parse.__proto__.__proto__.__defineGetter__.bind.__proto__.toLocaleString.__proto__.__pr"..., source_size=755, in_new_function=false)
at jerryscript/jerry-core/parser/js/parser.cpp:2913
#10 0x000000000043ca56 in parser_parse_script(char const*, unsigned long) (
source=0x6a7740 <_ZL13source_buffer.lto_priv.1016> "RegExp.prototype.__lookupGetter__.__proto__.__proto__.__defineGetter__(Error.toString.__proto__.constructor(JSON.parse.__proto__.__proto__.__defineGetter__.bind.__proto__.toLocaleString.__proto__.__pr"..., source_size=755)
at jerryscript/jerry-core/parser/js/parser.cpp:2929
#11 0x000000000047bdee in jerry_parse (
source_p=0x6a7740 <_ZL13source_buffer.lto_priv.1016> "RegExp.prototype.__lookupGetter__.__proto__.__proto__.__defineGetter__(Error.toString.__proto__.constructor(JSON.parse.__proto__.__proto__.__defineGetter__.bind.__proto__.toLocaleString.__proto__.__pr"..., source_size=755)
at jerryscript/jerry-core/jerry.cpp:1220
#12 0x000000000047aa6a in main (argc=3, argv=0x7fffffffd868) at jerryscript/main-linux.cpp:243
```
| Assertion 'om->lit_id[i].packed_value != MEM_CP_NULL' failed in insert_uids_to_lit_id_map | https://api.github.com/repos/jerryscript-project/jerryscript/issues/185/comments | 2 | 2015-06-15T09:27:13Z | 2015-07-01T16:34:15Z | https://github.com/jerryscript-project/jerryscript/issues/185 | 88,368,992 | 185 |
[
"jerryscript-project",
"jerryscript"
] | while testing eval() with throw try-catch (#182) jerry_api_eval() doesn't return with unmatched brace. not sure this is spec or problem. test code:
```
diff --git a/tests/unit/test-api.cpp b/tests/unit/test-api.cpp
index 9636fd0..7c86780 100644
--- a/tests/unit/test-api.cpp
+++ b/tests/unit/test-api.cpp
@@ -456,6 +456,17 @@ main (void)
jerry_api_release_value (&val_t);
+ // eval throw
+ const char *eval_code_err_p = "}";
+ status = jerry_api_eval (eval_code_err_p,
+ strlen (eval_code_err_p),
+ false,
+ true,
+ &val_t);
+ JERRY_ASSERT (status == JERRY_COMPLETION_CODE_OK);
+
+ jerry_api_release_value (&val_t);
+
// cleanup.
jerry_api_release_object (global_obj_p);
```
same with `const char *eval_code_err_p = "{";`
| parser with unmatched brace doesn't return | https://api.github.com/repos/jerryscript-project/jerryscript/issues/183/comments | 5 | 2015-06-15T07:46:53Z | 2016-11-25T06:26:29Z | https://github.com/jerryscript-project/jerryscript/issues/183 | 88,348,947 | 183 |
[
"jerryscript-project",
"jerryscript"
] | I'm not good at the spec. but seems that try-catch is not working correct.
test code added to test-api.cpp
```
diff --git a/tests/unit/test-api.cpp b/tests/unit/test-api.cpp
index 9636fd0..405aec5 100644
--- a/tests/unit/test-api.cpp
+++ b/tests/unit/test-api.cpp
@@ -456,6 +456,25 @@ main (void)
jerry_api_release_value (&val_t);
+ // eval throw
+ const char *eval_code_err_p = "try{ throw new Error('error'); } catch(e) {print(e)}";
+ status = jerry_api_eval (eval_code_err_p,
+ strlen (eval_code_err_p),
+ false,
+ true,
+ &val_t);
+ JERRY_ASSERT (status == JERRY_COMPLETION_CODE_OK);
+
+ is_ok = jerry_api_call_function (val_t.v_object,
+ NULL,
+ &res,
+ NULL, 0);
+ JERRY_ASSERT (is_ok);
+ jerry_api_release_value (&res);
+
+ jerry_api_release_value (&val_t);
+
+
// cleanup.
jerry_api_release_object (global_obj_p);
```
expect `is_ok` to be true.
| try-catch throw in eval function | https://api.github.com/repos/jerryscript-project/jerryscript/issues/182/comments | 2 | 2015-06-15T06:30:22Z | 2015-06-15T07:40:09Z | https://github.com/jerryscript-project/jerryscript/issues/182 | 88,334,213 | 182 |
[
"jerryscript-project",
"jerryscript"
] | Was there an unhandled exception rasied, `jerry_api_invoke_function()` returns `false` with `undefined` for `retval_p`. But user of this API might want to know what error was occurred during execution (actually IoT.js do want to know).
What about exposing the error with `retval_p` parameter in case of exception?
| Jerry API: propagating unhandled exception. | https://api.github.com/repos/jerryscript-project/jerryscript/issues/181/comments | 4 | 2015-06-15T05:53:28Z | 2015-06-17T16:32:36Z | https://github.com/jerryscript-project/jerryscript/issues/181 | 88,326,658 | 181 |
[
"jerryscript-project",
"jerryscript"
] | As new eval has landed, one small problem is that debug version execution has became very slow.
Can there be some level of checking so that it might be somewhat faster for debugging?
| Faster debug version | https://api.github.com/repos/jerryscript-project/jerryscript/issues/180/comments | 4 | 2015-06-14T23:49:42Z | 2016-11-25T06:26:29Z | https://github.com/jerryscript-project/jerryscript/issues/180 | 88,269,187 | 180 |
[
"jerryscript-project",
"jerryscript"
] | I've found some memory related issue with this function which can cause assert in some cases.
| Fix ecma_get_property_descriptor_from_property function | https://api.github.com/repos/jerryscript-project/jerryscript/issues/178/comments | 3 | 2015-06-12T08:18:10Z | 2015-06-12T15:13:28Z | https://github.com/jerryscript-project/jerryscript/issues/178 | 87,652,922 | 178 |
[
"jerryscript-project",
"jerryscript"
] | Hello.
The issue is raised to document all known places where there are missing comments to functions / function's arguments (that is considered a style issue, currently).
The documented style issues are supposed to be fixed:
- step by step, with separate pull requests for each component / module, containing mentioned issues;
- in context of reimplementation / significant rework of a function with a mentioned issue.
| Missing comments to functions / function's arguments | https://api.github.com/repos/jerryscript-project/jerryscript/issues/176/comments | 1 | 2015-06-11T16:35:13Z | 2016-02-11T14:03:09Z | https://github.com/jerryscript-project/jerryscript/issues/176 | 87,406,341 | 176 |
[
"jerryscript-project",
"jerryscript"
] | We discussed this question last time, but there was no clear decision. Today this question is raised again, since the PI default compiler is only GCC 4.7. We might also need to support exotic architectures, where we stuck with proprietary compilers, and they might not even support C++.
I think postponing this question is not wise, since we might reach a point, where there is no turning back. It would be great to have a decision about the minimum compiler requirements. My personal preference is C99, but anything is good for me. Just lets have a decision.
| C or C++ | https://api.github.com/repos/jerryscript-project/jerryscript/issues/173/comments | 2 | 2015-06-11T09:49:56Z | 2015-10-20T15:08:02Z | https://github.com/jerryscript-project/jerryscript/issues/173 | 87,285,059 | 173 |
[
"jerryscript-project",
"jerryscript"
] | ###### Jerry version:
```
Checked revision: d988da8
Build: debug.linux
```
###### OS:
```
Ubuntu 14.04, x86_64
```
###### Test case:
``` javascript
for ( ; ; ) {
with ( v_1 ) {
with ( v_1 ) { }
}
}
```
###### Backtrace:
``` javascript
ICE: Assertion '!label_set_p->is_nested_jumpable_border' failed at jerryscript/jerry-core/parser/js/jsp-label.cpp(jsp_label_raise_nested_jumpable_border):244.
Error: ERR_FAILED_INTERNAL_ASSERTION
Program received signal SIGABRT, Aborted.
0x00000000004cea1b in syscall_2_asm () at jerryscript/jerry-libc/target/linux/jerry-asm.S:32
32 SYSCALL_2
(gdb) bt
#0 0x00000000004cea1b in syscall_2_asm () at jerryscript/jerry-libc/target/linux/jerry-asm.S:32
#1 0x0000000000402a3b in syscall_2 (syscall_no=62, arg1=22992, arg2=6)
at jerryscript/jerry-libc/target/linux/jerry-libc-target.c:105
#2 0x0000000000402bdc in abort () at jerryscript/jerry-libc/target/linux/jerry-libc-target.c:184
#3 0x000000000046a14c in jerry_fatal (code=ERR_FAILED_INTERNAL_ASSERTION) at jerryscript/jerry-core/jrt/jrt-fatals.cpp:70
#4 0x000000000046a19b in jerry_assert_fail (assertion=0x4d9188 "!label_set_p->is_nested_jumpable_border",
file=0x4d8f50 "jerryscript/jerry-core/parser/js/jsp-label.cpp",
function=0x4d4ec0 <_ZZ38jsp_label_raise_nested_jumpable_bordervE12__FUNCTION__.42915> "jsp_label_raise_nested_jumpable_border", line=244)
at jerryscript/jerry-core/jrt/jrt-fatals.cpp:97
#5 0x00000000004109f3 in jsp_label_raise_nested_jumpable_border () at jerryscript/jerry-core/parser/js/jsp-label.cpp:244
#6 0x0000000000468039 in parse_with_statement () at jerryscript/jerry-core/parser/js/parser.cpp:1901
#7 0x0000000000468d77 in parse_statement (outermost_stmt_label_p=0x0) at jerryscript/jerry-core/parser/js/parser.cpp:2363
#8 0x0000000000467d5d in parse_statement_list () at jerryscript/jerry-core/parser/js/parser.cpp:1778
#9 0x0000000000468865 in parse_statement (outermost_stmt_label_p=0x0) at jerryscript/jerry-core/parser/js/parser.cpp:2259
#10 0x0000000000468058 in parse_with_statement () at jerryscript/jerry-core/parser/js/parser.cpp:1905
#11 0x0000000000468d77 in parse_statement (outermost_stmt_label_p=0x0) at jerryscript/jerry-core/parser/js/parser.cpp:2363
#12 0x0000000000467d5d in parse_statement_list () at jerryscript/jerry-core/parser/js/parser.cpp:1778
#13 0x0000000000468865 in parse_statement (outermost_stmt_label_p=0x0) at jerryscript/jerry-core/parser/js/parser.cpp:2259
#14 0x0000000000467946 in parse_plain_for (outermost_stmt_label_p=0x7fffffffd470)
at jerryscript/jerry-core/parser/js/parser.cpp:1627
#15 0x0000000000467b09 in parse_for_or_for_in_statement (outermost_stmt_label_p=0x7fffffffd470)
at jerryscript/jerry-core/parser/js/parser.cpp:1704
#16 0x00000000004687d4 in parse_iterational_statement (outermost_named_stmt_label_p=0x0)
at jerryscript/jerry-core/parser/js/parser.cpp:2172
#17 0x0000000000468951 in parse_statement (outermost_stmt_label_p=0x0) at jerryscript/jerry-core/parser/js/parser.cpp:2292
#18 0x000000000046903d in parse_source_element () at jerryscript/jerry-core/parser/js/parser.cpp:2444
#19 0x0000000000469897 in parse_source_element_list(bool) [clone .32684] (is_global=true)
at jerryscript/jerry-core/parser/js/parser.cpp:2752
#20 0x000000000046994b in parser_parse_program () at jerryscript/jerry-core/parser/js/parser.cpp:2771
#21 0x00000000004cbd02 in jerry_parse (source_p=0x6f9700 <_ZL13source_buffer.2441> "for ( ; ; ) {\n with ( v_1 ) {\n with ( v_1 ) { }\n }\n}",
source_size=57) at jerryscript/jerry-core/jerry.cpp:1224
#22 0x00000000004ca344 in main (argc=3, argv=0x7fffffffd8f8) at jerryscript/main-linux.cpp:243
```
| Assertion '!label_set_p->is_nested_jumpable_border' failed in jsp_label_raise_nested_jumpable_border | https://api.github.com/repos/jerryscript-project/jerryscript/issues/164/comments | 3 | 2015-06-09T15:14:54Z | 2015-06-30T11:32:27Z | https://github.com/jerryscript-project/jerryscript/issues/164 | 86,633,516 | 164 |
[
"jerryscript-project",
"jerryscript"
] | After [723924f]](https://github.com/seanshpark/jerryscript/commit/723924f36fd625a62ff7e806d1c4fdfd093147fe) the precommit fails with the following message:
```
.../tests/unit/test_api.cpp:452:65: error: conversion to ‘uint32_t {aka unsigned int}’ from ‘long unsigned int’ may alter its value [-Werror=conversion]
uint32_t num_magic_string_items = sizeof (magic_string_items) / sizeof (jerry_api_char_ptr_t);
```
Here is the mentoined line: [L452](https://github.com/seanshpark/jerryscript/commit/723924f36fd625a62ff7e806d1c4fdfd093147fe#diff-6a32b58e941dcd977e545a8b13e74d9eR452)
Refer: #136
| Precommit fails after expanding magic string API | https://api.github.com/repos/jerryscript-project/jerryscript/issues/161/comments | 7 | 2015-06-09T11:52:19Z | 2016-11-25T06:26:28Z | https://github.com/jerryscript-project/jerryscript/issues/161 | 86,571,069 | 161 |
[
"jerryscript-project",
"jerryscript"
] | Hello.
The following unit test fails on armv7-hf linux build and on x86_64 in unittests mode build (unit tests are built with O3):
```
ecma_number_t m2 = (ecma_number_t) -2.0;
JERRY_ASSERT (ecma_number_to_int32 (m2) == -2);
```
Seems that `ecma_number_to_int32` is implemented incorrectly.
| Incorrect ToInt32 semantics | https://api.github.com/repos/jerryscript-project/jerryscript/issues/160/comments | 1 | 2015-06-09T10:54:57Z | 2015-06-23T13:16:38Z | https://github.com/jerryscript-project/jerryscript/issues/160 | 86,553,966 | 160 |
[
"jerryscript-project",
"jerryscript"
] | We should be test engine on the original testsuite without any modification. Issues that have to be solved for this:
- [x] RegExp engine #27
- [x] Unicode support #49
- [x] Able to parse JS files from 70 Kbyte to 150 Kbyte
- [x] Implement for-in loop #51
- [x] Fix the for loop bug with function calls in the iteration part #156
These are only the currently known issues, there could be more.
### Testsuite
[Test262](https://github.com/tc39/test262)
| Run the official ECMAScript (ECMA-262) conformance suite. | https://api.github.com/repos/jerryscript-project/jerryscript/issues/158/comments | 7 | 2015-06-08T13:04:49Z | 2015-10-20T15:07:37Z | https://github.com/jerryscript-project/jerryscript/issues/158 | 86,168,683 | 158 |
[
"jerryscript-project",
"jerryscript"
] | Jerry throws a PARSE_ERROR, if you try to invoke a function in the increment part of the for loop. This should be fixed to be able to run test262 tests.
###### Jerry version:
```
Checked revision: 0b1b102cfacb8b44b2b4a7d480cec34f91cc81a1
Build: debug.linux
```
###### OS:
```
Ubuntu 14.04, x86_64
```
###### Test case:
``` javascript
function dec(x) { return x - 1 };
for (var i = 0; i < 0; i = dec(i)) {}
```
| PARSE_ERROR in for loops | https://api.github.com/repos/jerryscript-project/jerryscript/issues/156/comments | 1 | 2015-06-05T11:32:41Z | 2016-11-25T06:26:28Z | https://github.com/jerryscript-project/jerryscript/issues/156 | 85,512,036 | 156 |
[
"jerryscript-project",
"jerryscript"
] | Consider the following code:
``` javascript
try {
xxxx;
} catch(e) {
print(e);
}
```
Will _not print_ out the expected `ReferenceError` string. But if we change the code in a way that the `xxxx` variable is part of an argument list then the exception is correctly raised.
So using the following code:
``` javascript
try {
print(xxxx);
} catch(e) {
print(e);
}
```
Will _print_ out the expected `ReferenceError` string.
###### Jerry version:
```
Checked revision: ac87616f0
Build: debug.linux
```
| No reference error when the variable is not an argument | https://api.github.com/repos/jerryscript-project/jerryscript/issues/154/comments | 1 | 2015-06-05T08:30:02Z | 2015-11-19T12:17:42Z | https://github.com/jerryscript-project/jerryscript/issues/154 | 85,471,736 | 154 |
[
"jerryscript-project",
"jerryscript"
] | ###### Jerry version:
```
Checked revision: 9d423d9
Build: debug.linux
```
###### OS:
```
Ubuntu 14.04, x86_64
```
###### Description:
Asking for the properties of any builtin objects results in a list, that only contains the previously used property names.
E.g:
``` javascript
var propertyNames = Object.getOwnPropertyNames(Math);
print(propertyNames.join(", "));
```
results an empty list. However:
``` javascript
var propertyNames = Object.getOwnPropertyNames(Object);
print(propertyNames.join(", "));
```
gives a list with only the "getOwnPropertyNames" property, since it was used already.
| The properties of the builtins are only enumerable after their first usage | https://api.github.com/repos/jerryscript-project/jerryscript/issues/152/comments | 7 | 2015-06-04T13:34:17Z | 2015-11-19T10:49:10Z | https://github.com/jerryscript-project/jerryscript/issues/152 | 85,101,610 | 152 |
[
"jerryscript-project",
"jerryscript"
] | Cannot reproduce this with Jerry test scripts but error show in IoT.js
How to reproduce:
1) System: Ubuntu 14.04, 32 bit, debug build. (64bit is ok)
2) Build iot.js and run test (as of today)
```
cd iotjs
git checkout 8c4ecc3aacd4f7639d814615b3614947618124fd
./tools/build.py
cd test
../build/i686-linux/debug/iotjs/iotjs test_net.js
```
3) result
```
ICE: Assertion 'int_ptr % MEM_ALIGNMENT == 0' failed at /.../iotjs/deps/jerry/jerry-core/mem/mem-allocator.cpp(mem_compress_pointer):106.
Error: ERR_FAILED_INTERNAL_ASSERTION
```
4) when I print the int_ptr value it's value was 81459d4
| Assertion 'int_ptr % MEM_ALIGNMENT == 0' failed | https://api.github.com/repos/jerryscript-project/jerryscript/issues/150/comments | 6 | 2015-06-04T05:26:44Z | 2016-11-25T06:26:28Z | https://github.com/jerryscript-project/jerryscript/issues/150 | 84,922,202 | 150 |
[
"jerryscript-project",
"jerryscript"
] | There are some built-in implementation helpers in `jerry-core/ecma/operations/ecma-array-prototype.cpp`.
The helpers should be moved to `jerry-core/ecma/builtin-objects`.
If they are related to different built-ins, then, maybe, to ecma-builtin-helpers.cpp,
otherwise - to the module with corresponding built-in implementation as `static` function.
| Move of built-in implementation helpers to jerry-core/ecma/builtin-objects | https://api.github.com/repos/jerryscript-project/jerryscript/issues/145/comments | 0 | 2015-06-02T17:43:17Z | 2015-07-08T09:27:56Z | https://github.com/jerryscript-project/jerryscript/issues/145 | 84,123,416 | 145 |
[
"jerryscript-project",
"jerryscript"
] | Hello.
Currently, interfaces like `ecma_get_string_from_completion_value` and `ecma_get_string_from_value` have the same prototypes, and so, can be confused.
We need to update their prototypes to check for the situation at compile-time.
| Fix interfaces for processing values and completion values | https://api.github.com/repos/jerryscript-project/jerryscript/issues/139/comments | 2 | 2015-06-01T12:41:31Z | 2016-02-24T08:55:49Z | https://github.com/jerryscript-project/jerryscript/issues/139 | 83,473,009 | 139 |
[
"jerryscript-project",
"jerryscript"
] | Currently, the array constructor takes ecma_length_t, which is an uint16, as it's length argument, even though the length of an array can be an uint32. The two should be compatible, so we should either change ecma_length_t to be uint32, or change the array constructor to take uint32 for length.
| Array constructor using ecma_lenght_t for length argument | https://api.github.com/repos/jerryscript-project/jerryscript/issues/133/comments | 1 | 2015-05-29T12:31:25Z | 2015-07-06T09:21:41Z | https://github.com/jerryscript-project/jerryscript/issues/133 | 82,408,529 | 133 |
[
"jerryscript-project",
"jerryscript"
] | ###### Jerry version:
```
Checked revision: 77df022
Build: debug.linux
```
###### OS:
```
Ubuntu 14.04, x86_64
```
###### Test case:
``` javascript
v_0 = [,];
v_1 = [,];
v_2 = Object.defineProperties([,], { '0': { get: function() { } } });
function f_0() {}
```
###### Backtrace:
``` javascript
ICE: Assertion 'is_current_accessor_descriptor' failed at jerryscript/jerry-core/ecma/operations/ecma-objects-general.cpp(ecma_op_general_object_define_own_property):835.
Error: ERR_FAILED_INTERNAL_ASSERTION
[Inferior 1 (process 26880) exited with code 0170]
(gdb) bt
#0 ecma_op_general_object_define_own_property (obj_p=0x7ebcf0 <_ZL13mem_heap_area.4015+1456>,
property_name_p=0x7ebde0 <_ZL13mem_heap_area.4015+1696>, property_desc_p=0x7fffffffd010, is_throw=false)
at jerryscript/jerry-core/ecma/operations/ecma-objects-general.cpp:835
#1 0x000000000047567e in ecma_op_array_object_define_own_property (obj_p=0x7ebcf0 <_ZL13mem_heap_area.4015+1456>,
property_name_p=0x7ebde0 <_ZL13mem_heap_area.4015+1696>, property_desc_p=0x7fffffffd010, is_throw=true)
at jerryscript/jerry-core/ecma/operations/ecma-array-object.cpp:430
#2 0x000000000047cf73 in ecma_op_object_define_own_property (obj_p=0x7ebcf0 <_ZL13mem_heap_area.4015+1456>,
property_name_p=0x7ebde0 <_ZL13mem_heap_area.4015+1696>, property_desc_p=0x7fffffffd010, is_throw=true)
at jerryscript/jerry-core/ecma/operations/ecma-objects.cpp:451
#3 0x0000000000496efe in ecma_builtin_object_object_define_properties(unsigned int, unsigned int, unsigned int) [clone .19528] (this_arg=687,
arg1=731, arg2=763) at jerryscript/jerry-core/ecma/builtin-objects/ecma-builtin-object.cpp:378
#4 0x00000000004a23e9 in ecma_builtin_object_dispatch_routine (builtin_routine_id=51, this_arg_value=687,
arguments_list=0x82b6d0 <_ZL13mem_heap_area.4015+262032>, arguments_number=2)
at jerryscript/jerry-core/ecma/builtin-objects/ecma-builtin-object.inc.h:72
#5 0x00000000004aafd5 in ecma_builtin_dispatch_routine (builtin_object_id=ECMA_BUILTIN_ID_OBJECT, builtin_routine_id=51, this_arg_value=687,
arguments_list=0x82b6d0 <_ZL13mem_heap_area.4015+262032>, arguments_number=2)
at jerryscript/jerry-core/ecma/builtin-objects/ecma-builtins.inc.h:29
#6 0x00000000004aa7a3 in ecma_builtin_dispatch_call (obj_p=0x7ebcc8 <_ZL13mem_heap_area.4015+1416>, this_arg_value=687,
arguments_list_p=0x82b6d0 <_ZL13mem_heap_area.4015+262032>, arguments_list_len=2)
at jerryscript/jerry-core/ecma/builtin-objects/ecma-builtins.cpp:398
#7 0x00000000004697e4 in ecma_op_function_call (func_obj_p=0x7ebcc8 <_ZL13mem_heap_area.4015+1416>, this_arg_value=687,
arguments_list_p=0x82b6d0 <_ZL13mem_heap_area.4015+262032>, arguments_list_len=2)
at jerryscript/jerry-core/ecma/operations/ecma-function-object.cpp:684
#8 0x0000000000458c63 in opfunc_call_n (opdata=..., int_data=0x7fffffffd560) at jerryscript/jerry-core/vm/opcodes.cpp:710
#9 0x00000000004c1a11 in vm_loop (int_data=0x7fffffffd560) at jerryscript/jerry-core/vm/vm.cpp:452
#10 0x00000000004b86e5 in vm_run_from_pos (start_pos=1, this_binding_value=15, lex_env_p=0x7eb770 <_ZL13mem_heap_area.4015+48>, is_strict=false,
is_eval_code=false) at jerryscript/jerry-core/vm/vm.cpp:528
#11 0x00000000004c17df in vm_run_global () at jerryscript/jerry-core/vm/vm.cpp:383
#12 0x00000000004bf487 in jerry_run () at jerryscript/jerry-core/jerry.cpp:1243
#13 0x00000000004bdab6 in main (argc=2, argv=0x7fffffffd908) at jerryscript/main-linux.cpp:248
```
###### Additional comment:
This issue might be similar or related to #115 since omitting any lines - except the third one - results in that assertion failure.
| Assertion 'is_current_accessor_descriptor' failed in ecma_op_general_object_define_own_property | https://api.github.com/repos/jerryscript-project/jerryscript/issues/132/comments | 4 | 2015-05-29T11:07:51Z | 2016-11-25T06:26:28Z | https://github.com/jerryscript-project/jerryscript/issues/132 | 82,383,750 | 132 |
[
"jerryscript-project",
"jerryscript"
] | ###### Jerry version:
```
Checked revision: 77df022
Build: debug.linux
```
###### OS:
```
Ubuntu 14.04, x86_64
```
###### Test case:
``` javascript
Object.defineProperties([], undefined);
```
###### Backtrace:
``` javascript
ICE: Assertion 'ecma_get_value_type_field (value) == ECMA_TYPE_OBJECT' failed at jerryscript/jerry-core/ecma/base/ecma-helpers-value.cpp(ecma_get_object_from_value):316.
Error: ERR_FAILED_INTERNAL_ASSERTION
[Inferior 1 (process 19980) exited with code 0170]
(gdb) bt
#0 ecma_get_object_from_value (value=4) at jerryscript/jerry-core/ecma/base/ecma-helpers-value.cpp:316
#1 0x0000000000496649 in ecma_builtin_object_object_define_properties(unsigned int, unsigned int, unsigned int) [clone .19528] (this_arg=59,
arg1=131, arg2=4) at jerryscript/jerry-core/ecma/builtin-objects/ecma-builtin-object.cpp:343
#2 0x00000000004a23e9 in ecma_builtin_object_dispatch_routine (builtin_routine_id=51, this_arg_value=59,
arguments_list=0x82b6d0 <_ZL13mem_heap_area.4015+262032>, arguments_number=2)
at jerryscript/jerry-core/ecma/builtin-objects/ecma-builtin-object.inc.h:72
#3 0x00000000004aafd5 in ecma_builtin_dispatch_routine (builtin_object_id=ECMA_BUILTIN_ID_OBJECT, builtin_routine_id=51, this_arg_value=59,
arguments_list=0x82b6d0 <_ZL13mem_heap_area.4015+262032>, arguments_number=2)
at jerryscript/jerry-core/ecma/builtin-objects/ecma-builtins.inc.h:29
#4 0x00000000004aa7a3 in ecma_builtin_dispatch_call (obj_p=0x7eb7f8 <_ZL13mem_heap_area.4015+184>, this_arg_value=59,
arguments_list_p=0x82b6d0 <_ZL13mem_heap_area.4015+262032>, arguments_list_len=2)
at jerryscript/jerry-core/ecma/builtin-objects/ecma-builtins.cpp:398
#5 0x00000000004697e4 in ecma_op_function_call (func_obj_p=0x7eb7f8 <_ZL13mem_heap_area.4015+184>, this_arg_value=59,
arguments_list_p=0x82b6d0 <_ZL13mem_heap_area.4015+262032>, arguments_list_len=2)
at jerryscript/jerry-core/ecma/operations/ecma-function-object.cpp:684
#6 0x0000000000458c63 in opfunc_call_n (opdata=..., int_data=0x7fffffffd560) at jerryscript/jerry-core/vm/opcodes.cpp:710
#7 0x00000000004c1a11 in vm_loop (int_data=0x7fffffffd560) at jerryscript/jerry-core/vm/vm.cpp:452
#8 0x00000000004b86e5 in vm_run_from_pos (start_pos=1, this_binding_value=15, lex_env_p=0x7eb770 <_ZL13mem_heap_area.4015+48>, is_strict=false,
is_eval_code=false) at jerryscript/jerry-core/vm/vm.cpp:528
#9 0x00000000004c17df in vm_run_global () at jerryscript/jerry-core/vm/vm.cpp:383
#10 0x00000000004bf487 in jerry_run () at jerryscript/jerry-core/jerry.cpp:1243
#11 0x00000000004bdab6 in main (argc=2, argv=0x7fffffffd908) at jerryscript/main-linux.cpp:248
```
| Assertion 'ecma_get_value_type_field (value) == ECMA_TYPE_OBJECT' failed in ecma_get_object_from_value | https://api.github.com/repos/jerryscript-project/jerryscript/issues/131/comments | 5 | 2015-05-29T09:09:54Z | 2016-11-25T06:26:28Z | https://github.com/jerryscript-project/jerryscript/issues/131 | 82,343,808 | 131 |
[
"jerryscript-project",
"jerryscript"
] | ###### Jerry version:
```
Checked revision: 77df022
Build: debug.linux
```
###### OS:
```
Ubuntu 14.04, x86_64
```
###### Test case:
``` javascript
v_1 = Math.floor('\u3d52');
v_1 = Math.floor([]);
```
###### Backtrace:
``` javascript
ICE: Assertion '!ecma_number_is_nan (num)' failed at jerryscript/jerry-core/ecma/base/ecma-helpers-number.cpp(ecma_number_is_zero):370.
Error: ERR_FAILED_INTERNAL_ASSERTION
[Inferior 1 (process 19644) exited with code 0170]
(gdb) bt
#0 ecma_number_is_zero (num=nan(0x8000000000001)) at jerryscript/jerry-core/ecma/base/ecma-helpers-number.cpp:370
#1 0x000000000046e626 in ecma_op_same_value (x=565, y=129) at jerryscript/jerry-core/ecma/operations/ecma-conversion.cpp:123
#2 0x000000000046d0bb in ecma_op_general_object_define_own_property (obj_p=0x7eb758 <_ZL13mem_heap_area.4015+24>, property_name_p=0x7fffffffd330,
property_desc_p=0x7fffffffd060, is_throw=false) at jerryscript/jerry-core/ecma/operations/ecma-objects-general.cpp:669
#3 0x000000000047cf59 in ecma_op_object_define_own_property (obj_p=0x7eb758 <_ZL13mem_heap_area.4015+24>, property_name_p=0x7fffffffd330,
property_desc_p=0x7fffffffd060, is_throw=false) at jerryscript/jerry-core/ecma/operations/ecma-objects.cpp:443
#4 0x000000000046b909 in ecma_op_general_object_put (obj_p=0x7eb758 <_ZL13mem_heap_area.4015+24>, property_name_p=0x7fffffffd330, value=565,
is_throw=false) at jerryscript/jerry-core/ecma/operations/ecma-objects-general.cpp:277
#5 0x000000000047cc66 in ecma_op_object_put (obj_p=0x7eb758 <_ZL13mem_heap_area.4015+24>, property_name_p=0x7fffffffd330, value=565, is_throw=false)
at jerryscript/jerry-core/ecma/operations/ecma-objects.cpp:273
#6 0x000000000047a15d in ecma_op_set_mutable_binding (lex_env_p=0x7eb770 <_ZL13mem_heap_area.4015+48>, name_p=0x7fffffffd330, value=565,
is_strict=false) at jerryscript/jerry-core/ecma/operations/ecma-lex-env.cpp:258
#7 0x000000000047dc94 in ecma_op_put_value_lex_env_base (ref_base_lex_env_p=0x7eb770 <_ZL13mem_heap_area.4015+48>, var_name_string_p=0x7fffffffd330,
is_strict=false, value=565) at jerryscript/jerry-core/ecma/operations/ecma-get-put-value.cpp:174
#8 0x00000000004b47ab in set_variable_value (int_data=0x7fffffffd560, lit_oc=17, var_idx=3 '\003', value=565)
at jerryscript/jerry-core/vm/opcodes-helpers-variables.cpp:177
#9 0x000000000045fdeb in opfunc_assignment (opdata=..., int_data=0x7fffffffd560) at jerryscript/jerry-core/vm/opcodes.cpp:122
#10 0x00000000004c1a11 in vm_loop (int_data=0x7fffffffd560) at jerryscript/jerry-core/vm/vm.cpp:452
#11 0x00000000004b86e5 in vm_run_from_pos (start_pos=1, this_binding_value=15, lex_env_p=0x7eb770 <_ZL13mem_heap_area.4015+48>, is_strict=false,
is_eval_code=false) at jerryscript/jerry-core/vm/vm.cpp:528
#12 0x00000000004c17df in vm_run_global () at jerryscript/jerry-core/vm/vm.cpp:383
#13 0x00000000004bf487 in jerry_run () at jerryscript/jerry-core/jerry.cpp:1243
#14 0x00000000004bdab6 in main (argc=2, argv=0x7fffffffd908) at jerryscript/main-linux.cpp:248
```
| Assertion '!ecma_number_is_nan (num)' failed in ecma_number_is_zero | https://api.github.com/repos/jerryscript-project/jerryscript/issues/130/comments | 1 | 2015-05-29T08:57:33Z | 2016-11-25T06:26:28Z | https://github.com/jerryscript-project/jerryscript/issues/130 | 82,340,259 | 130 |
[
"jerryscript-project",
"jerryscript"
] | ###### Jerry version:
```
Checked revision: 77df022
Build: debug.linux
```
###### OS:
```
Ubuntu 14.04, x86_64
```
###### Test case:
``` javascript
do {
return null;
} while (false);
```
###### Backtrace:
``` javascript
ICE: Assertion 'ecma_is_completion_value_throw (completion)' failed at jerryscript/jerry-core/vm/vm.cpp(vm_run_global):400.
Error: ERR_FAILED_INTERNAL_ASSERTION
[Inferior 1 (process 18935) exited with code 0170]
(gdb) bt
#0 vm_run_global () at jerryscript/jerry-core/vm/vm.cpp:400
#1 0x00000000004bf487 in jerry_run () at jerryscript/jerry-core/jerry.cpp:1243
#2 0x00000000004bdab6 in main (argc=2, argv=0x7fffffffd908) at jerryscript/main-linux.cpp:248
```
| Assertion 'ecma_is_completion_value_throw (completion)' failed in vm_run_global | https://api.github.com/repos/jerryscript-project/jerryscript/issues/129/comments | 2 | 2015-05-29T08:43:26Z | 2016-11-25T06:26:27Z | https://github.com/jerryscript-project/jerryscript/issues/129 | 82,335,669 | 129 |