diagnostics icon indicating copy to clipboard operation
diagnostics copied to clipboard

dotnet-trace report Missing Symbol for .Net 6 application in container even when pdb files are available

Open t-bzhan opened this issue 2 years ago • 2 comments

Description

We have a .Net 6 application running in container with base image mcr.microsoft.com/dotnet/sdk:6.0-jammy. When using dotnet-trace to investigate a perf issue, we found that dotnet-trace reports a lot of functions as "Missing Symbol". image

Opening the netrace file in Visual studio does not seem to work either, even when "Load All Symbols" is clicked. image

I've checked that the pdb files are in the same directory with the dlls, could anyone suggest the next steps for further diagnosing?

Configuration

dotnet --info

.NET SDK (reflecting any global.json):
 Version:   6.0.406
 Commit:    2988897946

Runtime Environment:
 OS Name:     ubuntu
 OS Version:  22.04
 OS Platform: Linux
 RID:         ubuntu.22.04-x64
 Base Path:   /usr/share/dotnet/sdk/6.0.406/

global.json file:
  Not found

Host:
  Version:      6.0.14
  Architecture: x64
  Commit:       2a90daa2cc

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

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

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

Learn about .NET Runtimes and SDKs:
  https://aka.ms/dotnet/runtimes-sdk-info

~/.dotnet/tools/dotnet-trace --version

7.0.410101+f99383213ea19741908f5aa3cf0ed400db2e5f0a

Regression?

Other information

t-bzhan avatar Mar 06 '23 09:03 t-bzhan

Hi @t-bzhan, can you try explicitly setting the symbol path to the folder containing the pdbs in visual studio? Debug-options-symbols

If that doesn't work then perhaps they are mismatched symbols

davmason avatar Mar 07 '23 10:03 davmason

One update, I am able to view the call stack with Visual Studio 2022 image

Visual Studio 2019 did not work as I described in the issue.

t-bzhan avatar Mar 09 '23 06:03 t-bzhan