dotnet / dotnet/sdk

[feature request] Option for installer to download debugging symbols at the installation time and provide instructions on how to make them available for `gdb`

Open
#43,174 1 comment 0 reactions 0 assignees View on GitHub
Area-Infrastructure untriaged
Dominant language
C#
Stars
3.2k
Forks
1.3k
PR merge metrics
PR metrics pending

Description

I am installing .NET as `wget https://dot.net/v1/dotnet-install.sh && bash dotnet-install.sh --channel 7.0`

but then one cannot debug a basic SEGFAULTs with `gdb`:
- https://github.com/dotnet/runtime/discussions/106258

I'm proposing to introduce two command-line options for installer which would:
1. download symbols for all installed `.so` and native binaries - quite common need for dev environment
2. install a debug, unoptimized version of CoreCLR binaries along with symbols

It would also be good to include a `dotnet-symbol` utility by default (especially if it's a small footprint) - it's very useful for dev environment, and figuring that one needs to [`dotnet install` it](https://github.com/dotnet/diagnostics/blob/main/src/Tools/dotnet-symbol/README.md) separately is one more nuisance step :(

Getting some basic stacktraces from gdb right is important (even if SOS tools are only available in lldb)

Thanks!

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.