dotnet / runtime

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

Libraries test fails with "Method has zero rva" error #108641

Open buyaa-n opened 1 month ago

buyaa-n commented 1 month ago

Build Information

Build: https://dev.azure.com/dnceng-public/cbb18261-c48f-4abb-8651-8cdcb5474649/_build/results?buildId=830089 Build error leg or test failing: System.Tests.EnvironmentTests.CurrentDirectory_SetToValidOtherDirectory Pull request: https://github.com/dotnet/runtime/pull/108032

Error Message

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

{
  "ErrorMessage": "System.BadImageFormatException : Method has zero rva",
  "ErrorPattern": "",
  "BuildRetry": false,
  "ExcludeConsoleLog": false
}

From Log:

System.Tests.EnvironmentTests.CurrentDirectory_SetToValidOtherDirectory [FAIL]
      System.BadImageFormatException : Method has zero rva
      Stack Trace:
        /_/src/libraries/Common/src/System/Runtime/Serialization/SerializationGuard.cs(20,0): at System.Runtime.Serialization.SerializationGuard.ThrowIfDeserializationInProgress(String switchSuffix, Int32& cachedValue)
        /_/src/libraries/System.Diagnostics.Process/src/System/Diagnostics/Process.cs(1282,0): at System.Diagnostics.Process.Start()
        /_/src/libraries/System.Diagnostics.Process/src/System/Diagnostics/Process.cs(1352,0): at System.Diagnostics.Process.Start(ProcessStartInfo startInfo)
        /_/src/Microsoft.DotNet.RemoteExecutor/src/RemoteExecutor.cs(470,0): at Microsoft.DotNet.RemoteExecutor.RemoteExecutor.Invoke(MethodInfo method, String[] args, RemoteInvokeOptions options, Boolean pasteArguments)
        /_/src/Microsoft.DotNet.RemoteExecutor/src/RemoteExecutor.cs(118,0): at Microsoft.DotNet.RemoteExecutor.RemoteExecutor.Invoke(Action method, RemoteInvokeOptions options)
        /_/src/libraries/System.Runtime/tests/System.Runtime.Extensions.Tests/System/EnvironmentTests.cs(42,0): at System.Tests.EnvironmentTests.CurrentDirectory_SetToValidOtherDirectory()
        /_/src/mono/System.Private.CoreLib/src/System/Reflection/MethodBaseInvoker.Mono.cs(22,0): at System.Reflection.MethodBaseInvoker.InterpretedInvoke_Method(Object obj, IntPtr* args)
        /_/src/libraries/System.Private.CoreLib/src/System/Reflection/MethodBaseInvoker.cs(57,0): at System.Reflection.MethodBaseInvoker.InvokeWithNoArgs(Object obj, BindingFlags invokeAttr)

Known issue validation

Build: :mag_right: https://dev.azure.com/dnceng-public/public/_build/results?buildId=830089 Error message validated: [System.BadImageFormatException : Method has zero rva] Result validation: :white_check_mark: Known issue matched with the provided build. Validation performed at: 10/8/2024 2:44:13 AM UTC

Report

Build Definition Test Pull Request
866429 dotnet/runtime System.Reflection.Emit.Tests.SignatureHelperDynamicCodeNotSupported.ThrowsWhenDynamicCodeNotSupported dotnet/runtime#109503

Summary

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

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