Skip to content

Assertion 'om->lit_id[i].packed_value != MEM_CP_NULL' failed in insert_uids_to_lit_id_map #185

Closed
@renatahodovan

Description

@renatahodovan
Jerry version:
Checked revision: 5d5e75f
Build: debug.linux
OS:
Ubuntu 14.10, x86_64
Test case:
RegExp.prototype.__lookupGetter__.__proto__.__proto__.__defineGetter__(Error.toString.__proto__.constructor(JSON.parse.__proto__.__proto__.__defineGetter__.bind.__proto__.toLocaleString.__proto__.__proto__),String.fromCharCode(print.bind(operation.toFixed.__proto__.call(JSON.stringify(RangeError.stackTraceLimit,read.apply.__proto__.constructor.__lookupGetter__.__proto__.propertyIsEnumerable.__proto__.constructor.toString.toLocaleString.constructor(TypeError.__proto__(Map.prototype.entries())),parseInt(undefined,String.__lookupSetter__.apply.__defineSetter__(unescape(NaN.__proto__.constructor.__proto__.call(__proto__.__proto__)),performance.__proto__.__lookupSetter__.constructor.__proto__.constructor.keys.__proto__.call(Number.MIN_VALUE))))))));
Backtrace:
ICE: Assertion 'om->lit_id[i].packed_value != MEM_CP_NULL' failed at jerryscript/jerry-core/parser/js/scopes-tree.cpp(insert_uids_to_lit_id_map):192.
Error: ERR_FAILED_INTERNAL_ASSERTION

Program received signal SIGABRT, Aborted.
0x000000000047c32b in syscall_2_asm () at jerryscript/jerry-libc/target/linux/jerry-asm.S:32
32    SYSCALL_2
(gdb) bt
#0  0x000000000047c32b in syscall_2_asm () at jerryscript/jerry-libc/target/linux/jerry-asm.S:32
#1  0x00000000004003c2 in syscall_2 (syscall_no=62, arg1=30838, arg2=6)
    at jerryscript/jerry-libc/target/linux/jerry-libc-target.c:105
#2  0x0000000000400563 in abort () at jerryscript/jerry-libc/target/linux/jerry-libc-target.c:184
#3  0x0000000000435329 in jerry_fatal (code=ERR_FAILED_INTERNAL_ASSERTION) at jerryscript/jerry-core/jrt/jrt-fatals.cpp:70
#4  0x0000000000435378 in jerry_assert_fail (assertion=0x485b30 "om->lit_id[i].packed_value != MEM_CP_NULL", 
    file=0x485aa0 "jerryscript/jerry-core/parser/js/scopes-tree.cpp", 
    function=0x4832e0 <_ZZL25insert_uids_to_lit_id_mapP7op_metatE8__func__.lto_priv.174> "insert_uids_to_lit_id_map", line=192)
    at jerryscript/jerry-core/jrt/jrt-fatals.cpp:97
#5  0x000000000040d2ac in insert_uids_to_lit_id_map (om=0x7e6eb4 <_ZL13mem_heap_area.lto_priv.972+259828>, mask=272)
    at jerryscript/jerry-core/parser/js/scopes-tree.cpp:192
#6  0x000000000040d68f in count_new_literals_in_opcode (tree=0x7e72d0 <_ZL13mem_heap_area.lto_priv.972+260880>, opc_index=50)
    at jerryscript/jerry-core/parser/js/scopes-tree.cpp:417
#7  0x000000000040d8a5 in scopes_tree_count_literals_in_blocks(scopes_tree_int*) (tree=0x7e72d0 <_ZL13mem_heap_area.lto_priv.972+260880>)
    at jerryscript/jerry-core/parser/js/scopes-tree.cpp:544
#8  0x0000000000434efe in serializer_merge_scopes_into_bytecode () at jerryscript/jerry-core/parser/js/serializer.cpp:90
#9  0x000000000043c9d2 in parser_parse_program (
    source=0x6a7740 <_ZL13source_buffer.lto_priv.1016> "RegExp.prototype.__lookupGetter__.__proto__.__proto__.__defineGetter__(Error.toString.__proto__.constructor(JSON.parse.__proto__.__proto__.__defineGetter__.bind.__proto__.toLocaleString.__proto__.__pr"..., source_size=755, in_new_function=false)
    at jerryscript/jerry-core/parser/js/parser.cpp:2913
#10 0x000000000043ca56 in parser_parse_script(char const*, unsigned long) (
    source=0x6a7740 <_ZL13source_buffer.lto_priv.1016> "RegExp.prototype.__lookupGetter__.__proto__.__proto__.__defineGetter__(Error.toString.__proto__.constructor(JSON.parse.__proto__.__proto__.__defineGetter__.bind.__proto__.toLocaleString.__proto__.__pr"..., source_size=755)
    at jerryscript/jerry-core/parser/js/parser.cpp:2929
#11 0x000000000047bdee in jerry_parse (
    source_p=0x6a7740 <_ZL13source_buffer.lto_priv.1016> "RegExp.prototype.__lookupGetter__.__proto__.__proto__.__defineGetter__(Error.toString.__proto__.constructor(JSON.parse.__proto__.__proto__.__defineGetter__.bind.__proto__.toLocaleString.__proto__.__pr"..., source_size=755)
    at jerryscript/jerry-core/jerry.cpp:1220
#12 0x000000000047aa6a in main (argc=3, argv=0x7fffffffd868) at jerryscript/main-linux.cpp:243

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugUndesired behaviournormalparserRelated to the JavaScript parser

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions