Closed
Description
Jerry version:
Checked revision: 06dffde
Build: debug.linux
OS:
Ubuntu 14.10, x86_64
Test case:
new RegExp("]");
Backtrace:
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