Skip to content

Intermittent failure in JIT/Directed/coverage/oldtests/tlstest_il_r/tlstest.dll #84818

Closed

Description

@markples

Not much information in the logs:

Output:
08:16:17.751 Running test: JIT/Directed/coverage/oldtests/tlstest_il_r/tlstest.dll
08:16:18.001 Failed test: JIT/Directed/coverage/oldtests/tlstest_il_r/tlstest.dll

Comments:
{ "HelixJobId": "517d00ed-60bb-4043-9a15-6268bcfef42a", "HelixWorkItemName": "Directed_r" }

Error message:
Object reference not set to an instance of an object.

Stack trace:
at tls.tlstest.Main()
at Program.<<Main>$>g__TestExecutor2|0_1(StreamWriter tempLogSw, StreamWriter statsCsvSw, <>c__DisplayClass0_0&)

Instances from refs/heads/main:
#20230411.8 • [browser][non-icu] HybridGlobalization not supported on WASI (#84629) coreclr windows arm Checked no_tiered_compilation @ Windows.11.Arm64.Open
#20230412.1 • [browser][non-icu] HybridGlobalization not supported on WASI (#84629) coreclr windows arm Checked no_tiered_compilation @ Windows.11.Arm64.Open
#20230412.3 • JIT: Add an in-release flag to enable physical promotion (#84689) coreclr windows arm Checked no_tiered_compilation @ Windows.11.Arm64.Open
#20230412.12 • Zlib: Update zlib to v1.2.13, intel-zlib to v1.2.13_jtk (#84602) coreclr windows arm Checked no_tiered_compilation @ Windows.11.Arm64.Open
#20230413.2 • Revert "[browser] Wasm SDK packed as a nuget package (#84082)" (#84743) coreclr windows arm Checked no_tiered_compilation @ Windows.11.Arm64.Open

I started looking at this upon hitting the failure in
#20230413.1 • Fix type initialization ordering under R2R
and finding it unlikely to be from that PR.

Activity

  1. added
    blocking-outerloop
    on Apr 14, 2023
  2. ghost added
    area-CodeGen-coreclr
    on Apr 14, 2023
  3. ghost added
    untriaged
    on Apr 14, 2023
  4. EgorBo commented on Apr 14, 2023

    @EgorBo
    Member

    Can be the TLS PR? cc @kunalspathak

  5. removed
    untriaged
    on Apr 17, 2023
  6. added this to the 8.0.0 milestone on Apr 17, 2023
  7. trylek commented on Apr 17, 2023

    @trylek
    Member

    Apparently we have several non-deterministically failing tests on Windows arm; all that I saw fail with a nullref, either in the runtime when executing the test, or in Crossgen2 when compiling it. The Crossgen2 determinism tests frequently hit this but they are not the only ones, it seems to be sporadically affecting other random tests. I'm wondering whether this may indicate something like an arm-specific GC hole, I find it hard to imagine how this could be caused by a codegen bug.

  8. kunalspathak commented on Apr 17, 2023

    @kunalspathak
    Contributor

    or in Crossgen2 when compiling it.

    Can you share some links to them?

    I'm wondering whether this may indicate something like an arm-specific GC hole

    This test is clearly failing because we are not encoding the information of TLS indirection correctly, leading to something like this:

    00010  202C           movs    r0, 44   ; <--- this should be TLS[44] 
    000012  6800           ldr     r0, [r0]
    000014  6900           ldr     r0, [r0+0x10]
    000016  6C03           ldr     r3, [r0+0x40]
    

    I will work on the fix.

  9. trylek commented on Apr 17, 2023

    @trylek
    Member

    Example run: https://dev.azure.com/dnceng-public/public/_build/results?buildId=241282&view=results

    Failed tests:

    • crossgen2determinism
    • coreroot_determinism
    • BasicTestWithMcj
    • runtimeeventsource
    • BinderTracingTest.ResolutionFlow
  10. trylek commented on Apr 17, 2023

    @trylek
    Member

    Even though at the first glance some of the Crossgen2 tests fail with an AV, when you look at the detailed log, you can see the underlying nullref thrown somewhere inside the compiler.

  11. trylek commented on Apr 17, 2023

    @trylek
    Member

    One thing that seems weird to me is how the codegen problem you describe can cause non-deterministic behavior as the set of affected tests seem to be fluctuating randomly. I should actually double-check this across a couple of runs, maybe I didn't look closely enough and the set of tests is actually stable. If the set of tests is bounded, we could at least add temporary exclusions to issues.targets to make the outerloop green after a while, Jeff asked me to do that last Monday, I have fixed about two or three different problems since then and I'm still not there.

  12. kunalspathak commented on Apr 17, 2023

    @kunalspathak
    Contributor

    Yes, I would hope that this should have surfaced immediately in the outerloop CI.

  13. ghost locked as resolved and limited conversation to collaborators on May 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

arch-arm32area-CodeGen-coreclrblocking-outerloopos-windows

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions