Skip to content

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

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.

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