Skip to content

Disable TestStackOverflowLargeFrameMainThread for x64 on Unix#124376

Merged
EgorBo merged 5 commits intomainfrom
copilot/disable-stackoverflowtester-test
Feb 13, 2026
Merged

Disable TestStackOverflowLargeFrameMainThread for x64 on Unix#124376
EgorBo merged 5 commits intomainfrom
copilot/disable-stackoverflowtester-test

Conversation

Copy link
Contributor

Copilot AI commented Feb 13, 2026

Description

Disables the TestStackOverflowLargeFrameMainThread test for x64 architecture on Unix/MacOSX platforms by adding a runtime check within the test method itself.

Changes

  • Added Architecture.X64 to the architecture check in the TestStackOverflowLargeFrameMainThread method in stackoverflowtester.cs
  • Updated comments to clearly list all disabled architectures (ARM64, X64, RISCV64, and LoongArch64)
  • The comment now specifies that ARM64 and X64 are disabled due to [Arm64] Implement stack probing using helper #13519

The test now returns early for Arm64, X64, RiscV64, or LoongArch64 on Unix/MacOSX platforms, addressing the stack overflow detection issue where the current stack probing doesn't move the stack pointer and the runtime sometimes cannot recognize the underlying sigsegv as stack overflow when it probes too far from SP.

The test remains enabled on Windows and for other architectures (x86, Arm) on all platforms.


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

Copilot AI changed the title [WIP] Disable stackoverflowtester test for all runtimes on Linux Disable stackoverflowtester test on Linux for all runtimes Feb 13, 2026
Copilot AI requested a review from EgorBo February 13, 2026 12:10
@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 Feb 13, 2026
@EgorBo
Copy link
Member

EgorBo commented Feb 13, 2026

@copilot revert the csproj change and disable the test for x64 arch inside TestStackOverflowLargeFrameMainThread test in stackoverflowtester.cs
Adjust the Disabled on Unix ARM64 due to comment to list x64 as well

Copy link
Contributor Author

Copilot AI commented Feb 13, 2026

@copilot revert the csproj change and disable the test for x64 arch inside TestStackOverflowLargeFrameMainThread test in stackoverflowtester.cs
Adjust the Disabled on Unix ARM64 due to comment to...

Done. Reverted the csproj change and added x64 architecture check in TestStackOverflowLargeFrameMainThread. Also updated the comments to clearly list all disabled architectures. Changes in commits 671c299 and f06aa43.

Copilot AI changed the title Disable stackoverflowtester test on Linux for all runtimes Disable TestStackOverflowLargeFrameMainThread for x64 on Unix Feb 13, 2026
@EgorBo EgorBo marked this pull request as ready for review February 13, 2026 12:29
Copilot AI review requested due to automatic review settings February 13, 2026 12:29
@EgorBo
Copy link
Member

EgorBo commented Feb 13, 2026

PTAL @dotnet/jit-contrib

I guess my PR #121300 to disable this test was unintentionally reverted recently when we migrated from issues.props to ActiveIssue.

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

Disables the TestStackOverflowLargeFrameMainThread runtime test on Unix/macOS for additional architectures (notably x64) to avoid false negatives/incorrect SO classification in environments where stack probing behavior can prevent reliable stack overflow detection.

Changes:

  • Add Architecture.X64 to the runtime skip condition for TestStackOverflowLargeFrameMainThread on Unix/macOS.
  • Update the in-test comments describing which architectures are disabled and why.

@EgorBo EgorBo enabled auto-merge (squash) February 13, 2026 13:52
@EgorBo EgorBo merged commit e90c462 into main Feb 13, 2026
81 of 84 checks passed
@agocke
Copy link
Member

agocke commented Feb 14, 2026

At the point that we're disabling this test on linux x64, should we find some way to test the same thing more robustly?

@agocke agocke deleted the copilot/disable-stackoverflowtester-test branch February 14, 2026 00:15
@EgorBo
Copy link
Member

EgorBo commented Feb 14, 2026

At the point that we're disabling this test on linux x64, should we find some way to test the same thing more robustly?

I'd say the actual issue needs to be fixed or studied if it's something important or not. I just wanted to make JIT PRs finally fully green

richlander pushed a commit to richlander/runtime that referenced this pull request Feb 14, 2026
…#124376)

## Description

Disables the `TestStackOverflowLargeFrameMainThread` test for x64
architecture on Unix/MacOSX platforms by adding a runtime check within
the test method itself.

## Changes

- Added `Architecture.X64` to the architecture check in the
`TestStackOverflowLargeFrameMainThread` method in
`stackoverflowtester.cs`
- Updated comments to clearly list all disabled architectures (ARM64,
X64, RISCV64, and LoongArch64)
- The comment now specifies that ARM64 and X64 are disabled due to
dotnet#13519

The test now returns early for Arm64, X64, RiscV64, or LoongArch64 on
Unix/MacOSX platforms, addressing the stack overflow detection issue
where the current stack probing doesn't move the stack pointer and the
runtime sometimes cannot recognize the underlying sigsegv as stack
overflow when it probes too far from SP.

The test remains enabled on Windows and for other architectures (x86,
Arm) on all platforms.

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

💬 We'd love your input! Share your thoughts on Copilot coding agent in
our [2 minute survey](https://gh.io/copilot-coding-agent-survey).

---------

Co-authored-by: copilot-swe-agent[bot] <[email protected]>
Co-authored-by: EgorBo <[email protected]>
@jakobbotsch
Copy link
Member

Didn't seem like this actually disabled the test: https://github.com/dotnet/runtime/pull/124550/checks?check_run_id=64096192311

@EgorBo
Copy link
Member

EgorBo commented Feb 19, 2026

Didn't seem like this actually disabled the test: https://github.com/dotnet/runtime/pull/124550/checks?check_run_id=64096192311

seems like it's a different [Fact] in that file. At this point it feels like this test has to be disabled or rewritten completely. it's currently disabled on most platforms already

@am11
Copy link
Member

am11 commented Feb 26, 2026

TestStackOverflowLargeFrameMainThread is also failing on linux-musl-arm64 #110173 (comment).

iremyux pushed a commit to iremyux/dotnet-runtime that referenced this pull request Mar 2, 2026
…#124376)

## Description

Disables the `TestStackOverflowLargeFrameMainThread` test for x64
architecture on Unix/MacOSX platforms by adding a runtime check within
the test method itself.

## Changes

- Added `Architecture.X64` to the architecture check in the
`TestStackOverflowLargeFrameMainThread` method in
`stackoverflowtester.cs`
- Updated comments to clearly list all disabled architectures (ARM64,
X64, RISCV64, and LoongArch64)
- The comment now specifies that ARM64 and X64 are disabled due to
dotnet#13519

The test now returns early for Arm64, X64, RiscV64, or LoongArch64 on
Unix/MacOSX platforms, addressing the stack overflow detection issue
where the current stack probing doesn't move the stack pointer and the
runtime sometimes cannot recognize the underlying sigsegv as stack
overflow when it probes too far from SP.

The test remains enabled on Windows and for other architectures (x86,
Arm) on all platforms.

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

💬 We'd love your input! Share your thoughts on Copilot coding agent in
our [2 minute survey](https://gh.io/copilot-coding-agent-survey).

---------

Co-authored-by: copilot-swe-agent[bot] <[email protected]>
Co-authored-by: EgorBo <[email protected]>
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.

6 participants