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

SOS's GCHeapsTraverse doesn't work for server GCs #3218

Closed
mikem8361 opened this issue Jul 22, 2022 · 1 comment · Fixed by #3233
Closed

SOS's GCHeapsTraverse doesn't work for server GCs #3218

mikem8361 opened this issue Jul 22, 2022 · 1 comment · Fixed by #3233
Assignees
Labels
bug Something isn't working sos
Milestone

Comments

@mikem8361
Copy link
Member

The GCHeapsTraverse function doesn't work on my simple webapp that uses a server GC.

This is 7.0 Windows x64 target but it also doesn't on Linux or against a 6.0.6 runtime target process. The !dumpruntimetypes command is one that uses this function. The failing object below is all zeros with a null MethodTable.

0:000> !dumpruntimetypes
         Address           Domain               MT Type Name
------------------------------------------------------------------------------
curr_object:      000001398fc00020
----------------
Traversing a gc heap failed
0:000>

To repro just create a webapp and either attach live or create a full dump of it. I can also give you a dump that repros the problem.

@PeterSolMS, @cshung may one of you can look at this code to figure out why the traversal is going out of wack. The heaps are valid (VerifyHeap says so).

@mikem8361 mikem8361 added the sos label Jul 22, 2022
@mikem8361 mikem8361 added this to the 7.0.0 milestone Jul 22, 2022
@hoyosjs hoyosjs added the bug Something isn't working label Jul 25, 2022
@cshung cshung linked a pull request Jul 29, 2022 that will close this issue
@cshung
Copy link
Member

cshung commented Jul 29, 2022

The bug is understood. The code in GCHeapTraverse missed the POH is empty case.

@ghost ghost locked as resolved and limited conversation to collaborators Jun 26, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working sos
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants