Skip to content

Test failure: Loader/CollectibleAssemblies/ResolvedFromDifferentContext/ResolvedFromDifferentContext/ResolvedFromDifferentContext.cmd #112618

Closed

Description

@v-wenyuxu

Failed in: runtime-coreclr gcstress-extra 20250215.1

Failed tests:

coreclr windows x86 Checked gcstress0xc_tailcallstress @ Windows.10.Amd64.Open
    - Loader/CollectibleAssemblies/ResolvedFromDifferentContext/ResolvedFromDifferentContext/ResolvedFromDifferentContext.cmd

Error message:

 
Return code:      1
Raw output file:      C:hwA39F08BEwC5F70AA8uploadsCollectibleAssembliesResolvedFromDifferentContextResolvedFromDifferentContextoutput.txt
Raw output:
BEGIN EXECUTION
 "C:hwA39F08BEpcorerun.exe" -p "System.Reflection.Metadata.MetadataUpdater.IsSupported=false" -p "System.Runtime.Serialization.EnableUnsafeBinaryFormatterSerialization=true"  ResolvedFromDifferentContext.dll 
Running test case ResolvingEvent
Resolving event by alc "Dependencies" System.Runtime.Loader.AssemblyLoadContext #0 for alc "Test1" System.Runtime.Loader.AssemblyLoadContext #1
Loading TestInterface by alc "Dependencies" System.Runtime.Loader.AssemblyLoadContext #0 for collectible alc "Test1" System.Runtime.Loader.AssemblyLoadContext #1
Type TestClass.Class obtained
Method Void MainTest() obtained
Load done
TestInterface.Class.Test
Failed to unload alc1
Xunit.Sdk.EqualException: Assert.Equal() Failure: Values differ
Expected: 100
Actual:   103
   at Xunit.Assert.Equal[T](T expected, T actual, IEqualityComparer`1 comparer) in /_/src/Microsoft.DotNet.XUnitAssert/src/EqualityAsserts.cs:line 174
   at __GeneratedMainWrapper.Main()
Expected: 100
Actual: 101
END EXECUTION - FAILED
FAILED
Test failed. Trying to see if dump file was created in C:cores since 2/15/2025 11:17:32 PM
Test Harness Exitcode is : 1
To run the test:
Set up CORE_ROOT and run.
> C:hwA39F08BEwC5F70AA8eLoaderLoader../CollectibleAssemblies/ResolvedFromDifferentContext/ResolvedFromDifferentContext/ResolvedFromDifferentContext.cmd

Stack trace:

   at Xunit.Assert.True(Nullable`1 condition, String userMessage) in /_/src/Microsoft.DotNet.XUnitAssert/src/BooleanAsserts.cs:line 141
   at Xunit.Assert.True(Boolean condition, String userMessage) in /_/src/Microsoft.DotNet.XUnitAssert/src/BooleanAsserts.cs:line 123
   at Program.<<Main>$>g__TestExecutor322|0_323(StreamWriter tempLogSw, StreamWriter statsCsvSw, <>c__DisplayClass0_0&)

Activity

  1. ghost added
    area-AssemblyLoader-coreclr
    on Feb 17, 2025
  2. added
    untriaged
    on Feb 17, 2025
  3. dotnet-policy-service commented on Feb 17, 2025

    @dotnet-policy-service
    Contributor

    Tagging subscribers to this area: @vitek-karas, @agocke, @VSadov
    See info in area-owners.md if you want to be subscribed.

  4. removed
    untriaged
    on May 19, 2025
  5. locked and limited conversation to collaborators on Jun 19, 2025
  6. jkotas commented on Sep 7, 2025

    @jkotas
    Member

    Failed again in #119403 on osx arm64 gcstress0xc_tailcallstress:

    Running test case ResolvingEvent
    Resolving event by alc "Dependencies" System.Runtime.Loader.AssemblyLoadContext #0 for alc "Test1" System.Runtime.Loader.AssemblyLoadContext #1
    Loading TestInterface by alc "Dependencies" System.Runtime.Loader.AssemblyLoadContext #0 for collectible alc "Test1" System.Runtime.Loader.AssemblyLoadContext #1
    Type TestClass.Class obtained
    Method Void MainTest() obtained
    Load done
    TestInterface.Class.Test
    Failed to unload alc1
    Xunit.Sdk.EqualException: Assert.Equal() Failure: Values differ
    Expected: 100
    Actual:   103
    at Xunit.Assert.Equal[T](T expected, T actual, IEqualityComparer`1 comparer) in /_/src/arcade/src/Microsoft.DotNet.XUnitAssert/src/EqualityAsserts.cs:line 174
    at __GeneratedMainWrapper.Main()
    Expected: 100
    Actual: 101
    
  7. reopened this on Sep 7, 2025
  8. added
    untriaged
    on Sep 7, 2025
  9. kg commented on Apr 9, 2026

    @kg
    Contributor

    Summary:

    CollectibleAssemblies test fails to unload ALC under GCStress, returning exit code 103 instead of 100.

    Failed in (1):

    Console Log: Console Log

    Source: runtime-coreclr gcstress-extra / coreclr windows x86 Checked gcstress0xc_jitminopts_heapverify1 @ Windows.10.Amd64.Open / Loader/CollectibleAssemblies/ResolvedFromDifferentContext/ResolvedFromDifferentContext/ResolvedFromDifferentContext.cmd

    Failed tests:

    
    - coreclr windows x86 Checked gcstress0xc_jitminopts_heapverify1 @ Windows.10.Amd64.Open
    
      - Loader/CollectibleAssemblies/ResolvedFromDifferentContext/ResolvedFromDifferentContext/ResolvedFromDifferentContext.cmd
    
    

    Error Message:

    
    Failed to unload alc1
    Xunit.Sdk.EqualException: Assert.Equal() Failure: Values differ
    Expected: 100
    Actual:   103
    
    

    Stack Trace:

    
       at Xunit.Assert.Equal[T](T expected, T actual, IEqualityComparer`1 comparer) in /_/src/arcade/src/Microsoft.DotNet.XUnitAssert/src/EqualityAsserts.cs:line 102
       at Xunit.Assert.Equal[T](T expected, T actual) in /_/src/arcade/src/Microsoft.DotNet.XUnitAssert/src/EqualityAsserts.cs:line 36
       at __GeneratedMainWrapper.Main()
    
    

    Analysis:

    Under GCStress, the ALC fails to unload ("Failed to unload alc1"), returning exit code 103 instead of 100. Known intermittent failure tracked by #112618 (reopened). GCStress interferes with timely GC collection of ALC references.

    • Generated by ci-pipeline-monitor/scripts/generate_report.py *
  10. JulieLeeMSFT commented on Apr 10, 2026

    @JulieLeeMSFT
    Member

    Summary:

    CollectibleAssemblies ResolvedFromDifferentContext test fails under gcstress0xc_jitminopts_heapverify1 on Windows x86. The test fails to unload AssemblyLoadContext "alc1" and reports exit code 103 instead of expected 100. The ALC unload failure indicates GC stress interferes with collectible assembly cleanup.

    Failed in (1):

    Console Log: Console Log

    Source: runtime-coreclr gcstress-extra / coreclr windows x86 Checked gcstress0xc_jitminopts_heapverify1 @ Windows.10.Amd64.Open / Loader/CollectibleAssemblies/ResolvedFromDifferentContext/ResolvedFromDifferentContext/ResolvedFromDifferentContext.cmd

    Failed tests:

    
    - coreclr windows x86 Checked gcstress0xc_jitminopts_heapverify1 @ Windows.10.Amd64.Open
    
      - Loader/CollectibleAssemblies/ResolvedFromDifferentContext/ResolvedFromDifferentContext/ResolvedFromDifferentContext.cmd
    
    

    Error Message:

    
    Failed to unload alc1
    Xunit.Sdk.EqualException: Assert.Equal() Failure: Values differ
    Expected: 100
    Actual:   103
    
    

    Stack Trace:

    
    Xunit.Sdk.EqualException: Assert.Equal() Failure: Values differ
    Expected: 100
    Actual:   103
       at Xunit.Assert.Equal[T](T expected, T actual, IEqualityComparer`1 comparer) in /_/src/arcade/src/Microsoft.DotNet.XUnitAssert/src/EqualityAsserts.cs:line 102
       at Xunit.Assert.Equal[T](T expected, T actual) in /_/src/arcade/src/Microsoft.DotNet.XUnitAssert/src/EqualityAsserts.cs:line 36
       at __GeneratedMainWrapper.Main()
    
    

    Analysis:

    GC stress mode (0xc with jitminopts and heapverify) causes the AssemblyLoadContext unload to fail, likely because GC stress keeps references alive longer than normal. The test returns 103 indicating the unload check failed. Tracked in issue #112618, untriaged.

    Generated by ci-pipeline-monitor/scripts/generate_report.py

  11. added this to the 11.0.0 milestone on Jul 8, 2026
  12. removed
    untriaged
    on Jul 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

Type

No type

Projects

  • Status
    No status

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions