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

Assertion failed 'vnStore->VNExcIsSubset(nodeExcSet.GetLiberal(), operandsExcSet.GetLiberal())' during 'Do value numbering' #64208

Closed
kunalspathak opened this issue Jan 24, 2022 · 3 comments · Fixed by #64230
Labels
area-CodeGen-coreclr CLR JIT compiler in src/coreclr/src/jit and related components such as SuperPMI

Comments

@kunalspathak
Copy link
Member

// Found by Antigen
using System;
using System.Collections.Generic;
using System.Runtime.CompilerServices;
public class TestClass
{
    public struct S1
    {
    }
    static S1 s_s1_32 = new S1();
    public S1 LeafMethod15()
    {
        unchecked
        {
            return s_s1_32;
        }
    }
    public void Method0()
    {
        unchecked
        {
            LeafMethod15();
            return;
        }
    }
    public static void Main(string[] args)
    {
        new TestClass().Method0();
    }
}

/*
Environment:

set COMPlus_TieredCompilation=0
set COMPlus_JitAggressiveInlining=1

Assert failure(PID 71508 [0x00011754], Thread: 29652 [0x73d4]): Assertion failed 'vnStore->VNExcIsSubset(nodeExcSet.GetLiberal(), operandsExcSet.GetLiberal())' in 'TestClass:Method0():this' during 'Do value numbering' (IL size 8)
    File: D:\git\dotnet-runtime\src\coreclr\jit\valuenum.cpp Line: 11074
    Image: d:\git\dotnet-runtime\artifacts\tests\coreclr\windows.x64.Checked\tests\Core_Root\CoreRun.exe
*/
@kunalspathak kunalspathak added the area-CodeGen-coreclr CLR JIT compiler in src/coreclr/src/jit and related components such as SuperPMI label Jan 24, 2022
@ghost
Copy link

ghost commented Jan 24, 2022

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

Issue Details
// Found by Antigen
using System;
using System.Collections.Generic;
using System.Runtime.CompilerServices;
public class TestClass
{
    public struct S1
    {
    }
    static S1 s_s1_32 = new S1();
    public S1 LeafMethod15()
    {
        unchecked
        {
            return s_s1_32;
        }
    }
    public void Method0()
    {
        unchecked
        {
            LeafMethod15();
            return;
        }
    }
    public static void Main(string[] args)
    {
        new TestClass().Method0();
    }
}

/*
Environment:

set COMPlus_TieredCompilation=0
set COMPlus_JitAggressiveInlining=1

Assert failure(PID 71508 [0x00011754], Thread: 29652 [0x73d4]): Assertion failed 'vnStore->VNExcIsSubset(nodeExcSet.GetLiberal(), operandsExcSet.GetLiberal())' in 'TestClass:Method0():this' during 'Do value numbering' (IL size 8)
    File: D:\git\dotnet-runtime\src\coreclr\jit\valuenum.cpp Line: 11074
    Image: d:\git\dotnet-runtime\artifacts\tests\coreclr\windows.x64.Checked\tests\Core_Root\CoreRun.exe
*/
Author: kunalspathak
Assignees: -
Labels:

area-CodeGen-coreclr

Milestone: -

@dotnet-issue-labeler dotnet-issue-labeler bot added the untriaged New issue has not been triaged by the area owner label Jan 24, 2022
@kunalspathak
Copy link
Member Author

@dotnet/jit-contrib , @jakobbotsch

@SingleAccretion
Copy link
Contributor

I will take a look, should be a straightforward fix.

@SingleAccretion SingleAccretion self-assigned this Jan 24, 2022
@SingleAccretion SingleAccretion removed the untriaged New issue has not been triaged by the area owner label Jan 24, 2022
@ghost ghost added the in-pr There is an active PR which will close this issue when it is merged label Jan 24, 2022
@ghost ghost removed the in-pr There is an active PR which will close this issue when it is merged label Jan 26, 2022
@ghost ghost locked as resolved and limited conversation to collaborators Feb 25, 2022
@SingleAccretion SingleAccretion removed their assignment May 31, 2022
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

Successfully merging a pull request may close this issue.

2 participants