-
Notifications
You must be signed in to change notification settings - Fork 12.1k
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
rust-gdb
segfaults when tab completing.
#108876
Comments
I ran gdb on itself and got this backtrace in the end:
|
Seems like this might be a gdb bug (not sure, could be something wrong in the debug info gdb generates), so I created a gdb bug as well: https://sourceware.org/bugzilla/show_bug.cgi?id=30211 Also, it matters which letter I try to tab complete. E.g |
rust-gdb is a thin wrapper around gdb so it is likely this is a gdb bug, however the bug may have been a "trusting user input, and Rust emitted malformed input" issue, so it seems plausible it's a shared responsibility. ( tagging wg-debugging on the assumption they want to be tagged on issues like this. ) |
From that issue, note that GDB has been fixed on its master branch. My read on the comments is that the only blame on Rust was the decision to use "_Z" in our mangling, which will go away with v0 mangling. I don't think there's any action on our part. |
I tried to debug this code (created with
cargo new dummy
) usingrust-gdb
:I expected to see this happen: Rust-gdb to not crash
Instead, this happened:
This results in gdb crashing as follows:
This happens on any rust project. C/C++ code works fine.
Meta
rustc --version --verbose
:The exact same thing happens with
+nightly
:Rust-gdb appears to be wrapping the system gdb:
OS: Arch Linux.
The text was updated successfully, but these errors were encountered: