jerryscript-project / jerryscript

Ultra-lightweight JavaScript engine for the Internet of Things.
https://jerryscript.net
Apache License 2.0
6.92k stars 669 forks source link

Assertion 'property_p != NULL' failed in ecma_get_internal_property #312

Closed renatahodovan closed 9 years ago

renatahodovan commented 9 years ago
Jerry version:
Checked revision: 4e5e7bb
Build: debug.linux
OS:
Ubuntu 14.10, x86_64
Test case:
RegExp.prototype.exec(10);
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

Program received signal SIGABRT, Aborted.
0x0000000000498fbe in syscall_2_asm () at jerryscript/jerry-libc/target/linux/jerry-asm.S:32
32    SYSCALL_2
(gdb) bt
#0  0x0000000000498fbe in syscall_2_asm () at jerryscript/jerry-libc/target/linux/jerry-asm.S:32
#1  0x00000000004003c2 in syscall_2 (syscall_no=62, arg1=13388, 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  0x000000000044788f in jerry_fatal (code=ERR_FAILED_INTERNAL_ASSERTION) at jerryscript/jerry-core/jrt/jrt-fatals.cpp:65
#4  0x00000000004478de in jerry_assert_fail (assertion=0x4b1ad4 "property_p != NULL", 
    file=0x4b16e0 "jerryscript/jerry-core/ecma/base/ecma-helpers.cpp", 
    function=0x49dcc0 <_ZZ26ecma_get_internal_propertyP13ecma_object_t27ecma_internal_property_id_tE8__func__.lto_priv.722> "ecma_get_internal_property", 
    line=492) at jerryscript/jerry-core/jrt/jrt-fatals.cpp:92
#5  0x0000000000460b80 in ecma_get_internal_property (object_p=0x7cdcd0 <_ZL13mem_heap_area.lto_priv.1129+8528>, 
    property_id=ECMA_INTERNAL_PROPERTY_REGEXP_BYTECODE) at jerryscript/jerry-core/ecma/base/ecma-helpers.cpp:492
#6  0x000000000042aa81 in ecma_builtin_regexp_prototype_exec (this_arg=4267, arg=6205)
    at jerryscript/jerry-core/ecma/builtin-objects/ecma-builtin-regexp-prototype.cpp:70
#7  0x000000000042a92f in ecma_builtin_regexp_prototype_dispatch_routine (builtin_routine_id=193, this_arg_value=4267, 
    arguments_list=0x80bb10 <_ZL13mem_heap_area.lto_priv.1129+262032>, arguments_number=1)
    at jerryscript/jerry-core/ecma/builtin-objects/ecma-builtin-regexp-prototype.inc.h:42
#8  0x0000000000487e20 in ecma_builtin_dispatch_routine (builtin_object_id=ECMA_BUILTIN_ID_REGEXP_PROTOTYPE, builtin_routine_id=193, this_arg_value=4267, 
    arguments_list=0x80bb10 <_ZL13mem_heap_area.lto_priv.1129+262032>, arguments_number=1)
    at jerryscript/jerry-core/ecma/builtin-objects/ecma-builtins.inc.h:153
#9  0x000000000048741f in ecma_builtin_dispatch_call (obj_p=0x7cdd30 <_ZL13mem_heap_area.lto_priv.1129+8624>, this_arg_value=4267, 
    arguments_list_p=0x80bb10 <_ZL13mem_heap_area.lto_priv.1129+262032>, arguments_list_len=1)
    at jerryscript/jerry-core/ecma/builtin-objects/ecma-builtins.cpp:419
#10 0x000000000044f95c in ecma_op_function_call (func_obj_p=0x7cdd30 <_ZL13mem_heap_area.lto_priv.1129+8624>, this_arg_value=4267, 
    arguments_list_p=0x80bb10 <_ZL13mem_heap_area.lto_priv.1129+262032>, arguments_list_len=1)
    at jerryscript/jerry-core/ecma/operations/ecma-function-object.cpp:714
#11 0x0000000000443ace in opfunc_call_n (opdata=..., int_data=0x7fffffffd530) at jerryscript/jerry-core/vm/opcodes.cpp:817
#12 0x0000000000496863 in vm_loop (int_data_p=0x7fffffffd530, run_scope_p=0x0) at jerryscript/jerry-core/vm/vm.cpp:466
#13 0x000000000048f8b1 in vm_run_from_pos (opcodes_p=0x7ceb58 <_ZL13mem_heap_area.lto_priv.1129+12248>, start_pos=1, this_binding_value=835, 
    lex_env_p=0x7ceaa8 <_ZL13mem_heap_area.lto_priv.1129+12072>, is_strict=false, is_eval_code=false)
    at jerryscript/jerry-core/vm/vm.cpp:556
#14 0x00000000004966cd in vm_run_global () at jerryscript/jerry-core/vm/vm.cpp:395
#15 0x0000000000498403 in jerry_run () at jerryscript/jerry-core/jerry.cpp:1373
#16 0x0000000000496fe2 in main (argc=3, argv=0x7fffffffd8f8) at jerryscript/main-linux.cpp:291
galpeter commented 9 years ago

Closing as fix was landed to master