Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Assertion 'context.status_flags & PARSER_SCANNING_SUCCESSFUL' failed at jerryscript/jerry-core/parser/js/js-parser.c(parser_parse_source):2288 #5212

Open
paintedveil5 opened this issue Feb 23, 2025 · 0 comments

Comments

@paintedveil5
Copy link
Contributor

paintedveil5 commented Feb 23, 2025

JerryScript revision

5020015 (master)
v3.0.0

Build platform

Ubuntu 18.04.6 LTS (Linux 6.2.0-37-generic x86_64)

Build steps
/usr/bin/python3 ./tools/build.py --clean --debug --compile-flag=-m32 --compile-flag=-fno-omit-frame-pointer --compile-flag=-fno-common --lto=off --error-message=on --system-allocator=on --compile-flag=-Wno-uninitialized --compile-flag=-Wno-missing-field-initializers --link-lib="m" --stack-limit=1024 --compile-flag=-fsanitize=address
Test case
//poc.js
!class   {
#new 
}
Execution steps & Output
./jerry poc.js 
Aborted (core dumped)
Backtrace
#0  0xf7f59549 in __kernel_vsyscall ()
#1  0xf770a642 in raise () from /lib32/libc.so.6
#2  0xf770ba61 in abort () from /lib32/libc.so.6
#3  0x56751dc0 in jerry_port_fatal (code=JERRY_FATAL_FAILED_ASSERTION) at /home/lily/jerryscript/jerry-port/common/jerry-port-process.c:41
#4  0x5664b10c in jerry_fatal (code=JERRY_FATAL_FAILED_ASSERTION) at /home/lily/jerryscript/jerry-core/jrt/jrt-fatals.c:63
#5  0x5664b12e in jerry_assert_fail (assertion=0x5678b740 "context.status_flags & PARSER_SCANNING_SUCCESSFUL", file=0x5678a480 "/home/lily/jerryscript/jerry-core/parser/js/js-parser.c", 
    function=0x5678c120 <__func__.7717> "parser_parse_source", line=2288) at /home/lily/jerryscript/jerry-core/jrt/jrt-fatals.c:83
#6  0x5665eb29 in parser_parse_source (source_p=0xffc84a30, parse_opts=0, options_p=0xffc84b20) at /home/lily/jerryscript/jerry-core/parser/js/js-parser.c:2288
#7  0x5666497a in parser_parse_script (source_p=0xffc84a30, parse_opts=0, options_p=0xffc84b20) at /home/lily/jerryscript/jerry-core/parser/js/js-parser.c:3332
#8  0x565962cd in jerry_parse_common (source_p=0xffc84a30, options_p=0xffc84b20, parse_opts=0) at /home/lily/jerryscript/jerry-core/api/jerryscript.c:413
#9  0x56596680 in jerry_parse (source_p=0xf5b00940 "!class   {\n#new \n}\n\n", source_size=20, options_p=0xffc84b20) at /home/lily/jerryscript/jerry-core/api/jerryscript.c:481
#10 0x56750a6e in jerryx_source_parse_script (path_p=0xffc86898 "poc.js") at /home/lily/jerryscript/jerry-ext/util/sources.c:52
#11 0x56750b6d in jerryx_source_exec_script (path_p=0xffc86898 "poc.js") at /home/lily/jerryscript/jerry-ext/util/sources.c:63
#12 0x56591447 in main (argc=2, argv=0xffc84db4) at /home/lily/jerryscript/jerry-main/main-desktop.c:156

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant