runtime icon indicating copy to clipboard operation
runtime copied to clipboard

[JitStress=2] JIT/Methodical/Invoke/25params/25param3c_il_d/25param3c_il_d.exe crashes with COMPlus_JitStress=2

Open sivarv opened this issue 10 years ago • 1 comments

Configuration: Debug Coreclr and Mscorlib.dll Release CoreFx assemblies Release CoreCLR tests OS: Linux

Without COMPlus_JitStress=2 Pass

With COMPlus_JitStress=2 Crashes with Segmentation fault

Even the following tests fail with the same failure mode JIT/Methodical/Invoke/25Params/25param3c_il_r/25param3c_il_r.exe JIT/Methodical/Invoke/25Params/25paramMixed_il_d/25paramMixed_il_d.exe JIT/Methodical/Invoke/25Params/25paramMixed_il_r/25paramMixed_il_r.exe

These tests are failing even without Jitstress=2 on Linux.

sivarv avatar Dec 14 '15 20:12 sivarv

On investigation, this turns out to be the same issue as dotnet/coreclr#2380 . Verified that fix to dotnet/coreclr#2380 also fixes this.

This test is a case of methods with 25 params. Since there are more than 6 params, 25-6 = 19 params gets passed on stack. Due to implicit tail call opt or under Jitstress=2, some of the calls will become fast tail calls. Issue dotnet/coreclr#2380 is about not properly passing stack params in case of fast tail calls on Linux. The same issue leads to an AV on Linux.

Closing this as a duplicate of dotnet/coreclr#2380

sivarv avatar Jan 12 '16 23:01 sivarv