Skip to content

Conversation

Copy link
Contributor

Copilot AI commented Dec 11, 2025

Disables the GC/Scenarios/THDChaos/thdchaos test on Arm32 platforms due to test failures involving recursive OnUnhandledException calls leading to process termination.

Changes Made

Testing

The test was failing on Arm32 CoreCLR with JIT stress configurations:

  • Platform: coreclr linux arm Checked jitstress2_jitstressregs0x80
  • Error: Recursive OnUnhandledException calls causing process termination

The change prevents the test from running on Arm32 architectures where it is known to fail, allowing other tests to complete successfully.

Original prompt

This section details on the original issue you should resolve

<issue_title>Test failure: GC/Scenarios/THDChaos/thdchaos/thdchaos.cmd</issue_title>
<issue_description>Failed in: runtime-coreclr jitstress2-jitstressregs 20250913.1

Failed tests:

coreclr linux arm Checked jitstress2_jitstressregs0x80 @ (Debian.13.Arm32.Open)Ubuntu.2204.ArmArch.Open@mcr.microsoft.com/dotnet-buildtools/prereqs:debian-13-helix-arm32v7
    - GC/Scenarios/THDChaos/thdchaos/thdchaos.cmd

Error message:

Process terminated.
OnUnhandledException called recursively
   at System.Environment.FailFast(System.Runtime.CompilerServices.StackCrawlMarkHandle, System.String, System.Runtime.CompilerServices.ObjectHandleOnStack, System.String)
   at System.Environment.FailFast(System.Threading.StackCrawlMark ByRef, System.String, System.Exception, System.String)
   at System.Environment.FailFast(System.String)
   at System.AppContext.OnUnhandledException(System.Object)
   at System.Runtime.EH.DispatchEx(System.Runtime.StackFrameIterator ByRef, ExInfo ByRef)
   at System.Runtime.EH.RhThrowEx(System.Object, ExInfo ByRef)
   at System.Threading.Thread.StartCore()
   at DefaultNamespace.LivingObject.ThreadStart()
   at System.Threading.Thread.StartCallback()
[createdump] Problem suspending thread: ptrace(ATTACH, 528) FAILED No such process (3)
[createdump] Problem suspending thread: ptrace(ATTACH, 538) FAILED No such process (3)
[createdump] Problem suspending thread: ptrace(ATTACH, 539) FAILED No such process (3)
[createdump] Problem suspending thread: ptrace(ATTACH, 540) FAILED No such process (3)
[createdump] Problem suspending thread: ptrace(ATTACH, 541) FAILED No such process (3)
[createdump] Problem suspending thread: ptrace(ATTACH, 542) FAILED No such process (3)
[createdump] Problem suspending thread: ptrace(ATTACH, 544) FAILED No such process (3)
[createdump] Problem suspending thread: ptrace(ATTACH, 545) FAILED No such process (3)
[createdump] Problem suspending thread: ptrace(ATTACH, 546) FAILED No such process (3)
[createdump] Problem suspending thread: ptrace(ATTACH, 547) FAILED No such process (3)
[createdump] Problem suspending thread: ptrace(ATTACH, 548) FAILED No such process (3)
[createdump] Problem suspending thread: ptrace(ATTACH, 549) FAILED No such process (3)
[createdump] Problem suspending thread: ptrace(ATTACH, 550) FAILED No such process (3)
[createdump] Problem suspending thread: ptrace(ATTACH, 551) FAILED No such process (3)
[createdump] Problem suspending thread: ptrace(ATTACH, 552) FAILED No such process (3)
[createdump] Problem suspending thread: ptrace(ATTACH, 553) FAILED No such process (3)
[createdump] Problem suspending thread: ptrace(ATTACH, 554) FAILED No such process (3)
[createdump] Problem suspending thread: ptrace(ATTACH, 555) FAILED No such process (3)
[createdump] Problem suspending thread: ptrace(ATTACH, 556) FAILED No such process (3)
[createdump] Problem suspending thread: ptrace(ATTACH, 558) FAILED No such process (3)
[createdump] Problem suspending thread: ptrace(ATTACH, 559) FAILED No such process (3)
[createdump] Problem suspending thread: ptrace(ATTACH, 560) FAILED No such process (3)
[createdump] Problem suspending thread: ptrace(ATTACH, 561) FAILED No such process (3)
[createdump] Problem suspending thread: ptrace(ATTACH, 562) FAILED No such process (3)
[createdump] Problem suspending thread: ptrace(ATTACH, 563) FAILED No such process (3)
[createdump] Problem suspending thread: ptrace(ATTACH, 564) FAILED No such process (3)
[createdump] Problem suspending thread: ptrace(ATTACH, 565) FAILED No such process (3)
[createdump] Problem suspending thread: ptrace(ATTACH, 566) FAILED No such process (3)
[createdump] Problem suspending thread: ptrace(ATTACH, 567) FAILED No such process (3)
[createdump] Problem suspending thread: ptrace(ATTACH, 568) FAILED No such process (3)
[createdump] Problem suspending thread: ptrace(ATTACH, 569) FAILED No such process (3)
[createdump] Problem suspending thread: ptrace(ATTACH, 570) FAILED No such process (3)
[createdump] Problem suspending thread: ptrace(ATTACH, 571) FAILED No such process (3)
[createdump] Problem suspending thread: ptrace(ATTACH, 572) FAILED No such process (3)
[createdump] Problem suspending thread: ptrace(ATTACH, 573) FAILED No such process (3)
[createdump] Problem suspending thread: ptrace(ATTACH, 574) FAILED No such process (3)
[createdump] Problem suspending thread: ptrace(ATTACH, 580) FAILED No such process (3)
[createdump] Problem suspendi

Stack trace:

   at Xunit.Assert.True(Nullable`1 condition, String userMessage) in /_/src/arcade/src/Microsoft.DotNet.XUnitAssert/src/BooleanAsserts.cs:line 141
   at TestLibrary.OutOfProcessTest.RunOutOfProcessTest(String assemblyPath, String testPathPrefix)
   at Program.<<Main>$>g__TestExecutor49|0_50(StreamWriter tempLogSw, StreamWriter statsCsvSw, <>c__D...

</details>



<!-- START COPILOT CODING AGENT SUFFIX -->

- Fixes dotnet/runtime#119700

<!-- START COPILOT CODING AGENT TIPS -->
---

💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more [Copilot coding agent tips](https://gh.io/copilot-coding-agent-tips) in the docs.

@github-actions github-actions bot added the needs-area-label An area label is needed to ensure this gets routed to the appropriate area owners label Dec 11, 2025
Co-authored-by: JulieLeeMSFT <63486087+JulieLeeMSFT@users.noreply.github.com>
Copy link
Member

@jkotas jkotas left a comment

Choose a reason for hiding this comment

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

LGTM

@jkotas jkotas marked this pull request as ready for review December 11, 2025 19:13
Copilot AI review requested due to automatic review settings December 11, 2025 19:13
Copilot AI changed the title [WIP] Fix test failure in GC/Scenarios/THDChaos Disable GC/Scenarios/THDChaos/thdchaos test on Arm32 Dec 11, 2025
Copilot AI requested a review from JulieLeeMSFT December 11, 2025 19:15
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 adds a test exclusion for the GC/Scenarios/THDChaos/thdchaos test on Arm32 platforms due to a test failure involving recursive unhandled exception calls and process termination. The test is experiencing failures specifically on Arm32 CoreCLR with JIT stress configurations.

Key Changes:

  • Adds exclusion entry for the THDChaos test in the Arm32 section of issues.targets

Co-authored-by: jkotas <6668460+jkotas@users.noreply.github.com>
@jkotas jkotas merged commit 30a5c7c into main Dec 11, 2025
81 checks passed
@jkotas jkotas deleted the copilot/fix-thdchaos-test-failure branch December 11, 2025 23:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

needs-area-label An area label is needed to ensure this gets routed to the appropriate area owners

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants