Skip to content

Test failure: System.Reflection.Metadata.ApplyUpdateTest.TestGenericAddStaticField #115318

Closed

Description

@SakeTao

Example failure: https://dev.azure.com/dnceng-public/public/_build/results?buildId=1051941&view=results

Failed tests:

net10.0-windows-Release-x86-jitosr_stress_random-Windows.10.Amd64.Open
    - System.Reflection.Metadata.ApplyUpdateTest.TestGenericAddStaticField

Error message:

 Microsoft.DotNet.RemoteExecutor.RemoteExecutionException : Exit code was -1073740286 but it should have been 42

Stack trace:

   at Microsoft.DotNet.RemoteExecutor.RemoteInvokeHandle.Dispose(Boolean disposing) in /_/src/Microsoft.DotNet.RemoteExecutor/src/RemoteInvokeHandle.cs:line 242
   at System.Reflection.Metadata.ApplyUpdateUtil.TestCase(Action testBody, RemoteInvokeOptions options) in /_/src/libraries/System.Runtime.Loader/tests/ApplyUpdateUtil.cs:line 130
   at System.Reflection.Metadata.ApplyUpdateTest.TestGenericAddStaticField() in /_/src/libraries/System.Runtime.Loader/tests/ApplyUpdateTest.cs:line 896
   at System.RuntimeMethodHandle.InvokeMethod(ObjectHandleOnStack target, Void** arguments, ObjectHandleOnStack sig, BOOL isConstructor, ObjectHandleOnStack result)
   at System.Reflection.MethodBaseInvoker.InterpretedInvoke_Method(Object obj, IntPtr* args) in /_/src/coreclr/System.Private.CoreLib/src/System/Reflection/MethodBaseInvoker.CoreCLR.cs:line 36
   at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture) in /_/src/libraries/System.Private.CoreLib/src/System/Reflection/RuntimeMethodInfo.cs:line 126

Known Issue Error Message

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

{
  "ErrorMessage": ["FAILED: IsUnsealed()", "System.Reflection.Metadata.ApplyUpdateTest.TestGenericAddStaticField [FAIL]"],
  "ErrorPattern": "",
  "BuildRetry": false,
  "ExcludeConsoleLog": false
}

Known issue validation

Build: 🔎 https://dev.azure.com/dnceng-public/public/_build/results?buildId=1051941&view=results
Result validation: ⚠️ Validation could not be done without an Azure DevOps build URL on the issue. Please add it to the "Build: 🔎" line.
Validation performed at: 5/27/2025 3:33:00 PM UTC

Known issue validation

Build: 🔎
Result validation: ⚠️ Provided build not found. Provide a valid build in the "Build: 🔎" line.
Validation performed at: 5/27/2025 3:33:33 PM UTC

Known issue validation

Build: 🔎
Result validation: ⚠️ Provided build not found. Provide a valid build in the "Build: 🔎" line.
Validation performed at: 5/27/2025 3:35:01 PM UTC

Known issue validation

Build: 🔎 https://dev.azure.com/dnceng-public/public/_build/results?buildId=1051941
Error message validated: [FAILED: IsUnsealed() System.Reflection.Metadata.ApplyUpdateTest.TestGenericAddStaticField [FAIL]]
Result validation: ✅ Known issue matched with the provided build.
Validation performed at: 5/27/2025 3:35:44 PM UTC

Report

Build Definition Test Pull Request
1116082 dotnet/runtime System.Reflection.Metadata.ApplyUpdateTest.TestGenericAddStaticField
1113187 dotnet/runtime System.Reflection.Metadata.ApplyUpdateTest.TestGenericAddStaticField #118241
1106366 dotnet/runtime System.Reflection.Metadata.ApplyUpdateTest.TestGenericAddStaticField #118020
1105257 dotnet/runtime System.Reflection.Metadata.ApplyUpdateTest.TestGenericAddStaticField #118047
1105163 dotnet/runtime System.Reflection.Metadata.ApplyUpdateTest.TestGenericAddStaticField
1102484 dotnet/runtime System.Reflection.Metadata.ApplyUpdateTest.TestGenericAddStaticField #117945
1101841 dotnet/runtime System.Reflection.Metadata.ApplyUpdateTest.TestGenericAddStaticField
1098209 dotnet/runtime System.Reflection.Metadata.ApplyUpdateTest.TestGenericAddStaticField
1097983 dotnet/runtime System.Reflection.Metadata.ApplyUpdateTest.TestGenericAddStaticField #117711
1095691 dotnet/runtime System.Reflection.Metadata.ApplyUpdateTest.TestGenericAddStaticField #113069

Summary

24-Hour Hit Count 7-Day Hit Count 1-Month Count
0 0 10

Activity

  1. dotnet-policy-service commented on May 6, 2025

    @dotnet-policy-service
    Contributor

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

  2. dotnet-policy-service commented on May 6, 2025

    @dotnet-policy-service
    Contributor

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

  3. JulieLeeMSFT commented on May 6, 2025

    @JulieLeeMSFT
    Member
  4. removed
    untriagedNew issue has not been triaged by the area owner
    on May 6, 2025
  5. added this to the 10.0.0 milestone on May 6, 2025
  6. AndyAyersMS commented on May 13, 2025

    @AndyAyersMS
    Member

    Artifacts for that failure are gone. The test failed again on 03-May.

    https://helixr1107v0xdcypoyl9e7f.blob.core.windows.net/dotnet-runtime-refs-heads-main-acbd2cd54e4847268f/System.Runtime.Loader.Tests/1/console.35198b58.log?helixlogtype=result

    See net10.0-windows-Release-x86-jitosr_stress-Windows.10.Amd64.Open

    and this looks like a possible runtime issue?

    Applying metadata update for C:\h\w\BCAD0A09\w\A7150947\e\System.Reflection.Metadata.ApplyUpdate.Test.GenericAddStaticField.dll, revision 2
    
    Assert failure(PID 6624 [0x000019e0], Thread: 6860 [0x1acc]): Precondition failure: 
    FAILED: IsUnsealed()
    
    CORECLR! CHECK::Trigger + 0x264 (0x720c966a)
    CORECLR! EETypeHashTable::InsertValue + 0x1C5 (0x71d9e652)
    CORECLR! ClassLoader::PublishType + 0x695 (0x71c278ed)
    CORECLR! ClassLoader::DoIncrementalLoad + 0x415 (0x71c1bec0)
    CORECLR! ClassLoader::LoadTypeHandleForTypeKey_Body + 0x786 (0x71c24188)
    CORECLR! ClassLoader::LoadTypeHandleForTypeKey + 0x164 (0x71c234f4)
    CORECLR! ClassLoader::LoadConstructedTypeThrowing + 0x62F (0x71c1ff9f)
    CORECLR! ClassLoader::LoadGenericInstantiationThrowing + 0x532 (0x71c2099f)
    CORECLR! SigPointer::GetTypeHandleThrowing + 0x14E0 (0x71d66305)
    CORECLR! SigPointer::GetTypeHandleThrowing + 0x13A7 (0x71d661cc)
        File: D:\a\_work\1\s\src\coreclr\vm\typehash.cpp:508
        Image: C:\h\w\BCAD0A09\p\dotnet.exe
    

    Going to repath this to area-vm.

  7. removed
    area-CodeGen-coreclrCLR JIT compiler in src/coreclr/src/jit and related components such as SuperPMI
    on May 13, 2025
  8. 2 remaining items

  9. AndyAyersMS commented on May 13, 2025

    @AndyAyersMS
    Member
  10. removed their assignment
    on May 13, 2025
  11. added
    blocking-clean-ciBlocking PR or rolling runs of 'runtime' or 'runtime-extra-platforms'
    and removed on May 27, 2025
  12. SakeTao commented on Jul 10, 2025

    @SakeTao
    Author

    Failed in: runtime-coreclr libraries-jitstress 20250710.1

    Failed tests:

    net10.0-windows-Release-x64-jitstress1_tiered-Windows.10.Amd64.Open
        - System.Reflection.Metadata.ApplyUpdateTest.TestGenericAddStaticField
    

    Error message:

    Microsoft.DotNet.RemoteExecutor.RemoteExecutionException : Exit code was -1073740286 but it should have been 42
    

    Stack trace:

       at Microsoft.DotNet.RemoteExecutor.RemoteInvokeHandle.Dispose(Boolean disposing) in /_/src/arcade/src/Microsoft.DotNet.RemoteExecutor/src/RemoteInvokeHandle.cs:line 242
       at Microsoft.DotNet.RemoteExecutor.RemoteInvokeHandle.Dispose() in /_/src/arcade/src/Microsoft.DotNet.RemoteExecutor/src/RemoteInvokeHandle.cs:line 55
       at System.Reflection.Metadata.ApplyUpdateUtil.TestCase(Action testBody, RemoteInvokeOptions options) in /_/src/libraries/System.Runtime.Loader/tests/ApplyUpdateUtil.cs:line 130
       at System.Reflection.Metadata.ApplyUpdateTest.TestGenericAddStaticField() in /_/src/libraries/System.Runtime.Loader/tests/ApplyUpdateTest.cs:line 897
       at System.RuntimeMethodHandle.InvokeMethod(ObjectHandleOnStack target, Void** arguments, ObjectHandleOnStack sig, BOOL isConstructor, ObjectHandleOnStack result)
       at System.Reflection.MethodBaseInvoker.InvokeWithNoArgs(Object obj, BindingFlags invokeAttr) in /_/src/libraries/System.Private.CoreLib/src/System/Reflection/MethodBaseInvoker.cs:line 57
    
  13. added a commit that references this issue on Aug 11, 2025
    673372e
  14. added a commit that references this issue on Aug 14, 2025
    56cb0eb
  15. locked and limited conversation to collaborators on Sep 14, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions