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

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 opened this issue May 28, 2015 · 2 comments
Labels
bug Undesired behaviour ecma core Related to core ECMA functionality normal

Comments

@renatahodovan
Copy link
Contributor

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
@ruben-ayrapetyan ruben-ayrapetyan self-assigned this May 28, 2015
@ruben-ayrapetyan ruben-ayrapetyan added this to the Core ECMA features milestone May 28, 2015
@ruben-ayrapetyan ruben-ayrapetyan added bug Undesired behaviour normal ecma core Related to core ECMA functionality labels May 28, 2015
ruben-ayrapetyan added a commit that referenced this issue May 28, 2015
…reate is equal to a magic string, and, if so, to invoke corresponding magic string construction.

Related issue: #113

JerryScript-DCO-1.0-Signed-off-by: Ruben Ayrapetyan r.ayrapetyan@samsung.com
ruben-ayrapetyan added a commit that referenced this issue May 28, 2015
…reate is equal to a magic string, and, if so, to invoke corresponding magic string construction.

Related issue: #113

JerryScript-DCO-1.0-Signed-off-by: Ruben Ayrapetyan r.ayrapetyan@samsung.com
@ruben-ayrapetyan
Copy link
Contributor

Issue is caused by creating ecma-string with 'number' container type, that is equal to one of magic strings.
#127

ruben-ayrapetyan added a commit that referenced this issue May 29, 2015
…reate is equal to a magic string, and, if so, to invoke corresponding magic string construction.

Related issue: #113

JerryScript-DCO-1.0-Signed-off-by: Ruben Ayrapetyan r.ayrapetyan@samsung.com
@ruben-ayrapetyan
Copy link
Contributor

Fixed (pull request 127, bc7c28c).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Undesired behaviour ecma core Related to core ECMA functionality normal
Projects
None yet
Development

No branches or pull requests

2 participants