-
Notifications
You must be signed in to change notification settings - Fork 12.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Increasing stack size limit results in inconsistent behavior, stack overflow #43879
Comments
Fired up GDB, and the segfault happened in |
I believe this is all working as intended so I'm going to close this, but thanks for the report! In 1.20.0 Rust gained support for "stack probes" which is the So what's happening here is:
In any case I don't think there's anything more to do here. You can get the example working in debug/release mode on 1.20+ with the |
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:
1.19.0:
1.21.0-nightly:
Meta
Ubuntu 16.04, kernel 4.10.0-32-generic
rustc --version --verbose
:1.19.0:
1.21.0:
The text was updated successfully, but these errors were encountered: