-
Notifications
You must be signed in to change notification settings - Fork 4.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Assertion failed '(constIndexOffset % elemSize) == 0' #67870
Comments
Tagging subscribers to this area: @JulieLeeMSFT Issue DetailsTest: JIT\Regression\JitBlue\Runtime_56953\Runtime_56953\Runtime_56953.cmd
@dotnet/jit-contrib
|
Hit this on Antigen run as well. // Found by Antigen
using System;
using System.Collections.Generic;
using System.Runtime.CompilerServices;
public class TestClass
{
public struct S1
{
}
public struct S2
{
public struct S2_D1_F1
{
public uint uint_1;
}
}
static short s_short_8 = -2;
static int s_int_9 = 2;
static sbyte s_sbyte_11 = 5;
static string s_string_13 = "1DW3N";
static ushort s_ushort_14 = 5;
static uint s_uint_15 = 83;
static S2.S2_D1_F1 s_s2_s2_d1_f1_18 = new S2.S2_D1_F1();
int int_26 = 2147483647;
sbyte sbyte_28 = -2;
ulong ulong_33 = 2;
S1 s1_34 = new S1();
[MethodImpl(MethodImplOptions.NoInlining)]
public int LeafMethod6()
{
unchecked
{
return 15^4+ (s_int_9 += int_26 %= int_26+ 43* (int_26 -= s_int_9));
}
}
[MethodImpl(MethodImplOptions.NoInlining)]
public sbyte LeafMethod8()
{
unchecked
{
return sbyte_28 <<= (s_int_9 /= 15+4)- (s_sbyte_11 >>= 15^4^ s_int_9 - LeafMethod6());
}
}
public sbyte Method2(out S1 p_s1_60, out S1 p_s1_61, out ulong p_ulong_62, ulong p_ulong_63, sbyte p_sbyte_64, ushort p_ushort_65, out uint p_uint_66)
{
unchecked
{
p_ulong_62 = ulong_33;
p_uint_66 = s_s2_s2_d1_f1_18.uint_1 <<= (s_int_9 ^= LeafMethod6())| 15*4;
return (sbyte)(LeafMethod8() | 15+4);
}
}
public short Method3(ushort p_ushort_84, ref string p_string_85, float p_float_86)
{
unchecked
{
sbyte sbyte_95 = 6;
ulong ulong_100 = 5;
if (15<4)
{
}
else
{
s_sbyte_11 &= (sbyte)(Method2(out s1_34, out s1_34, out ulong_100, 15+4, (sbyte)(LeafMethod8() - sbyte_95), 15+4, out s_uint_15) | 15+4);
}
return 15+4;
}
}
public void Method0()
{
unchecked
{
s_short_8 = Method3(s_ushort_14, ref s_string_13, 15%4);
return;
}
}
public static void Main(string[] args)
{
new TestClass().Method0();
}
}
/*
--------- Test ---------
Environment:
set COMPlus_JitOptRepeat=*
set COMPlus_AltJitName=clrjit_universal_arm64_x64.dll
set COMPlus_AltJit=CalculateMetadataLocation
Unhandled exception.
Assert failure(PID 366276 [0x000596c4], Thread: 36932 [0x9044]): Assertion failed '(constIndexOffset % elemSize) == 0' in 'System.Reflection.PortableExecutable.PEHeaders:CalculateMetadataLocation(long,byref,byref):this' during 'Do value numbering' (IL size 249; hash 0x5b6a880a; FullOpts)
File: D:\git\runtime\src\coreclr\jit\gentree.cpp Line: 17355
Image: D:\git\runtime\artifacts\tests\coreclr\windows.x64.Checked\tests\Core_Root\CoreRun.exe
*/ |
@SingleAccretion did you have a chance to look at this issue yet? |
@JulieLeeMSFT Looks like it already was disabled by #67978. |
Not yet. For some context, we have had an identical issue for quite some time: #57856, and the root cause is that we try to deconstruct the IR to get to the index, which tends to break down when Edit: this is a |
@SingleAccretion You re-enabled this test with #70237 Now it is failing in jitstress on arm64: https://dev.azure.com/dnceng/public/_build/results?buildId=1807505&view=ms.vss-test-web.build-test-results-tab |
Tracking: dotnet#67870
@AndyAyersMS PTAL if we need to enable this test in .NET 8. |
Moving this back to 8.0 for now so I don't forget about it. |
Ah, this is windows arm and JitOptRepeat, so will move it back out of 8.0. |
I'll take this one. |
This test was re-enabled by #100717. Looks like Bruce's |
Test: JIT\Regression\JitBlue\Runtime_56953\Runtime_56953\Runtime_56953.cmd
coreclr windows arm Checked @ Windows.10.Arm64v8.Open
https://dev.azure.com/dnceng/public/_build/results?buildId=1710403&view=ms.vss-test-web.build-test-results-tab&runId=46520194&paneView=debug
@dotnet/jit-contrib
category:correctness
theme:value-numbering
skill-level:intermediate
cost:small
impact:small
The text was updated successfully, but these errors were encountered: