Skip to content

[ci-scan] Test failure: StructureToPtrTests.StructureToPtr_ByValDateArray_Success on tvos-arm64 #127952

Closed

Description

@github-actions

Build Information

Build: https://dev.azure.com/dnceng-public/public/_build/results?buildId=1413202
Build error leg or test failing: tvos-arm64 Release AllSubsets_CoreCLR - System.Runtime.InteropServices.Tests

Error Message

{
  "ErrorMessage": "type argument 'System.StubHelpers.DateMarshaler' violates the constraint of type parameter 'TMarshaler'",
  "ErrorPattern": "",
  "BuildRetry": false,
  "ExcludeConsoleLog": false
}

Additional Context

Summary: StructureToPtrTests.StructureToPtr_ByValDateArray_Success fails on tvos-arm64 with a System.Security.VerificationException indicating a generic type constraint violation in the marshaling stub helpers.

Failed in (2+):

Console Log: tvos-arm64 Console Log

Failed tests:

runtime-extra-platforms (tvos-arm64 Release AllSubsets_CoreCLR)
- osx.15.amd64.appletv.open
  - System.Runtime.InteropServices.Tests.StructureToPtrTests.StructureToPtr_ByValDateArray_Success

Error Message:

[FAIL] System.Runtime.InteropServices.Tests.StructureToPtrTests.StructureToPtr_ByValDateArray_Success
System.Security.VerificationException : Method System.StubHelpers.StubHelpers.FreeArrayContents: type argument 'System.StubHelpers.DateMarshaler' violates the constraint of type parameter 'TMarshaler'.

Stack Trace:

at System.StubHelpers.StructureMarshaler`1.Free(T& managed, Byte* unmanaged, CleanupWorkListElement& cleanupWorkList)
at System.StubHelpers.BoxedLayoutTypeMarshaler`1.Free(Object managed, Byte* unmanaged, CleanupWorkListElement& cleanupWorkList)
at System.Runtime.InteropServices.Marshal.DestroyStructure(IntPtr ptr, Type structuretype)
at System.Runtime.InteropServices.Tests.StructureToPtrTests.StructureToPtr_ByValDateArray_Success()

Impact on platforms:

  • runtime-extra-platforms + tvos-arm64 + osx.15.amd64.appletv.open + exit code 1

First build it occurred: First confirmed in build 1406427 (2026-05-03) within the scanned window. Note: this is within the scanned window and may not be the true origin.

Recommended action: The generic type constraint violation in StubHelpers.FreeArrayContents for DateMarshaler suggests a marshaling code-generation issue specific to tvos-arm64 (possibly related to NativeAOT or interpreter paths on Apple TV). This needs investigation by the interop/marshaling area owners. The test should be annotated with [ActiveIssue] for tvOS until the root cause is fixed.

Generated by CI Outer-Loop Failure Scanner · ● 26.1M · ◷

Report

Build Definition Step Name Console log Pull Request
1415107 dotnet/runtime Run Trimming Tests Log #128020
Build Definition Test Pull Request
1418805 dotnet/runtime System.Runtime.InteropServices.Tests.StructureToPtrTests.StructureToPtr_ByValDateArray_Success #124173
1418286 dotnet/runtime System.Runtime.InteropServices.Tests.WorkItemExecution
1417616 dotnet/runtime System.Runtime.InteropServices.Tests.WorkItemExecution #125437
1417637 dotnet/runtime System.Runtime.InteropServices.Tests.WorkItemExecution #128068
1417611 dotnet/runtime System.Runtime.InteropServices.Tests.WorkItemExecution #128049
1416787 dotnet/runtime System.Runtime.InteropServices.Tests.WorkItemExecution
1416322 dotnet/runtime System.Runtime.InteropServices.Tests.WorkItemExecution #128049
1415929 dotnet/runtime System.Runtime.InteropServices.Tests.StructureToPtrTests.StructureToPtr_ByValDateArray_Success #125437
1415126 dotnet/runtime System.Runtime.InteropServices.Tests.WorkItemExecution
1414719 dotnet/runtime System.Runtime.InteropServices.Tests.WorkItemExecution
1414320 dotnet/runtime System.Runtime.InteropServices.Tests.WorkItemExecution

Summary

24-Hour Hit Count 7-Day Hit Count 1-Month Count
3 12 12

Activity

  1. dotnet-policy-service commented on May 8, 2026

    @dotnet-policy-service
    Contributor

    Tagging subscribers to this area: @dotnet/interop-contrib
    See info in area-owners.md if you want to be subscribed.

  2. MichalStrehovsky commented on May 14, 2026

    @MichalStrehovsky
    Member

    Workaround in #128020, underlying issue tracked elsewhere

  3. locked and limited conversation to collaborators on Jun 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    • Status
      No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions