Skip to content

Stack overflow in cargo tree -e features #10101

@jdisanti

Description

@jdisanti

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]

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions