Skip to content

Managed Return Value debug info cannot encode multi-register floating-point return values #129344

Description

@tommcdon

Issue opened in reference to #129321 (comment)

The managed return value (MRV) debug info protocol (VarLocType in cordebuginfo.h) has no encoding for values returned in two floating-point registers. This affects ICorDebugILFrame3::GetReturnValueForILOffset for types returned via multi-reg FP on Linux x64.

Type Win x64 Unix x64 ARM64 x86
Vector128 (16B) Ret buffer Multi-reg (XMM0+XMM1) * Single V0 reg Ret buffer
Vector256 (32B) Ret buffer Ret buffer Ret buffer Ret buffer
Vector512 (64B) Ret buffer Ret buffer Ret buffer Ret buffer

Only the * case is affected. All other combinations either use the ret buffer path (stack-based encoding) or a single FP register (VLT_REG_FP).

Note: On platforms with mixed int/float multi-reg returns (SysV x64, RISC-V), a struct like  ValueTuple<double, int>  returns in XMM0 + RAX.  VLT_REG_REG  can only encode two integer registers, so the mixed case is also unsupported. Currently these calls are silently skipped (no MRV info emitted).

Activity

  1. added this to the 11.0.0 milestone on Jun 12, 2026
  2. added theissue type on Jun 12, 2026
  3. dotnet-policy-service commented on Jun 12, 2026

    @dotnet-policy-service
    Contributor

    Tagging subscribers to this area: @steveisok, @tommcdon, @dotnet/dotnet-diag
    See info in area-owners.md if you want to be subscribed.

  4. jakobbotsch commented on Jun 12, 2026

    @jakobbotsch
    Member

    We might want to change things so that registers are treated uniformly, as a single enum. SysV x64 can also return structs in mixed XMM/general purpose registers, so we would end up needing VLT_REG_FP_REG and VLT_REG_REG_FP too otherwise.
    In fact we probably end up with a weird encoding right now for that case, so we'll probably want to fix that as part of enabling structs.

  5. self-assigned this
    on Jun 25, 2026
  6. added a commit that references this issue on Jul 15, 2026
    b041a6e
  7. locked and limited conversation to collaborators on Aug 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions