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

AV in Reflection FieldInfo tests #105332

Closed
ericstj opened this issue Jul 23, 2024 · 2 comments
Closed

AV in Reflection FieldInfo tests #105332

ericstj opened this issue Jul 23, 2024 · 2 comments
Labels
area-NativeAOT-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

Comments

@ericstj
Copy link
Member

ericstj commented Jul 23, 2024

Build Information

Build: https://dev.azure.com/dnceng-public/cbb18261-c48f-4abb-8651-8cdcb5474649/_build/results?buildId=748425
Build error leg or test failing: System.Reflection.Tests.WorkItemExecution
Pull request: #105170

Error Message

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

{
  "ErrorMessage": [ "Access Violation: Attempted to read or write protected memory", "Internal.Reflection.Execution.FieldAccessors.ValueTypeFieldAccessorForStaticFields.GetFieldBypassCctor"],
  "ErrorPattern": "",
  "BuildRetry": false,
  "ExcludeConsoleLog": false
}

Full log: https://helixre8s23ayyeko0k025g8.blob.core.windows.net/dotnet-runtime-refs-pull-105170-merge-4b3d16807e8d42a083/System.Reflection.Tests/1/console.a892ac96.log?helixlogtype=result

Process terminated. Access Violation: Attempted to read or write protected memory. This is often an indication that other memory is corrupt. The application will be terminated since this platform does not support throwing an AccessViolationException.
   at System.RuntimeExceptionHelpers.FailFast(String, Exception, String, RhFailFastReason, IntPtr, IntPtr) + 0x200
   at System.RuntimeExceptionHelpers.GetRuntimeException(ExceptionIDs) + 0x148
   at System.Runtime.EH.GetClasslibException(ExceptionIDs, IntPtr) + 0x48
   at System.Runtime.EH.RhThrowHwEx(UInt32, EH.ExInfo&) + 0xa8
   at Internal.Reflection.Execution.FieldAccessors.ValueTypeFieldAccessorForStaticFields.GetFieldBypassCctor() + 0x68
   at System.Reflection.Tests.FieldInfoTests.GetValue(Type type, String name, Object obj, Object expected) + 0x50
   at System.Reflection.Tests!<BaseAddress>+0xb17dec
   at System.Reflection.DynamicInvokeInfo.InvokeWithFewArguments(IntPtr, Byte&, Byte&, Object[], BinderBundle, Boolean) + 0x84
   at System.Reflection.DynamicInvokeInfo.Invoke(Object, IntPtr, Object[], BinderBundle, Boolean) + 0xc8
   at Internal.Reflection.Execution.MethodInvokers.InstanceMethodInvoker.Invoke(Object, Object[], BinderBundle, Boolean) + 0x5c
   at Internal.Reflection.Core.Execution.MethodBaseInvoker.Invoke(Object, Object[], Binder, BindingFlags, CultureInfo) + 0x54
   at System.Reflection.Runtime.MethodInfos.RuntimeMethodInfo.Invoke(Object, BindingFlags, Binder, Object[], CultureInfo) + 0x70
   at Xunit.Sdk.TestInvoker`1.<>c__DisplayClass46_0.<<InvokeTestMethodAsync>b__1>d.MoveNext() + 0x27c
   at System.Runtime.CompilerServices.AsyncMethodBuilderCore.Start[TStateMachine](TStateMachine&) + 0x94
   at Xunit.Sdk.TestInvoker`1.<>c__DisplayClass46_0.<InvokeTestMethodAsync>b__1() + 0x48
   at Xunit.Sdk.ExecutionTimer.<AggregateAsync>d__4.MoveNext() + 0x110
   at System.Runtime.CompilerServices.AsyncMethodBuilderCore.Start[TStateMachine](TStateMachine&) + 0x78
   at Xunit.Sdk.ExecutionTimer.AggregateAsync(Func`1 asyncAction) + 0x2c
   at Xunit.Sdk.ExceptionAggregator.<RunAsync>d__9.MoveNext() + 0x74
   at System.Runtime.CompilerServices.AsyncMethodBuilderCore.Start[TStateMachine](TStateMachine&) + 0x78
   at Xunit.Sdk.ExceptionAggregator.RunAsync(Func`1 code) + 0x2c
   at Xunit.Sdk.TestInvoker`1.<InvokeTestMethodAsync>d__46.MoveNext() + 0x224
   at System.Runtime.CompilerServices.AsyncMethodBuilderCore.Start[TStateMachine](TStateMachine&) + 0x94
   at Xunit.Sdk.TestInvoker`1.InvokeTestMethodAsync(Object testClassInstance) + 0x48
   at Xunit.Sdk.TestInvoker`1.<<RunAsync>b__45_0>d.MoveNext() + 0x45c
   at System.Runtime.CompilerServices.AsyncMethodBuilderCore.Start[TStateMachine](TStateMachine&) + 0x94
   at Xunit.Sdk.TestInvoker`1.<RunAsync>b__45_0() + 0x4c
   at Xunit.Sdk.ExceptionAggregator.<RunAsync>d__10`1.MoveNext() + 0x94
   at System.Runtime.CompilerServices.AsyncMethodBuilderCore.Start[TStateMachine](TStateMachine&) + 0x78
   at Xunit.Sdk.ExceptionAggregator.RunAsync[T](Func`1 code) + 0x2c
   at Xunit.Sdk.XunitTestRunner.<InvokeTestAsync>d__4.MoveNext() + 0x16c
   at System.Runtime.CompilerServices.AsyncMethodBuilderCore.Start[TStateMachine](TStateMachine&) + 0x78
   at Xunit.Sdk.XunitTestRunner.InvokeTestAsync(ExceptionAggregator aggregator) + 0x30
   at Xunit.Sdk.ExceptionAggregator.<RunAsync>d__10`1.MoveNext() + 0x94
   at System.Runtime.CompilerServices.AsyncMethodBuilderCore.Start[TStateMachine](TStateMachine&) + 0x94
   at Xunit.Sdk.ExceptionAggregator.RunAsync[T](Func`1 code) + 0x40
   at Xunit.Sdk.TestRunner`1.<RunAsync>d__43.MoveNext() + 0x320
   at System.Runtime.CompilerServices.AsyncMethodBuilderCore.Start[TStateMachine](TStateMachine&) + 0x94
   at Xunit.Sdk.TestRunner`1.RunAsync() + 0x4c
   at Xunit.Sdk.XunitTheoryTestCaseRunner.<RunTestAsync>d__11.MoveNext() + 0x128
   at System.Runtime.CompilerServices.AsyncMethodBuilderCore.Start[TStateMachine](TStateMachine&) + 0x78
   at Xunit.Sdk.XunitTheoryTestCaseRunner.RunTestAsync() + 0x30
   at Xunit.Sdk.TestCaseRunner`1.<RunAsync>d__19.MoveNext() + 0x450
   at System.Runtime.CompilerServices.AsyncMethodBuilderCore.Start[TStateMachine](TStateMachine&) + 0x94
   at Xunit.Sdk.TestCaseRunner`1.RunAsync() + 0x48
   at Xunit.Sdk.TestMethodRunner`1.<RunTestCasesAsync>d__32.MoveNext() + 0x140
   at System.Runtime.CompilerServices.AsyncMethodBuilderCore.Start[TStateMachine](TStateMachine&) + 0x94
   at Xunit.Sdk.TestMethodRunner`1.RunTestCasesAsync() + 0x4c
   at Xunit.Sdk.TestMethodRunner`1.<RunAsync>d__31.MoveNext() + 0x2cc
   at System.Runtime.CompilerServices.AsyncMethodBuilderCore.Start[TStateMachine](TStateMachine&) + 0x94
   at Xunit.Sdk.TestMethodRunner`1.RunAsync() + 0x48
   at Xunit.Sdk.TestClassRunner`1.<RunTestMethodsAsync>d__38.MoveNext() + 0x280
   at System.Runtime.CompilerServices.AsyncMethodBuilderCore.Start[TStateMachine](TStateMachine&) + 0x94
   at Xunit.Sdk.TestClassRunner`1.RunTestMethodsAsync() + 0x48
   at Xunit.Sdk.TestClassRunner`1.<RunAsync>d__37.MoveNext() + 0x458
   at System.Runtime.CompilerServices.AsyncMethodBuilderCore.Start[TStateMachine](TStateMachine&) + 0x94
   at Xunit.Sdk.TestClassRunner`1.RunAsync() + 0x48
   at Xunit.Sdk.TestCollectionRunner`1.<RunTestClassesAsync>d__28.MoveNext() + 0x1f0
   at System.Runtime.CompilerServices.AsyncMethodBuilderCore.Start[TStateMachine](TStateMachine&) + 0x94
   at Xunit.Sdk.TestCollectionRunner`1.RunTestClassesAsync() + 0x4c
   at Xunit.Sdk.TestCollectionRunner`1.<RunAsync>d__27.MoveNext() + 0x42c
   at System.Runtime.CompilerServices.AsyncMethodBuilderCore.Start[TStateMachine](TStateMachine&) + 0x94
   at Xunit.Sdk.TestCollectionRunner`1.RunAsync() + 0x48
   at Xunit.Sdk.XunitTestAssemblyRunner.<RunTestCollectionAsync>d__18.MoveNext() + 0x274
   at System.Threading.ExecutionContext.RunInternal(ExecutionContext, ContextCallback, Object) + 0xc0
   at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1.AsyncStateMachineBox`1.MoveNext(Thread) + 0x90
   at System.Threading.Tasks.AwaitTaskContinuation.RunOrScheduleAction(IAsyncStateMachineBox, Boolean) + 0xf4
   at System.Threading.Tasks.Task.RunContinuations(Object) + 0x7c
   at System.Threading.Tasks.Task`1.TrySetResult(TResult) + 0xac
   at System.Threading.SemaphoreSlim.<WaitUntilCountOrTimeoutAsync>d__31.MoveNext() + 0x42c
   at System.Threading.ExecutionContext.RunInternal(ExecutionContext, ContextCallback, Object) + 0xc0
   at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1.AsyncStateMachineBox`1.MoveNext(Thread) + 0x80
   at System.Threading.Tasks.AwaitTaskContinuation.RunOrScheduleAction(IAsyncStateMachineBox, Boolean) + 0xf4
   at System.Threading.Tasks.Task.RunContinuations(Object) + 0x7c
   at System.Threading.Tasks.Task`1.TrySetResult(TResult) + 0xac
   at System.Threading.Tasks.Task.CancellationPromise`1.System.Threading.Tasks.ITaskCompletionAction.Invoke(Task) + 0xd8
   at System.Threading.ThreadPoolWorkQueue.Dispatch() + 0x284
   at System.Threading.WindowsThreadPool.DispatchCallback(IntPtr, IntPtr, IntPtr) + 0x90
----- end Sat 07/20/2024  1:05:15.91 ----- exit code -1073740791 ----------------------------------------------------------

Dump is here: https://helixre8s23ayyeko0k025g8.blob.core.windows.net/dotnet-runtime-refs-pull-105170-merge-4b3d16807e8d42a083/System.Reflection.Tests/1/System.Reflection.Tests.exe.920.dmp?helixlogtype=result

@steveharter this might be interesting to consider as I see these were touched in d3ebc97

Known issue validation

Build: 🔎 https://dev.azure.com/dnceng-public/public/_build/results?buildId=748425
Error message validated: [Access Violation: Attempted to read or write protected memory Internal.Reflection.Execution.FieldAccessors.ValueTypeFieldAccessorForStaticFields.GetFieldBypassCctor]
Result validation: ❌ Known issue did not match with the provided build.
Validation performed at: 7/23/2024 4:52:37 PM UTC

Report

Summary

24-Hour Hit Count 7-Day Hit Count 1-Month Count
0 0 0
@ericstj ericstj 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 23, 2024
@dotnet-policy-service dotnet-policy-service bot added the untriaged New issue has not been triaged by the area owner label Jul 23, 2024
Copy link
Contributor

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

@jkotas
Copy link
Member

jkotas commented Jul 23, 2024

This was fixed by #104516

@jkotas jkotas closed this as completed Jul 23, 2024
@dotnet-policy-service dotnet-policy-service bot removed the untriaged New issue has not been triaged by the area owner label Jul 23, 2024
@github-actions github-actions bot locked and limited conversation to collaborators Aug 23, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-NativeAOT-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

2 participants