Skip to content

Test failure JIT/HardwareIntrinsics/Arm/AdvSimd.Arm64/AdvSimd.Arm64_Part3_r/AdvSimd.Arm64_Part3_r.sh #52358

Closed

Description

@VincentBu

Run: runtime-coreclr gcstress-extra 20210502.1

Failed test:

CoreCLR OSX arm64 Checked gcstress0xc_jitminopts_heapverify1 @ OSX.1100.ARM64.Open
 -JIT/HardwareIntrinsics/Arm/AdvSimd.Arm64/AdvSimd.Arm64_Part3_r/AdvSimd.Arm64_Part3_r.sh

Error message:

Process terminated. Assertion failed.
 at System.Diagnostics.Tracing.EventSource.InitializeProviderMetadata() in System.Private.CoreLib.dll:token 0x6005d49+0x16b
 at System.Diagnostics.Tracing.EventSource.Initialize(Guid eventSourceGuid, String eventSourceName, String[] traits) in System.Private.CoreLib.dll:token 0x6005d11+0x6a
 at System.Diagnostics.Tracing.EventSource..ctor(Guid eventSourceGuid, String eventSourceName, EventSourceSettings settings, String[] traits) in System.Private.CoreLib.dll:token 0x6005d10+0x2f
 at System.Diagnostics.Tracing.EventSource..ctor(Guid eventSourceGuid, String eventSourceName) in System.Private.CoreLib.dll:token 0x6005d0f+0x0
 at System.Buffers.ArrayPoolEventSource..ctor() in System.Private.CoreLib.dll:token 0x6002556+0x2b
 at System.Buffers.ArrayPoolEventSource..cctor() in System.Private.CoreLib.dll:token 0x6002558+0x0
 at System.Buffers.TlsOverPerCoreLockedStacksArrayPool`1.Rent(Int32 minimumLength) in System.Private.CoreLib.dll:token 0x6002586+0x18
 at Interop.Sys.ReadLink(String path) in System.Private.CoreLib.dll:token 0x6000086+0x6
 at System.TimeZoneInfo.FindTimeZoneIdUsingReadLink(String tzFilePath) in System.Private.CoreLib.dll:token 0x60019d8+0x2
 at System.TimeZoneInfo.TryLoadTzFile(String tzFilePath, Byte[]& rawData, String& id) in System.Private.CoreLib.dll:token 0x60019d7+0x19
 at System.TimeZoneInfo.TryGetLocalTzFile(Byte[]& rawData, String& id) in System.Private.CoreLib.dll:token 0x60019d5+0xf
 at System.TimeZoneInfo.GetLocalTimeZoneFromTzFile() in System.Private.CoreLib.dll:token 0x60019dd+0x0
 at System.TimeZoneInfo.GetLocalTimeZone(CachedData cachedData) in System.Private.CoreLib.dll:token 0x60019d2+0xb
 at System.TimeZoneInfo.CachedData.CreateLocal() in System.Private.CoreLib.dll:token 0x6001a19+0x18
 at System.TimeZoneInfo.CachedData.get_Local() in System.Private.CoreLib.dll:token 0x6001a1a+0xc
 at System.TimeZoneInfo.get_Local() in System.Private.CoreLib.dll:token 0x60019a2+0x0
 at System.TimeZoneInfo.GetDateTimeNowUtcOffsetFromUtc(DateTime time, Boolean& isAmbiguousLocalDst) in System.Private.CoreLib.dll:token 0x60019e1+0x0
 at System.DateTime.get_Now() in System.Private.CoreLib.dll:token 0x6000cb8+0x6
 at TestLibrary.TestFramework.BeginTestCase(String title) in TestLibrary.dll:token 0x6000075+0x53
 at JIT.HardwareIntrinsics.Arm.Program.Main(String[] args) in AdvSimd.Arm64_Part3_r.dll:token 0x6000066+0x20
task_for_pid(875) FAILED 5 (os/kern) failure
/private/tmp/helix/working/A836095C/w/ADCC0966/e/JIT/HardwareIntrinsics/Arm/AdvSimd.Arm64/AdvSimd.Arm64_Part3_r/AdvSimd.Arm64_Part3_r.sh: line 377: 875 Abort trap: 6 (core dumped) $LAUNCHER $ExePath "${CLRTestExecutionArguments[@]}"

Return code: 1
Raw output file: /private/tmp/helix/working/A836095C/w/ADCC0966/e/JIT/HardwareIntrinsics/Reports/JIT.HardwareIntrinsics/Arm/AdvSimd.Arm64/AdvSimd.Arm64_Part3_r/AdvSimd.Arm64_Part3_r.output.txt
Raw output:
BEGIN EXECUTION
/tmp/helix/working/A836095C/p/corerun AdvSimd.Arm64_Part3_r.dll ''
Supported ISAs:
 AdvSimd: True
 Aes: False
 ArmBase: True
 Crc32: True
 Dp: False
 Rdm: False
 Sha1: False
 Sha256: False

Expected: 100
Actual: 134
END EXECUTION - FAILED
Test Harness Exitcode is : 1
To run the test:
> set CORE_ROOT=/tmp/helix/working/A836095C/p
> /private/tmp/helix/working/A836095C/w/ADCC0966/e/JIT/HardwareIntrinsics/Arm/AdvSimd.Arm64/AdvSimd.Arm64_Part3_r/AdvSimd.Arm64_Part3_r.sh
Expected: True
Actual: False

Stack trace
   at JIT_HardwareIntrinsics._Arm_AdvSimd_Arm64_AdvSimd_Arm64_Part3_r_AdvSimd_Arm64_Part3_r_._Arm_AdvSimd_Arm64_AdvSimd_Arm64_Part3_r_AdvSimd_Arm64_Part3_r_sh()

Activity

  1. ghost added
    area-CodeGen-coreclr
    on May 6, 2021
  2. ghost added
    untriaged
    on May 6, 2021
  3. VincentBu commented on May 6, 2021

    @VincentBu
    ContributorAuthor

    Historical failures of this test:

    Queued OS Arch Pipeline
    2021-05-02T23:40:50.21Z osx.1100.arm64.open arm64 runtime-coreclr gcstress-extra Checked-gcstress0xc_jitminopts_heapverify1
    2021-04-11T05:25:12.577Z ubuntu.1804.armarch.open arm runtime-coreclr r2r-extra Checked-gcstress0xf
    2021-04-01T10:16:56.526Z ubuntu.1804.armarch.open arm64 runtime-coreclr crossgen2 outerloop Checked-no_tiered_compilation
    2021-04-01T10:16:55.583Z ubuntu.1804.armarch.open arm64 runtime-coreclr crossgen2 outerloop Checked
    2021-04-01T09:47:40.3Z osx.1013.amd64.open x64 runtime-coreclr crossgen2 outerloop Checked-no_tiered_compilation
    2021-04-01T07:58:13.727Z ubuntu.1804.armarch.open arm64 runtime-coreclr crossgen2 Checked
  4. added and removed
    area-CodeGen-coreclr
    on May 6, 2021
  5. BruceForstall commented on May 6, 2021

    @BruceForstall
    Contributor

    @sdmaclea OSX arm64 gcstress failure

  6. removed
    untriaged
    on May 10, 2021
  7. added this to the 6.0.0 milestone on May 10, 2021
  8. josalem commented on May 10, 2021

    @josalem
    Contributor

    This looks to be the assert that is failing (it's the only assert in the method at the top of the stack short of any inlining):

    #if DEBUG && !ES_BUILD_STANDALONE
    if (hasProviderMetadata)
    {
    // Validate the provided ProviderMetadata still matches in debug
    Debug.Assert(ProviderMetadata.SequenceEqual(m_providerMetadata));
    }
    #endif

    CC @benaadams @sywhang

  9. benaadams commented on May 10, 2021

    @benaadams
    Member

    Suggests ArrayPoolEventSource reflection generated providerMetadata doesn't agree with its source generated providerMetadata in some way. Assume that's not a DesignTimeBuild which disables the source generator #50741; as the project probably wouldn't compile either.

  10. benaadams commented on May 11, 2021

    @benaadams
    Member

    e.g. it should either be failing in Debug for everything or its an issue with SequenceEqual or Encoding.UTF8.GetBytes is producing different outputs between build and runtime?

  11. josalem commented on May 11, 2021

    @josalem
    Contributor

    I spot checked the other failures, and those appear to be crossgen failures:

    Unhandled exception. System.AggregateException: One or more errors occurred. (Code generation failed for method '[AdvSimd.Arm64_Part3_r]JIT.HardwareIntrinsics.Arm.ImmUnaryOpTest__ShiftLeftLogicalSaturateUnsignedScalar_Vector64_Int32_7.RunClassFldScenario()') (Code generation failed for method '[AdvSimd.Arm64_Part3_r]JIT.HardwareIntrinsics.Arm.ImmBinaryOpTest__MultiplyRoundedDoublingScalarBySelectedScalarSaturateHigh_Vector64_Int32_Vector128_Int32_3.RunBasicScenario_Load()')
     ---> ILCompiler.CodeGenerationFailedException: Code generation failed for method '[AdvSimd.Arm64_Part3_r]JIT.HardwareIntrinsics.Arm.ImmUnaryOpTest__ShiftLeftLogicalSaturateUnsignedScalar_Vector64_Int32_7.RunClassFldScenario()'
     ---> System.NullReferenceException: Object reference not set to an instance of an object.
       at ILCompiler.ReadyToRunCompilationModuleGroupBase.VersionsWithType(TypeDesc typeDesc)
       at ILCompiler.DependencyAnalysis.ReadyToRun.ModuleTokenResolver.AddModuleTokenForType(TypeDesc type, ModuleToken token)
       at Internal.JitInterface.CorInfoImpl.resolveToken(CORINFO_RESOLVED_TOKEN& pResolvedToken)
       at Internal.JitInterface.CorInfoImpl._resolveToken(IntPtr thisHandle, IntPtr* ppException, CORINFO_RESOLVED_TOKEN* pResolvedToken)
       --- End of inner exception stack trace ---
       at Internal.JitInterface.CorInfoImpl.CompileMethodInternal(IMethodNode methodCodeNodeNeedingCode, MethodIL methodIL)
       at Internal.JitInterface.CorInfoImpl.CompileMethod(MethodWithGCInfo methodCodeNodeNeedingCode, Logger logger)
       at ILCompiler.ReadyToRunCodegenCompilation.<ComputeDependencyNodeDependencies>b__36_0(DependencyNodeCore`1 dependency)
       at System.Threading.Tasks.Parallel.<>c__DisplayClass33_0`2.<ForEachWorker>b__0(Int32 i)
       at System.Threading.Tasks.Parallel.<>c__DisplayClass19_0`1.<ForWorker>b__1(RangeWorker& currentWorker, Int32 timeout, Boolean& replicationDelegateYieldedBeforeCompletion)
    --- End of stack trace from previous location ---
       at System.Threading.Tasks.Parallel.<>c__DisplayClass19_0`1.<ForWorker>b__1(RangeWorker& currentWorker, Int32 timeout, Boolean& replicationDelegateYieldedBeforeCompletion)
       at System.Threading.Tasks.TaskReplicator.Replica`1.ExecuteAction(Boolean& yieldedBeforeCompletion)
       at System.Threading.Tasks.TaskReplicator.Replica.Execute()
       --- End of inner exception stack trace ---
       at System.Threading.Tasks.TaskReplicator.Run[TState](ReplicatableUserAction`1 action, ParallelOptions options, Boolean stopOnFirstFailure)
       at System.Threading.Tasks.Parallel.ForWorker[TLocal](Int32 fromInclusive, Int32 toExclusive, ParallelOptions parallelOptions, Action`1 body, Action`2 bodyWithState, Func`4 bodyWithLocal, Func`1 localInit, Action`1 localFinally)
    --- End of stack trace from previous location ---
       at System.Threading.Tasks.Parallel.ThrowSingleCancellationExceptionOrOtherException(ICollection exceptions, CancellationToken cancelToken, Exception otherException)
       at System.Threading.Tasks.Parallel.ForWorker[TLocal](Int32 fromInclusive, Int32 toExclusive, ParallelOptions parallelOptions, Action`1 body, Action`2 bodyWithState, Func`4 bodyWithLocal, Func`1 localInit, Action`1 localFinally)
       at System.Threading.Tasks.Parallel.ForEachWorker[TSource,TLocal](IList`1 list, ParallelOptions parallelOptions, Action`1 body, Action`2 bodyWithState, Action`3 bodyWithStateAndIndex, Func`4 bodyWithStateAndLocal, Func`5 bodyWithEverything, Func`1 localInit, Action`1 localFinally)
       at System.Threading.Tasks.Parallel.ForEachWorker[TSource,TLocal](IEnumerable`1 source, ParallelOptions parallelOptions, Action`1 body, Action`2 bodyWithState, Action`3 bodyWithStateAndIndex, Func`4 bodyWithStateAndLocal, Func`5 bodyWithEverything, Func`1 localInit, Action`1 localFinally)
       at System.Threading.Tasks.Parallel.ForEach[TSource](IEnumerable`1 source, ParallelOptions parallelOptions, Action`1 body)
       at ILCompiler.ReadyToRunCodegenCompilation.ComputeDependencyNodeDependencies(List`1 obj)
       at ILCompiler.DependencyAnalysisFramework.DependencyAnalyzer`2.ComputeMarkedNodes()
       at ILCompiler.ReadyToRunCodegenCompilation.Compile(String outputFile)
       at ILCompiler.Program.Run(String[] args)
       at ILCompiler.Program.Main(String[] args)
     ---> (Inner Exception #1) ILCompiler.CodeGenerationFailedException: Code generation failed for method '[AdvSimd.Arm64_Part3_r]JIT.HardwareIntrinsics.Arm.ImmBinaryOpTest__MultiplyRoundedDoublingScalarBySelectedScalarSaturateHigh_Vector64_Int32_Vector128_Int32_3.RunBasicScenario_Load()'
     ---> System.NullReferenceException: Object reference not set to an instance of an object.
       at ILCompiler.ReadyToRunCompilationModuleGroupBase.VersionsWithType(TypeDesc typeDesc)
       at ILCompiler.DependencyAnalysis.ReadyToRun.ModuleTokenResolver.AddModuleTokenForType(TypeDesc type, ModuleToken token)
       at Internal.JitInterface.CorInfoImpl.resolveToken(CORINFO_RESOLVED_TOKEN& pResolvedToken)
       at Internal.JitInterface.CorInfoImpl._resolveToken(IntPtr thisHandle, IntPtr* ppException, CORINFO_RESOLVED_TOKEN* pResolvedToken)
       --- End of inner exception stack trace ---
       at Internal.JitInterface.CorInfoImpl.CompileMethodInternal(IMethodNode methodCodeNodeNeedingCode, MethodIL methodIL)
       at Internal.JitInterface.CorInfoImpl.CompileMethod(MethodWithGCInfo methodCodeNodeNeedingCode, Logger logger)
       at ILCompiler.ReadyToRunCodegenCompilation.<ComputeDependencyNodeDependencies>b__36_0(DependencyNodeCore`1 dependency)
       at System.Threading.Tasks.Parallel.<>c__DisplayClass33_0`2.<ForEachWorker>b__0(Int32 i)
       at System.Threading.Tasks.Parallel.<>c__DisplayClass19_0`1.<ForWorker>b__1(RangeWorker& currentWorker, Int32 timeout, Boolean& replicationDelegateYieldedBeforeCompletion)
    --- End of stack trace from previous location ---
       at System.Threading.Tasks.Parallel.<>c__DisplayClass19_0`1.<ForWorker>b__1(RangeWorker& currentWorker, Int32 timeout, Boolean& replicationDelegateYieldedBeforeCompletion)
       at System.Threading.Tasks.TaskReplicator.Replica`1.ExecuteAction(Boolean& yieldedBeforeCompletion)
       at System.Threading.Tasks.TaskReplicator.Replica.Execute()<---
    

    I'm inclined to believe those are unrelated to the assert failure in the most recent report, though.

    CC @mangod9

  12. josalem commented on May 11, 2021

    @josalem
    Contributor

    e.g. it should either be failing in Debug for everything or its an issue with SequenceEqual or Encoding.UTF8.GetBytes is producing different outputs between build and runtime?

    Of the failures listed, the most recent seems to be the only one that has the assert failing. For what it's worth, it's from a GCStress0xc run on AppSi for hardware intrinsics. It is quite possible that the assert is due to an issue deeper down as you're imply.

  13. sdmaclea commented on May 11, 2021

    @sdmaclea
    Contributor

    I would guess this is the common Apple Silicon instability we are experiencing. Typical symptom is this NullReferenceException.

  14. noahfalk commented on Jul 21, 2021

    @noahfalk
    Member

    @janvorli - since @sdmaclea has left are you the main one investigating Apple Silicon issues? Based on discussion above it appears this issue is unlikely a bug in the EventSource library. I'm going to move it to 7.0 for now and you can feel free to move it wherever else it should go or send it back if I've got it wrong : )

  15. modified the milestones: 6.0.0, 7.0.0 on Jul 21, 2021
  16. janvorli commented on Jul 21, 2021

    @janvorli
    Member

    @noahfalk, this is most likely yet another dup of a known spurious null reference issue, closing it as dup of #51250

  17. ghost locked as resolved and limited conversation to collaborators on Aug 20, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions