Skip to content

Assertion 'om->lit_id[i] != NOT_A_LITERAL' failed in insert_uids_to_lit_id_map #123

Closed
@renatahodovan

Description

@renatahodovan
Jerry version:
Checked revision: aaeec7f
Build: debug.linux
OS:
Ubuntu 14.04, x86_64
Test case:
var v_1 = (1 + (1 + (1 +
    (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 +
    (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 +
    (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 +
    1
    )) )) )) )) )) )) )) )) )) ))
    )) )) )) )) )) )) )) )) )) ))
    )) )) )) )) )) )) )) )) )) ))
    )) );
Backtrace:
ICE: Assertion 'om->lit_id[i] != NOT_A_LITERAL' failed at jerryscript/jerry-core/parser/js/scopes-tree.cpp(insert_uids_to_lit_id_map):195.
Error: ERR_FAILED_INTERNAL_ASSERTION
[Inferior 1 (process 14242) exited with code 0170]
(gdb) bt
#0  insert_uids_to_lit_id_map (om=0x8280f0 <_ZL13mem_heap_area.4015+256432>, mask=273)
    at jerryscript/jerry-core/parser/js/scopes-tree.cpp:195
#1  0x000000000040b462 in count_new_literals_in_opcode (tree=0x829110 <_ZL13mem_heap_area.4015+260560>, opc_index=127)
    at jerryscript/jerry-core/parser/js/scopes-tree.cpp:402
#2  0x000000000040b68e in scopes_tree_count_literals_in_blocks (tree=0x829110 <_ZL13mem_heap_area.4015+260560>)
    at jerryscript/jerry-core/parser/js/scopes-tree.cpp:547
#3  0x000000000045f726 in serializer_merge_scopes_into_bytecode () at jerryscript/jerry-core/parser/js/serializer.cpp:89
#4  0x000000000045f338 in parser_parse_program () at jerryscript/jerry-core/parser/js/parser.cpp:2739
#5  0x00000000004bd485 in jerry_parse (
    source_p=0x6e96c0 <_ZL13source_buffer.2441> "var v_1 = (1 + (1 + (1 +\n    (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 +\n    (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1"..., source_size=454)
    at jerryscript/jerry-core/jerry.cpp:1211
#6  0x00000000004bbae0 in main (argc=2, argv=0x7fffffffd938) at jerryscript/main-linux.cpp:239

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