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

JIT: Assertion failed '!m_compiler->lvaInSsa(tree->GetLclNum())' during 'Assertion prop' #90377

Closed
jakobbotsch opened this issue Aug 11, 2023 · 2 comments
Assignees
Labels
area-CodeGen-coreclr CLR JIT compiler in src/coreclr/src/jit and related components such as SuperPMI
Milestone

Comments

@jakobbotsch
Copy link
Member

// Generated by Fuzzlyn v1.5 on 2023-08-10 23:00:28
// Run on X64 Windows
// Seed: 4252487236530659884
// Reduced from 45.5 KiB to 0.7 KiB in 00:01:26
// Hits JIT assert in Release:
// Assertion failed '!m_compiler->lvaInSsa(tree->GetLclNum())' in 'Program:Main(Fuzzlyn.ExecutionServer.IRuntime)' during 'Assertion prop' (IL size 112; hash 0xade6b36b; FullOpts)
// 
//     File: D:\a\_work\1\s\src\coreclr\jit\optimizer.cpp Line: 6440
// 
public class Program
{
    public static long s_2;
    public static bool s_3;
    public static byte[][] s_4;
    public static void Main()
    {
        if (!((1 >> (ushort)(0 * s_2)) >= 0))
        {
            try
            {
                s_2 <<= 0;
            }
            finally
            {
                s_3 = false;
                byte vr7 = 0;
                long[] vr8 = new long[]{0};
                s_4[0][0] = vr7;
                int vr9 = 0;
                vr9 = (ushort)(vr8[0] % vr9++);
                s_4[0] = new byte[]{1};
                var vr10 = new byte[, ]{{0, 0, 1, 0, 0, 0, 1, 0, 0}};
            }
        }
    }
}

Putting this in 9.0 since it seems to be related to statically dead code.

@jakobbotsch jakobbotsch added this to the 9.0.0 milestone Aug 11, 2023
@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 Aug 11, 2023
@ghost
Copy link

ghost commented Aug 11, 2023

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

Issue Details
// Generated by Fuzzlyn v1.5 on 2023-08-10 23:00:28
// Run on X64 Windows
// Seed: 4252487236530659884
// Reduced from 45.5 KiB to 0.7 KiB in 00:01:26
// Hits JIT assert in Release:
// Assertion failed '!m_compiler->lvaInSsa(tree->GetLclNum())' in 'Program:Main(Fuzzlyn.ExecutionServer.IRuntime)' during 'Assertion prop' (IL size 112; hash 0xade6b36b; FullOpts)
// 
//     File: D:\a\_work\1\s\src\coreclr\jit\optimizer.cpp Line: 6440
// 
public class Program
{
    public static long s_2;
    public static bool s_3;
    public static byte[][] s_4;
    public static void Main()
    {
        if (!((1 >> (ushort)(0 * s_2)) >= 0))
        {
            try
            {
                s_2 <<= 0;
            }
            finally
            {
                s_3 = false;
                byte vr7 = 0;
                long[] vr8 = new long[]{0};
                s_4[0][0] = vr7;
                int vr9 = 0;
                vr9 = (ushort)(vr8[0] % vr9++);
                s_4[0] = new byte[]{1};
                var vr10 = new byte[, ]{{0, 0, 1, 0, 0, 0, 1, 0, 0}};
            }
        }
    }
}

Putting this in 9.0 since it seems to be related to statically dead code.

Author: jakobbotsch
Assignees: -
Labels:

area-CodeGen-coreclr

Milestone: 9.0.0

@jakobbotsch
Copy link
Member Author

This doesn't repro anymore.

@github-actions github-actions bot locked and limited conversation to collaborators May 9, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-CodeGen-coreclr CLR JIT compiler in src/coreclr/src/jit and related components such as SuperPMI
Projects
None yet
Development

No branches or pull requests

1 participant