dotnet / runtime

.NET is a cross-platform runtime for cloud, mobile, desktop, and IoT apps.
https://docs.microsoft.com/dotnet/core/
MIT License
14.96k stars 4.65k forks source link

localloc tests fail with InvalidProgramException #4855

Open richardlford opened 8 years ago

richardlford commented 8 years ago

The following tests fail on a debug win64 test job with this error:

Unhandled Exception: System.InvalidProgramException: 
Common Language Runtime detected an invalid program.

The tests are:

JIT\Methodical\xxobj\operand\_il_dbglocalloc\_il_dbglocalloc.cmd
JIT\Methodical\xxobj\operand\_il_rellocalloc\_il_rellocalloc.cmd
JIT\Methodical\eh\deadcode\badcodeafterfinally_d\badcodeafterfinally_d.cmd
JIT\Methodical\eh\deadcode\badcodeafterfinally_r\badcodeafterfinally_r.cmd

category:testing theme:testing skill-level:beginner cost:small impact:small

RussKeldorph commented 8 years ago

Comment from @LLITCHEV in dotnet/coreclr#2450:

"JIT/Methodical/eh/deadcode/badcodeafterfinally_d/badcodeafterfinally_d.sh This seems to be bad IL. RyuJit (differently to jit64) enforces not to have a jump (or any other way to get out) of try block, but a leave instruction."

RussKeldorph commented 8 years ago

These tests were excluded across the board in an earlier test harness, so it's interesting that they were ported at all. Perhaps they can be modified to expect the current behavior.

RussKeldorph commented 8 years ago

@pgavlin FYI