Skip to content

Conversation

@github-actions
Copy link
Contributor

@github-actions github-actions bot commented Sep 20, 2021

Backport of #59375 to release/6.0-rc2

/cc @davidwrighton

Customer Impact

Fixes a crash in crossgen2: "Process terminated. MVID mismatch between loaded assembly 'System.Private.CoreLib' (MVID = {F6D27F96-1F36-4195-B186-A151C83DD18F}) and an assembly with the same simple name embedded in the native image 'Filename.dll' (MVID = {758E0541-A304-04C9-A645-04C7C904D4B1}"

Crossgen2 is not correctly validating MVIDs for shared generics in composite images. This issue is impacting an internal customer who is unable to use recent versions of the ReadyToRun compiler (previously were using Preview 2).

Testing

Manual validation that the affected internal customer is able to build/run a binary produced with the updated compiler as well as running the standard crossgen2 with composite images test suite.

Risk

Low. This scenario cannot be reached using our standard publish pipeline. It is only expected to impact customers which manually execute crossgen2 with the inputbubble flag and do not include the full set of framework libraries in the application. This could add a small amount of unneeded logic to the size of a composite image, or it may fail to compile an R2R image if it detects that it is about to generate an invalid one.

…- Since there are two possible places where the module indices must be up to date, ensure that they are finalized before either Node writes its data - Ensure that module indices are precomputed when needed from inlinee data
Copy link
Member

@trylek trylek left a comment

Choose a reason for hiding this comment

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

LGTM, thank you!

@davidwrighton davidwrighton added the Servicing-consider Issue for next servicing release review label Sep 20, 2021
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. Let's take for consideration in RC2.

@jeffschwMSFT jeffschwMSFT added this to the 6.0.0 milestone Sep 20, 2021
…its signatures when an input bubble is present as well
@jamshedd jamshedd added Servicing-approved Approved for servicing release and removed Servicing-consider Issue for next servicing release review labels Sep 21, 2021
@Anipik
Copy link
Contributor

Anipik commented Sep 21, 2021

@trylek can you take another pass here

@jeffschwMSFT jeffschwMSFT requested a review from jkotas September 21, 2021 17:59
@Anipik Anipik merged commit 2c7458b into release/6.0-rc2 Sep 21, 2021
@jkotas jkotas deleted the backport/pr-59375-to-release/6.0-rc2 branch September 24, 2021 04:30
@ghost ghost locked as resolved and limited conversation to collaborators Nov 3, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants