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_number_is_nan (num)' failed in ecma_number_is_zero #130

Closed
renatahodovan opened this issue May 29, 2015 · 1 comment
Closed
Labels
bug Undesired behaviour ecma core Related to core ECMA functionality normal

Comments

@renatahodovan
Copy link
Contributor

Jerry version:
Checked revision: 77df022
Build: debug.linux
OS:
Ubuntu 14.04, x86_64
Test case:
v_1 = Math.floor('\u3d52');
v_1 = Math.floor([]);
Backtrace:
ICE: Assertion '!ecma_number_is_nan (num)' failed at jerryscript/jerry-core/ecma/base/ecma-helpers-number.cpp(ecma_number_is_zero):370.
Error: ERR_FAILED_INTERNAL_ASSERTION
[Inferior 1 (process 19644) exited with code 0170]
(gdb) bt
#0  ecma_number_is_zero (num=nan(0x8000000000001)) at jerryscript/jerry-core/ecma/base/ecma-helpers-number.cpp:370
#1  0x000000000046e626 in ecma_op_same_value (x=565, y=129) at jerryscript/jerry-core/ecma/operations/ecma-conversion.cpp:123
#2  0x000000000046d0bb in ecma_op_general_object_define_own_property (obj_p=0x7eb758 <_ZL13mem_heap_area.4015+24>, property_name_p=0x7fffffffd330, 
    property_desc_p=0x7fffffffd060, is_throw=false) at jerryscript/jerry-core/ecma/operations/ecma-objects-general.cpp:669
#3  0x000000000047cf59 in ecma_op_object_define_own_property (obj_p=0x7eb758 <_ZL13mem_heap_area.4015+24>, property_name_p=0x7fffffffd330, 
    property_desc_p=0x7fffffffd060, is_throw=false) at jerryscript/jerry-core/ecma/operations/ecma-objects.cpp:443
#4  0x000000000046b909 in ecma_op_general_object_put (obj_p=0x7eb758 <_ZL13mem_heap_area.4015+24>, property_name_p=0x7fffffffd330, value=565, 
    is_throw=false) at jerryscript/jerry-core/ecma/operations/ecma-objects-general.cpp:277
#5  0x000000000047cc66 in ecma_op_object_put (obj_p=0x7eb758 <_ZL13mem_heap_area.4015+24>, property_name_p=0x7fffffffd330, value=565, is_throw=false)
    at jerryscript/jerry-core/ecma/operations/ecma-objects.cpp:273
#6  0x000000000047a15d in ecma_op_set_mutable_binding (lex_env_p=0x7eb770 <_ZL13mem_heap_area.4015+48>, name_p=0x7fffffffd330, value=565, 
    is_strict=false) at jerryscript/jerry-core/ecma/operations/ecma-lex-env.cpp:258
#7  0x000000000047dc94 in ecma_op_put_value_lex_env_base (ref_base_lex_env_p=0x7eb770 <_ZL13mem_heap_area.4015+48>, var_name_string_p=0x7fffffffd330, 
    is_strict=false, value=565) at jerryscript/jerry-core/ecma/operations/ecma-get-put-value.cpp:174
#8  0x00000000004b47ab in set_variable_value (int_data=0x7fffffffd560, lit_oc=17, var_idx=3 '\003', value=565)
    at jerryscript/jerry-core/vm/opcodes-helpers-variables.cpp:177
#9  0x000000000045fdeb in opfunc_assignment (opdata=..., int_data=0x7fffffffd560) at jerryscript/jerry-core/vm/opcodes.cpp:122
#10 0x00000000004c1a11 in vm_loop (int_data=0x7fffffffd560) at jerryscript/jerry-core/vm/vm.cpp:452
#11 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
#12 0x00000000004c17df in vm_run_global () at jerryscript/jerry-core/vm/vm.cpp:383
#13 0x00000000004bf487 in jerry_run () at jerryscript/jerry-core/jerry.cpp:1243
#14 0x00000000004bdab6 in main (argc=2, argv=0x7fffffffd908) at jerryscript/main-linux.cpp:248
@ruben-ayrapetyan ruben-ayrapetyan added bug Undesired behaviour normal ecma core Related to core ECMA functionality labels May 29, 2015
@ruben-ayrapetyan ruben-ayrapetyan added this to the Core ECMA features milestone May 29, 2015
@ruben-ayrapetyan ruben-ayrapetyan self-assigned this May 29, 2015
ruben-ayrapetyan added a commit that referenced this issue Jul 10, 2015
Related issue: #130

JerryScript-DCO-1.0-Signed-off-by: Ruben Ayrapetyan [email protected]
ruben-ayrapetyan added a commit that referenced this issue Jul 10, 2015
Related issue: #130

JerryScript-DCO-1.0-Signed-off-by: Ruben Ayrapetyan [email protected]
ruben-ayrapetyan added a commit that referenced this issue Jul 13, 2015
Related issue: #130

JerryScript-DCO-1.0-Signed-off-by: Ruben Ayrapetyan [email protected]
ruben-ayrapetyan added a commit that referenced this issue Jul 13, 2015
Related issue: #130

JerryScript-DCO-1.0-Signed-off-by: Ruben Ayrapetyan [email protected]
LaszloLango pushed a commit to LaszloLango/jerryscript that referenced this issue Jul 14, 2015
Related issue: jerryscript-project#130

JerryScript-DCO-1.0-Signed-off-by: Ruben Ayrapetyan [email protected]
@galpeter
Copy link
Contributor

It works for me now, closing.

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

4 participants