bug-guix
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#37810: Rust 1.27 and later depends on GDB 8.2


From: Marius Bakke
Subject: bug#37810: Rust 1.27 and later depends on GDB 8.2
Date: Fri, 18 Oct 2019 18:23:00 +0200
User-agent: Notmuch/0.29.1 (https://notmuchmail.org) Emacs/26.2 (x86_64-pc-linux-gnu)

Hello,

After updating to GDB 8.3, the Rust 1.27 test suite started failing:

https://ci.guix.gnu.org/build/1840276/details

Here are the relevant lines from the log file:

--8<---------------cut here---------------start------------->8---
failures:

---- [debuginfo-gdb] debuginfo/pretty-uninitialized-vec.rs stdout ----
        

NOTE: compiletest thinks it is using GDB with native rust support
executing 
"/tmp/guix-build-rust-1.27.2.drv-0/rustc-1.27.2-src/build/x86_64-unknown-linux-gnu/stage2/bin/rustc"
 
"/tmp/guix-build-rust-1.27.2.drv-0/rustc-1.27.2-src/src/test/debuginfo/pretty-uninitialized-vec.rs"
 "-L" 
"/tmp/guix-build-rust-1.27.2.drv-0/rustc-1.27.2-src/build/x86_64-unknown-linux-gnu/test/debuginfo"
 "--target=x86_64-unknown-linux-gnu" "-C" "prefer-dynamic" "-o" 
"/tmp/guix-build-rust-1.27.2.drv-0/rustc-1.27.2-src/build/x86_64-unknown-linux-gnu/test/debuginfo/pretty-uninitialized-vec.stage2-x86_64-unknown-linux-gnu"
 "-Crpath" "-Zunstable-options" 
"-Lnative=/tmp/guix-build-rust-1.27.2.drv-0/rustc-1.27.2-src/build/x86_64-unknown-linux-gnu/native/rust-test-helpers"
 "-g" "-L" 
"/tmp/guix-build-rust-1.27.2.drv-0/rustc-1.27.2-src/build/x86_64-unknown-linux-gnu/test/debuginfo/pretty-uninitialized-vec.stage2-x86_64-unknown-linux-gnu.gdb.aux"
------stdout------------------------------

------stderr------------------------------
warning: value assigned to `vec` is never read
  --> 
/tmp/guix-build-rust-1.27.2.drv-0/rustc-1.27.2-src/src/test/debuginfo/pretty-uninitialized-vec.rs:32:5
   |
32 |     vec = vec![0];
   |     ^^^
   |
   = note: #[warn(unused_assignments)] on by default


------------------------------------------
NOTE: compiletest thinks it is using GDB version 8003001
executing "/gnu/store/5zmxrq9fyap51n98dxq1frgbzv9iqdg0-gdb-8.3.1/bin/gdb" 
"-quiet" "-batch" "-nx" 
"-command=/tmp/guix-build-rust-1.27.2.drv-0/rustc-1.27.2-src/build/x86_64-unknown-linux-gnu/test/debuginfo/pretty-uninitialized-vec.debugger.script"
------stdout------------------------------
GNU gdb (GDB) 8.3.1
Copyright (C) 2019 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 0x1710: file 
/tmp/guix-build-rust-1.27.2.drv-0/rustc-1.27.2-src/src/test/debuginfo/pretty-uninitialized-vec.rs,
 line 31.
[Thread debugging using libthread_db enabled]
Using host libthread_db library 
"/gnu/store/ahqgl4h89xqj695lgqvsaf6zh2nhy4pj-glibc-2.29/lib/libthread_db.so.1".

Breakpoint 1, pretty_uninitialized_vec::main () at 
/tmp/guix-build-rust-1.27.2.drv-0/rustc-1.27.2-src/src/test/debuginfo/pretty-uninitialized-vec.rs:31
31          zzz(); // #break
$1 = Vec<i32>(len: 140737488339712, cap: 140737345884160) = {
------stderr------------------------------
/tmp/guix-build-rust-1.27.2.drv-0/rustc-1.27.2-src/build/x86_64-unknown-linux-gnu/test/debuginfo/pretty-uninitialized-vec.debugger.script:10:
 Error in sourced command file:
Cannot access memory at address 0x2

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

error: gdb failed to execute
status: exit code: 1
command: "/gnu/store/5zmxrq9fyap51n98dxq1frgbzv9iqdg0-gdb-8.3.1/bin/gdb" 
"-quiet" "-batch" "-nx" 
"-command=/tmp/guix-build-rust-1.27.2.drv-0/rustc-1.27.2-src/build/x86_64-unknown-linux-gnu/test/debuginfo/pretty-uninitialized-vec.debugger.script"
stdout:
------------------------------------------
GNU gdb (GDB) 8.3.1
Copyright (C) 2019 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 0x1710: file 
/tmp/guix-build-rust-1.27.2.drv-0/rustc-1.27.2-src/src/test/debuginfo/pretty-uninitialized-vec.rs,
 line 31.
[Thread debugging using libthread_db enabled]
Using host libthread_db library 
"/gnu/store/ahqgl4h89xqj695lgqvsaf6zh2nhy4pj-glibc-2.29/lib/libthread_db.so.1".

Breakpoint 1, pretty_uninitialized_vec::main () at 
/tmp/guix-build-rust-1.27.2.drv-0/rustc-1.27.2-src/src/test/debuginfo/pretty-uninitialized-vec.rs:31
31          zzz(); // #break
$1 = Vec<i32>(len: 140737488339712, cap: 140737345884160) = {
------------------------------------------
stderr:
------------------------------------------
/tmp/guix-build-rust-1.27.2.drv-0/rustc-1.27.2-src/build/x86_64-unknown-linux-gnu/test/debuginfo/pretty-uninitialized-vec.debugger.script:10:
 Error in sourced command file:
Cannot access memory at address 0x2

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

thread '[debuginfo-gdb] debuginfo/pretty-uninitialized-vec.rs' panicked at 
'explicit panic', tools/compiletest/src/runtest.rs:3033:9
note: Run with `RUST_BACKTRACE=1` for a backtrace.
--8<---------------cut here---------------end--------------->8---


I committed a workaround in 47dda6e01e51478567e013e3814aaf48143abbc3,
which consisted of giving Rust 1.27 and later GDB 8.2 specifically, but
we don't want to carry that version forever.

Anyone willing to try porting the tests to the newer GDB?

Attachment: signature.asc
Description: PGP signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]