Skip to content

[ci-scan] Test failure: System.Text.Json.SourceGeneration.Roslyn4.4.Tests Access Violation crash under NativeAOT #128286

@github-actions

Description

@github-actions

Build Information

Build: https://dev.azure.com/dnceng-public/public/_build/results?buildId=1422775
Build error leg or test failing: windows-arm64 Release NativeAOT_Libs / windows-x64 Release NativeAOT_Libs / osx-x64 Release NativeAOT_Libs - System.Text.Json.SourceGeneration.Roslyn4.4.Tests

Error Details

System.Text.Json.SourceGeneration.Roslyn4.4.Tests crashes with an Access Violation (exit code -1073740791 / STATUS_STACK_BUFFER_OVERRUN) across multiple NativeAOT legs in the runtime-nativeaot-outerloop pipeline (definition 265).

Failing tests observed:

  • System.Text.Json.SourceGeneration.Tests.UnsupportedTypesTests_Metadata.SerializeUnsupportedType<Int32[,]> (windows-arm64)
  • System.Text.Json.SourceGeneration.Tests.UnsupportedTypesTests_Metadata.SerializeUnsupportedType<Boolean[,,,]> (windows-arm64)
  • System.Text.Json.SourceGeneration.Tests.JsonCreationHandlingTests_String.CreationHandlingSetWithAttribute_PopulatedPropertyDeserializeInitiallyNull (windows-x64)

All crash with NullReferenceException instead of expected NotSupportedException, followed by a terminal Access Violation.

Affected legs (7 failures in build 1422775):

  • windows-arm64 Release NativeAOT_Libs
  • windows-x64 Release NativeAOT_Libs
  • windows-x64 Release NativeAOT_Checked_Libs
  • windows-x64 Release NativeAOT_Checked_Libs_SizeOpt
  • windows-x64 Release NativeAOT_Checked_Libs_SpeedOpt
  • windows-x86 Release NativeAOT_Libs
  • osx-x64 Release NativeAOT_Libs
[FAIL] System.Text.Json.SourceGeneration.Tests.UnsupportedTypesTests_Metadata.SerializeUnsupportedType<Int32[,]>(wrapper: System.Int32[,])
Assert.Throws() Failure: Exception type was not an exact match
Expected: typeof(System.NotSupportedException)
Actual:   typeof(System.NullReferenceException)
---- System.NullReferenceException : Object reference not set to an instance of an object.
[FAIL] System.Text.Json.SourceGeneration.Tests.JsonCreationHandlingTests_String.CreationHandlingSetWithAttribute_PopulatedPropertyDeserializeInitiallyNull(typeWitness: TypeWitness`1 { })
Process terminated. Access Violation: Attempted to read or write protected memory. This is often an indication that other memory is corrupt. The application will be terminated since this platform does not support throwing an AccessViolationException.
   at System.RuntimeExceptionHelpers.FailFast(String, Exception, String, RhFailFastReason, IntPtr, IntPtr)
   at System.RuntimeExceptionHelpers.GetRuntimeException(ExceptionIDs)
   at System.Runtime.EH.GetClasslibException(ExceptionIDs, IntPtr)
   at Xunit.Assert.<RecordExceptionAsync>d__215.MoveNext()

First observed: build 1422775 (2026-05-16). Prior NativeAOT builds (1420289 on May 14, 1419666 on May 14) had different failures. This appears new as of 2026-05-15/16.

Error Message

{
  "ErrorMessage": ["System.Text.Json.SourceGeneration.Roslyn4.4.Tests", "Access Violation: Attempted to read or write protected memory"],
  "BuildRetry": false,
  "ExcludeConsoleLog": false
}

Generated by CI Outer-Loop Failure Scanner · ● 23.8M ·

Report

Build Definition Test Pull Request
1425376 dotnet/runtime System.Text.Json.SourceGeneration.Roslyn4.4.Tests.WorkItemExecution
1424404 dotnet/runtime System.Text.Json.SourceGeneration.Roslyn4.4.Tests.WorkItemExecution
1424314 dotnet/runtime System.Text.Json.SourceGeneration.Roslyn4.4.Tests.WorkItemExecution #128313
1423942 dotnet/runtime System.Text.Json.SourceGeneration.Roslyn4.4.Tests.WorkItemExecution
1423686 dotnet/runtime System.Text.Json.SourceGeneration.Roslyn4.4.Tests.WorkItemExecution
1423513 dotnet/runtime System.Text.Json.SourceGeneration.Roslyn4.4.Tests.WorkItemExecution

Summary

24-Hour Hit Count 7-Day Hit Count 1-Month Count
0 6 6

Metadata

Metadata

Assignees

Labels

Known Build ErrorUse this to report build issues in the .NET Helix tabagentic-workflowsarea-CodeGen-coreclrCLR JIT compiler in src/coreclr/src/jit and related components such as SuperPMIblocking-clean-ciBlocking PR or rolling runs of 'runtime' or 'runtime-extra-platforms'disabled-testThe test is disabled in source code against the issueruntime-async

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions