Skip to content

Assertion 'is_current_accessor_descriptor' failed in ecma_op_general_object_define_own_property #132

Closed
@renatahodovan

Description

@renatahodovan
Jerry version:
Checked revision: 77df022
Build: debug.linux
OS:
Ubuntu 14.04, x86_64
Test case:
v_0 = [,];
v_1 = [,];
v_2 = Object.defineProperties([,], { '0': {  get: function() { } } });
function f_0() {}
Backtrace:
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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugUndesired behaviourecma coreRelated to core ECMA functionalitynormal

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions