Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Assertion 'STACK_ELEMENT (props, i).type == VARG' failed in syntax_check_for_syntax_errors_in_formal_param_list #359

Closed
renatahodovan opened this issue Jul 10, 2015 · 1 comment
Labels
bug Undesired behaviour

Comments

@renatahodovan
Copy link
Contributor

Jerry version:
Checked revision: 9b24d8f
Build: debug.linux
OS:
Ubuntu 15.04, x86_64
Test case:
function f_0(a_0) {
    "use strict";
    Object.freeze({a: "foo"});
}
Backtrace:
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
@egavrin
Copy link
Contributor

egavrin commented Nov 19, 2015

Works on master (f17f785)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Undesired behaviour
Projects
None yet
Development

No branches or pull requests

2 participants