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

debuginfo function-call test fails on big endian #74884

Open
infinity0 opened this issue Jul 28, 2020 · 1 comment
Open

debuginfo function-call test fails on big endian #74884

infinity0 opened this issue Jul 28, 2020 · 1 comment
Labels
A-debuginfo Area: Debugging information in compiled programs (DWARF, PDB, etc.) A-testsuite Area: The testsuite used to check the correctness of rustc C-bug Category: This is a bug. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue.

Comments

@infinity0
Copy link
Contributor

version 1.44.1 s390x ppc64 powerpc

I will be adding an ignore-endian-big feature as part of #74829, just wanted to confirm the failure is OK to ignore:

failures:

---- [debuginfo-gdb] debuginfo/function-call.rs stdout ----


NOTE: compiletest thinks it is using GDB with native rust support
executing "/<<PKGBUILDDIR>>/build/s390x-unknown-linux-gnu/stage2/bin/rustc" "/<<PKGBUILDDIR>>/src/test/debuginfo/function-call.rs" "-Zthreads=1" "--target=s390x-unknown-linux-gnu" "-C" "prefer-dynamic" "-o" "/<<PKGBUILDDIR>>/build/s390x-unknown-linux-gnu/test/debuginfo/function-call.gdb/a" "-Crpath" "-Zunstable-options" "-Lnative=/<<PKGBUILDDIR>>/build/s390x-unknown-linux-gnu/native/rust-test-helpers" "-Clinker=s390x-linux-gnu-gcc" "-g" "-L" "/<<PKGBUILDDIR>>/build/s390x-unknown-linux-gnu/test/debuginfo/function-call.gdb/auxiliary"
------stdout------------------------------

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

------------------------------------------
NOTE: compiletest thinks it is using GDB version 9002000
executing "/usr/bin/gdb" "-quiet" "-batch" "-nx" "-command=/<<PKGBUILDDIR>>/build/s390x-unknown-linux-gnu/test/debuginfo/function-call.gdb/function-call.debugger.script"
------stdout------------------------------
GNU gdb (Debian 9.2-1) 9.2
Copyright (C) 2020 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 "s390x-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 0xb90: file /<<PKGBUILDDIR>>/src/test/debuginfo/function-call.rs, line 35.
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/s390x-linux-gnu/libthread_db.so.1".

Breakpoint 1, function_call::main () at /<<PKGBUILDDIR>>/src/test/debuginfo/function-call.rs:35
35	    zzz(); // #break

------stderr------------------------------
/<<PKGBUILDDIR>>/build/s390x-unknown-linux-gnu/test/debuginfo/function-call.gdb/function-call.debugger.script:10: Error in sourced command file:
Value out of range.

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

error: gdb failed to execute
status: exit code: 1
command: "/usr/bin/gdb" "-quiet" "-batch" "-nx" "-command=/<<PKGBUILDDIR>>/build/s390x-unknown-linux-gnu/test/debuginfo/function-call.gdb/function-call.debugger.script"
stdout:
------------------------------------------
GNU gdb (Debian 9.2-1) 9.2
Copyright (C) 2020 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 "s390x-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 0xb90: file /<<PKGBUILDDIR>>/src/test/debuginfo/function-call.rs, line 35.
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/s390x-linux-gnu/libthread_db.so.1".

Breakpoint 1, function_call::main () at /<<PKGBUILDDIR>>/src/test/debuginfo/function-call.rs:35
35	    zzz(); // #break

------------------------------------------
stderr:
------------------------------------------
/<<PKGBUILDDIR>>/build/s390x-unknown-linux-gnu/test/debuginfo/function-call.gdb/function-call.debugger.script:10: Error in sourced command file:
Value out of range.

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



failures:
    [debuginfo-gdb] debuginfo/function-call.rs

CC @fukatani the original author of the test in #53497

@infinity0 infinity0 added the C-bug Category: This is a bug. label Jul 28, 2020
@jonas-schievink jonas-schievink added A-debuginfo Area: Debugging information in compiled programs (DWARF, PDB, etc.) A-testsuite Area: The testsuite used to check the correctness of rustc labels Jul 28, 2020
@tromey
Copy link
Contributor

tromey commented Mar 18, 2022

In my build, line 10 is:

print fun(45, true)

... which seems pretty innocuous to me. And, the test shouldn't depend on endianness at all. So I don't think it is OK to ignore this. There's some bug here, though I can't say exactly where.

@Noratrieb Noratrieb added the T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. label Apr 5, 2023
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.) A-testsuite Area: The testsuite used to check the correctness of rustc C-bug Category: This is a bug. 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

4 participants