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

Unreachable control path at lexer_token_type_to_string #284

Closed
renatahodovan opened this issue Jun 30, 2015 · 0 comments
Closed

Unreachable control path at lexer_token_type_to_string #284

renatahodovan opened this issue Jun 30, 2015 · 0 comments
Labels
bug Undesired behaviour
Milestone

Comments

@renatahodovan
Copy link
Contributor

Jerry version:
Checked revision: ec02ace
Build: debug.linux
OS:
Ubuntu 14.10, x86_64
Test case:
v_0 = {a: Math, /[]/ };
Backtrace:
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
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

4 participants