-
Notifications
You must be signed in to change notification settings - Fork 13k
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
Can't compile rustc with debug info #7603
Comments
I'm running into this in my own codebase also, and so have condensed it down to a minimal test case which fails with #[allow(default_methods)];
pub trait TraitWithDefaultMethod {
pub fn method(self) {
()
}
}
struct MyStruct;
impl TraitWithDefaultMethod for MyStruct { }
fn main() {
MyStruct.method();
} (To the best of my knowledge, nothing can be removed from this example without the ICE melting, including that the |
@chris-morgan That would be worth filing separately as |
This is probably because of the missing case for |
@jdm I believe it to be the same problem, so I figured putting it in here was most useful. Am I incorrect in either of those thoughts? |
I'm a fan of tightly-scoped issues, personally, especially when there's a minimal testcase available. |
#7712 has been closed. I tried building Rust with -Z debug-info and it completed successfully, but accessing a backtrace makes GDB fall over. Take, for example, this backtrace:
In that case, GDB continues to work; in another where I interrupt a running process and produce a backtrace, GDB hangs for half a minute and the segfaults:
My present inclination is to file a PR to restore |
I'm not inclined to restore it until we are in a position where gdb's output is at least as good as it currently is without debug symbols. Internal errors do not meet that bar, in my opinion. |
However, feel free to file an issue about this new result. |
This issue isn't very useful in its present state. |
Trying to use
RUSTFLAGS=-Z\ debug-info
to build rustc with debug info leads to an ICE.The unexpected node is a
node_trait_method
The text was updated successfully, but these errors were encountered: