Skip to content

wast: WASM_PARENS_DEPTH too high on aarch64-unknown-linux-gnu #2551

Closed

Description

@lann
$ rustc -vV
rustc 1.96.0 (ac68faa20 2026-05-25)
binary: rustc
commit-hash: ac68faa20c58cbccd01ee7208bf3b6e93a7d7f96
commit-date: 2026-05-25
host: aarch64-unknown-linux-gnu
release: 1.96.0
LLVM version: 22.1.2

$ cargo test --test cli -- tests/cli/component-model/very-nested.wast
[...]
       thread '<unknown>' (2755691) has overflowed its stack
       fatal runtime error: stack overflow, aborting
[...]

$ RUST_MIN_STACK=3000000 cargo test --test cli -- tests/cli/component-model/very-nested.wast
[...]
test result: ok ...

I can also get the test to pass by setting MAX_PARENS_DEPTH from 100 to...99. 😂

This happens to be a Linux VM on a Mac if that makes any difference.

Activity

  1. alexcrichton commented on Jul 1, 2026

    @alexcrichton
    Member

    This came up in CI of #2555 as well, and b07c758 fixes it locally for me at least

  2. lann commented on Jul 2, 2026

    @lann
    ContributorAuthor

    Confirmed this is fixed for me now, down to ~RUST_MIN_STACK=1200000. Thanks!

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions