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-dump gcroot <reference> Segmentation fault (arm64) #5054

Open
rottabonus opened this issue Nov 19, 2024 · 0 comments
Open

Dotnet-dump gcroot <reference> Segmentation fault (arm64) #5054

rottabonus opened this issue Nov 19, 2024 · 0 comments
Assignees
Labels
bug Something isn't working sos
Milestone

Comments

@rottabonus
Copy link

rottabonus commented Nov 19, 2024

Description

Running gcroot <reference> does not show information, but instead throws Segmentation fault error

Reproduction.
You need a dump file, but then it is easy:

docker run -it --rm \
  -v $(pwd)/mydumps:/mydumps \
  mcr.microsoft.com/dotnet/sdk:8.0 \
  /bin/bash

Install dotnet-dump

root@82b6a505cf68:/# dotnet tool install --global dotnet-dump
Tools directory '/root/.dotnet/tools' is not currently on the PATH environment variable.
If you are using bash, you can add it to your profile by running the following command:

cat << \EOF >> ~/.bash_profile
# Add .NET Core SDK tools
export PATH="$PATH:/root/.dotnet/tools"
EOF

You can add it to the current session by running the following command:

export PATH="$PATH:/root/.dotnet/tools"

You can invoke the tool using the following command: dotnet-dump
Tool 'dotnet-dump' (version '9.0.553101') was successfully installed.
root@82b6a505cf68:/# export PATH="$PATH:/root/.dotnet/tools"
dotnet-dump analyze mydumps/mydump.dmp
heapdump -stat

Pick a reference

> gcroot <reference>
Caching GC roots, this may take a while.
Subsequent runs of this command will be faster.

Segmentation fault

Configuration

Run in arm mac m2 in container based on mcr.microsoft.com/dotnet/sdk:8.0

root@717bc98e90e0:/dumps# dotnet --info
.NET SDK:
 Version:           8.0.404
 Commit:            7b190310f2
 Workload version:  8.0.400-manifests.996cfe54
 MSBuild version:   17.11.9+a69bbaaf5

Runtime Environment:
 OS Name:     debian
 OS Version:  12
 OS Platform: Linux
 RID:         linux-arm64
 Base Path:   /usr/share/dotnet/sdk/8.0.404/

.NET workloads installed:
Configured to use loose manifests when installing new manifests.
There are no installed workloads to display.

Host:
  Version:      8.0.11
  Architecture: arm64
  Commit:       9cb3b725e3

.NET SDKs installed:
  8.0.404 [/usr/share/dotnet/sdk]

.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:
  Not set

global.json file:
  Not found

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

Download .NET:
  https://aka.ms/dotnet/download

dotnet-dump version

root@82b6a505cf68:/# dotnet-dump --version
9.0.553101+5b61d34de04d6100e6003415f7d7e9c4b971afd4
@rottabonus rottabonus added the bug Something isn't working label Nov 19, 2024
@tommcdon tommcdon added this to the 10.0.0 milestone Nov 19, 2024
@tommcdon tommcdon added the sos label Nov 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working sos
Projects
None yet
Development

No branches or pull requests

3 participants