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

Internal CLR error in System.Reflection.FieldAccessor.GetValue #98998

Closed
jkotas opened this issue Feb 27, 2024 · 5 comments · Fixed by #99329
Closed

Internal CLR error in System.Reflection.FieldAccessor.GetValue #98998

jkotas opened this issue Feb 27, 2024 · 5 comments · Fixed by #99329
Labels
area-System.Reflection 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 tenet-reliability Reliability/stability related issue (stress, load problems, etc.)
Milestone

Comments

@jkotas
Copy link
Member

jkotas commented Feb 27, 2024

https://helixre107v0xdcypoyl9e7f.blob.core.windows.net/dotnet-runtime-refs-pull-98947-merge-04b2eb6f6b03445584/System.Net.Sockets.Tests/1/console.f8a1785a.log?helixlogtype=result

      Condition(s) not met: "IsNotWindowsNanoNorServerCore"
Fatal error. Internal CLR error. (0x80131506)
   at System.Reflection.FieldAccessor.GetValue(System.Object)
   at System.ValueType.Equals(System.Object)
   at System.Net.Sockets.SocketAsyncEventArgs.FreePinHandles()
   at System.Net.Sockets.SocketAsyncEventArgs.FreeInternals()
   at System.Net.Sockets.SocketAsyncEventArgs.Finalize()
----- end Tue 02/27/2024  7:03:02.56 ----- exit code -1073741819 ----------------------------------------------------------

Build Information

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

Error Message

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

{
  "ErrorMessage": "at System.Reflection.FieldAccessor.GetValue(System.Object)",
  "ErrorPattern": "",
  "BuildRetry": false,
  "ExcludeConsoleLog": false
}

Known issue validation

Build: 🔎 https://dev.azure.com/dnceng-public/public/_build/results?buildId=580520
Error message validated: [at System.Reflection.FieldAccessor.GetValue(System.Object)]
Result validation: ✅ Known issue matched with the provided build.
Validation performed at: 2/27/2024 5:07:23 PM UTC

Report

Build Definition Test Pull Request
589245 dotnet/runtime System.Net.Sockets.Tests.WorkItemExecution #98218
588964 dotnet/runtime System.Net.Http.WinHttpHandler.Functional.Tests.WorkItemExecution #99185
2392255 dotnet-runtime release.Partition24.WorkItemExecution
586363 dotnet/runtime System.Net.Http.Functional.Tests.WorkItemExecution #99185
584716 dotnet/runtime System.Net.Http.Functional.Tests.WorkItemExecution #99011
580520 dotnet/runtime System.Net.Sockets.Tests.WorkItemExecution #98947
579650 dotnet/runtime System.Net.Http.Functional.Tests.WorkItemExecution #98877

Summary

24-Hour Hit Count 7-Day Hit Count 1-Month Count
2 5 7
@jkotas jkotas 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 Feb 27, 2024
@dotnet-issue-labeler dotnet-issue-labeler bot added the needs-area-label An area label is needed to ensure this gets routed to the appropriate area owners label Feb 27, 2024
@jkotas jkotas added area-System.Reflection and removed needs-area-label An area label is needed to ensure this gets routed to the appropriate area owners labels Feb 27, 2024
@ghost ghost added the untriaged New issue has not been triaged by the area owner label Feb 27, 2024
@ghost
Copy link

ghost commented Feb 27, 2024

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

Issue Details

https://helixre107v0xdcypoyl9e7f.blob.core.windows.net/dotnet-runtime-refs-pull-98947-merge-04b2eb6f6b03445584/System.Net.Sockets.Tests/1/console.f8a1785a.log?helixlogtype=result

      Condition(s) not met: "IsNotWindowsNanoNorServerCore"
Fatal error. Internal CLR error. (0x80131506)
   at System.Reflection.FieldAccessor.GetValue(System.Object)
   at System.ValueType.Equals(System.Object)
   at System.Net.Sockets.SocketAsyncEventArgs.FreePinHandles()
   at System.Net.Sockets.SocketAsyncEventArgs.FreeInternals()
   at System.Net.Sockets.SocketAsyncEventArgs.Finalize()
----- end Tue 02/27/2024  7:03:02.56 ----- exit code -1073741819 ----------------------------------------------------------

Build Information

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

Error Message

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

{
  "ErrorMessage": "at System.Reflection.FieldAccessor.GetValue(System.Object)",
  "ErrorPattern": "",
  "BuildRetry": false,
  "ExcludeConsoleLog": false
}
Author: jkotas
Assignees: -
Labels:

area-System.Reflection, blocking-clean-ci, Known Build Error

Milestone: -

@jkotas
Copy link
Member Author

jkotas commented Feb 27, 2024

@steveharter Looks like a GC hole in the new FieldAccessor implementation

@jkotas jkotas added this to the 8.0.x milestone Feb 27, 2024
@ghost ghost removed the untriaged New issue has not been triaged by the area owner label Feb 27, 2024
@jkotas jkotas added tenet-reliability Reliability/stability related issue (stress, load problems, etc.) untriaged New issue has not been triaged by the area owner labels Feb 27, 2024
@ghost ghost removed the untriaged New issue has not been triaged by the area owner label Feb 27, 2024
@MihaZupan
Copy link
Member

Should we consider reverting d3ebc97 for the time being?

Running http tests locally consistently crashes on most runs for me, while being stable 1 commit earlier.

dotnet build .\src\libraries\System.Net.Http\tests\FunctionalTests\ /t:Test /p:OuterLoop=true

cc: @dotnet/ncl in case others run into this one

@jkotas jkotas modified the milestones: 8.0.x, 9.0.0 Mar 5, 2024
@AndyAyersMS
Copy link
Member

Ran into this running some TE Benchmarks:

[application] The following scenarios were enabled:
[application]   MvcDbFortunesEf -> /mvc/fortunes/ef
[application]
[application] Database: PostgreSql
[application] ConnectionString: Server=10.0.0.105;Database=hello_world;User Id=benchmarkdbuser;Password=benchmarkdbpass;Maximum Pool Size=18;Enlist=false;Max Auto Prepare=4;Multiplexing=true;Write Coalescing Buffer Threshold Bytes=1000
[application] Using server Kestrel
[application] Server GC is currently ENABLED
[application] Using Sockets with 12 threads
[application] Hosting environment: Production
[application] Content root path: C:\Users\Administrator\AppData\Local\Temp\benchmarks-agent\benchmarks-server-8540\qtefmswt.qvg\src\Benchmarks\published
[application] Now listening on: https://10.0.0.110:5000
[application] Application started. Press Ctrl+C to shut down.
[11:36:17.850] 'application' is running ... http://asp-perf-win:5001/jobs/101/output
[11:36:20.569] Starting job 'load' ...
[11:36:20.579] Submitted job: http://asp-perf-db:5001/jobs/48
[11:36:21.620] 'load' has been selected by the server ...
[11:36:21.638] 'load' is now building ... http://asp-perf-db:5001/jobs/48/buildlog
[11:36:24.663] 'load' is running ... http://asp-perf-db:5001/jobs/48/output
[application] [STDERR] Fatal error. Internal CLR error. (0x80131506)
[application] [STDERR]    at System.Reflection.FieldAccessor.GetValue(System.Object)
[application] [STDERR]    at System.Reflection.RtFieldInfo.GetValue(System.Object)
[application] [STDERR]    at System.ValueType.Equals(System.Object)

@AndyAyersMS
Copy link
Member

@sebastienros fyi, in case you see failures.

Seems like we should revert the change?

jkotas added a commit to jkotas/runtime that referenced this issue Mar 5, 2024
@ghost ghost added the in-pr There is an active PR which will close this issue when it is merged label Mar 5, 2024
@ghost ghost removed the in-pr There is an active PR which will close this issue when it is merged label Mar 5, 2024
radical pushed a commit to radical/runtime that referenced this issue Mar 6, 2024
@github-actions github-actions bot locked and limited conversation to collaborators Apr 7, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-System.Reflection 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 tenet-reliability Reliability/stability related issue (stress, load problems, etc.)
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants