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

[release/8.0] Avoid marking property/event attributes multiple times #92153

Merged
merged 6 commits into from
Sep 18, 2023

Conversation

github-actions[bot]
Copy link
Contributor

@github-actions github-actions bot commented Sep 15, 2023

Backport of #92094 to release/8.0

/cc @sbomer

Customer Impact

Specific patterns of attribute usages on properties or events could result in ILLink crashing (with stack overflow). This was reported by a customer publishing a MAUI iOS app in #92064.

As a side effect, this also fixes a (less impactful) bug where duplicate warnings were being produced: #83581.

Testing

Added test coverage for the pattern that causes recursion, for properties (the reported issue) and events (which can also exhibit the same problem).

Risk

Low risk. The change adds some extra tracking for properties and events, but this approach has been proven because we do something similar for methods/fields and other metadata entities.

@dotnet-issue-labeler dotnet-issue-labeler bot added the area-Tools-ILLink .NET linker development as well as trimming analyzers label Sep 15, 2023
@ghost ghost added the linkable-framework Issues associated with delivering a linker friendly framework label Sep 15, 2023
@ghost
Copy link

ghost commented Sep 15, 2023

Tagging subscribers to 'linkable-framework': @eerhardt, @vitek-karas, @LakshanF, @sbomer, @joperezr, @marek-safar
See info in area-owners.md if you want to be subscribed.

Issue Details

Backport of #92094 to release/8.0

/cc @sbomer

Customer Impact

Testing

Risk

IMPORTANT: If this backport is for a servicing release, please verify that:

  • The PR target branch is release/X.0-staging, not release/X.0.

  • If the change touches code that ships in a NuGet package, you have added the necessary package authoring and gotten it explicitly reviewed.

Author: github-actions[bot]
Assignees: -
Labels:

linkable-framework, area-Tools-ILLink

Milestone: -

@marek-safar marek-safar added this to the 8.0.0 milestone Sep 16, 2023
@carlossanlop
Copy link
Member

@vitek-karas can you please review and sign-off this backport too?

@jeffschwMSFT can we get your seal of approval?

@carlossanlop carlossanlop added the Servicing-consider Issue for next servicing release review label Sep 16, 2023
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. this can be merged when ready

@jeffschwMSFT jeffschwMSFT added Servicing-approved Approved for servicing release and removed Servicing-consider Issue for next servicing release review labels Sep 18, 2023
@carlossanlop carlossanlop merged commit 607bbca into release/8.0 Sep 18, 2023
62 of 66 checks passed
@carlossanlop carlossanlop deleted the backport/pr-92094-to-release/8.0 branch September 18, 2023 17:12
@radical radical mentioned this pull request Sep 26, 2023
@ghost ghost locked as resolved and limited conversation to collaborators Oct 18, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-Tools-ILLink .NET linker development as well as trimming analyzers linkable-framework Issues associated with delivering a linker friendly framework Servicing-approved Approved for servicing release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants