Skip to content

Conversation

@kotlarmilos
Copy link
Member

@kotlarmilos kotlarmilos commented Feb 5, 2026

Description

This PR disables failing test ToString_Async on Apple mobile.

Tracking issue #124044

Copilot AI review requested due to automatic review settings February 5, 2026 10:55
@kotlarmilos kotlarmilos self-assigned this Feb 5, 2026
@github-actions github-actions bot added the needs-area-label An area label is needed to ensure this gets routed to the appropriate area owners label Feb 5, 2026
@kotlarmilos kotlarmilos added os-ios Apple iOS area-ExceptionHandling-coreclr runtime-async and removed needs-area-label An area label is needed to ensure this gets routed to the appropriate area owners labels Feb 5, 2026
@kotlarmilos kotlarmilos added this to the 11.0.0 milestone Feb 5, 2026
@kotlarmilos kotlarmilos requested review from jkotas and rcj1 February 5, 2026 10:56
Copy link
Contributor

Copilot AI left a comment

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 fixes a garbage collection protection bug in the AsyncHelpers_AddContinuationToExInternal function by adding GCPROTECT_BEGIN and GCPROTECT_END around the call to StackTraceInfo::AppendElement. This function was introduced in PR #122722 which implemented runtime-async exception stack trace collection.

Changes:

  • Added GCPROTECT for the exception object reference in AsyncHelpers_AddContinuationToExInternal to prevent crashes from GC moving the object during stack trace appending
  • Removed trailing whitespace from multiple lines throughout the file for code formatting consistency

@kotlarmilos kotlarmilos changed the title Add GCPROTECT for exception handling in AsyncHelpers Disable failing ToString_Async test on Apple mobile with CoreCLR R2R and interpreter Feb 5, 2026
Copilot AI review requested due to automatic review settings February 5, 2026 22:22
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

@jkotas
Copy link
Member

jkotas commented Feb 6, 2026

/ba-g Unrelated tvos crash with no actionable details "App terminated due to signal 11"

@jkotas jkotas merged commit 8b675a6 into dotnet:main Feb 6, 2026
134 of 137 checks passed
lewing pushed a commit to lewing/runtime that referenced this pull request Feb 9, 2026
…and interpreter (dotnet#124037)

## Description

This PR disables failing test ToString_Async on Apple mobile.

Tracking issue dotnet#124044

---------

Co-authored-by: Jan Kotas <jkotas@microsoft.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants