-
Notifications
You must be signed in to change notification settings - Fork 13.3k
Rustc does not terminate on some inputs #97449
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
Labels
A-associated-items
Area: Associated items (types, constants & functions)
A-trait-system
Area: Trait system
C-bug
Category: This is a bug.
fixed-by-next-solver
Fixed by the next-generation trait solver, `-Znext-solver`.
I-hang
Issue: The compiler never terminates, due to infinite loops, deadlock, livelock, etc.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
Comments
Seems to be a duplicate of #96340 |
Interestingly, this seems to hang all the way back to 1.0, whereas the repro in #96340 just failed until 1.7. |
That's because in #96340 I used some features that were only added in 1.7. The core issue seems to have been here forever. |
Doesn't hang in the next-gen solver ( stderr
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
A-associated-items
Area: Associated items (types, constants & functions)
A-trait-system
Area: Trait system
C-bug
Category: This is a bug.
fixed-by-next-solver
Fixed by the next-generation trait solver, `-Znext-solver`.
I-hang
Issue: The compiler never terminates, due to infinite loops, deadlock, livelock, etc.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
Consider the following piece of code:
On this input,
rustc
does not terminate (or at least not in a few minutes).I'd expect the compiler to either succeed (although I don't know how that could happen here ;)) or to produce an error instead.
Meta
rustc --version --verbose
:but the problem also happens on:
Backtrace
I couldn't get a backtrace with RUST_BACKTRACE, so I tried to get one with gdb after sending a SIGABRT to rustc
Thread 1:
Thread 2:
The text was updated successfully, but these errors were encountered: