Skip to content

Collectible AssemblyLoadContexts are not supported by MonoVM  #34072

Open
@SamMonoRT

Description

@SamMonoRT

When running the following CoreCLR tests on the Mono runtime from the dotnet\runtime repo, we get the error :

System.ExecutionEngineException: Collectible AssemblyLoadContexts are not yet supported by MonoVM
             at System.Runtime.Loader.AssemblyLoadContext.InitializeAssemblyLoadContext(IntPtr thisHandlePtr, Boolean representsTPALoadContext, Boolean isCollectible) in /Users/samarthpatel/Documents/DotNetRunTime/runtime/src/mono/netcore/System.Private.CoreLib/src/System/Runtime/Loader/AssemblyLoadContext.Mono.cs:line 23
             at System.Runtime.Loader.AssemblyLoadContext..ctor(Boolean representsTPALoadContext, Boolean isCollectible, String name) in /Users/samarthpatel/Documents/DotNetRunTime/runtime/src/libraries/System.Private.CoreLib/src/System/Runtime/Loader/AssemblyLoadContext.cs:line 94
             at System.Runtime.Loader.AssemblyLoadContext..ctor(Boolean isCollectible) in 

Tests failing with this issue :

  1. Interop/ICustomMarshaler/ConflictingNames/MultipleALCs/MultipleALCs.sh
  2. Loader/ContextualReflection/ContextualReflection/ContextualReflection.sh

Repro : Command to run individual tests : From the dotnet\runtime repo src\mono\netcore run this command - make run-tests-coreclr CoreClrTest="bash ../../artifacts/tests/coreclr/OSX.x64.Debug/Interop/ICustomMarshaler/ConflictingNames/MultipleALCs/MultipleALCs.sh"

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions