dotnet / dotnet/diagnostics

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

Open
#3,714 2 comments 0 reactions 1 assignee Claimed by @davmason View on GitHub
dotnet-trace enhancement
Dominant language
C++
Stars
1.3k
Forks
404
Avg merge
2d 5h
Merged PRs (30d)
35

Description

### 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](https://user-images.githubusercontent.com/61817681/223067984-ca152f41-cba1-490e-a03f-b8053bfab20c.png)

Opening the netrace file in Visual studio does not seem to work either, even when "Load All Symbols" is clicked.
![image](https://user-images.githubusercontent.com/61817681/223074159-7c9e82eb-7deb-495a-97e0-7067fd183311.png)

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

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.