Skip to content

Should be able to change stack limit #643

Closed
rust-lang/rust
#66726
@orium

Description

@orium

It is currently not possible to change the stack limit. It would be great to get that functionality back!

Original report

Maybe I'm doing something wrong, but I'm unable to set the stack limit for miri.

If I call cargo miri test --help it says:

The config flag `miri` is automatically defined for convenience. You can use
it to configure the resource limits

    #![cfg_attr(miri, memory_size = 42)]

available resource limits are `memory_size`, `step_limit`, `stack_limit`

After adding

#![cfg_attr(miri, stack_limit = 100000)]

to my lib.rs I get "stack limit reached error" at the same depth.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-interpreterArea: affects the core interpreterC-enhancementCategory: a PR with an enhancement or an issue tracking an accepted enhancement

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions