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 'property_p != NULL' failed in ecma_get_internal_property #112

Closed
renatahodovan opened this issue May 28, 2015 · 2 comments
Closed
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:
Math.cos + 1;
Backtrace:
ICE: Assertion 'property_p != NULL' failed at jerryscript/jerry-core/ecma/base/ecma-helpers.cpp(ecma_get_internal_property):492.
Error: ERR_FAILED_INTERNAL_ASSERTION
[Inferior 1 (process 9984) exited with code 0170]
(gdb) bt
#0  ecma_get_internal_property (object_p=0x7e97f8 <_ZL13mem_heap_area.4015+184>, property_id=ECMA_INTERNAL_PROPERTY_CLASS)
    at jerryscript/jerry-core/ecma/base/ecma-helpers.cpp:492
#1  0x000000000046b807 in ecma_op_general_object_default_value (obj_p=0x7e97f8 <_ZL13mem_heap_area.4015+184>, hint=ECMA_PREFERRED_TYPE_NO)
    at jerryscript/jerry-core/ecma/operations/ecma-objects-general.cpp:507
#2  0x000000000047b0a1 in ecma_op_object_default_value (obj_p=0x7e97f8 <_ZL13mem_heap_area.4015+184>, hint=ECMA_PREFERRED_TYPE_NO)
    at jerryscript/jerry-core/ecma/operations/ecma-objects.cpp:404
#3  0x000000000046c9d4 in ecma_op_to_primitive (value=95, preferred_type=ECMA_PREFERRED_TYPE_NO)
    at jerryscript/jerry-core/ecma/operations/ecma-conversion.cpp:169
#4  0x00000000004ac9c8 in opfunc_addition (opdata=..., int_data=0x7fffffffd570)
    at jerryscript/jerry-core/vm/opcodes-ecma-arithmetics.cpp:117
#5  0x00000000004bfa60 in run_int_loop (int_data=0x7fffffffd570) at jerryscript/jerry-core/vm/vm.cpp:440
#6  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
#7  0x00000000004bf82e in run_int () at jerryscript/jerry-core/vm/vm.cpp:381
#8  0x00000000004bd4d0 in jerry_run () at jerryscript/jerry-core/jerry.cpp:1243
#9  0x00000000004bbaff in main (argc=2, argv=0x7fffffffd918) at jerryscript/main-linux.cpp:248
CC: @ruben-ayrapetyan
@ruben-ayrapetyan
Copy link
Contributor

Issue is caused by absence of [[Class]] internal property instantiation for built-in function objects.
#126

After fixing the issue, the Math.cos + 1; test still doesn't complete successfully, because Function.prototype.toString is not implemented yet.

ruben-ayrapetyan added a commit that referenced this issue May 28, 2015
…s, optimizing memory related to [[Class]] property.

 - introduced ecma_object_get_class_name interface;
 - removed creation of [[Class]] internal property for types of objects that unambiguously determine the [[Class]] value.

Related issue: #112

JerryScript-DCO-1.0-Signed-off-by: Ruben Ayrapetyan [email protected]
ruben-ayrapetyan added a commit that referenced this issue May 28, 2015
…s, optimizing memory related to [[Class]] property.

 - introduced ecma_object_get_class_name interface;
 - removed creation of [[Class]] internal property for types of objects that unambiguously determine the [[Class]] value.

Related issue: #112

JerryScript-DCO-1.0-Signed-off-by: Ruben Ayrapetyan [email protected]
ruben-ayrapetyan added a commit that referenced this issue May 29, 2015
…s, optimizing memory related to [[Class]] property.

 - introduced ecma_object_get_class_name interface;
 - removed creation of [[Class]] internal property for types of objects that unambiguously determine the [[Class]] value.

Related issue: #112

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

Fixed (pull request 126, da7e9d9).

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
2 participants