From mboxrd@z Thu Jan 1 00:00:00 1970 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 Message-ID: <875zkmyqe3.fsf@devup.no> Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:50749) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iLV2s-0004lc-0i for bug-guix@gnu.org; Fri, 18 Oct 2019 12:24:07 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iLV2q-0006Iw-AX for bug-guix@gnu.org; Fri, 18 Oct 2019 12:24:05 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:42649) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iLV2o-0006Hm-HI for bug-guix@gnu.org; Fri, 18 Oct 2019 12:24:04 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1iLV2o-0002hW-Bk for bug-guix@gnu.org; Fri, 18 Oct 2019 12:24:02 -0400 Sender: "Debbugs-submit" Resent-Message-ID: Received: from eggs.gnu.org ([2001:470:142:3::10]:50630) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iLV1v-0003tC-5u for bug-guix@gnu.org; Fri, 18 Oct 2019 12:23:08 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iLV1t-0005bj-HE for bug-guix@gnu.org; Fri, 18 Oct 2019 12:23:07 -0400 Received: from wout2-smtp.messagingengine.com ([64.147.123.25]:56739) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1iLV1s-0005as-WD for bug-guix@gnu.org; Fri, 18 Oct 2019 12:23:05 -0400 Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.west.internal (Postfix) with ESMTP id 8D0FC4EC for ; Fri, 18 Oct 2019 12:23:02 -0400 (EDT) Received: from localhost (ti0006q161-0149.bb.online.no [62.16.192.150]) by mail.messagingengine.com (Postfix) with ESMTPA id C10F3D60062 for ; Fri, 18 Oct 2019 12:23:01 -0400 (EDT) List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+gcggb-bug-guix=m.gmane.org@gnu.org Sender: "bug-Guix" To: 37810@debbugs.gnu.org --=-=-= Content-Type: text/plain 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-un initialized-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 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: . Find the GDB manual and other documentation resources online at: . 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(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 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: . Find the GDB manual and other documentation resources online at: . 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(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? --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAEBCgAdFiEEu7At3yzq9qgNHeZDoqBt8qM6VPoFAl2p5uQACgkQoqBt8qM6 VPo/AQgA1TfglxvmJ6DwDTYlkISKqGB5goKMuPeLYaQVEWAKbBT5AW2K0ghNMQLY RxPFP8i45hSgsOxYqU3oDTWZc3RrLr9fNdiTrcMyRBQWbVlBQBvZ8VoFx++4j4JA g3Iv2xhPPKHMAFAwCpxDItgTRXkK8X8U5pn04Zm7NnxjWJNdZgeDNaEzv6bT127F aX5rAFg3SjDdBzMC+l7yXAdG0EIGD+A0ldsIXI+Tzfs/pzhUFT3qoRtYCjJJFSXw /BqbmrZPqJ8UCJkJU4bqd+D1eZyhbo44or4kYZtrwq1ahkNWDKRJyRWwL0P+QjLu qodV+40g4lDd9Rt9EgNsAKKN5g75zg== =tUjs -----END PGP SIGNATURE----- --=-=-=--