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

Require AddExplicitInterfaceImplementation for adding a type that implements member explicitly #73206

Merged
merged 2 commits into from
Jun 24, 2024

Conversation

tmat
Copy link
Member

@tmat tmat commented Apr 24, 2024

Adding a new row to InterfaceImpl table may case AV on .NET Framework runtime. Report rude edit to prevent that from happening.
The rude edit is reported when AddExplicitInterfaceImplementation runtime capability is not present.

Contributes to fix of https://devdiv.visualstudio.com/DevDiv/_workitems/edit/1452066.
Debugger part: https://devdiv.visualstudio.com/DevDiv/_git/Concord/pullrequest/546202

@tmat tmat requested a review from a team as a code owner April 24, 2024 01:04
@dotnet-issue-labeler dotnet-issue-labeler bot added Area-Interactive untriaged Issues and PRs which have not yet been triaged by a lead labels Apr 24, 2024
@tmat
Copy link
Member Author

tmat commented Apr 24, 2024

@davidwengier ptal

Copy link
Contributor

@davidwengier davidwengier left a comment

Choose a reason for hiding this comment

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

Given the number of tests that have the new capability, I'm surprised this hasn't come up in the past. Or maybe it has :)

@tmat
Copy link
Member Author

tmat commented Apr 24, 2024

@davidwengier The tests do not actually apply the change. Even if they did, the AV is from .NET Framework and it does not occur if the change is the first applied change.

@davidwengier
Copy link
Contributor

Yeah, I just took the number of tests as an indication of the number of scenarios that could cause an AV. If the ordering is also important, then that could explain it for sure.

@tmat
Copy link
Member Author

tmat commented May 30, 2024

Waiting for more customer validation from 17.11 previews before merging.

@lambdageek
Copy link
Member

Is there a corresponding runtime change or a GH issue to light this up for CoreCLR and Mono? /cc @mikelle-rogers

@tmat
Copy link
Member Author

tmat commented Jun 20, 2024

/cc @isadorasophia

@tmat tmat merged commit 04fb391 into dotnet:release/dev17.10 Jun 24, 2024
22 of 27 checks passed
@tmat tmat deleted the BlockInterfaceImpl branch June 24, 2024 20:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area-Interactive untriaged Issues and PRs which have not yet been triaged by a lead
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants