Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Re-enable assert for R2R PE mapping failure on OSX - #130638

#130638
Merged
elinor-fung merged 4 commits into
maindotnet/runtime:mainfrom
copilot/reenable-assert-osxdotnet/runtime:copilot/reenable-assert-osxCopy head branch name to clipboard
Jul 17, 2026
Merged

Re-enable assert for R2R PE mapping failure on OSX#130638
elinor-fung merged 4 commits into
maindotnet/runtime:mainfrom
copilot/reenable-assert-osxdotnet/runtime:copilot/reenable-assert-osxCopy head branch name to clipboard

Conversation

Copilot AI commented Jul 13, 2026

Copy link
Copy Markdown
Contributor

The assert detecting suspicious R2R PE mapping failures on Unix was temporarily disabled on OSX (PR #68845) while a fix propagated through SDK/published builds. That fix has since landed, so the assert can be re-enabled. Also update the condition to handle when R2R is not allowed for the image even if the header exists.

cc @dotnet/appmodel @AaronRobinsonMSFT

Copilot AI requested review from Copilot and removed request for Copilot July 13, 2026 18:07
Copilot AI linked an issue Jul 13, 2026 that may be closed by this pull request
Co-authored-by: elinor-fung <47805090+elinor-fung@users.noreply.github.com>
Copilot AI requested review from Copilot and removed request for Copilot July 13, 2026 18:11
Copilot AI changed the title [WIP] Reenable assert for R2R PE mapping failure on OSX Re-enable assert for R2R PE mapping failure on OSX Jul 13, 2026
Copilot AI requested a review from elinor-fung July 13, 2026 18:12
Copilot AI temporarily deployed to copilot-pat-pool July 13, 2026 18:20 Inactive
Copilot AI temporarily deployed to copilot-pat-pool July 13, 2026 18:20 Inactive
@elinor-fung
elinor-fung marked this pull request as ready for review July 17, 2026 00:29
Copilot AI review requested due to automatic review settings July 17, 2026 00:29
@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
Successfully started running 3 pipeline(s).
12 pipeline(s) were filtered out due to trigger conditions.
There may be pipelines that require an authorized user to comment /azp run to run.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

This PR re-enables a CoreCLR VM debug assertion intended to catch suspicious ReadyToRun (R2R) PE mapping failures on Unix platforms, extending it to macOS and refining the predicate to account for cases where R2R isn’t permitted for the image.

Changes:

  • Switch the assertion guard from TARGET_LINUX to TARGET_UNIX to include macOS.
  • Refine the _ASSERTE condition to exempt cases where AllowR2RForImage(pOwner) is false (even if an R2R header is present).
Show a summary per file
File Description
src/coreclr/vm/peimagelayout.cpp Re-enables and refines a Unix-only debug assert around R2R mapping/conversion behavior.

Copilot's findings

  • Files reviewed: 1/1 changed files
  • Comments generated: 1

Comment thread src/coreclr/vm/peimagelayout.cpp Outdated
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Copilot AI review requested due to automatic review settings July 17, 2026 00:41
@elinor-fung
elinor-fung temporarily deployed to copilot-pat-pool July 17, 2026 00:41 — with GitHub Actions Inactive
@elinor-fung
elinor-fung temporarily deployed to copilot-pat-pool July 17, 2026 00:42 — with GitHub Actions Inactive

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Copilot's findings

  • Files reviewed: 1/1 changed files
  • Comments generated: 1

Comment thread src/coreclr/vm/peimagelayout.cpp Outdated
Comment thread src/coreclr/vm/peimagelayout.cpp Outdated
Copilot AI review requested due to automatic review settings July 17, 2026 01:39
@elinor-fung
elinor-fung temporarily deployed to copilot-pat-pool July 17, 2026 01:39 — with GitHub Actions Inactive
@elinor-fung
elinor-fung temporarily deployed to copilot-pat-pool July 17, 2026 01:39 — with GitHub Actions Inactive

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Copilot's findings

  • Files reviewed: 1/1 changed files
  • Comments generated: 0 new

@elinor-fung
elinor-fung merged commit 0cbb8fa into main Jul 17, 2026
113 of 115 checks passed
@elinor-fung
elinor-fung deleted the copilot/reenable-assert-osx branch July 17, 2026 18:21
@github-project-automation github-project-automation Bot moved this to Done in AppModel Jul 17, 2026
@dotnet-milestone-bot dotnet-milestone-bot Bot added this to the 11.0-preview7 milestone Jul 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

Reenable assert for a case when mapping an R2R PE failed on OSX

4 participants

Morty Proxy This is a proxified and sanitized view of the page, visit original site.