Skip to content

Mark Runtime_76219 GC regression test as CLRTestTargetUnsupported#125249

Open
Copilot wants to merge 3 commits intomainfrom
copilot/fix-runtime-76219-test-failure
Open

Mark Runtime_76219 GC regression test as CLRTestTargetUnsupported#125249
Copilot wants to merge 3 commits intomainfrom
copilot/fix-runtime-76219-test-failure

Conversation

Copy link
Contributor

Copilot AI commented Mar 5, 2026

Description

Runtime_76219 has been consistently crashing on macOS arm64 under GC stress configurations with a SIGTRAP (exit 133), even though the test body is already disabled via [ActiveIssue("...#78899", TestRuntimes.CoreCLR)]. The crash occurs at the test host level, likely triggered by the custom GC stress env vars (DOTNET_GCStress=0x3, DOTNET_GCSegmentSize=8000) applied unconditionally via CLRTestBashPreCommands — before xunit ever evaluates the ActiveIssue skip logic.

Changes

Security

No security-sensitive changes.

Original prompt

This section details on the original issue you should resolve

<issue_title>Test failure: GC/Regressions/Github/Runtime_76219/Runtime_76219/Runtime_76219.cmd</issue_title>
<issue_description>Failed in: runtime-coreclr gcstress-extra 20260222.1

Failed tests:

coreclr osx arm64 Checked heapverify1 @ OSX.26.Arm64.Open
- GC/Regressions/Github/Runtime_76219/Runtime_76219/Runtime_76219.cmd
coreclr osx arm64 Checked gcstress0xc_jitminopts_heapverify1 @ OSX.26.Arm64.Open
- GC/Regressions/Github/Runtime_76219/Runtime_76219/Runtime_76219.cmd

Error message:

/private/tmp/helix/working/C8ED0A56/w/ADB90968/e/GC/GC/../Regressions/Github/Runtime_76219/Runtime_76219/Runtime_76219.sh: line 430: 23214 Trace/BPT trap: 5       (core dumped) $LAUNCHER $ExePath "${CLRTestExecutionArguments[@]}"

Return code:      1
Raw output file:      /tmp/helix/working/C8ED0A56/w/ADB90968/uploads/Regressions/Github/Runtime_76219/Runtime_76219/output.txt
Raw output:
BEGIN EXECUTION
/tmp/helix/working/C8ED0A56/p/corerun -p System.Reflection.Metadata.MetadataUpdater.IsSupported=false -p System.Runtime.Serialization.EnableUnsafeBinaryFormatterSerialization=true Runtime_76219.dll ''
Expected: 100
Actual: 133
END EXECUTION - FAILED
Test Harness Exitcode is : 1
To run the test:
Set up CORE_ROOT and run.
> /private/tmp/helix/working/C8ED0A56/w/ADB90968/e/GC/GC/../Regressions/Github/Runtime_76219/Runtime_76219/Runtime_76219.sh

Stack trace:

   at Xunit.Assert.True(Nullable`1 condition, String userMessage) in /_/src/arcade/src/Microsoft.DotNet.XUnitAssert/src/BooleanAsserts.cs:line 141
   at Program.<<Main>$>g__TestExecutor97|0_98(StreamWriter tempLogSw, StreamWriter statsCsvSw, <>c__DisplayClass0_0&)
<style> </style>
Queued Pipeline Pipeline_Configuration OS Arch Test Outcome Properties BuildReason
2/22/2026, 10:24:22.581 PM runtime-coreclr gcstress-extra Checked-gcstress0xc_jitminopts_heapverify1 osx.26.arm64.open arm64 GC/Regressions/Github/Runtime_76219/Runtime_76219/Runtime_76219.cmd Failed {"DefinitionName":"runtime-coreclr gcstress-extra","System.JobAttempt":"1","operatingSystem":"OSX.26.Arm64.Open","CollectionUri":"https://dev.azure.com/dnceng-public/","configuration":"Checked-gcstress0xc_jitminopts_heapverify1","BuildId":"1304768","System.StageName":"Build","System.PhaseAttempt":"1","System.JobName":"__default","System.PhaseName":"run_test_p1__osx_arm64_checked","BuildNumber":"20260222.1","Project":"public","System.StageAttempt":"1","Reason":"Schedule","DefinitionId":"113","architecture":"arm64","AzurePipelinesTestRunId":"36443622","System.JobId":"765fd5e9-e47f-5cb0-4cbf-499eaaaee93e"} Schedule
2/22/2026, 10:24:19.545 PM runtime-coreclr gcstress-extra Checked-heapverify1 osx.26.arm64.open arm64 GC/Regressions/Github/Runtime_76219/Runtime_76219/Runtime_76219.cmd Failed {"System.PhaseAttempt":"1","System.JobAttempt":"1","AzurePipelinesTestRunId":"36443620","DefinitionId":"113","operatingSystem":"OSX.26.Arm64.Open","System.JobId":"765fd5e9-e47f-5cb0-4cbf-499eaaaee93e","System.StageName":"Build","CollectionUri":"https://dev.azure.com/dnceng-public/","architecture":"arm64","BuildId":"1304768","DefinitionName":"runtime-coreclr gcstress-extra","System.StageAttempt":"1","System.PhaseName":"run_test_p1__osx_arm64_checked","System.JobName":"__default","configuration":"Checked-heapverify1","Reason":"Schedule","BuildNumber":"20260222.1","Project":"public"} Schedule
2/22/2026, 7:24:17.996 AM runtime-coreclr crossgen2-composite gcstress Checked-gcstress0xc_jitminopts_heapverify1 osx.26.arm64.op...

💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.

@dotnet-policy-service
Copy link
Contributor

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

…GC stress failures

Co-authored-by: jkoritzinsky <1571408+jkoritzinsky@users.noreply.github.com>
Copilot AI changed the title [WIP] Fix test failure in Runtime_76219 command Mark Runtime_76219 GC regression test as CLRTestTargetUnsupported Mar 5, 2026
@jkoritzinsky jkoritzinsky marked this pull request as ready for review March 6, 2026 00:26
Copilot AI review requested due to automatic review settings March 6, 2026 00:26
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 disables the Runtime_76219 GC regression test at the project level by marking it as unsupported, to avoid host-level crashes that occur before xUnit can apply [ActiveIssue] skip logic.

Changes:

  • Add <CLRTestTargetUnsupported>true</CLRTestTargetUnsupported> to prevent the test project from building/running.
  • Document the rationale with an XML comment referencing #78899.

Comment on lines +9 to +10
Mark as unsupported until https://github.com/dotnet/runtime/issues/78899 is resolved. -->
<CLRTestTargetUnsupported>true</CLRTestTargetUnsupported>
Copy link

Copilot AI Mar 6, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

CLRTestTargetUnsupported is being set unconditionally to true, which disables building/running this test on all targets. The preceding comment says the crash is specific to OSX arm64 under GC stress; if the intent is to suppress only that platform/arch, make this property conditional (e.g., on $(TargetsOSX) and $(TargetArchitecture)), or update the comment to clearly state the test is disabled everywhere until the issue is resolved.

Suggested change
Mark as unsupported until https://github.com/dotnet/runtime/issues/78899 is resolved. -->
<CLRTestTargetUnsupported>true</CLRTestTargetUnsupported>
Mark osx arm64 as unsupported until https://github.com/dotnet/runtime/issues/78899 is resolved. -->
<CLRTestTargetUnsupported Condition="'$(TargetsOSX)' == 'true' and '$(TargetArchitecture)' == 'arm64'">true</CLRTestTargetUnsupported>

Copilot uses AI. Check for mistakes.
@jkoritzinsky jkoritzinsky enabled auto-merge (squash) March 6, 2026 05:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Status: No status

Development

Successfully merging this pull request may close these issues.

Test failure: GC/Regressions/Github/Runtime_76219/Runtime_76219/Runtime_76219.cmd

4 participants