Skip to content
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

Test failure - src/test/debuginfo/nil-enum.rs #54178

Closed
daym opened this issue Sep 13, 2018 · 4 comments
Closed

Test failure - src/test/debuginfo/nil-enum.rs #54178

daym opened this issue Sep 13, 2018 · 4 comments
Labels
A-debuginfo Area: Debugging information in compiled programs (DWARF, PDB, etc.) T-compiler Relevant to the compiler team, which will review and decide on the PR/issue.

Comments

@daym
Copy link
Contributor

daym commented Sep 13, 2018

We get a test failure using gdb 8.2:

------------------------------------------
NOTE: compiletest thinks it is using GDB version 8002000
executing "/gnu/store/vmfyql60lbji2ca50r2xd3sq1m41qrrl-gdb-8.2/bin/gdb" "-quiet"
 "-batch" "-nx" "-command=/tmp/guix-build-rust-1.25.0.drv-0/rustc-1.25.0-src/bui
ld/x86_64-unknown-linux-gnu/test/debuginfo/nil-enum.debugger.script"
------stdout------------------------------
GNU gdb (GDB) 8.2
Copyright (C) 2018 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Type "show copying" and "show warranty" for details.
This GDB was configured as "x86_64-unknown-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
    <http://www.gnu.org/software/gdb/documentation/>.

For help, type "help".
Type "apropos word" to search for commands related to "word".
Breakpoint 1 at 0x11d2: file /tmp/guix-build-rust-1.25.0.drv-0/rustc-1.25.0-src/src/test/debuginfo/nil-enum.rs, line 41.
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/gnu/store/l4lr0f5cjd0nbsaaf8b5dmcw1a1yypr3-glibc-2.27/lib/libthread_db.so.1".

Breakpoint 1, nil_enum::main () at /tmp/guix-build-rust-1.25.0.drv-0/rustc-1.25.0-src/src/test/debuginfo/nil-enum.rs:41
41              zzz(); // #break
$1 = nil_enum::ANilEnum
$2 = nil_enum::AnotherNilEnum
A debugging session is active.

        Inferior 1 [process 5860] will be killed.

Quit anyway? (y or n) [answered Y; input not from terminal]

------stderr------------------------------

------------------------------------------

error: line not found in debugger output: $1 = <error reading variable>
status: exit code: 0
...
thread '[debuginfo-gdb] debuginfo/nil-enum.rs' panicked at 'explicit panic', too
ls/compiletest/src/runtest.rs:2891:9
note: Run with `RUST_BACKTRACE=1` for a backtrace.


failures:
    [debuginfo-gdb] debuginfo/nil-enum.rs
@daym
Copy link
Contributor Author

daym commented Sep 13, 2018

Fails in Rust 1.25.0.

@daym
Copy link
Contributor Author

daym commented Sep 15, 2018

Fails in Rust 1.26.0, 1.27.0 and 1.27.2, too.

@tromey tromey added the A-debuginfo Area: Debugging information in compiled programs (DWARF, PDB, etc.) label Oct 11, 2018
@tromey
Copy link
Contributor

tromey commented Oct 11, 2018

$1 = nil_enum::ANilEnum
$2 = nil_enum::AnotherNilEnum

The gdb 8.2 output here is actually more correct. Note though that #54004 is going to change this area, and it provokes a bug in 8.2, which will be fixed in the next gdb release.

@steveklabnik steveklabnik added the T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. label Jan 18, 2020
@tromey
Copy link
Contributor

tromey commented Mar 18, 2022

This file no longer exists, and GDB 8.2 is rather old, so I am going to close this bug as it is obsolete.

@tromey tromey closed this as completed Mar 18, 2022
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.) T-compiler Relevant to the compiler team, which will review and decide on the PR/issue.
Projects
None yet
Development

No branches or pull requests

3 participants