Repository navigation
[ci-scan] Test failure: StructureToPtrTests.StructureToPtr_ByValDateArray_Success on tvos-arm64 #127952
Description
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+):
- runtime-extra-platforms 1413202 (2026-05-08)
- runtime-extra-platforms 1406427 (2026-05-03)
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 |
Summary
| 24-Hour Hit Count | 7-Day Hit Count | 1-Month Count |
|---|---|---|
| 3 | 12 | 12 |
Metadata
Metadata
Assignees
Labels
Type
Projects
- StatusShow more project fieldsNo status
Activity
dotnet-policy-service commentedon May 8, 2026
Tagging subscribers to this area: @dotnet/interop-contrib
See info in area-owners.md if you want to be subscribed.
Mute StructureToPtr_ByValDateArray_Success on tvOS
Add trimming test for Marshal.StructureToPtr with ByVal DateTime arra…
Skip StructureToPtr_ByValDateArray_Success on tvOS (refs #127952)
MichalStrehovsky commentedon May 14, 2026
Workaround in #128020, underlying issue tracked elsewhere