Skip to content

fix(ci): set RUST_MIN_STACK=16MB to fix rustc stack overflow on filter lib test#395

Merged
ruvnet merged 1 commit intomainfrom
fix/ci-rust-min-stack
Apr 27, 2026
Merged

fix(ci): set RUST_MIN_STACK=16MB to fix rustc stack overflow on filter lib test#395
ruvnet merged 1 commit intomainfrom
fix/ci-rust-min-stack

Conversation

@ruvnet
Copy link
Copy Markdown
Owner

@ruvnet ruvnet commented Apr 26, 2026

Summary

PR #389 raised ruvector-filter's recursion_limit to 4096 to fix an E0275 trait-resolution overflow. That worked — but the deeper trait resolution now drives rustc's own process stack past the default 8 MB on x86_64 Linux runners, surfacing as signal: 11, SIGSEGV and:

note: rustc unexpectedly overflowed its stack! this is a bug
help: you can increase rustc's stack size by setting RUST_MIN_STACK=16777216

Tripping the test shard on PR #391 and PR #393 today.

Fix

Add RUST_MIN_STACK = "16777216" to .cargo/config.toml [env]. One line. Applies to every cargo invocation locally and in CI without per-job env wiring. The value is what rustc's help text suggests.

Test plan

🤖 Generated with claude-flow

…erflow

PR #389 raised `ruvector-filter`'s `recursion_limit` to 4096 to fix an
E0275 trait-resolution overflow (serde_json's `Serializer` blanket impl
chains through every variant of the filter expression AST). With that
limit in place rustc successfully *resolves* the bound, but the deeper
resolution drives rustc's own process stack past the default 8 MB
ceiling on x86_64 Linux runners — surfacing as `signal: 11, SIGSEGV` and
the diagnostic message:

  note: rustc unexpectedly overflowed its stack! this is a bug
  help: you can increase rustc's stack size by setting RUST_MIN_STACK=16777216

This trips PR test shards that touch ruvector-filter (seen on PR #391 and
PR #393). Setting `RUST_MIN_STACK=16777216` at the workspace level via
`.cargo/[env]` applies it to every `cargo` invocation locally and in CI
without per-job env wiring, and is exactly the value the rustc help text
recommends.

No code change. The fix is one .cargo/config.toml line.

Co-Authored-By: claude-flow <ruv@ruv.net>
@ruvnet ruvnet merged commit a65c324 into main Apr 27, 2026
20 of 21 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant