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 'mem_pools == NULL' failed in mem_pools_finalize #121

Closed
renatahodovan opened this issue May 28, 2015 · 2 comments
Closed

Assertion 'mem_pools == NULL' failed in mem_pools_finalize #121

renatahodovan opened this issue May 28, 2015 · 2 comments
Labels
api Related to the public API memory management Related to memory management or garbage collection normal

Comments

@renatahodovan
Copy link
Contributor

Jerry version:
Checked revision: aaeec7f
Build: debug.linux
OS:
Ubuntu 14.04, x86_64
Test case:
function f_1() { 
    v_1 + v_1;
}
f_1(new f_1);
Backtrace:
ICE: Assertion 'mem_pools == NULL' failed at jerryscript/jerry-core/mem/mem-poolman.cpp(mem_pools_finalize):89.
Error: ERR_FAILED_INTERNAL_ASSERTION
[Inferior 1 (process 13822) exited with code 0170]
(gdb) bt
#0  mem_pools_finalize () at jerryscript/jerry-core/mem/mem-poolman.cpp:89
#1  0x00000000004bed6b in mem_finalize (is_show_mem_stats=false) at jerryscript/jerry-core/mem/mem-allocator.cpp:58
#2  0x00000000004bd3f3 in jerry_cleanup () at jerryscript/jerry-core/jerry.cpp:1173
#3  0x00000000004bbb07 in main (argc=2, argv=0x7fffffffd938) at jerryscript/main-linux.cpp:252
@ruben-ayrapetyan ruben-ayrapetyan added normal memory management Related to memory management or garbage collection api Related to the public API labels May 28, 2015
@ruben-ayrapetyan ruben-ayrapetyan added this to the Core ECMA features milestone May 28, 2015
@ruben-ayrapetyan ruben-ayrapetyan self-assigned this May 28, 2015
ruben-ayrapetyan added a commit that referenced this issue Jun 5, 2015
Related issue: #121

JerryScript-DCO-1.0-Signed-off-by: Ruben Ayrapetyan [email protected]
@ruben-ayrapetyan
Copy link
Contributor

Failure is caused by memory leak in ecma_op_function_construct_simple_or_external: in case of exception, reference counter of constructed object isn't decreased as is necessary.

ruben-ayrapetyan added a commit that referenced this issue Jun 8, 2015
Related issue: #121

JerryScript-DCO-1.0-Signed-off-by: Ruben Ayrapetyan [email protected]
@ruben-ayrapetyan
Copy link
Contributor

Fixed (pull request #157).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api Related to the public API memory management Related to memory management or garbage collection normal
Projects
None yet
Development

No branches or pull requests

2 participants