Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
buyaa-n opened this issue Jul 4, 2024 · 5 comments
Labels
area-VM-coreclr blocking-clean-ci Blocking PR or rolling runs of 'runtime' or 'runtime-extra-platforms' Known Build Error Use this to report build issues in the .NET Helix tab
Milestone

Comments

@buyaa-n
Copy link
Contributor

buyaa-n commented Jul 4, 2024

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: #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: 🔎 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: ✅ 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
749371 dotnet/runtime Build product Log #105198
748999 dotnet/runtime Build product Log #105162
749000 dotnet/runtime Build Log #105162
748914 dotnet/runtime Build product Log #105162
748705 dotnet/runtime Build product Log #105162
748706 dotnet/runtime Build Log #105162
748651 dotnet/runtime Build Log #105162
748217 dotnet/runtime Build product Log #105162
748218 dotnet/runtime Build Log #105162
731047 dotnet/runtime Build product Log #104454
Build Definition Test Pull Request
729955 dotnet/runtime LibraryImportGenerator.Unit.Tests.WorkItemExecution #104332

Summary

24-Hour Hit Count 7-Day Hit Count 1-Month Count
0 0 11
@buyaa-n buyaa-n added blocking-clean-ci Blocking PR or rolling runs of 'runtime' or 'runtime-extra-platforms' Known Build Error Use this to report build issues in the .NET Helix tab labels Jul 4, 2024
@dotnet-policy-service dotnet-policy-service bot added the untriaged New issue has not been triaged by the area owner label Jul 4, 2024
Copy link
Contributor

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

Copy link
Contributor

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

@jkoritzinsky
Copy link
Member

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.

Copy link
Contributor

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

@mangod9 mangod9 removed the untriaged New issue has not been triaged by the area owner label Jul 18, 2024
@mangod9 mangod9 added this to the 9.0.0 milestone Jul 18, 2024
@mangod9
Copy link
Member

mangod9 commented Aug 1, 2024

I am closing this as a potential dupe of #104123 which was recently fixed. Please reopen if you continue to notice failures in these tests.

@mangod9 mangod9 closed this as completed Aug 1, 2024
@github-actions github-actions bot locked and limited conversation to collaborators Sep 1, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-VM-coreclr blocking-clean-ci Blocking PR or rolling runs of 'runtime' or 'runtime-extra-platforms' Known Build Error Use this to report build issues in the .NET Helix tab
Projects
Archived in project
Development

No branches or pull requests

3 participants