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

dotnet-gcdump issues on .NET 8 #5116

Open
kwiatkos0 opened this issue Dec 9, 2024 · 1 comment
Open

dotnet-gcdump issues on .NET 8 #5116

kwiatkos0 opened this issue Dec 9, 2024 · 1 comment
Milestone

Comments

@kwiatkos0
Copy link

kwiatkos0 commented Dec 9, 2024

Describe the bug

We are encountering an issue with dotnet gcdump on .NET 8 (runtime 8.0.11). When attempting to capture dumps from an app hosted in Kubernetes, the first dump works correctly. However, subsequent dumps contain UNKNOWN object types.

Related issues:

To Reproduce

Code used to install the SDK and gcdump tool:

wget https://download.visualstudio.microsoft.com/download/pr/40bc5873-1a39-4a47-9df5-b481869594a6/8455eab2092cc1321ac055f016ef90cf/dotnet-sdk-6.0.404-linux-x64.tar.gz
mkdir -p $HOME/dotnet && tar zxf dotnet-sdk-6.0.404-linux-x64.tar.gz -C $HOME/dotnet
export DOTNET_ROOT=$HOME/dotnet
export PATH=$PATH:$HOME/dotnet
cd $HOME/dotnet
./dotnet tool install --global dotnet-gcdump
export PATH="$PATH:/root/.dotnet/tools"
dotnet-gcdump -p 1 -v

We tried different .NET SDK versions on various Kubernetes pods:

All attempts resulted in UNKNOWN object types on the second and subsequent dumps.

When testing on a service still running .NET 6 (runtime 6.0.31, SDK 6.0.404, gcdump 6.0.351802), everything worked as expected.

Exceptions (if any)

The gcdump file contains invalid objects:

Error: Did not have a type definition for typeID 0x7efbc53bed60
Error: Did not have a type definition for typeID 0x7efbc539e458
Error: Did not have a type definition for typeID 0x7efbc539eb28
Error: Did not have a type definition for typeID 0x7efbc539ec50
Error: Did not have a type definition for typeID 0x7efbc539f5b8
Error: Did not have a type definition for typeID 0x7efbc539f7a0
Error: Did not have a type definition for typeID 0x7efbc539f8d8
Error: Did not have a type definition for typeID 0x7efbc539f9b0

Further technical details

  • Include the output of dotnet --info
  • The IDE (VS / VS Code/ VS4Mac) you're running on, and its version
Host:
  Version:      8.0.11
  Architecture: x64
  Commit:       9cb3b725e3
  RID:          linux-x64

.NET SDKs installed:
  No SDKs were found.

.NET runtimes installed:
  Microsoft.AspNetCore.App 8.0.11 [/usr/share/dotnet/shared/Microsoft.AspNetCore.App]
  Microsoft.NETCore.App 8.0.11 [/usr/share/dotnet/shared/Microsoft.NETCore.App]

Other architectures found:
  None

Environment variables:
  DOTNET_ROOT       [/root/dotnet]

global.json file:
  Not found

Learn more:
  https://aka.ms/dotnet/info

Download .NET:
  https://aka.ms/dotnet/download
@marcpopMSFT
Copy link
Member

This should be transferred to the dotnet/diagnostics repo but I apparently don't have permissions. @hoyosjs do you have permissions?

@hoyosjs hoyosjs transferred this issue from dotnet/sdk Dec 17, 2024
@tommcdon tommcdon added this to the 10.0.0 milestone Dec 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants