Skip to content

Assertion 'compressed_pointer != MEM_CP_NULL' failed in mem_heap_decompress_pointer #612

Closed
@renatahodovan

Description

@renatahodovan
Jerry version:
Checked revision: a26c454
Build: debug.linux
OS:
Ubuntu 15.04, x86_64
Test case:
RegExp.prototype.compile([]);
Backtrace:
ICE: Assertion 'compressed_pointer != MEM_CP_NULL' failed at jerryscript/jerry-core/mem/mem-heap.cpp(mem_heap_decompress_pointer):777.
Error: ERR_FAILED_INTERNAL_ASSERTION

Program received signal SIGABRT, Aborted.
0x00000000004a9c8c in syscall_2_asm () at jerryscript/jerry-libc/target/linux/jerry-asm.S:32
32    SYSCALL_2
(gdb) bt
#0  0x00000000004a9c8c in syscall_2_asm () at jerryscript/jerry-libc/target/linux/jerry-asm.S:32
#1  0x00000000004003c2 in syscall_2 (syscall_no=62, arg1=8837, 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  0x000000000043a3e9 in jerry_fatal(jerry_fatal_code_t) (code=ERR_FAILED_INTERNAL_ASSERTION)
    at jerryscript/jerry-core/jrt/jrt-fatals.cpp:65
#4  0x000000000043a438 in jerry_assert_fail(char const*, char const*, char const*, unsigned int) (assertion=0x4ce020 "compressed_pointer != MEM_CP_NULL", 
    file=0x4cda28 "jerryscript/jerry-core/mem/mem-heap.cpp", 
    function=0x4aac30 <_ZZ27mem_heap_decompress_pointermE8__func__.lto_priv.1131> "mem_heap_decompress_pointer", line=777)
    at jerryscript/jerry-core/jrt/jrt-fatals.cpp:97
#5  0x00000000004a5089 in mem_heap_decompress_pointer (compressed_pointer=0) at jerryscript/jerry-core/mem/mem-heap.cpp:777
#6  0x00000000004a541b in mem_decompress_pointer (compressed_pointer=0) at jerryscript/jerry-core/mem/mem-allocator.cpp:102
#7  0x000000000041bb39 in ecma_builtin_regexp_prototype_compile (this_arg=711, pattern_arg=775, flags_arg=4)
    at jerryscript/jerry-core/ecma/builtin-objects/ecma-builtin-regexp-prototype.cpp:187
#8  0x000000000041b475 in ecma_builtin_regexp_prototype_dispatch_routine (builtin_routine_id=197, this_arg_value=711, 
    arguments_list=0x81d680 <mem_heap+258944>, arguments_number=1)
    at jerryscript/jerry-core/ecma/builtin-objects/ecma-builtin-regexp-prototype.inc.h:90
#9  0x000000000049cb53 in ecma_builtin_dispatch_routine (builtin_object_id=ECMA_BUILTIN_ID_REGEXP_PROTOTYPE, builtin_routine_id=197, this_arg_value=711, 
    arguments_list=0x81d680 <mem_heap+258944>, arguments_number=1) at jerryscript/jerry-core/ecma/builtin-objects/ecma-builtins.inc.h:163
#10 0x000000000049c23f in ecma_builtin_dispatch_call (obj_p=0x7de8b8 <mem_heap+1464>, this_arg_value=711, arg_collection_p=0x7de8e8 <mem_heap+1512>)
    at jerryscript/jerry-core/ecma/builtin-objects/ecma-builtins.cpp:438
#11 0x000000000044f149 in ecma_op_function_call (func_obj_p=0x7de8b8 <mem_heap+1464>, this_arg_value=711, arg_collection_p=0x7de8e8 <mem_heap+1512>)
    at jerryscript/jerry-core/ecma/operations/ecma-function-object.cpp:794
#12 0x00000000004325ef in opfunc_call_n (instr=..., frame_ctx_p=0x7fffffffd530) at jerryscript/jerry-core/vm/opcodes.cpp:820
#13 0x00000000004a603d in vm_loop (frame_ctx_p=0x7fffffffd530, run_scope_p=0x0) at jerryscript/jerry-core/vm/vm.cpp:484
#14 0x00000000004a62d6 in vm_run_from_pos (instrs_p=0x7de7c8 <mem_heap+1224>, start_pos=1, this_binding_value=523, lex_env_p=0x7de720 <mem_heap+1056>, 
    is_strict=false, is_eval_code=false) at jerryscript/jerry-core/vm/vm.cpp:575
#15 0x00000000004a5ea7 in vm_run_global () at jerryscript/jerry-core/vm/vm.cpp:413
#16 0x00000000004a9219 in jerry_run () at jerryscript/jerry-core/jerry.cpp:1445
#17 0x00000000004a7bd2 in main (argc=3, argv=0x7fffffffd8f8) at jerryscript/main-linux.cpp:295

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugUndesired behaviour

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions