jerryscript icon indicating copy to clipboard operation
jerryscript copied to clipboard

Assertion 'is_retrieved' failed in ecma_gc_sweep

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 { new (String)().A.A.A (A)  } catch (A) {}
try { new (this.RegExp)().A ()  } catch (A) {}
try { A.A.A ()  } catch (A) {}
try { ; } catch (A) {}
try { new A.A ()  } catch (A) {}
try { new (this.Date)().setMinutes (this.RegExp.prototype)  } catch (A) {}
try { ; } catch (A) {}
try { ; } catch (A) {}
try { new A.A (A)  } catch (A) {}
try { this.A (A)  } catch (A) {}
try { new A.A ()  } catch (A) {}
try { ; } catch (A) {}
try { ; } catch (A) {}
try { ; } catch (A) {}
try { ; } catch (A) {}
try { ; } catch (A) {}
try { ; } catch (A) {}
try { ; } catch (A) {}
try { ; } catch (A) {}
try { new A().A ()  } catch (A) {}
try { new A().A ()  } catch (A) {}
try { this.isNaN (this.RegExp.prototype.compile (this.RegExp.prototype))  } catch (A) {}
try { ; } catch (A) {}
try { A.A.A (A)  } catch (A) {}
Backtrace:
ICE: Assertion 'is_retrieved' failed at jerryscript/jerry-core/ecma/base/ecma-gc.c(ecma_gc_sweep):417.
Error: ERR_FAILED_INTERNAL_ASSERTION

Program received signal SIGABRT, Aborted.
0x0000000000485b37 in syscall_2 () at jerryscript/jerry-libc/target/posix/jerry-asm.S:60
60    SYSCALL_2
(gdb) bt
#0   0x0000000000485b37 in syscall_2 () at jerryscript/jerry-libc/target/posix/jerry-asm.S:60
#1   0x000000000040037f in raise (sig=6) at jerryscript/jerry-libc/target/posix/jerry-libc-target.c:92
#2   0x0000000000400351 in abort () at jerryscript/jerry-libc/target/posix/jerry-libc-target.c:78
#3   0x000000000041d117 in jerry_port_fatal (code=ERR_FAILED_INTERNAL_ASSERTION)
    at jerryscript/targets/default/jerry-port-default-fatal.c:54
#4   0x000000000041cd58 in jerry_fatal (code=ERR_FAILED_INTERNAL_ASSERTION) at jerryscript/jerry-core/jrt/jrt-fatals.c:68
#5   0x000000000041cd9f in jerry_assert_fail (assertion=0x49ef4d "is_retrieved", 
    file=0x49ece0 "jerryscript/jerry-core/ecma/base/ecma-gc.c", 
    function=0x48ba60 <__func__.3599.lto_priv.0> "ecma_gc_sweep", line=417) at jerryscript/jerry-core/jrt/jrt-fatals.c:95
#6   0x000000000044abed in ecma_gc_sweep.lto_priv.505 (object_p=0x8b3890 <mem_heap+2064>)
    at jerryscript/jerry-core/ecma/base/ecma-gc.c:417
#7   0x0000000000441f31 in ecma_gc_run () at jerryscript/jerry-core/ecma/base/ecma-gc.c:549
#8   0x0000000000437648 in ecma_finalize () at jerryscript/jerry-core/ecma/base/ecma-init-finalize.c:56
#9   0x0000000000481858 in jerry_cleanup () at jerryscript/jerry-core/jerry.c:1668
#10  0x000000000047fd85 in main (argc=3, argv=0x7fffffffd318) at jerryscript/main-unix.c:591

renatahodovan avatar May 19 '16 14:05 renatahodovan

Works on current master (97be8bf).

ktorpi avatar Jul 08 '16 10:07 ktorpi