-
Notifications
You must be signed in to change notification settings - Fork 4.7k
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
[release/7.0] Fix ALC lookup from the DAC #78420
Conversation
It seems the SOS commands for ALC lookup have been broken for a bit. Some parts of the impl weren't DAC-ized and caused failures.
Tagging subscribers to this area: @vitek-karas, @agocke, @VSadov Issue DetailsBackport of #78400 to release/7.0 Customer ImpactTestingRiskIMPORTANT: Is this backport for a servicing release? If so and this change touches code that ships in a NuGet package, please make certain that you have added any necessary package authoring and gotten it explicitly reviewed.
|
/cc @tommcdon |
@AaronRobinsonMSFT when this is ready, please get an approval from @jeffschwMSFT. If approved by Jeff, then please send an email to Tactics to request merge approval.
Edit: I just asked, we don't have runway. This will have to go into the January release. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
approved. we will take for consideration in 7.0.x
@AaronRobinsonMSFT have you sent the Tactics email requesting approval? I can't find it in my inbox. I ask because for the January release, we will only have a one day window to merge servicing PRs, so I want to make sure all the PRs are 100% ready on that day for me to just click the merge button. That window is from Nov. 29th to Nov. 30th. The only thing left for this PR is to get Tactics approval. |
@carlossanlop Sent. |
Approved by Tactics for 7.0.3. |
Fixes dotnet/diagnostics#3565
Backport of #78400 to release/7.0
/cc @AaronRobinsonMSFT
Customer Impact
The
dumpalc
command in sos was broken in .NET 7 due to some refactoring. This impacts customers and runtime developers that are investigating crashing issues. Note that on non-Windows, thedumpalc
command will crash the debugger without this fix. On Windows an error message is reported indicating a failure to acquire the ALC.This was not reported by a customer. However, it was found by me when investigating a customer reported issue. The fact that it crashes the debugger is enough justification for me since investigating DMPs is a big concern because there is no easy way, other than
dumpalc
, to determine the ALC an object resides in.An additional consideration here is the new feature being added to sos, dotnet/diagnostics#3508, will now cause a crash on non-Windows .NET 7 for the very common
dumpmt
command.Testing
Validated with sos extension locally. The runtime/diagnostics repo has testing that is being added in dotnet/diagnostics#3508.
Risk
Minimal. This permits calling sos commands and has no product impact.