Skip to content

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

Closed

Description

@mikem8361

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).

Activity

  1. added this to the 7.0.0 milestone on Jul 22, 2022
  2. added
    bug
    on Jul 25, 2022
  3. linked a pull request that will close this issueEnable more SOS commands for Linux/MacOS #3233on Jul 29, 2022
  4. cshung commented on Jul 29, 2022

    @cshung
    Contributor

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

  5. ghost locked as resolved and limited conversation to collaborators on Jun 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugsos

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions