Skip to content

Source generator tests failing with NullReferenceException in TaskReplicator #110127

Closed
@jkotas

Description

@jkotas
  Starting:    ComInterfaceGenerator.Unit.Tests (parallel test collections = on [2 threads], stop on fail = off)
    ComInterfaceGenerator.Unit.Tests.ComClassGeneratorOutputShape.SingleComClass [FAIL]
      System.AggregateException : One or more errors occurred. (Object reference not set to an instance of an object.)
      ---- System.NullReferenceException : Object reference not set to an instance of an object.
      Stack Trace:
        /_/src/libraries/System.Threading.Tasks.Parallel/src/System/Threading/Tasks/TaskReplicator.cs(158,0): at System.Threading.Tasks.TaskReplicator.Run[TState](ReplicatableUserAction`1 action, ParallelOptions options, Boolean stopOnFirstFailure)
        /_/src/libraries/System.Threading.Tasks.Parallel/src/System/Threading/Tasks/Parallel.cs(982,0): at System.Threading.Tasks.Parallel.ForWorker[TLocal,TInt](TInt fromInclusive, TInt toExclusive, ParallelOptions parallelOptions, Action`1 body, Action`2 bodyWithState, Func`4 bodyWithLocal, Func`1 localInit, Action`1 localFinally)

Build Information

Build: https://dev.azure.com/dnceng-public/cbb18261-c48f-4abb-8651-8cdcb5474649/_build/results?buildId=877993
Build error leg or test failing: ComInterfaceGenerator.Unit.Tests.AddGeneratedComClassTests.TypeThatImplementsGeneratedComInterfaceType_ReportsDiagnostic
Pull request: #110123

Error Message

Fill the error message using step by step known issues guidance.

{
  "ErrorMessage": [ "NullReferenceException", "System.Threading.Tasks.TaskReplicator" ],
  "ErrorPattern": "",
  "BuildRetry": false,
  "ExcludeConsoleLog": false
}

Known issue validation

Build: 🔎 https://dev.azure.com/dnceng-public/public/_build/results?buildId=877993
Error message validated: [NullReferenceException System.Threading.Tasks.TaskReplicator]
Result validation: ✅ Known issue matched with the provided build.
Validation performed at: 11/25/2024 5:47:56 AM UTC

Report

Build Definition Test Pull Request
878074 dotnet/runtime System.Text.RegularExpressions.Tests.RegexGeneratorParserTests.Valid_ClassWithGenericConstraints #109996
877993 dotnet/runtime System.Text.RegularExpressions.Tests.RegexGeneratorParserTests.Valid_ClassWithGenericConstraints #110123

Summary

24-Hour Hit Count 7-Day Hit Count 1-Month Count
2 2 2

Metadata

Metadata

Assignees

No one assigned

    Labels

    Known Build ErrorUse this to report build issues in the .NET Helix tabarea-CodeGen-coreclrCLR JIT compiler in src/coreclr/src/jit and related components such as SuperPMIblocking-clean-ciBlocking PR or rolling runs of 'runtime' or 'runtime-extra-platforms'in-prThere is an active PR which will close this issue when it is merged

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions