-
Notifications
You must be signed in to change notification settings - Fork 688
Closed
Labels
bugUndesired behaviourUndesired behaviourparserRelated to the JavaScript parserRelated to the JavaScript parser
Description
Jerry version:
Checked revision: ec142f5f
Build command: ./tools/build.py --clean --debug --profile=es2015-subset --logging=on
OS:
Ubuntu 18.04, x86_64
Test case:
`eval`("eval ('super (a, b, c)')");Backtrace:
ICE: Assertion 'context_p->last_cbc.literal_type == LEXER_IDENT_LITERAL' failed at jerryscript/jerry-core/parser/js/js-parser-expr.c(parser_process_unary_expression):1554.
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=0x5555555dba48 "context_p->last_cbc.literal_type == LEXER_IDENT_LITERAL",
file=0x5555555db5c8 "jerryscript/jerry-core/parser/js/js-parser-expr.c", function=0x5555555d8e00 <__func__.4701.lto_priv.204> "parser_process_unary_expression", line=1554)
at jerryscript/jerry-core/jrt/jrt-fatals.c:87
#5 0x0000555555572d1f in parser_process_unary_expression (context_p=0x7fffffffdab0) at jerryscript/jerry-core/parser/js/js-parser-expr.c:1554
#6 0x000055555557447d in parser_parse_expression (context_p=0x7fffffffdab0, options=2) at jerryscript/jerry-core/parser/js/js-parser-expr.c:2171
#7 0x000055555555a657 in parser_parse_statements (context_p=0x7fffffffdab0) at jerryscript/jerry-core/parser/js/js-parser-statm.c:2110
#8 0x00005555555919a5 in parser_parse_source (arg_list_p=0x0, arg_list_size=0, source_p=0x5555557f6100 <buffer.lto_priv> "`eval`(\"eval ('super (a, b, c)')\");\n", source_size=36, parse_opts=0,
error_location_p=0x7fffffffdcc4) at jerryscript/jerry-core/parser/js/js-parser.c:2397
#9 0x0000555555592637 in parser_parse_script (arg_list_p=0x0, arg_list_size=0, source_p=0x5555557f6100 <buffer.lto_priv> "`eval`(\"eval ('super (a, b, c)')\");\n", source_size=36, parse_opts=0,
bytecode_data_p=0x7fffffffdd10) at jerryscript/jerry-core/parser/js/js-parser.c:2848
#10 0x00005555555c22c9 in jerry_parse (resource_name_p=0x7fffffffe383 "test.js", resource_name_length=7, source_p=0x5555557f6100 <buffer.lto_priv> "`eval`(\"eval ('super (a, b, c)')\");\n",
source_size=36, parse_opts=0) at jerryscript/jerry-core/api/jerry.c:401
#11 0x00005555555c0e6b in main (argc=3, argv=0x7fffffffe038) at jerryscript/jerry-main/main-unix.c:667
Metadata
Metadata
Assignees
Labels
bugUndesired behaviourUndesired behaviourparserRelated to the JavaScript parserRelated to the JavaScript parser