jerryscript icon indicating copy to clipboard operation
jerryscript copied to clipboard

Assertion 'ECMA_PROPERTY_IS_PROPERTY_PAIR (prop_iter_p)' failed in ecma_find_internal_property

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 { this.Date.prototype.$ (this.isNaN.length, this.String.fromCharCode.length)  } catch($){}
try { this.String.prototype.constructor.prototype.$(new (this.RegExp)())  } catch($){}
try { this.RegExp.prototype.constructor.prototype.compile ()  } catch($){}
try { this.isNaN (undefined)  } catch($){}
try { new (this.Date)("2015-09-17").constructor.parse()  } catch($){}
try { this.isNaN(this.RegExp.prototype.compile(this.RegExp.prototype))  } catch($){}
try { new $.$ ()  } catch($){}
Backtrace:
ICE: Assertion 'ECMA_PROPERTY_IS_PROPERTY_PAIR (prop_iter_p)' failed at jerryscript/jerry-core/ecma/base/ecma-helpers.c(ecma_find_internal_property):530.
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=0x49daa8 "ECMA_PROPERTY_IS_PROPERTY_PAIR (prop_iter_p)", 
    file=0x49d6e0 "jerryscript/jerry-core/ecma/base/ecma-helpers.c", 
    function=0x48bea0 <__func__.3506.lto_priv.475> "ecma_find_internal_property", line=530)
    at jerryscript/jerry-core/jrt/jrt-fatals.c:95
#6   0x0000000000443eac in ecma_find_internal_property (object_p=0x8b35f8 <mem_heap+1400>, property_id=ECMA_INTERNAL_PROPERTY_FREE_CALLBACK)
    at jerryscript/jerry-core/ecma/base/ecma-helpers.c:530
#7   0x0000000000445da3 in ecma_get_external_pointer_value (obj_p=0x8b35f8 <mem_heap+1400>, id=ECMA_INTERNAL_PROPERTY_FREE_CALLBACK, 
    out_pointer_p=0x7fffffffcbe8) at jerryscript/jerry-core/ecma/base/ecma-helpers-external-pointers.c:116
#8   0x000000000044aba4 in ecma_gc_sweep.lto_priv.505 (object_p=0x8b35f8 <mem_heap+1400>)
    at jerryscript/jerry-core/ecma/base/ecma-gc.c:409
#9   0x0000000000441f31 in ecma_gc_run () at jerryscript/jerry-core/ecma/base/ecma-gc.c:549
#10  0x0000000000437648 in ecma_finalize () at jerryscript/jerry-core/ecma/base/ecma-init-finalize.c:56
#11  0x0000000000481858 in jerry_cleanup () at jerryscript/jerry-core/jerry.c:1668
#12  0x000000000047fd85 in main (argc=3, argv=0x7fffffffd318) 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