-
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
rustc
failed to pass debuginfo
testsuite when using GDB 15
#122751
Comments
I have requested a Bugzilla account on the GDB upstream and opened a bug report there: https://sourceware.org/bugzilla/show_bug.cgi?id=31517 |
This is due to the rewrite of unsized type handling in gdb. Details in the gdb bug. |
Disable two debuginfo tests failing under the future GDB 15 release As seen in rust-lang#123960, it seems two of our debuginfo tests started failing on gdb 15, which is also already in use in the `x86_64-gnu-llvm-18` builder: CI will randomly start to fail whenever this cached docker image expires. This PR disables the following two tests under gdb 15+, to prevent future CI failures. - `tests/debuginfo/include_string.rs` - `tests/debuginfo/vec-slices.rs` This seems very much related to https://sourceware.org/bugzilla/show_bug.cgi?id=30330 and https://sourceware.org/bugzilla/show_bug.cgi?id=31517 -- and I just now saw rust-lang#122751 as well, where one of these bugzilla issues and one of the two test failures here was previously mentioned. I don't know whether these are unexpected gdb changes, or if we need to change our tests as it seems some of the gdb changes are definitely intentional, so I'll just cc `@rust-lang/wg-debugging` and `@tromey.` (In the same area, `tests/debuginfo/unsized.rs` was previously disabled due to https://sourceware.org/bugzilla/show_bug.cgi?id=30330. This issue has been fixed but I don't believe our test passes, so it's in the same boat as the 2 above regarding whether this test is expected to work or needs changes as well) r? wg-debugging I've confirmed this is enough to have CI pass on gdb 15 with the llvm 18 builder.
I don't know very much about DWARF, but I'm trying to drag our debuginfo test suite into the present. The gdb bug contains some background information, but I do not think it is an adequate answer to this issue. I am running gdb 15.1, and I find it quite confusing that
We have debuginfo tests which tested that accessing I'm open to patching our gdb pretty-printers or adding wonky print commands to our tests if that's what is required. |
Recently, I tried building
rustc
on my system with a pre-release GDB version (15.0-git, commit: https://sourceware.org/git/?p=binutils-gdb.git;a=commit;h=1ab9eefe3cea741aba17e11ff28ed48ac3a8293a) and I encountered a lot ofdebuginfo
test failures.Some examples:
Click to see example failures
I am unsure if this is a
rustc
problem, a GDB pretty printer problem or a GDB problem. This is likely due to a GDB behaviour change, and I tried bisecting the changes for GDB. Then I discovered this commit: https://sourceware.org/git/?p=binutils-gdb.git;a=commit;h=b0dd661fa16a424f059b1e1d80e779508b1a9a12.I don't know if this issue should be resolved from
rustc
, in-repository GDB pretty-printer or GDB itself. Can anyone give me some pointers?Meta
rustc --version --verbose
:Backtrace
N/A
The text was updated successfully, but these errors were encountered: