jerryscript icon indicating copy to clipboard operation
jerryscript copied to clipboard

Segmentation fault in mem_pools_collect_empty

Open renatahodovan opened this issue 10 years ago • 1 comments

Jerry version:
Checked revision: e1c8a2e
Build: debug.linux
OS:
Ubuntu 15.10, x86_64
Test case:
try { String.prototype(new (RegExp)())  } catch($){}
try { RegExp.prototype.compile() } catch($){}
try { isNaN(RegExp.prototype.compile(RegExp.prototype)) } catch($){}
Backtrace:
Program received signal SIGSEGV, Segmentation fault.
0x000000000047a675 in mem_pools_collect_empty () at  jerryscript/jerry-core/mem/mem-poolman.c:187
187     mem_pools_chunk_t *const next_p = mem_free_chunk_p->next_p;
(gdb) bt
#0   0x000000000047a675 in mem_pools_collect_empty () at  jerryscript/jerry-core/mem/mem-poolman.c:187
#1   0x000000000047a5ca in mem_pools_finalize () at  jerryscript/jerry-core/mem/mem-poolman.c:121
#2   0x000000000047a48a in mem_finalize (is_show_mem_stats=false) at  jerryscript/jerry-core/mem/mem-allocator.c:52
#3   0x000000000048186d in jerry_cleanup () at  jerryscript/jerry-core/jerry.c:1670
#4   0x000000000047fd85 in main (argc=2, argv=0x7fffffffd328) at  jerryscript/main-unix.c:591

renatahodovan avatar May 19 '16 08:05 renatahodovan

Works on current master (97be8bf).

ktorpi avatar Jul 08 '16 11:07 ktorpi