Skip to content

System.Collections.Concurrent.Tests.ConcurrentStackTests.ManyConcurrentAddsTakes_ForceContentionWithToArray - NullReferenceException  #76141

Open
@karelz

Description

@karelz

Test affected:

  • ManyConcurrentAddsTakes_ForceContentionWithToArray - System.Collections.Concurrent.Tests.ConcurrentStackTests.ManyConcurrentAddsTakes_ForceContentionWithToArray

Runfo failures in last 30 days

As of 9/24:

Day Run OS Notes
9/22 Rolling run 27269 (release/7.0) net7.0-tvOS-Release-arm64-Mono_Release-OSX.1100.Amd64.AppleTV.Open Console
9/12 Rolling run 13766 (main) net7.0-tvOS-Release-arm64-Mono_Release-OSX.1100.Amd64.AppleTV.Open Console

Error:

System.Collections.Concurrent.Tests.ConcurrentStackTests.ManyConcurrentAddsTakes_ForceContentionWithToArray(seconds: 1)

System.NullReferenceException : Object reference not set to an instance of an object
   at System.Runtime.Intrinsics.Vector128`1[[System.Int32, System.Private.CoreLib, Version=7.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]].get_Count()
   at System.SpanHelpers.IndexOfValueType[Int32,DontNegate`1](Int32& searchSpace, Int32 value, Int32 length)
   at System.Array.IndexOf[Int32](Int32[] array, Int32 value, Int32 startIndex, Int32 count)
   at System.Array.InternalArray__ICollection_Contains[Int32](Int32 item)
   at System.Collections.Concurrent.Tests.ProducerConsumerCollectionTests.ManyConcurrentAddsTakes_ForceContentionWithToArray(Double seconds)
   at System.Reflection.MethodInvoker.InterpretedInvoke(Object obj, Span`1 args, BindingFlags invokeAttr)

Currently (9/24) no Kusto entries due to recent infra problems:

let failedTests = (testNameSubstring : string, methodName : string, messageSubstr: string, includePR : bool, includePassedOnRerun : bool) {
cluster('engsrvprod.kusto.windows.net').database('engineeringdata').AzureDevOpsTests
    | where TestName contains testNameSubstring
    | where includePassedOnRerun or (Outcome == 'Failed')
    | extend startOfTestName = indexof_regex(TestName, @"[^.]+$")
    | extend Method = substring(TestName, startOfTestName)
    | extend Type = substring(TestName, 0, startOfTestName - 1)
    | project-away startOfTestName
    | where (methodName == '') or (Method == methodName)
    | where Message contains messageSubstr
    | distinct JobId, WorkItemId, Message, StackTrace, Method, Type, Arguments, Outcome
    | join kind=inner (cluster('engsrvprod.kusto.windows.net').database('engineeringdata').Jobs
        | where ((Branch == 'refs/heads/main') or (Branch == 'refs/heads/master') or (includePR and (Source startswith "pr/")))
        | where Type startswith "test/functional/cli/"
            and not(Properties contains "runtime-staging")
        | summarize arg_max(Finished, Properties, Type, Branch, Source, Started, QueueName) by JobId
        | project-rename JobType = Type) on JobId
    | extend PropertiesJson = parse_json(Properties)
    | extend OS = replace_regex(tostring(PropertiesJson.operatingSystem), @'\((.*)\).*|([^\(].*)', @'\1\2')
    | extend Runtime = iif(PropertiesJson.runtimeFlavor == "mono", "Mono", iif(PropertiesJson.DefinitionName contains "coreclr", "CoreCLR", ""))
    | extend TargetBranch = extractjson("$.['System.PullRequest.TargetBranch']", Properties)
    | extend Architecture = PropertiesJson.architecture
    | extend Scenario = iif(isempty(PropertiesJson.scenario), "--", PropertiesJson.scenario)
    //| extend DefinitionName = PropertiesJson.DefinitionName
    | project-away PropertiesJson
};
failedTests(
    '', //testNameSubstring
    'ManyConcurrentAddsTakes_ForceContentionWithToArray', //methodName
    '', //messageSubstr
    true,  //includePR
    true); //includePassedOnRerun

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions