runtime icon indicating copy to clipboard operation
runtime copied to clipboard

[RyuJIT/ARM32] Bad exit code in JIT/Methodical/VT/callconv/_il_reljumper4

Open mskvortsov opened this issue 9 years ago • 3 comments

FAILED   - JIT/Methodical/VT/callconv/_il_reljumper4/_il_reljumper4.sh
               BEGIN EXECUTION
               /home/mskvortsov/clr-checked/corerun _il_reljumper4.exe
               Expected: 100
               Actual: 127
               END EXECUTION - FAILED
FAILED   - JIT/Methodical/VT/callconv/_il_reljumper5/_il_reljumper5.sh
               BEGIN EXECUTION
               /home/mskvortsov/clr-checked/corerun _il_reljumper5.exe
               Expected: 100
               Actual: 127
               END EXECUTION - FAILED

The method sub is miscompiled by the new backend:

--- legacy.disasm	2017-07-04 13:46:34.076709552 +0300
+++ ryujit.disasm	2017-07-04 13:46:27.291751526 +0300
@@ -29,7 +29,6 @@
             ldr     r0, [sp+0x04]	// [V00 this]
             ldr     r1, [sp]	// [V01 RetBuf]
             ldr     r2, [sp+0x10]	// [V02 arg1]
-            ldr     r3, [sp+0x14]	// [V02 arg1+0x04]
 
 G_M8345_IG03:
             add     sp, 12

The bug is related to struct passing and seems to be in the genJmpMethod() in the loop at codegenarmarch.cpp:2167 (moving any un-enregistered register arguments back to their register).

cc @dotnet/arm32-contrib

mskvortsov avatar Jul 04 '17 11:07 mskvortsov

In my environment, the result is

FAILED   - [   1]JIT/Methodical/VT/callconv/_il_reljumper4/_il_reljumper4.sh
               BEGIN EXECUTION
               /nfs/rbp3/test/coreoverlay_checked_arm/corerun _il_reljumper4.exe
               Expected: 100
               Actual: 111
               END EXECUTION - FAILED
FAILED   - [   2]JIT/Methodical/VT/callconv/_il_reljumper5/_il_reljumper5.sh
               BEGIN EXECUTION
               /nfs/rbp3/test/coreoverlay_checked_arm/corerun _il_reljumper5.exe
               Expected: 100
               Actual: 111
               END EXECUTION - FAILED

But I could get same result when I tried to run tests separately.

/nfs/rbp3/test/coreoverlay_checked_arm$ ./corerun /nfs/rbp3/test/test/Release/JIT/Methodical/VT/callconv/_il_reljumper4/_il_reljumper4.exe 
/nfs/rbp3/test/coreoverlay_checked_arm$ echo $?
127
/nfs/rbp3/test/coreoverlay_checked_arm$ ./corerun /nfs/rbp3/test/test/Release/JIT/Methodical/VT/callconv/_il_reljumper5/_il_reljumper5.exe 
/nfs/rbp3/test/coreoverlay_checked_arm$ echo $?
127

@BruceForstall Please assign this to me.

hseok-oh avatar Aug 01 '17 01:08 hseok-oh

@hseok-oh Does dotnet/coreclr#13142 fixes this issue and can we close this issue?

hqueue avatar Aug 03 '17 03:08 hqueue

@hqueue I think so @mskvortsov Please close this issue.

hseok-oh avatar Aug 03 '17 05:08 hseok-oh