Skip to content

Conversation

@davmason
Copy link
Contributor

@davmason davmason commented May 10, 2022

Customer impact

We have had multiple reports of the runtime deadlocking during debugging, e.g. #58471. Kount fixed it for 7 the "right way" with #67160, but that fix is far too broad for servicing in 6.0. This targeted fix disables code versioning (through both profiler rejit and tiered compilation) when debugging from startup. It does not change the debugger attach behavior.

We have had reports from multiple different customers about this issue, there are likely many more running in to it daily that haven't figured it out and tracked us down.

Testing

I did manual verification that the flag was set when a debugger is present at startup and is not set when a debugger attaches, plus ran the private diagnostic test suite.

Risk

The risk is low, and in case someone depends on being able to debug from startup and have code versioning active they can set the flag to disable this fix.

davmason added 2 commits May 9, 2022 16:24
Update ceemain.cpp
@davmason davmason requested review from a team and kouvel May 10, 2022 11:03
@ghost ghost assigned davmason May 10, 2022
@ghost ghost added the area-VM-coreclr label May 10, 2022
Copy link
Member

@jeffschwMSFT jeffschwMSFT left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approved. Please get a code review. We will take for consideration in 6.0.x

@carlossanlop
Copy link
Contributor

@davmason @jeffschwMSFT @hoyosjs @kouvel Please add the servicing consider label when ready, so it goes through Tactics. Code complete due date for servicing is May 16th.

@hoyosjs hoyosjs added the Servicing-consider Issue for next servicing release review label May 11, 2022
@hoyosjs hoyosjs added this to the 6.0.x milestone May 11, 2022
@rbhanda rbhanda added Servicing-approved Approved for servicing release and removed Servicing-consider Issue for next servicing release review labels May 12, 2022
@rbhanda rbhanda modified the milestones: 6.0.x, 6.0.6 May 12, 2022
@carlossanlop carlossanlop merged commit ef4ed6d into dotnet:release/6.0 May 13, 2022
@ghost ghost locked as resolved and limited conversation to collaborators Jun 12, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

area-VM-coreclr Servicing-approved Approved for servicing release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants