Skip to content

Assertion failed '((tree->gtDebugFlags & GTF_DEBUG_NODE_MORPHED) == 0) && "ERROR: Already morphed this node!"' #56962

Closed

Description

@kunalspathak
COMPlus_JitSkipArrayBoundCheck=1

Gets following error during startup:

Assert failure(PID 26952 [0x00006948], Thread: 30492 [0x771c]): Assertion failed '((tree->gtDebugFlags & GTF_DEBUG_NODE_MORPHED) == 0) && "ERROR: Already morphed this node!"' in 'System.Runtime.CompilerServices.CastHelpers:StelemRef(System.Array,int,System.Object)' during 'Morph - Global' (IL size 86)

    File: D:\git\runtime\src\coreclr\jit\morph.cpp Line: 15216
    Image: D:\git\runtime\artifacts\tests\coreclr\windows.x64.Checked\tests\Core_Root\CoreRun.exe


category:correctness
theme:bounds-checks
skill-level:beginner
cost:small
impact:small

Activity

  1. ghost added
    area-CodeGen-coreclrCLR JIT compiler in src/coreclr/src/jit and related components such as SuperPMI
    on Aug 6, 2021
  2. ghost added
    untriagedNew issue has not been triaged by the area owner
    on Aug 6, 2021
  3. kunalspathak commented on Aug 6, 2021

    @kunalspathak
    ContributorAuthor

    @dotnet/jit-contrib

  4. added this to the 6.0.0 milestone on Aug 6, 2021
  5. removed
    untriagedNew issue has not been triaged by the area owner
    on Aug 6, 2021
  6. JulieLeeMSFT commented on Aug 6, 2021

    @JulieLeeMSFT
    Member
  7. echesakov commented on Aug 6, 2021

    @echesakov
    Contributor

    I will take a look.

  8. echesakov commented on Aug 13, 2021

    @echesakov
    Contributor

    I have been looking into this issue for a while and I don't think we can end up at this assert other than by setting COMPlus_JitSkipArrayBoundCheck=1.

    I still think we should fix the broken invariant (it's not clear how though), so I propose to move the issue to 7.0.0.
    @dotnet/jit-contrib Any objections?

  9. kunalspathak commented on Aug 13, 2021

    @kunalspathak
    ContributorAuthor

    Sounds good to me and that is the reason I marked it as Pri3.

  10. modified the milestones: 6.0.0, 7.0.0 on Aug 13, 2021
  11. echesakov commented on Mar 15, 2022

    @echesakov
    Contributor

    Un-assigning myself
    cc @BruceForstall

  12. removed their assignment
    on Mar 15, 2022
  13. modified the milestones: 7.0.0, 8.0.0 on May 26, 2022
  14. modified the milestones: 8.0.0, Future on Jun 16, 2023
  15. AndyAyersMS commented on Jun 6, 2025

    @AndyAyersMS
    Member

    Fixed by #110787

  16. locked and limited conversation to collaborators on Jul 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Priority:3Work that is nice to havearea-CodeGen-coreclrCLR JIT compiler in src/coreclr/src/jit and related components such as SuperPMI

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions