Skip to content

"thread 'rustc' has overflowed its stack" introduced in 1.45.0 #74931

Closed
@epage

Description

@epage

Code

git clone https://github.com/crate-ci/typos.git
cd typos/crates/typos-dict
cargo +1.44.0 check  # works
cargo +1.45.0 check  # overflows
RUST_MIN_STACK=20000000 cargo check  # works

(also reproduced in beta and nightly)

Meta

rustc --version --verbose:

rustc 1.45.0 (5c1f21c3b 2020-07-13)
binary: rustc
commit-hash: 5c1f21c3b82297671ad3ae1e8c942d2ca92e84f2
commit-date: 2020-07-13
host: x86_64-apple-darwin
release: 1.45.0
LLVM version: 10.0

Error output

Checking typos-dict v0.2.1 (/Users/edpage/src/personal/typos/crates/typos-dict)

thread 'rustc' has overflowed its stack
fatal runtime error: stack overflow
error: could not compile `typos-dict`.

Caused by:
  process didn't exit successfully: `rustc --crate-name typos_dict --edition=2018 crates/typos-dict/src/lib.rs --error-format=json --json=diagnostic-rendered-ansi --crate-type lib --emit=dep-info,metadata -Cembed-bitcode=no -C debuginfo=2 -C metadata=439c5583e8d5e9ec -C extra-filename=-439c5583e8d5e9ec --out-dir /Users/edpage/src/personal/typos/target/debug/deps -C incremental=/Users/edpage/src/personal/typos/target/debug/incremental -L dependency=/Users/edpage/src/personal/typos/target/debug/deps --extern log=/Users/edpage/src/personal/typos/target/debug/deps/liblog-6af237d64da748f9.rmeta --extern phf=/Users/edpage/src/personal/typos/target/debug/deps/libphf-3c962e541346fbff.rmeta --extern unicase=/Users/edpage/src/personal/typos/target/debug/deps/libunicase-561e4e81056a68fd.rmeta` (signal: 6, SIGABRT: process abort signal)
Backtrace

No backtrace generated

Metadata

Metadata

Assignees

Labels

C-bugCategory: This is a bug.I-ICEIssue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️O-macosOperating system: macOST-compilerRelevant to the compiler 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