-
Notifications
You must be signed in to change notification settings - Fork 13.3k
stack overflow during debuginfo generation #121538
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-debuginfo
Area: Debugging information in compiled programs (DWARF, PDB, etc.)
C-bug
Category: This is a bug.
I-crash
Issue: The compiler crashes (SIGSEGV, SIGABRT, etc). Use I-ICE instead when the compiler panics.
P-medium
Medium priority
regression-from-stable-to-stable
Performance or correctness regression from one stable version to another.
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.
Comments
This bisects to nightly-2022-03-16 , I suspect #94261 is the cause cc @michaelwoerister |
This is probably missing an early exit for already instantiated types while dealing with generic arguments somewhere. |
WG-prioritization assigning priority (Zulip discussion). @rustbot label -I-prioritize +P-medium |
Is the following the same, with the difference being that use std::marker::PhantomData;
struct Digit<T> {
elem: T,
}
struct Node<T: 'static> {
m: PhantomData<&'static T>,
}
enum FingerTree<T: 'static> {
T(T),
Deep(Digit<T>, Node<FingerTree<Node<T>>>),
}
enum Wrapper<T: 'static> {
Simple,
Other(FingerTree<T>),
}
fn main() {
let w = Some(Wrapper::Simple::<u32>);
} |
rust-timer
added a commit
to rust-lang-ci/rust
that referenced
this issue
Apr 18, 2025
Rollup merge of rust-lang#138599 - adwinwhite:recursive-overflow, r=wesleywiser avoid overflow when generating debuginfo for expanding recursive types Fixes rust-lang#135093 Fixes rust-lang#121538 Fixes rust-lang#107362 Fixes rust-lang#100618 Fixes rust-lang#115994 The overflow happens because expanding recursive types keep creating new nested types when recurring into sub fields. I fixed that by returning an empty stub node when expanding recursion is detected.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
A-debuginfo
Area: Debugging information in compiled programs (DWARF, PDB, etc.)
C-bug
Category: This is a bug.
I-crash
Issue: The compiler crashes (SIGSEGV, SIGABRT, etc). Use I-ICE instead when the compiler panics.
P-medium
Medium priority
regression-from-stable-to-stable
Performance or correctness regression from one stable version to another.
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.
I tried this code:
This builds until you go for
-Cdebuginfo=2
Meta
rustc --version --verbose
:Backtrace
The text was updated successfully, but these errors were encountered: