rustc segfaults when evaluating certain recursive trait implementations #108499
Labels
C-bug
Category: This is a bug.
I-crash
Issue: The compiler crashes (SIGSEGV, SIGABRT, etc). Use I-ICE instead when the compiler panics.
S-bug-has-test
Status: This bug is tracked inside the repo by a `known-bug` test.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
Code
This is the simplest example I could find where the trait could evaluation could actually finish in theory. A simpler example which would loop infinitely is this:
This uses much less time and memory before crashing compared to the hyperoperation sequence example.
Meta
The bug also exists on nightly and beta, although the recursion limit needed is higher in beta.
rustc --version --verbose
:Error output
Full error output
The text was updated successfully, but these errors were encountered: