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

Closed
renatahodovan opened this issue Jul 16, 2019 · 0 comments · Fixed by #2978
Closed

Assertion JERRY_CONTEXT (jmem_heap_allocated_size) == 0 in jmem_heap_finalize #2975

renatahodovan opened this issue Jul 16, 2019 · 0 comments · Fixed by #2978
Labels
bug Undesired behaviour ES2015 Related to ES2015 features

Comments

@renatahodovan
Copy link
Contributor

JerryScript revision

7572898

Build platform

Linux-4.15.0-54-generic-x86_64-with-Ubuntu-18.04-bionic

Build steps
./tools/build.py --clean --debug --compile-flag=-fsanitize=address \
--compile-flag=-m32 --compile-flag=-fno-omit-frame-pointer \
--compile-flag=-fno-common --compile-flag=-g \
--strip=off --system-allocator=on --logging=on \
--linker-flag=-fuse-ld=gold --error-messages=on --profile=es2015-subset
Test case
var eval = eval.bind()
eval('import { c } from "tests/jerry/es2015/module-export-01.js";')
Output
Script Error: SyntaxError: Unexported or circular import request.
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
Backtrace
bt
#0  0xf7fd5059 in __kernel_vsyscall ()
#1  0xf77fd832 in raise () from /lib/i386-linux-gnu/libc.so.6
#2  0xf77fecc1 in abort () from /lib/i386-linux-gnu/libc.so.6
#3  0x5657a232 in jerry_port_fatal (code=ERR_FAILED_INTERNAL_ASSERTION) at jerryscript/jerry-port/default/default-fatal.c:71
#4  0x5660bd75 in jerry_fatal (code=ERR_FAILED_INTERNAL_ASSERTION) at jerryscript/jerry-core/jrt/jrt-fatals.c:58
#5  0x5660bdb6 in jerry_assert_fail (assertion=0x566a53c0 "JERRY_CONTEXT (jmem_heap_allocated_size) == 0", file=0x566a5360 "jerryscript/jerry-core/jmem/jmem-heap.c", function=0x5667a500 <__func__.4561.lto_priv.505> "jmem_heap_finalize", line=143) at jerryscript/jerry-core/jrt/jrt-fatals.c:82
#6  0x5660b339 in jmem_heap_finalize () at jerryscript/jerry-core/jmem/jmem-heap.c:143
#7  0x5660af64 in jmem_finalize () at jerryscript/jerry-core/jmem/jmem-allocator.c:170
#8  0x56642abe in jerry_cleanup () at jerryscript/jerry-core/api/jerry.c:231
#9  0x566408cb in main (argc=3, argv=0xffffcc34) at jerryscript/jerry-main/main-unix.c:941

Found by Fuzzinator with grammarinator.

dbatyai added a commit to dbatyai/jerryscript that referenced this issue Jul 16, 2019
@dbatyai dbatyai added bug Undesired behaviour ES2015 Related to ES2015 features labels Jul 16, 2019
dbatyai added a commit to dbatyai/jerryscript that referenced this issue Jul 16, 2019
dbatyai added a commit to dbatyai/jerryscript that referenced this issue Jul 16, 2019
dbatyai added a commit to dbatyai/jerryscript that referenced this issue Jul 17, 2019
dbatyai added a commit to dbatyai/jerryscript that referenced this issue Jul 17, 2019
dbatyai added a commit that referenced this issue Jul 17, 2019
Fixes #2975

JerryScript-DCO-1.0-Signed-off-by: Dániel Bátyai [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