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

Closed
renatahodovan opened this issue Dec 30, 2018 · 0 comments · Fixed by #2665
Closed
Labels
bug Undesired behaviour ecma builtins Related to ECMA built-in routines

Comments

@renatahodovan
Copy link
Contributor

Jerry version:
Checked revision: ec142f5f
Build command: ./tools/build.py --clean --debug --profile=es2015-subset --logging=on
OS:
Ubuntu 18.04, x86_64
Test case:
Object.defineProperty(Object.prototype,"",{'set':function(){throw ReferenceError("")}});
print(JSON.stringify())
Backtrace:
undefined
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  0x00007ffff7a24801 in __GI_abort () at abort.c:79
#2  0x000055555555efd5 in jerry_port_fatal (code=ERR_FAILED_INTERNAL_ASSERTION) at jerryscript/jerry-port/default/default-fatal.c:71
#3  0x000055555558ab64 in jerry_fatal (code=ERR_FAILED_INTERNAL_ASSERTION) at jerryscript/jerry-core/jrt/jrt-fatals.c:63
#4  0x000055555558abb6 in jerry_assert_fail (assertion=0x5555555e0188 "JERRY_CONTEXT (jmem_heap_allocated_size) == 0", file=0x5555555e0108 "jerryscript/jerry-core/jmem/jmem-heap.c", 
    function=0x5555555d5220 <__func__.3881.lto_priv.453> "jmem_heap_finalize", line=143) at jerryscript/jerry-core/jrt/jrt-fatals.c:87
#5  0x000055555558a147 in jmem_heap_finalize () at jerryscript/jerry-core/jmem/jmem-heap.c:143
#6  0x0000555555589dbc in jmem_finalize () at jerryscript/jerry-core/jmem/jmem-allocator.c:170
#7  0x00005555555c2660 in jerry_cleanup () at jerryscript/jerry-core/api/jerry.c:225
#8  0x00005555555c19f3 in main (argc=3, argv=0x7fffffffe038) at jerryscript/jerry-main/main-unix.c:874

Found by Fuzzinator with grammarinator.

@LaszloLango LaszloLango added bug Undesired behaviour ecma builtins Related to ECMA built-in routines labels Jan 2, 2019
rerobika added a commit to rerobika/jerryscript that referenced this issue Jan 2, 2019
…nternal method

This patch fixes jerryscript-project#2652 and fixes jerryscript-project#2653 as well, also reverts jerryscript-project#2521.
Related part of the standard ECMAScript v5.1 15.12.3.10.

JerryScript-DCO-1.0-Signed-off-by: Robert Fancsik [email protected]
robertsipka pushed a commit that referenced this issue Jan 3, 2019
…nternal method (#2665)

This patch fixes #2652 and fixes #2653 as well, also reverts #2521.
Related part of the standard ECMAScript v5.1 15.12.3.10.

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 ecma builtins Related to ECMA built-in routines
Projects
None yet
2 participants