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

Don't let System.CommandLine swallow exceptions #110851

Merged
merged 2 commits into from
Dec 20, 2024

Conversation

MichalStrehovsky
Copy link
Member

Apparently System.CommandLine will hijack unhandled exceptions by default so that it can print the stack trace in red. The price to pay for red stack traces is no crash dumps. It's not a very good tradeoff.

Cc @dotnet/ilc-contrib @dotnet/crossgen-contrib

Apparently System.CommandLine will hijack unhandled exceptions by default so that it can print the stack trace in red. The price to pay for red stack traces is no crash dumps. It's not a very good tradeoff.
@am11
Copy link
Member

am11 commented Dec 20, 2024

Thanks. We also have it in src/coreclr/tools/ILVerify/Program.cs and src/coreclr/tools/dotnet-pgo/Program.cs.

@MichalStrehovsky MichalStrehovsky merged commit 64f5b0a into dotnet:main Dec 20, 2024
88 checks passed
@MichalStrehovsky MichalStrehovsky deleted the crash branch December 20, 2024 08:37
@github-actions github-actions bot locked and limited conversation to collaborators Jan 19, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants