Skip to content

Increasing stack size limit results in inconsistent behavior, stack overflow #43879

Closed
@ccope

Description

@ccope

I'm writing some toy programs to learn rust and encountered some strange behavior when changing stack size limits.

I tried building and running this code: https://github.com/ccope/oom-rs

I expected to see this happen: Printing out the changed stack size limit, followed by the test strings.

Instead, this happened:

Meta

Ubuntu 16.04, kernel 4.10.0-32-generic

rustc --version --verbose:

1.19.0:

rustc 1.19.0 (0ade33941 2017-07-17)
binary: rustc
commit-hash: 0ade339411587887bf01bcfa2e9ae4414c8900d4
commit-date: 2017-07-17
host: x86_64-unknown-linux-gnu
release: 1.19.0
LLVM version: 4.0

1.21.0:

rustc 1.21.0-nightly (df511d554 2017-08-14)
binary: rustc
commit-hash: df511d5548ebb7f971abcd3a5283cb1d37b64596
commit-date: 2017-08-14
host: x86_64-unknown-linux-gnu
release: 1.21.0-nightly
LLVM version: 4.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-bugCategory: This is a bug.I-needs-decisionIssue: In need of a decision.T-libs-apiRelevant to the library API team, which will review and decide on the PR/issue.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions