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 'JERRY_CONTEXT (jmem_heap_allocated_size) == 0' failed at jerryscript/jerry-core/jmem/jmem-heap.c(jmem_heap_finalize):115 #5210

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

E.g.:

/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
var arrowFn = () => {} \ 
arrowFn.hasOwnProperty('caller');
Execution steps & Output
./jerry poc.js
var arrowFn = () => {} \ 
~~~~~~~~~~~~~~~~~~~~~~~^

Unhandled exception: SyntaxError: Invalid unicode escape sequence [7.js:1:24]
Aborted (core dumped)
Backtrace
#0  0xf7f47549 in __kernel_vsyscall ()
#1  0xf76f8642 in raise () from /lib32/libc.so.6
#2  0xf76f9a61 in abort () from /lib32/libc.so.6
#3  0x567eadc0 in jerry_port_fatal (code=JERRY_FATAL_FAILED_ASSERTION) at /home/lily/jerryscript/jerry-port/common/jerry-port-process.c:41
#4  0x566e410c in jerry_fatal (code=JERRY_FATAL_FAILED_ASSERTION) at /home/lily/jerryscript/jerry-core/jrt/jrt-fatals.c:63
#5  0x566e412e in jerry_assert_fail (assertion=0x56817960 "JERRY_CONTEXT (jmem_heap_allocated_size) == 0", file=0x56817900 "/home/lily/jerryscript/jerry-core/jmem/jmem-heap.c", 
    function=0x56817ae0 <__func__.7408> "jmem_heap_finalize", line=115) at /home/lily/jerryscript/jerry-core/jrt/jrt-fatals.c:83
#6  0x566e3056 in jmem_heap_finalize () at /home/lily/jerryscript/jerry-core/jmem/jmem-heap.c:115
#7  0x566e2e09 in jmem_finalize () at /home/lily/jerryscript/jerry-core/jmem/jmem-allocator.c:171
#8  0x5662eb7b in jerry_cleanup () at /home/lily/jerryscript/jerry-core/api/jerryscript.c:241
#9  0x5662ac1d in main (argc=2, argv=0xffb41034) at /home/lily/jerryscript/jerry-main/main-desktop.c:270
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