Skip to content

ppc64le: failing tests/debuginfo/opt/dead_refs #154480

Description

@blkerby

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

No activity

Activity on this issue will appear here.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-bugCategory: This is a bug.needs-triageThis issue may need triage. Remove when done. See docs forge.rust-lang.org/release/issue-triaging

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions