-
Notifications
You must be signed in to change notification settings - Fork 12.9k
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
infinite(?) recursion / memory allocation loop / out of memory panic #119625
Labels
C-bug
Category: This is a bug.
I-compilemem
Issue: Problems and improvements with respect to memory usage during compilation.
I-crash
Issue: The compiler crashes (SIGSEGV, SIGABRT, etc). Use I-ICE instead when the compiler panics.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
Comments
AnAverageGitUser
added
C-bug
Category: This is a bug.
I-ICE
Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
labels
Jan 5, 2024
rustbot
added
the
needs-triage
This issue may need triage. Remove it if it has been sufficiently triaged.
label
Jan 5, 2024
smaller repro: // crate a
mod m {
pub struct Uuid(());
impl Uuid {
pub fn encode_buffer() -> [u8; LENGTH] {
[]
}
}
const LENGTH: usize = 0;
}
pub use m::Uuid; // crate b
const CONST_NAME: a::Uuid = a::Uuid(());
fn main() {} relevant part of backtrace:
|
This was referenced Jan 5, 2024
compiler-errors
added a commit
to compiler-errors/rust
that referenced
this issue
Jan 6, 2024
…le-error, r=cjgillot fix cyle error when suggesting to use associated function instead of constructor Fixes rust-lang#119625. The first commit fixes the infinite recursion and makes the cycle error actually show up. We do this by making the `Display` for `ty::Instance` impl respect `with_no_queries` so that it can be used in query descriptions. The second commit fixes the cycle error `resolver_for_lowering` -> `normalize` -> `resolve_instance` (for evaluating const) -> `lang_items` (for `drop_in_place`) -> `resolver_for_lowering` (for collecting lang items). We do this by simply skipping the suggestion when encountering an unnormalized type.
rust-timer
added a commit
to rust-lang-ci/rust
that referenced
this issue
Jan 6, 2024
Rollup merge of rust-lang#119638 - lukas-code:suggest-constructor-cycle-error, r=cjgillot fix cyle error when suggesting to use associated function instead of constructor Fixes rust-lang#119625. The first commit fixes the infinite recursion and makes the cycle error actually show up. We do this by making the `Display` for `ty::Instance` impl respect `with_no_queries` so that it can be used in query descriptions. The second commit fixes the cycle error `resolver_for_lowering` -> `normalize` -> `resolve_instance` (for evaluating const) -> `lang_items` (for `drop_in_place`) -> `resolver_for_lowering` (for collecting lang items). We do this by simply skipping the suggestion when encountering an unnormalized type.
fmease
removed
the
needs-triage
This issue may need triage. Remove it if it has been sufficiently triaged.
label
Jan 6, 2024
saethlin
added
I-crash
Issue: The compiler crashes (SIGSEGV, SIGABRT, etc). Use I-ICE instead when the compiler panics.
I-compilemem
Issue: Problems and improvements with respect to memory usage during compilation.
and removed
I-ICE
Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️
labels
Jan 7, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
C-bug
Category: This is a bug.
I-compilemem
Issue: Problems and improvements with respect to memory usage during compilation.
I-crash
Issue: The compiler crashes (SIGSEGV, SIGABRT, etc). Use I-ICE instead when the compiler panics.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
Code
Minimal reproducible example: minimal_reproducible_example.zip
Meta
rustc --version --verbose
:The error was also present within version "1.76.0-nightly".
Error output
Looks like it tries to allocate a lot of memory until on windows the swap file was full and further memory allocation fails.
Backtrace: rustc-ice-2024-01-05T16_46_09-15824.txt
The text was updated successfully, but these errors were encountered: