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_get_value_type_field (value) == ECMA_TYPE_OBJECT' failed in ecma_get_object_from_value #316

Closed
renatahodovan opened this issue Jul 6, 2015 · 1 comment
Labels
bug Undesired behaviour ecma builtins Related to ECMA built-in routines
Milestone

Comments

@renatahodovan
Copy link
Contributor

Jerry version:
Checked revision: 4e5e7bb
Build: debug.linux
OS:
Ubuntu 14.10, x86_64
Test case:
v_1 = RegExp.prototype.test;
v_1(ReferenceError);
Backtrace:
ICE: Assertion 'ecma_get_value_type_field (value) == ECMA_TYPE_OBJECT' failed at jerryscript/jerry-core/ecma/base/ecma-helpers-value.cpp(ecma_get_object_from_value):316.
Error: ERR_FAILED_INTERNAL_ASSERTION

Program received signal SIGABRT, Aborted.
0x000000000048edab in syscall_2_asm () at jerryscript/jerry-libc/target/linux/jerry-asm.S:32
32    SYSCALL_2
(gdb) bt
#0  0x000000000048edab in syscall_2_asm () at jerryscript/jerry-libc/target/linux/jerry-asm.S:32
#1  0x00000000004003c2 in syscall_2 (syscall_no=62, arg1=30890, arg2=6) at jerryscript/jerry-libc/target/linux/jerry-libc-target.c:96
#2  0x0000000000400563 in abort () at jerryscript/jerry-libc/target/linux/jerry-libc-target.c:175
#3  0x000000000043f5da in jerry_fatal (code=ERR_FAILED_INTERNAL_ASSERTION) at jerryscript/jerry-core/jrt/jrt-fatals.cpp:65
#4  0x000000000043f629 in jerry_assert_fail (assertion=0x4a5a28 "ecma_get_value_type_field (value) == ECMA_TYPE_OBJECT", 
    file=0x4a5880 "jerryscript/jerry-core/ecma/base/ecma-helpers-value.cpp", 
    function=0x493a90 <_ZZ26ecma_get_object_from_valuejE8__func__.lto_priv.624> "ecma_get_object_from_value", line=316)
    at jerryscript/jerry-core/jrt/jrt-fatals.cpp:92
#5  0x000000000045b274 in ecma_get_object_from_value (value=4) at jerryscript/jerry-core/ecma/base/ecma-helpers-value.cpp:316
#6  0x000000000042a7e8 in ecma_builtin_regexp_prototype_exec (this_arg=4, arg=303)
    at jerryscript/jerry-core/ecma/builtin-objects/ecma-builtin-regexp-prototype.cpp:61
#7  0x000000000042aaf0 in ecma_builtin_regexp_prototype_test (this_arg=4, arg=303)
    at jerryscript/jerry-core/ecma/builtin-objects/ecma-builtin-regexp-prototype.cpp:116
#8  0x000000000042a79f in ecma_builtin_regexp_prototype_dispatch_routine (builtin_routine_id=194, this_arg_value=4, 
    arguments_list=0x7feb10 <_ZL13mem_heap_area.lto_priv.1003+262032>, arguments_number=1)
    at jerryscript/jerry-core/ecma/builtin-objects/ecma-builtin-regexp-prototype.inc.h:43
#9  0x000000000047e716 in ecma_builtin_dispatch_routine (builtin_object_id=ECMA_BUILTIN_ID_REGEXP_PROTOTYPE, builtin_routine_id=194, this_arg_value=4, 
    arguments_list=0x7feb10 <_ZL13mem_heap_area.lto_priv.1003+262032>, arguments_number=1)
    at jerryscript/jerry-core/ecma/builtin-objects/ecma-builtins.inc.h:153
#10 0x000000000047dd15 in ecma_builtin_dispatch_call (obj_p=0x7bec88 <_ZL13mem_heap_area.lto_priv.1003+264>, this_arg_value=4, 
    arguments_list_p=0x7feb10 <_ZL13mem_heap_area.lto_priv.1003+262032>, arguments_list_len=1)
    at jerryscript/jerry-core/ecma/builtin-objects/ecma-builtins.cpp:414
#11 0x000000000045155f in ecma_op_function_call (func_obj_p=0x7bec88 <_ZL13mem_heap_area.lto_priv.1003+264>, this_arg_value=4, 
    arguments_list_p=0x7feb10 <_ZL13mem_heap_area.lto_priv.1003+262032>, arguments_list_len=1)
    at jerryscript/jerry-core/ecma/operations/ecma-function-object.cpp:714
#12 0x000000000043a079 in opfunc_call_n (opdata=..., int_data=0x7fffffffd520) at jerryscript/jerry-core/vm/opcodes.cpp:817
#13 0x0000000000485d08 in vm_loop (int_data_p=0x7fffffffd520, run_scope_p=0x0) at jerryscript/jerry-core/vm/vm.cpp:466
#14 0x0000000000485f95 in vm_run_from_pos (opcodes_p=0x7bed18 <_ZL13mem_heap_area.lto_priv.1003+408>, start_pos=1, this_binding_value=23, 
    lex_env_p=0x7bebb8 <_ZL13mem_heap_area.lto_priv.1003+56>, is_strict=false, is_eval_code=false)
    at jerryscript/jerry-core/vm/vm.cpp:556
#15 0x0000000000485b72 in vm_run_global () at jerryscript/jerry-core/vm/vm.cpp:395
#16 0x000000000048e5af in jerry_run () at jerryscript/jerry-core/jerry.cpp:1373
#17 0x000000000048d18e in main (argc=3, argv=0x7fffffffd8e8) at jerryscript/main-linux.cpp:291
@LaszloLango LaszloLango added bug Undesired behaviour ecma builtins Related to ECMA built-in routines labels Jul 9, 2015
@LaszloLango LaszloLango added this to the ECMA builtins milestone Jul 9, 2015
@LaszloLango LaszloLango self-assigned this Jul 9, 2015
LaszloLango added a commit to LaszloLango/jerryscript that referenced this issue Aug 6, 2015
Related issue: jerryscript-project#316

JerryScript-DCO-1.0-Signed-off-by: László Langó [email protected]
@galpeter
Copy link
Contributor

galpeter commented Aug 7, 2015

Closing as fix was landed into master

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

No branches or pull requests

3 participants