Skip to content

Assertion 'context_p->byte_code_size > (branch_p->offset >> 8)' failed in parser_set_branch_to_current_position #2667

Closed
@renatahodovan

Description

@renatahodovan
Jerry version:
Checked revision: b69f3fd0
Build command: ./tools/build.py --clean --debug --profile=es2015-subset --logging=on
OS:
Ubuntu 18.04, x86_64
Test case:
new Strin = class extends f ()() {
    constructor () {
        var C = class extends$B {}
Backtrace:
ICE: Assertion 'context_p->byte_code_size > (branch_p->offset >> 8)' failed at jerryscript/jerry-core/parser/js/js-parser-util.c(parser_set_branch_to_current_position):672.
Error: ERR_FAILED_INTERNAL_ASSERTION

Program received signal SIGABRT, Aborted.
__GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:51
51	../sysdeps/unix/sysv/linux/raise.c: No such file or directory.
(gdb) bt
#0  __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:51
#1  0x00007ffff7a24801 in __GI_abort () at abort.c:79
#2  0x000055555555f2f6 in jerry_port_fatal (code=ERR_FAILED_INTERNAL_ASSERTION) at jerryscript/jerry-port/default/default-fatal.c:71
#3  0x000055555558b684 in jerry_fatal (code=ERR_FAILED_INTERNAL_ASSERTION) at jerryscript/jerry-core/jrt/jrt-fatals.c:63
#4  0x000055555558b6d6 in jerry_assert_fail (assertion=0x5555555cf8f8 "context_p->byte_code_size > (branch_p->offset >> 8)", 
    file=0x5555555cf610 "jerryscript/jerry-core/parser/js/js-parser-util.c", function=0x5555555d95e0 <__func__.3905> "parser_set_branch_to_current_position", line=672)
    at jerryscript/jerry-core/jrt/jrt-fatals.c:87
#5  0x000055555555c400 in parser_set_branch_to_current_position (context_p=0x7fffffffdac0, branch_p=0x7fffffffd600) at jerryscript/jerry-core/parser/js/js-parser-util.c:672
#6  0x0000555555576ba3 in parser_parse_super_class_context_end (context_p=0x7fffffffdac0, is_statement=false) at jerryscript/jerry-core/parser/js/js-parser-statm.c:660
#7  0x000055555557168b in parser_parse_class (context_p=0x7fffffffdac0, is_statement=false) at jerryscript/jerry-core/parser/js/js-parser-expr.c:623
#8  0x0000555555572894 in parser_parse_unary_expression (context_p=0x7fffffffdac0, grouping_level_p=0x7fffffffd6b8) at jerryscript/jerry-core/parser/js/js-parser-expr.c:1401
#9  0x0000555555574471 in parser_parse_expression (context_p=0x7fffffffdac0, options=5) at jerryscript/jerry-core/parser/js/js-parser-expr.c:2166
#10 0x00005555555762db in parser_parse_var_statement.lto_priv.175 (context_p=0x7fffffffdac0) at jerryscript/jerry-core/parser/js/js-parser-statm.c:352
#11 0x000055555555a08c in parser_parse_statements (context_p=0x7fffffffdac0) at jerryscript/jerry-core/parser/js/js-parser-statm.c:1880
#12 0x00005555555920f7 in parser_parse_function (context_p=0x7fffffffdac0, status_flags=3146758) at jerryscript/jerry-core/parser/js/js-parser.c:2639
#13 0x0000555555571228 in parser_parse_class_literal (context_p=0x7fffffffdac0) at jerryscript/jerry-core/parser/js/js-parser-expr.c:483
#14 0x00005555555715da in parser_parse_class (context_p=0x7fffffffdac0, is_statement=false) at jerryscript/jerry-core/parser/js/js-parser-expr.c:606
#15 0x0000555555572894 in parser_parse_unary_expression (context_p=0x7fffffffdac0, grouping_level_p=0x7fffffffd978) at jerryscript/jerry-core/parser/js/js-parser-expr.c:1401
#16 0x0000555555574471 in parser_parse_expression (context_p=0x7fffffffdac0, options=2) at jerryscript/jerry-core/parser/js/js-parser-expr.c:2166
#17 0x000055555555a657 in parser_parse_statements (context_p=0x7fffffffdac0) at jerryscript/jerry-core/parser/js/js-parser-statm.c:2110
#18 0x00005555555919a5 in parser_parse_source (arg_list_p=0x0, arg_list_size=0, 
    source_p=0x5555557f6100 <buffer.lto_priv> "new Strin = class extends f ()() {\n    constructor () {\n        var C = class extends$B {}\n", source_size=91, parse_opts=0, 
    error_location_p=0x7fffffffdcd4) at jerryscript/jerry-core/parser/js/js-parser.c:2397
#19 0x0000555555592637 in parser_parse_script (arg_list_p=0x0, arg_list_size=0, 
    source_p=0x5555557f6100 <buffer.lto_priv> "new Strin = class extends f ()() {\n    constructor () {\n        var C = class extends$B {}\n", source_size=91, parse_opts=0, 
    bytecode_data_p=0x7fffffffdd20) at jerryscript/jerry-core/parser/js/js-parser.c:2848
#20 0x00005555555c22c9 in jerry_parse (resource_name_p=0x7fffffffe384 "test.js", resource_name_length=7, 
    source_p=0x5555557f6100 <buffer.lto_priv> "new Strin = class extends f ()() {\n    constructor () {\n        var C = class extends$B {}\n", source_size=91, parse_opts=0)
    at jerryscript/jerry-core/api/jerry.c:401
#21 0x00005555555c0e6b in main (argc=3, argv=0x7fffffffe048) at jerryscript/jerry-main/main-unix.c:667

Metadata

Metadata

Assignees

No one assigned

    Labels

    ES2015Related to ES2015 featuresbugUndesired behaviour

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions