Skip to content

Assertion 'ecma_string_get_length (string_p) > ECMA_STRING_MAGIC_STRING_LENGTH_LIMIT || !ecma_is_string_magic_longpath failed in ecma_is_string_magic #113

Closed
@renatahodovan

Description

@renatahodovan
Jerry version:
Checked revision: aaeec7f
Build: debug.linux
OS:
Ubuntu 14.04, x86_64
Test case:
v_1 = [];
v_1 * v_1[v_1 % v_1];
Backtrace:
ICE: Assertion 'ecma_string_get_length (string_p) > ECMA_STRING_MAGIC_STRING_LENGTH_LIMIT || !ecma_is_string_magic_longpath (string_p, out_id_p)' failed at jerryscript/jerry-core/ecma/base/ecma-helpers-string.cpp(ecma_is_string_magic):1698.
Error: ERR_FAILED_INTERNAL_ASSERTION
[Inferior 1 (process 11070) exited with code 0170]
(gdb) bt
#0  ecma_is_string_magic (string_p=0x7e9a80 <_ZL13mem_heap_area.4015+832>, out_id_p=0x7fffffffcfb8)
    at jerryscript/jerry-core/ecma/base/ecma-helpers-string.cpp:1697
#1  0x0000000000445127 in ecma_builtin_array_prototype_try_to_instantiate_property (obj_p=0x7e9798 <_ZL13mem_heap_area.4015+88>, 
    prop_name_p=0x7e9a80 <_ZL13mem_heap_area.4015+832>)
    at jerryscript/jerry-core/ecma/builtin-objects/ecma-builtin-internal-routines-template.inc.h:112
#2  0x00000000004a82c9 in ecma_builtin_try_to_instantiate_property (object_p=0x7e9798 <_ZL13mem_heap_area.4015+88>, 
    string_p=0x7e9a80 <_ZL13mem_heap_area.4015+832>) at jerryscript/jerry-core/ecma/builtin-objects/ecma-builtins.inc.h:39
#3  0x000000000047aaf2 in ecma_op_object_get_own_property_longpath (obj_p=0x7e9798 <_ZL13mem_heap_area.4015+88>, 
    property_name_p=0x7e9a80 <_ZL13mem_heap_area.4015+832>) at jerryscript/jerry-core/ecma/operations/ecma-objects.cpp:156
#4  0x000000000047ad19 in ecma_op_object_get_own_property (obj_p=0x7e9798 <_ZL13mem_heap_area.4015+88>, 
    property_name_p=0x7e9a80 <_ZL13mem_heap_area.4015+832>) at jerryscript/jerry-core/ecma/operations/ecma-objects.cpp:188
#5  0x000000000046a72c in ecma_op_general_object_get_property (obj_p=0x7e9798 <_ZL13mem_heap_area.4015+88>, 
    property_name_p=0x7e9a80 <_ZL13mem_heap_area.4015+832>)
    at jerryscript/jerry-core/ecma/operations/ecma-objects-general.cpp:202
#6  0x000000000047adc4 in ecma_op_object_get_property (obj_p=0x7e9798 <_ZL13mem_heap_area.4015+88>, 
    property_name_p=0x7e9a80 <_ZL13mem_heap_area.4015+832>) at jerryscript/jerry-core/ecma/operations/ecma-objects.cpp:230
#7  0x000000000046a767 in ecma_op_general_object_get_property (obj_p=0x7e97b0 <_ZL13mem_heap_area.4015+112>, 
    property_name_p=0x7e9a80 <_ZL13mem_heap_area.4015+832>)
    at jerryscript/jerry-core/ecma/operations/ecma-objects-general.cpp:216
#8  0x000000000047adc4 in ecma_op_object_get_property (obj_p=0x7e97b0 <_ZL13mem_heap_area.4015+112>, 
    property_name_p=0x7e9a80 <_ZL13mem_heap_area.4015+832>) at jerryscript/jerry-core/ecma/operations/ecma-objects.cpp:230
#9  0x000000000046a23c in ecma_op_general_object_get (obj_p=0x7e97b0 <_ZL13mem_heap_area.4015+112>, 
    property_name_p=0x7e9a80 <_ZL13mem_heap_area.4015+832>)
    at jerryscript/jerry-core/ecma/operations/ecma-objects-general.cpp:126
#10 0x000000000047a9d5 in ecma_op_object_get (obj_p=0x7e97b0 <_ZL13mem_heap_area.4015+112>, property_name_p=0x7e9a80 <_ZL13mem_heap_area.4015+832>)
    at jerryscript/jerry-core/ecma/operations/ecma-objects.cpp:83
#11 0x000000000047b55e in ecma_op_get_value_object_base (ref=...)
    at jerryscript/jerry-core/ecma/operations/ecma-get-put-value.cpp:101
#12 0x0000000000452cd5 in opfunc_prop_getter (opdata=..., int_data=0x7fffffffd590) at jerryscript/jerry-core/vm/opcodes.cpp:1115
#13 0x00000000004bfa60 in run_int_loop (int_data=0x7fffffffd590) at jerryscript/jerry-core/vm/vm.cpp:440
#14 0x00000000004b678d in run_int_from_pos (start_pos=0, this_binding_value=15, lex_env_p=0x7e9770 <_ZL13mem_heap_area.4015+48>, is_strict=false, 
    is_eval_code=false) at jerryscript/jerry-core/vm/vm.cpp:513
#15 0x00000000004bf82e in run_int () at jerryscript/jerry-core/vm/vm.cpp:381
#16 0x00000000004bd4d0 in jerry_run () at jerryscript/jerry-core/jerry.cpp:1243
#17 0x00000000004bbaff in main (argc=2, argv=0x7fffffffd938) at jerryscript/main-linux.cpp:248

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