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

SEGV in parser_parse_class #5214

Open
renatahodovan opened this issue Mar 1, 2025 · 0 comments
Open

SEGV in parser_parse_class #5214

renatahodovan opened this issue Mar 1, 2025 · 0 comments

Comments

@renatahodovan
Copy link
Contributor

JerryScript revision

5020015 (v3.0.0)

Build platform

Ubuntu 24.04.1 LTS (Linux 6.8.0-49-generic x86_64)

Build steps
./tools/build.py --clean --debug --compile-flag=-fsanitize=address --logging=on
Test case
class log10 {
  static #finally = class {} && class {}
}
Output
AddressSanitizer:DEADLYSIGNAL
=================================================================
==2066671==ERROR: AddressSanitizer: SEGV on unknown address 0x000000000010 (pc 0x55af03bc6dae bp 0x7ffe38ec1fa0 sp 0x7ffe38ec1ec0 T0)
==2066671==The signal is caused by a READ memory access.
==2066671==Hint: address points to the zero page.
    #0 0x55af03bc6dae in parser_parse_class /home/reni/work/sut/jerryscript/jerry-core/parser/js/js-parser-expr.c:1134
    #1 0x55af03bcc0b6 in parser_parse_unary_expression /home/reni/work/sut/jerryscript/jerry-core/parser/js/js-parser-expr.c:2244
    #2 0x55af03bd5f48 in parser_parse_expression /home/reni/work/sut/jerryscript/jerry-core/parser/js/js-parser-expr.c:4497
    #3 0x55af03bc5560 in parser_parse_class_body /home/reni/work/sut/jerryscript/jerry-core/parser/js/js-parser-expr.c:870
    #4 0x55af03bc6e17 in parser_parse_class /home/reni/work/sut/jerryscript/jerry-core/parser/js/js-parser-expr.c:1137
    #5 0x55af03be8690 in parser_parse_statements /home/reni/work/sut/jerryscript/jerry-core/parser/js/js-parser-statm.c:2787
    #6 0x55af03b111e5 in parser_parse_source /home/reni/work/sut/jerryscript/jerry-core/parser/js/js-parser.c:2280
    #7 0x55af03b16abb in parser_parse_script /home/reni/work/sut/jerryscript/jerry-core/parser/js/js-parser.c:3332
    #8 0x55af03a5566f in jerry_parse_common /home/reni/work/sut/jerryscript/jerry-core/api/jerryscript.c:413
    #9 0x55af03a559d5 in jerry_parse /home/reni/work/sut/jerryscript/jerry-core/api/jerryscript.c:481
    #10 0x55af03bf4969 in jerryx_source_parse_script /home/reni/work/sut/jerryscript/jerry-ext/util/sources.c:52
    #11 0x55af03bf4a38 in jerryx_source_exec_script /home/reni/work/sut/jerryscript/jerry-ext/util/sources.c:63
    #12 0x55af03a5160e in main /home/reni/work/sut/jerryscript/jerry-main/main-desktop.c:156
    #13 0x7fb4be82a1c9  (/lib/x86_64-linux-gnu/libc.so.6+0x2a1c9) (BuildId: 42c84c92e6f98126b3e2230ebfdead22c235b667)
    #14 0x7fb4be82a28a in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x2a28a) (BuildId: 42c84c92e6f98126b3e2230ebfdead22c235b667)
    #15 0x55af03a50b24 in _start (/home/reni/work/sut/jerryscript/build_clean/bin/jerry+0x5bb24) (BuildId: c98d832ed4b54679a000672565db2ed2b166be89)

AddressSanitizer can not provide additional info.
SUMMARY: AddressSanitizer: SEGV /home/reni/work/sut/jerryscript/jerry-core/parser/js/js-parser-expr.c:1134 in parser_parse_class
==2066671==ABORTING
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