Skip to content
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

Test failure: JIT/Regression/JitBlue/Runtime_82535/Runtime_82535/Runtime_82535.dll #112333

Open
v-wenyuxu opened this issue Feb 10, 2025 · 4 comments
Assignees
Labels
arch-x64 area-CodeGen-coreclr CLR JIT compiler in src/coreclr/src/jit and related components such as SuperPMI blocking-clean-ci-optional Blocking optional rolling runs JitStress CLR JIT issues involving JIT internal stress modes os-linux Linux OS (any supported distro)
Milestone

Comments

@v-wenyuxu
Copy link

Failed in: runtime-coreclr jitstress-random 20250209.1

Failed tests:

coreclr linux x64 Checked jitstress_random_2 @ Ubuntu.2204.Amd64.Open
    - JIT/Regression/JitBlue/Runtime_82535/Runtime_82535/Runtime_82535.dll

Error message:

 Object reference not set to an instance of an object.

Stack trace:

   at Program.TestEntryPoint()
   at Program.<<Main>$>g__TestExecutor445|0_446(StreamWriter tempLogSw, StreamWriter statsCsvSw, <>c__DisplayClass0_0&)
@v-wenyuxu v-wenyuxu added arch-x64 blocking-clean-ci-optional Blocking optional rolling runs JitStress CLR JIT issues involving JIT internal stress modes os-linux Linux OS (any supported distro) labels Feb 10, 2025
@dotnet-issue-labeler dotnet-issue-labeler bot added the area-CodeGen-coreclr CLR JIT compiler in src/coreclr/src/jit and related components such as SuperPMI label Feb 10, 2025
@dotnet-policy-service dotnet-policy-service bot added the untriaged New issue has not been triaged by the area owner label Feb 10, 2025
Copy link
Contributor

Tagging subscribers to this area: @JulieLeeMSFT, @jakobbotsch
See info in area-owners.md if you want to be subscribed.

@EgorBo EgorBo self-assigned this Feb 10, 2025
@EgorBo EgorBo removed the untriaged New issue has not been triaged by the area owner label Feb 10, 2025
@EgorBo EgorBo added this to the 10.0.0 milestone Feb 10, 2025
@EgorBo
Copy link
Member

EgorBo commented Feb 10, 2025

Doesn't look to be something new, I can repro it on an old commit as well

@EgorBo
Copy link
Member

EgorBo commented Feb 10, 2025

Seems to be "Objects-on-stack" issue, minimal repro:

using System.Runtime.CompilerServices;

public class Program
{
    [MethodImpl(MethodImplOptions.AggressiveOptimization)]
    public static void Main()
    {
        Bacon bacon = new Bacon(0);
        Foo currentFoo = new Foo();
        try
        {
            currentFoo.m_Bar.m_Bacon = bacon;
        }
        catch{}
    }
}

public class Foo {
    public Bar m_Bar;
}

public class Bar {
    public Bacon m_Bacon;
}

public struct Bacon {
    public float m_f1;
    public float m_f2;
    public float m_f3;
    public float m_f8;
    public float m_f4;
    public Bacon(float minValue) {}
}

@EgorBo
Copy link
Member

EgorBo commented Feb 10, 2025

Hm.. EarlyProp marks all indirs as side-effect free and removes a nullcheck on top of m_Bacon fld. Likely missing GTF_ORDER_SIDEFFECT flags

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
arch-x64 area-CodeGen-coreclr CLR JIT compiler in src/coreclr/src/jit and related components such as SuperPMI blocking-clean-ci-optional Blocking optional rolling runs JitStress CLR JIT issues involving JIT internal stress modes os-linux Linux OS (any supported distro)
Projects
None yet
Development

No branches or pull requests

2 participants