Skip to content
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

Stack overflow in cargo tree -e features #10101

Closed
jdisanti opened this issue Nov 19, 2021 · 1 comment · Fixed by #10103
Closed

Stack overflow in cargo tree -e features #10101

jdisanti opened this issue Nov 19, 2021 · 1 comment · Fixed by #10103
Assignees
Labels

Comments

@jdisanti
Copy link

Problem

When running cargo tree -e features on a crate that depends on aws-config, I get a stack overflow:

thread 'main' has overflowed its stack
fatal runtime error: stack overflow

Steps

  1. Create a new package, and add the following dependency:
[dependencies]
aws-config = "0.0.25-alpha"
  1. Run cargo tree -e features

Possible Solution(s)

No response

Notes

I tried increasing the stack size with ulimit to 64 MB (up from 8 MB), and it still overflowed.

Version

cargo +nightly version --verbose
cargo 1.58.0-nightly (ad50d0d26 2021-11-17)
release: 1.58.0
commit-hash: ad50d0d266213e0cc4f6e526a39d96faae9a3842
commit-date: 2021-11-17
host: x86_64-unknown-linux-gnu
libgit2: 1.3.0 (sys:0.13.23 vendored)
libcurl: 7.79.1-DEV (sys:0.4.50+curl-7.79.1 vendored ssl:OpenSSL/1.1.1l)
os: Ubuntu 20.04 (focal) [64-bit]
@ehuss
Copy link
Contributor

ehuss commented Nov 20, 2021

Thanks for the report! I have posted #10103 with a fix.

@bors bors closed this as completed in a2c6ec7 Nov 22, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants