Closed
Description
JerryScript revision
Build platform
Linux-5.3.0-53-generic-x86_64-with-Ubuntu-18.04-bionic
Build steps
./tools/build.py --clean --debug --compile-flag=-fsanitize=address \
--compile-flag=-m32 --compile-flag=-fno-omit-frame-pointer \
--compile-flag=-fno-common --compile-flag=-g \
--strip=off --system-allocator=on --logging=on \
--linker-flag=-fuse-ld=gold --error-messages=on --profile=es2015-subset \
Test case
try{ }catch(\u6EAe){while(""?_:()=>{}|{})
Output
ICE: Assertion 'context_p->token.type != LEXER_RIGHT_PAREN' failed at jerryscript//jerry-core/parser/js/js-parser-statm.c(parser_parse_while_statement_start):1060.
Error: ERR_FAILED_INTERNAL_ASSERTION
Backtrace
bt
#0 0xf7fd5b59 in __kernel_vsyscall ()
#1 0xf781b832 in __libc_signal_restore_set (set=0xffffba0c) at ../sysdeps/unix/sysv/linux/nptl-signals.h:80
#2 __GI_raise (sig=6) at ../sysdeps/unix/sysv/linux/raise.c:48
#3 0xf781ccc1 in __GI_abort () at abort.c:79
#4 0x5657c31c in jerry_port_fatal (code=ERR_FAILED_INTERNAL_ASSERTION) at jerryscript//jerry-port/default/default-fatal.c:30
#5 0x56633cfa in jerry_fatal (code=ERR_FAILED_INTERNAL_ASSERTION) at jerryscript//jerry-core/jrt/jrt-fatals.c:63
#6 0x56633d3b in jerry_assert_fail (assertion=0x566fa880 "context_p->token.type != LEXER_RIGHT_PAREN", file=0x566f9f60 "jerryscript//jerry-core/parser/js/js-parser-statm.c", function=0x566e8f40 <__func__.5965.lto_priv.213> "parser_parse_while_statement_start", line=1060) at jerryscript//jerry-core/jrt/jrt-fatals.c:87
#7 0x565a58c0 in parser_parse_while_statement_start (context_p=0xffffc150) at jerryscript//jerry-core/parser/js/js-parser-statm.c:1060
#8 0x565aee86 in parser_parse_statements (context_p=0xffffc150) at jerryscript//jerry-core/parser/js/js-parser-statm.c:2909
#9 0x56642ebc in parser_parse_source (arg_list_p=0x0, arg_list_size=0, source_p=0x56755ba0 <buffer.lto_priv> "try{}catch(\\u6EAe){dobreak;while(\"\"?_:()=>{}|class{;})}finally{function_・﹎({,}){exportdebuggerexportvar{}={,},{,}=this,ਐ,_=super}}", source_size=148, parse_opts=0, error_location_p=0xffffc380) at jerryscript//jerry-core/parser/js/js-parser.c:2177
#10 0x56646ca4 in parser_parse_script (arg_list_p=0x0, arg_list_size=0, source_p=0x56755ba0 <buffer.lto_priv> "try{}catch(\\u6EAe){dobreak;while(\"\"?_:()=>{}|class{;})}finally{function_・﹎({,}){exportdebuggerexportvar{}={,},{,}=this,ਐ,_=super}}", source_size=148, parse_opts=0, bytecode_data_p=0xffffc440) at jerryscript//jerry-core/parser/js/js-parser.c:2808
#11 0x5669ac60 in jerry_parse (resource_name_p=0xffffca85 "/home/fancsikrobi/harmony/fuzzinator-configs/.fuzzinator-21731/jerryscript/picireny/568.js", resource_name_length=90, source_p=0x56755ba0 <buffer.lto_priv> "try{}catch(\\u6EAe){dobreak;while(\"\"?_:()=>{}|class{;})}finally{function_・﹎({,}){exportdebuggerexportvar{}={,},{,}=this,ਐ,_=super}}", source_size=148, parse_opts=0) at jerryscript//jerry-core/api/jerry.c:447
#12 0x56697870 in main (argc=2, argv=0xffffc834) at jerryscript//jerry-main/main-unix.c:750
Found by Fuzzinator with grammarinator.