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 in jmem_heap_finalize #2693

Closed
renatahodovan opened this issue Jan 11, 2019 · 0 comments · Fixed by #2694
Closed
Labels
bug Undesired behaviour ES2015 Related to ES2015 features

Comments

@renatahodovan
Copy link
Contributor

Jerry version:
Checked revision: 93ec2266
Build command: ./tools/build.py --clean --debug --profile=es2015-subset --logging=on
OS:
Ubuntu 18.04, x86_64
Test case:
Object.defineProperty(Array.prototype, 0, { get : function ( ) {throw $} });
Promise.all([,]);
Backtrace:
ICE: Assertion 'JERRY_CONTEXT (jmem_heap_allocated_size) == 0' failed at jerryscript/jerry-core/jmem/jmem-heap.c(jmem_heap_finalize):143.
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  0x00007ffff6e43801 in __GI_abort () at abort.c:79
#2  0x00000000006d9055 in jerry_port_fatal (code=ERR_FAILED_INTERNAL_ASSERTION)
    at jerryscript/jerry-port/default/default-fatal.c:71
#3  0x00000000005d474f in jerry_fatal (code=ERR_FAILED_INTERNAL_ASSERTION)
    at jerryscript/jerry-core/jrt/jrt-fatals.c:58
#4  0x00000000005d47a6 in jerry_assert_fail (assertion=0x72be80 <.str.2> "JERRY_CONTEXT (jmem_heap_allocated_size) == 0", 
    file=0x72bde0 <.str.1> "jerryscript/jerry-core/jmem/jmem-heap.c", 
    function=0x72bee0 <__func__.jmem_heap_finalize> "jmem_heap_finalize", line=143)
    at jerryscript/jerry-core/jrt/jrt-fatals.c:82
#5  0x00000000005d198d in jmem_heap_finalize () at jerryscript/jerry-core/jmem/jmem-heap.c:143
#6  0x00000000005d0d2d in jmem_finalize () at jerryscript/jerry-core/jmem/jmem-allocator.c:170
#7  0x000000000051b428 in jerry_cleanup () at jerryscript/jerry-core/api/jerry.c:225
#8  0x000000000051616d in main (argc=3, argv=0x7fffffffdda8) at jerryscript/jerry-main/main-unix.c:874

Found by Fuzzinator with grammarinator.

@LaszloLango LaszloLango added bug Undesired behaviour ES2015 Related to ES2015 features labels Jan 11, 2019
rerobika added a commit to rerobika/jerryscript that referenced this issue Jan 11, 2019
This patch fixes jerryscript-project#2693.

JerryScript-DCO-1.0-Signed-off-by: Robert Fancsik [email protected]
akosthekiss pushed a commit that referenced this issue Jan 14, 2019
This patch fixes #2693.

JerryScript-DCO-1.0-Signed-off-by: Robert Fancsik [email protected]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Undesired behaviour ES2015 Related to ES2015 features
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants