rust-lang / rust-lang/rust

ppc64le: failing tests/debuginfo/opt/dead_refs

Open
#154,480 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

C-bug needs-triage
Dominant language
Rust
Stars
119k
Forks
16.1k
PR merge metrics
PR metrics pending

Description

On powerpc64le-unknown-linux-gnu, with $ ./x test debuginfo I'm getting this error:

failures:

---- [debuginfo-gdb] tests/debuginfo/opt/dead_refs.rs stdout ----
NOTE: compiletest thinks it is using GDB version 17001000
------gdb stdout------------------------------
GNU gdb (Ubuntu 17.1-2ubuntu1) 17.1
Copyright (C) 2025 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 "powerpc64le-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<https://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".
To enable execution of this file add
	add-auto-load-safe-path /home/ubuntu/rustc-nightly-src/src/etc/gdb_load_rust_pretty_printers.py
line to your configuration file "/home/ubuntu/.config/gdb/gdbinit".
To completely disable this security protection add
	set auto-load safe-path /
line to your configuration file "/home/ubuntu/.config/gdb/gdbinit".
For more information about this security protection see the
"Auto-loading safe path" section in the GDB manual.  E.g., run from the shell:
	info "(gdb)Auto-loading safe path"
Breakpoint 1 at 0xa00: file tests/debuginfo/opt/dead_refs.rs, line 46.

This GDB supports auto-downloading debuginfo from the following URLs:
  <https://debuginfod.ubuntu.com>
Enable debuginfod for this session? (y or [n]) [answered N; input not from terminal]
Debuginfod has been disabled.
To make this setting permanent, add 'set debuginfod enabled off' to .gdbinit.
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/usr/lib/powerpc64le-linux-gnu/libthread_db.so.1".

Breakpoint 1, dead_refs::test_ref (ref_foo=0x7fffffffe8f8) at tests/debuginfo/opt/dead_refs.rs:46
46	}

------gdb stderr------------------------------
warning: File "/home/ubuntu/rustc-nightly-src/src/etc/gdb_load_rust_pretty_printers.py" auto-loading has been declined by your `auto-load safe-path' set to "$debugdir:$datadir/auto-load".
/home/ubuntu/rustc-nightly-src/build/powerpc64le-unknown-linux-gnu/test/debuginfo/opt/dead_refs.gdb/dead_refs.debugger.script:9: Error in sourced command file:
No symbol 'ref_v0' in current context

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

error: gdb failed to execute
status: exit status: 1
command: PYTHONPATH="/home/ubuntu/rustc-nightly-src/src/etc" "/usr/bin/gdb" "-quiet" "-batch" "-nx" "-command=/home/ubuntu/rustc-nightly-src/build/powerpc64le-unknown-linux-gnu/test/debuginfo/opt/dead_refs.gdb/dead_refs.debugger.script"
--- stdout -------------------------------
GNU gdb (Ubuntu 17.1-2ubuntu1) 17.1
Copyright (C) 2025 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 "powerpc64le-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<https://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".
To enable execution of this file add
	add-auto-load-safe-path /home/ubuntu/rustc-nightly-src/src/etc/gdb_load_rust_pretty_printers.py
line to your configuration file "/home/ubuntu/.config/gdb/gdbinit".
To completely disable this security protection add
	set auto-load safe-path /
line to your configuration file "/home/ubuntu/.config/gdb/gdbinit".
For more information about this security protection see the
"Auto-loading safe path" section in the GDB manual.  E.g., run from the shell:
	info "(gdb)Auto-loading safe path"
Breakpoint 1 at 0xa00: file tests/debuginfo/opt/dead_refs.rs, line 46.

This GDB supports auto-downloading debuginfo from the following URLs:
  <https://debuginfod.ubuntu.com>
Enable debuginfod for this session? (y or [n]) [answered N; input not from terminal]
Debuginfod has been disabled.
To make this setting permanent, add 'set debuginfod enabled off' to .gdbinit.
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/usr/lib/powerpc64le-linux-gnu/libthread_db.so.1".

Breakpoint 1, dead_refs::test_ref (ref_foo=0x7fffffffe8f8) at tests/debuginfo/opt/dead_refs.rs:46
46	}
------------------------------------------
--- stderr -------------------------------
warning: File "/home/ubuntu/rustc-nightly-src/src/etc/gdb_load_rust_pretty_printers.py" auto-loading has been declined by your `auto-load safe-path' set to "$debugdir:$datadir/auto-load".
/home/ubuntu/rustc-nightly-src/build/powerpc64le-unknown-linux-gnu/test/debuginfo/opt/dead_refs.gdb/dead_refs.debugger.script:9: Error in sourced command file:
No symbol 'ref_v0' in current context
------------------------------------------

---- [debuginfo-gdb] tests/debuginfo/opt/dead_refs.rs stdout end ----

failures:
    [debuginfo-gdb] tests/debuginfo/opt/dead_refs.rs

test result: FAILED. 152 passed; 1 failed; 20 ignored; 0 measured; 0 filtered out; finished in 15.34s

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with tests/debuginfo/opt/dead_refs.rs and reproduce the failure using ./x test debuginfo on powerpc64le. Inspect the generated dead_refs.debugger.script and its ref_v0 lookup, then confirm that the debuginfo-gdb test completes successfully without the missing-symbol error.

Written by the indexing model from the issue text.

Assessment

Tech stack
linux, rust
Domain
compilers, testing-qa
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.