runtime icon indicating copy to clipboard operation
runtime copied to clipboard

ARM64: GC Heap Corruption causes multiple test failures with IndexOutOutRange in method findLCS

Open briansull opened this issue 10 years ago • 3 comments

A portion of the active GC heap is getting incorrectly zeroed when allocating a new array object. This cause several test failures with the following stack trace back:

Unhandled Exception: System.IndexOutOfRangeException: Index was outside the bounds of the array. at JitTest.LCS.findLCS(Int32[,,,] c, Int32[,,,] b, Char[][] seq) at JitTest.LCS.Main()

The following tests are failing due to this:

_il_dbglcs_ldlen.exe_3589 _il_rellcs_ldlen.exe_3590 _speed_dbglcs.exe_3599 _speed_dbglcs.exe_4685 _speed_dbglcsbas.exe_3601 _speed_rellcs.exe_3607 _speed_rellcs.exe_4687 _speed_rellcsbas.exe_3609

Upon entry to the method ldlen!JitTest.LCS.findLCS(Int32[,,,], Int32[,,,], Char[][]) the third parameter conbtains a valid GC array object for Char[],[] when calling the helper method CORINFO_HELP_NEWARR_1_OBJ the data for this object gets zeroed out using memclr() called from gc_heap::adjust_limit_clr.

See attached file: DebugSession for additional details:

DebugSession.txt

briansull avatar Jan 19 '16 21:01 briansull

These tests are still failing

briansull avatar Mar 01 '16 01:03 briansull

PTAL @russellhadley

briansull avatar Mar 03 '16 23:03 briansull

These failures could be caused by a failure of the ARM64 JIT To report these array as live GC references when a GC takes place.

briansull avatar Mar 03 '16 23:03 briansull