Skip to content

[BUG] compound_pipe_into_function_redirected_from_cli overflows the stack on Windows CI #406

Backlog

Description

@strandly-the-agent

Checks

  • I have updated to the latest minor and patch version of Strands Shell
  • I have checked the documentation and this is not expected behavior
  • I have searched ./issues and there are no duplicates of my issue

Binding

Rust

Strands Shell Version

main @ 4f838f9

Language Runtime Version

CI toolchain (Rust job, windows-latest)

Operating System

Windows Server 2025 (GitHub windows-latest runner)

Installation Method

built from source

Steps to Reproduce

Run the Rust CI job on Windows against anything containing current main, e.g. cargo test -p strands-shell --test shell_integration compound_pipe_into_function_redirected_from_cli on a Windows debug build.

Expected Behavior

The test passes, as it does on Ubuntu and macOS.

Actual Behavior

The CLI child process overflows its main-thread stack:

---- compound_pipe_into_function_redirected_from_cli stdout ----
thread 'compound_pipe_into_function_redirected_from_cli' panicked at tests\shell_integration.rs:3172:5:
assertion `left == right` failed
  left: "\nthread 'main' (8084) has overflowed its stack\n"
 right: ""

Seen on three runs so far, from two PRs that merged main on 2026-11-26:

Neither PR touches the executor. main itself doesn't run the Rust job on push, so this shows up only on PRs.

Additional Context

The script is g() { cat; }; { { echo a; } | g; } > f; echo "file:$(cat f)", run through the CLI binary. A comment next to the neighbouring test (tests/shell_integration.rs, just above compound_pipe_into_function_in_substitution_from_execute) already notes that a function call inside $( ) overflows the 1 MiB main-thread stack of a Windows debug build, and moves that case in process. This test has the same shape (a function call plus $( )) but still goes through the CLI. The tests come from #384.

Possible Solution

Either run this case in process like its neighbour, or give the CLI's main work a larger stack (for example, run it on a spawned thread with an explicit stack size). The second also covers real Windows users of the debug CLI. I have not tried either; I have no Windows machine.

Related Issues

#384, #347, #348

Activity

  1. added
    bug
    on Nov 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug

    Type

    Fields

    Language

    None yet

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions