Skip to content

Conversation

@janvorli
Copy link
Member

The InterpreterStubRetXXX helpers on unix x64 had missing CFI annotation marking RBP as a frame pointer. Since they move RSP by dynamic value, the libunwind was unable to unwind through those, which was leading to crashes.

The InterpreterStubRetXXX helpers on unix x64 had missing CFI annotation
marking RBP as a frame pointer. Since they move RSP by dynamic value,
the libunwind was unable to unwind through those, which was leading
to crashes.
@janvorli janvorli added this to the 11.0.0 milestone Dec 11, 2025
@janvorli janvorli self-assigned this Dec 11, 2025
Copilot AI review requested due to automatic review settings December 11, 2025 01:05
@dotnet-policy-service
Copy link
Contributor

Tagging subscribers to this area: @BrzVlad, @janvorli, @kg
See info in area-owners.md if you want to be subscribed.

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 missing CFI (Call Frame Information) unwind annotations for interpreter helper functions on unix x64. The fix adds set_cfa_register rbp, 0 directives to mark RBP as the Canonical Frame Address register in functions that dynamically adjust the stack pointer, enabling libunwind to properly unwind through these functions and preventing crashes.

Key Changes

  • Added set_cfa_register rbp, 0 CFI directive after frame pointer setup in 9 CallJittedMethodRetXXX helper functions
  • Each annotation is placed immediately after mov rbp, rsp and before additional prologue instructions
  • Fixes apply uniformly to all variants handling different return types (void, buffers, integers, doubles, and combinations)

@janvorli
Copy link
Member Author

/ba-g the test failure is a variant of #119140, but in System.Runtime.Numerics.Tests.

@janvorli janvorli merged commit a86e806 into dotnet:main Dec 11, 2025
106 of 108 checks passed
agocke added a commit that referenced this pull request Dec 17, 2025
@github-actions github-actions bot locked and limited conversation to collaborators Jan 11, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants