jerryscript
jerryscript copied to clipboard
Assertion 'ECMA_PROPERTY_GET_TYPE (prop_p) == ECMA_PROPERTY_TYPE_NAMEDDATA' failed in re_initialize_props
Jerry version:
Checked revision: 7cf8b79
Build: debug.linux
OS:
Ubuntu 15.10, x86_64
Test case:
new (new (new RegExp().constructor)().constructor)().constructor.prototype.toString()
RegExp().constructor().constructor.prototype.compile(RegExp.prototype)
Backtrace:
ICE: Assertion 'ECMA_PROPERTY_GET_TYPE (prop_p) == ECMA_PROPERTY_TYPE_NAMEDDATA' failed at jerryscript/jerry-core/ecma/operations/ecma-regexp-object.c(re_initialize_props):219.
Error: ERR_FAILED_INTERNAL_ASSERTION
Program received signal SIGABRT, Aborted.
0x0000000000485af2 in syscall_2 () at jerryscript/jerry-libc/target/posix/jerry-asm.S:60
60 SYSCALL_2
(gdb) bt
#0 0x0000000000485af2 in syscall_2 () at jerryscript/jerry-libc/target/posix/jerry-asm.S:60
#1 0x000000000040037f in raise (sig=6) at jerryscript/jerry-libc/target/posix/jerry-libc-target.c:92
#2 0x0000000000400351 in abort () at jerryscript/jerry-libc/target/posix/jerry-libc-target.c:78
#3 0x000000000041d3fd in jerry_port_fatal (code=ERR_FAILED_INTERNAL_ASSERTION)
at jerryscript/targets/default/jerry-port-default-fatal.c:54
#4 0x000000000041d03e in jerry_fatal (code=ERR_FAILED_INTERNAL_ASSERTION) at jerryscript/jerry-core/jrt/jrt-fatals.c:68
#5 0x000000000041d085 in jerry_assert_fail (assertion=0x49a430 "ECMA_PROPERTY_GET_TYPE (prop_p) == ECMA_PROPERTY_TYPE_NAMEDDATA",
file=0x49a3a0 "jerryscript/jerry-core/ecma/operations/ecma-regexp-object.c",
function=0x48d570 <__func__.4119.lto_priv.364> "re_initialize_props", line=219)
at jerryscript/jerry-core/jrt/jrt-fatals.c:95
#6 0x000000000042eb8e in re_initialize_props (re_obj_p=0x8b3148 <mem_heap+200>, source_p=0x8b34b0 <mem_heap+1072>, flags=0)
at jerryscript/jerry-core/ecma/operations/ecma-regexp-object.c:219
#7 0x0000000000476019 in ecma_builtin_regexp_prototype_compile (this_arg=203, pattern_arg=203, flags_arg=8)
at jerryscript/jerry-core/ecma/builtin-objects/ecma-builtin-regexp-prototype.c:149
#8 0x0000000000475be4 in ecma_builtin_regexp_prototype_dispatch_routine (builtin_routine_id=201, this_arg_value=203, arguments_list=0x7fffffffcb3c,
arguments_number=1) at jerryscript/jerry-core/ecma/builtin-objects/ecma-builtin-regexp-prototype.inc.h:90
#9 0x0000000000474d45 in ecma_builtin_dispatch_routine (builtin_object_id=ECMA_BUILTIN_ID_REGEXP_PROTOTYPE, builtin_routine_id=201, this_arg_value=203,
arguments_list=0x7fffffffcb3c, arguments_number=1)
at jerryscript/jerry-core/ecma/builtin-objects/ecma-builtins.inc.h:163
#10 0x000000000047458e in ecma_builtin_dispatch_call (obj_p=0x8b3608 <mem_heap+1416>, this_arg_value=203, arguments_list_p=0x7fffffffcb3c,
arguments_list_len=1) at jerryscript/jerry-core/ecma/builtin-objects/ecma-builtins.c:535
#11 0x000000000043a768 in ecma_op_function_call (func_obj_p=0x8b3608 <mem_heap+1416>, this_arg_value=203, arguments_list_p=0x7fffffffcb3c,
arguments_list_len=1) at jerryscript/jerry-core/ecma/operations/ecma-function-object.c:651
#12 0x0000000000480c47 in opfunc_call.lto_priv.784 (frame_ctx_p=0x7fffffffcbb0) at jerryscript/jerry-core/vm/vm.c:379
#13 0x0000000000476dce in vm_execute (frame_ctx_p=0x7fffffffcbb0, arg_p=0x0, arg_list_len=0)
at jerryscript/jerry-core/vm/vm.c:2431
#14 0x0000000000476e96 in vm_run_with_inline_stack (frame_ctx_p=0x7fffffffcbb0, arg_p=0x0, arg_list_len=1)
at jerryscript/jerry-core/vm/vm.c:2467
#15 0x000000000047707e in vm_run (bytecode_header_p=0x8b3248 <mem_heap+456>, this_binding_value=35, lex_env_p=0x8b30b8 <mem_heap+56>, is_eval_code=false,
arg_list_p=0x0, arg_list_len=1) at jerryscript/jerry-core/vm/vm.c:2541
#16 0x0000000000480880 in vm_run_global (error_value_p=0x7fffffffcc98) at jerryscript/jerry-core/vm/vm.c:190
#17 0x0000000000483e7c in jerry_run (error_value_p=0x7fffffffce30) at jerryscript/jerry-core/jerry.c:1759
#18 0x000000000048204e in main (argc=3, argv=0x7fffffffd328) at jerryscript/main-unix.c:511
Works on current master (97be8bf).