Skip to content

Assertion failed 'm_store->TypeGet() == m_src->TypeGet()' during 'Stress gtSplitTree' #93876

Closed

Description

@kunalspathak
// Found by Antigen

using System;
using System.Collections.Generic;
using System.Runtime.CompilerServices;
using System.Runtime.Intrinsics;
using System.Runtime.Intrinsics.Arm;
using System.Numerics;
public class TestClass
{
    public struct S1
    {
    }
    public struct S2
    {
    }
    static float s_float_12 = 0f;
    static S1 s_s1_40 = new S1();
    static S2 s_s2_41 = new S2();
    long long_49 = 0;
    Vector4 v4_78 = new Vector4(5.090909f, -2.1474836E+09f, 5.148148f, 0.054054055f);
    S1 s1_79 = new S1();
    S2 s2_80 = new S2();
    public S1 Method45(ref long p_long_1227, S1 p_s1_1228, out S2 p_s2_1229, ref S1 p_s1_1230, ref S2 p_s2_1231, S1 p_s1_1232, out Vector4 p_v4_1233, ref S2 p_s2_1234, ref S1 p_s1_1235)
    {
        unchecked
        {
            p_s2_1229 = s_s2_41;
            p_v4_1233 = Vector4.Multiply(s_float_12, Vector4.One);
            return p_s1_1235;
        }
    }
    public void Method0()
    {
        unchecked
        {
            S1 s1_2605 = new S1();
            S2 s2_2606 = new S2();
            s1_2605 = Method45(ref long_49, s_s1_40, out s2_80, ref s1_79, ref s2_2606, s1_2605, out v4_78, ref s_s2_41, ref s_s1_40);
            return;
        }
    }
    public static void Main(string[] args)
    {
        new TestClass().Method0();
    }
}
/*
Got output diff:
--------- Baseline ---------  
Environment:
--------- Test ---------  
Environment:
set DOTNET_TieredCompilation=0
set DOTNET_JitStress=1
set DOTNET_AltJitName=clrjit_universal_arm64_x64.dll
set DOTNET_AltJit=Method45
Assert failure(PID 42792 [0x0000a728], Thread: 1268 [0x04f4]): Assertion failed 'm_store->TypeGet() == m_src->TypeGet()' in 'TestClass:Method45(byref,TestClass+S1,byref,byref,byref,TestClass+S1,byref,byref,byref):TestClass+S1:this' during 'Stress gtSplitTree' (IL size 41; hash 0x5f755485; FullOpts)
    File: E:\git\runtime2\src\coreclr\jit\morphblock.cpp Line: 671
    Image: e:\git\runtime2\artifacts\tests\coreclr\windows.x64.Checked\tests\Core_Root\CoreRun.exe
*/

Activity

  1. ghost added
    area-CodeGen-coreclr
    on Oct 23, 2023
  2. ghost added
    untriaged
    on Oct 23, 2023
  3. removed
    untriaged
    on Oct 23, 2023
  4. jakobbotsch commented on Oct 24, 2023

    @jakobbotsch
    Member

    I will take a look.

  5. self-assigned this
    on Oct 24, 2023
  6. added this to the 9.0.0 milestone on Oct 24, 2023
  7. ghost added
    in-pr
    on Nov 6, 2023
  8. added a commit that references this issue on Nov 7, 2023
    0ecd2f4
  9. ghost removed
    in-pr
    on Nov 7, 2023
  10. ghost locked as resolved and limited conversation to collaborators on Dec 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

area-CodeGen-coreclr

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions