Skip to content

ARM32: Assertion failed 'varDsc->lvType == TYP_STRUCT' in 'System.SpanHelpers:Fill(byref,int,System.__Canon)' during 'Generate code' in jitminopts runs #69350

Closed

Description

@jakobbotsch

Pipeline run: https://dev.azure.com/dnceng/public/_build/results?buildId=1770681&view=results
Job: coreclr Linux arm Checked jitminopts

        Assert failure(PID 528 [0x00000210], Thread: 528 [0x0210]): Assertion failed 'varDsc->lvType == TYP_STRUCT' in 'System.SpanHelpers:Fill(byref,int,System.__Canon)' during 'Generate code' (IL size 911; hash 0xc319f39c; MinOpts)
        
            File: /__w/1/s/src/coreclr/jit/codegenarmarch.cpp Line: 1306
            Image: /root/helix/work/correlation/corerun

Introduced in range 72f9cb2d..6f15fdc8

Activity

  1. ghost added
    area-CodeGen-coreclr
    on May 14, 2022
  2. ghost added
    untriaged
    on May 14, 2022
  3. jakobbotsch commented on May 14, 2022

    @jakobbotsch
    MemberAuthor

    Repros in arm32 altjit for

    public static void Main()
    {
        Span<object> foo = new object[1000];
        foo.Fill(null);
    }

    with COMPlus_JITMinOpts=1

  4. jakobbotsch commented on May 14, 2022

    @jakobbotsch
    MemberAuthor

    Bisected this to #68739, cc @dotnet/jit-contrib @tannergooding

  5. removed
    untriaged
    on May 14, 2022
  6. added this to the 7.0.0 milestone on May 14, 2022
  7. tannergooding commented on May 14, 2022

    @tannergooding
    Member

    I wonder if this is handled by @SingleAccretion's PR: #69271

    It might also be a different issue and in need of its own work item/fix.

  8. SingleAccretion commented on May 14, 2022

    @SingleAccretion
    Contributor

    I will investigate this; on first approximation the assert looks questionable because there is no requirement for the underlying local and the OBJ on top of it to match (there is a similarly questionable assert(!varDsc->lvIsHfa()) assert below).

  9. ghost added
    in-pr
    on May 14, 2022
  10. ghost removed
    in-pr
    on May 14, 2022
  11. ghost locked as resolved and limited conversation to collaborators on Jun 14, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

arch-arm32area-CodeGen-coreclrblocking-clean-ci-optional

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions