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 #2487

Closed
renatahodovan opened this issue Aug 27, 2018 · 0 comments
Labels
bug Undesired behaviour ES2015 Related to ES2015 features

Comments

@renatahodovan
Copy link
Contributor

Jerry version:
Checked revision: 300e40ba
Build command: tools/build.py --debug --logging=on --profile=es2015-subset
OS:
Ubuntu 18.04, x86_64
Test case:
Object.defineProperty(Array.prototype, 0, {set: function() {var $ = $()}});
Promise.all([0])
Backtrace:
ICE: Assertion 'JERRY_CONTEXT (jmem_heap_allocated_size) == 0' failed at jerryscript/jerry-core/jmem/jmem-heap.c(jmem_heap_finalize):152.
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  0x00007ffff7a24801 in __GI_abort () at abort.c:79
#2  0x000055555555f364 in jerry_port_fatal (code=ERR_FAILED_INTERNAL_ASSERTION)
    at jerryscript/jerry-port/default/default-fatal.c:71
#3  0x000055555558ac1f in jerry_fatal (code=ERR_FAILED_INTERNAL_ASSERTION)
    at jerryscript/jerry-core/jrt/jrt-fatals.c:58
#4  0x000055555558ac71 in jerry_assert_fail (assertion=0x5555555dae60 "JERRY_CONTEXT (jmem_heap_allocated_size) == 0", 
    file=0x5555555dade8 "jerryscript/jerry-core/jmem/jmem-heap.c", 
    function=0x5555555d01a0 <__func__.3827.lto_priv.38> "jmem_heap_finalize", line=152)
    at jerryscript/jerry-core/jrt/jrt-fatals.c:82
#5  0x000055555558a21a in jmem_heap_finalize () at jerryscript/jerry-core/jmem/jmem-heap.c:152
#6  0x00005555555aa0f9 in jmem_finalize () at jerryscript/jerry-core/jmem/jmem-allocator.c:179
#7  0x00005555555be9a8 in jerry_cleanup () at jerryscript/jerry-core/api/jerry.c:216
#8  0x00005555555bdd34 in main (argc=3, argv=0x7fffffffdc38) 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 Aug 28, 2018
DanielBallaSZTE pushed a commit to DanielBallaSZTE/jerryscript that referenced this issue Sep 6, 2018
Fixes jerryscript-project#2487
Fixes jerryscript-project#2488

Co-authored-by: Robert Fancsik [email protected]
JerryScript-DCO-1.0-Signed-off-by: Daniel Balla [email protected]
akosthekiss pushed a commit that referenced this issue Sep 6, 2018
Fixes #2487
Fixes #2488

Co-authored-by: Robert Fancsik [email protected]
JerryScript-DCO-1.0-Signed-off-by: Daniel Balla [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

No branches or pull requests

2 participants