dotnet / runtime

.NET is a cross-platform runtime for cloud, mobile, desktop, and IoT apps.
https://docs.microsoft.com/dotnet/core/
MIT License
14.56k stars 4.55k forks source link

AccessViolationException on LibraryImportGenerator unit test on release coreclr osx x64 Debug #104415

Open buyaa-n opened 5 days ago

buyaa-n commented 5 days ago

Build Information

Build: https://dev.azure.com/dnceng-public/cbb18261-c48f-4abb-8651-8cdcb5474649/_build/results?buildId=729955 Build error leg or test failing: LibraryImportGenerator.Unit.Tests.WorkItemExecution Pull request: https://github.com/dotnet/runtime/pull/104332 CI leg: release coreclr osx x64 Debug

Error Message

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

{
  "ErrorMessage": ["LibraryImportGenerator", "Attempted to read or write protected memory. This is often an indication that other memory is corrupt"],
  "ErrorPattern": "",
  "BuildRetry": false,
  "ExcludeConsoleLog": false
}

Log: https://helix.dot.net/api/2019-06-17/jobs/158bfab4-82ef-4007-b2bd-861d43c4cfda/workitems/LibraryImportGenerator.Unit.Tests/console

Starting:    LibraryImportGenerator.Unit.Tests (parallel test collections = on [12 threads], stop on fail = off)
Fatal error. System.AccessViolationException: Attempted to read or write protected memory. This is often an indication that other memory is corrupt.
   at Microsoft.CodeAnalysis.CommonReferenceManager`2[[System.__Canon, System.Private.CoreLib, Version=9.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[System.__Canon, System.Private.CoreLib, Version=9.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]].ReuseAssemblySymbolsWithNoPiaLocalTypes(BoundInputAssembly<System.__Canon,System.__Canon>[], System.__Canon[], System.Collections.Immutable.ImmutableArray`1<AssemblyData<System.__Canon,System.__Canon>>, Int32)
   at Microsoft.CodeAnalysis.CommonReferenceManager`2[[System.__Canon, System.Private.CoreLib, Version=9.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[System.__Canon, System.Private.CoreLib, Version=9.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]].Bind(System.Collections.Immutable.ImmutableArray`1<AssemblyData<System.__Canon,System.__Canon>>, System.Collections.Immutable.ImmutableArray`1<Microsoft.CodeAnalysis.PEModule>, System.Collections.Immutable.ImmutableArray`1<Microsoft.CodeAnalysis.MetadataReference>, System.Collections.Immutable.ImmutableArray`1<ResolvedReference<System.__Canon,System.__Canon>>, Microsoft.CodeAnalysis.MetadataReferenceResolver, Microsoft.CodeAnalysis.MetadataImportOptions, Boolean, System.Collections.Generic.Dictionary`2<System.String,System.Collections.Generic.List`1<ReferencedAssemblyIdentity<System.__Canon,System.__Canon>>>, System.Collections.Immutable.ImmutableArray`1<AssemblyData<System.__Canon,System.__Canon>> ByRef, System.Collections.Immutable.ImmutableArray`1<Microsoft.CodeAnalysis.MetadataReference> ByRef, System.Collections.Immutable.ImmutableArray`1<ResolvedReference<System.__Canon,System.__Canon>> ByRef, System.Collections.Immutable.ImmutableDictionary`2<Microsoft.CodeAnalysis.AssemblyIdentity,Microsoft.CodeAnalysis.PortableExecutableReference> ByRef, Microsoft.CodeAnalysis.DiagnosticBag, Boolean ByRef, Int32 ByRef)

Known issue validation

Build: :mag_right: https://dev.azure.com/dnceng-public/public/_build/results?buildId=729955 Error message validated: [LibraryImportGenerator Attempted to read or write protected memory. This is often an indication that other memory is corrupt] Result validation: :white_check_mark: Known issue matched with the provided build. Validation performed at: 7/4/2024 4:59:19 AM UTC

Report

Build Definition Step Name Console log Pull Request
731047 dotnet/runtime Build product Log dotnet/runtime#104454
Build Definition Test Pull Request
729955 dotnet/runtime LibraryImportGenerator.Unit.Tests.WorkItemExecution dotnet/runtime#104332

Summary

24-Hour Hit Count 7-Day Hit Count 1-Month Count
0 2 2
dotnet-policy-service[bot] commented 5 days ago

Tagging subscribers to this area: @dotnet/area-system-collections See info in area-owners.md if you want to be subscribed.

dotnet-policy-service[bot] commented 5 days ago

Tagging subscribers to this area: @dotnet/interop-contrib See info in area-owners.md if you want to be subscribed.

jkoritzinsky commented 5 days ago

Failures like this in the unit tests are generally VM failures (as the unit tests are entirely managed code and use Roslyn, which generally stresses the runtime). Re-triaging to VM-coreclr to start.

dotnet-policy-service[bot] commented 5 days ago

Tagging subscribers to this area: @mangod9 See info in area-owners.md if you want to be subscribed.