GNU bug report logs - #37810
Rust 1.27 and later depends on GDB 8.2

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: guix; Reported by: Marius Bakke <mbakke@HIDDEN>; dated Fri, 18 Oct 2019 16:24:02 UTC; Maintainer for guix is bug-guix@HIDDEN.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 18 Oct 2019 16:23:17 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Oct 18 12:23:17 2019
Received: from localhost ([127.0.0.1]:51470 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1iLV21-0002gJ-DC
	for submit <at> debbugs.gnu.org; Fri, 18 Oct 2019 12:23:17 -0400
Received: from lists.gnu.org ([209.51.188.17]:59647)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <mbakke@HIDDEN>) id 1iLV1x-0002g9-9g
 for submit <at> debbugs.gnu.org; Fri, 18 Oct 2019 12:23:11 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10]:50630)
 by lists.gnu.org with esmtp (Exim 4.90_1)
 (envelope-from <mbakke@HIDDEN>) id 1iLV1v-0003tC-5u
 for bug-guix@HIDDEN; Fri, 18 Oct 2019 12:23:08 -0400
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org
X-Spam-Level: **
X-Spam-Status: No, score=2.1 required=5.0 tests=BAYES_50,FREEMAIL_FROM,
 RCVD_IN_DNSWL_LOW,SPOOFED_FREEMAIL,URIBL_BLOCKED autolearn=disabled
 version=3.3.2
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <mbakke@HIDDEN>) id 1iLV1t-0005bj-HE
 for bug-guix@HIDDEN; 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 <mbakke@HIDDEN>) id 1iLV1s-0005as-WD
 for bug-guix@HIDDEN; 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 <bug-guix@HIDDEN>; Fri, 18 Oct 2019 12:23:02 -0400 (EDT)
Received: from mailfrontend2 ([10.202.2.163])
 by compute5.internal (MEProxy); Fri, 18 Oct 2019 12:23:02 -0400
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fastmail.com; h=
 from:to:subject:date:message-id:mime-version:content-type; s=
 fm1; bh=om99V6NskQMuc5B15fnEE/WzI+5wcUgShYGnG1Ilo+o=; b=jUNDB41w
 zbvyUv4vpw3XriOImFNRwYYzH/wXjzyXwigpsZcXWcn88pD+kxaaC0N+MgWsf6ct
 qoDVr3xoe6DUba96BXLZVXLdih6OBY0tlfwTCVHhx5rhjVkti23G6KTa398NE69l
 xAw9rcGNLXCsMNOnxeVYAC4YlerggLFkQt03msyTbk2Sqj4rxs+602qQXQz8cDJo
 3aOl+zUHJ6A1mOBGxCYd1f1Kb4dqQ4R3m0nMtPop6ZJVuki42yeT0k5gLrpRCFhz
 SkajXZA+KdzMvfDvVz5OFU25nY8k0kIScJyMaPagVX+L+m1o5h/tBiKDjLZkmyt9
 iBoqXXDLsW+S1Q==
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=
 messagingengine.com; h=content-type:date:from:message-id
 :mime-version:subject:to:x-me-proxy:x-me-proxy:x-me-sender
 :x-me-sender:x-sasl-enc; s=fm1; bh=om99V6NskQMuc5B15fnEE/WzI+5wc
 UgShYGnG1Ilo+o=; b=HKVM5ttaIdnWT9RlmdAkpanh/1eAYe46jPR4UVpql0NOJ
 hDC73DHP2vrcW56vouvG3XucVxkigCyhaPPxsqL3CGQzEp81zpYH4E9mzj6tM0LU
 dvVgeldIy5uTKtcWkY0/U3ad3/t91s44U7oLDKpL8xncM6gSIyA0o/9iMjo8z3Ei
 BeTIhIviPn6pG/YsqPS1M4lUQlqxtj0gfr6ZcnXp7RL6yj3xIF5uLXULb+s+Igau
 4jPQkcam3q5RVMKahqPLD5wnmfFogRKB51W0M6+EPlLlnWt0KQYEyK452mxrvGPg
 LVRmRQ/r2C0YjMVDrRJx3A3zPU3oYKimVt3wjsZuw==
X-ME-Sender: <xms:5uapXdCHqgxCdkitKIBmVdCPRtswAiJzb-0kokhBbLmbaJWHki7uvQ>
X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedufedrjeelgdellecutefuodetggdotefrodftvf
 curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu
 uegrihhlohhuthemuceftddtnecunecujfgurhephffvufgffffkgggtsehgtderredtre
 dtnecuhfhrohhmpeforghrihhushcuuegrkhhkvgcuoehmsggrkhhkvgesfhgrshhtmhgr
 ihhlrdgtohhmqeenucffohhmrghinhepghhnuhdrohhrghenucfkphepiedvrdduiedrud
 elvddrudehtdenucfrrghrrghmpehmrghilhhfrhhomhepmhgsrghkkhgvsehfrghsthhm
 rghilhdrtghomhenucevlhhushhtvghrufhiiigvpedt
X-ME-Proxy: <xmx:5uapXW7mTcuEtjD4x4eC_iYF4MzGhOS4xlz-r86-1z722pjyDpsMkw>
 <xmx:5uapXWXzAW5uYdHnHLFhTFcK1TzyYTW9UUaCT5oPqeGXtnz0Gr_CAQ>
 <xmx:5uapXeSWzFyqhlVSKNPeJ7pWGoDOi2xsl3hV8Nv8DGuqhhdHeoJQFw>
 <xmx:5uapXcyxvoHPd810WrSmHL4TQq_FqRxOUOFCh9hDd_Uo1dqCCzl-Dg>
Received: from localhost (ti0006q161-0149.bb.online.no [62.16.192.150])
 by mail.messagingengine.com (Postfix) with ESMTPA id C10F3D60062
 for <bug-guix@HIDDEN>; Fri, 18 Oct 2019 12:23:01 -0400 (EDT)
From: Marius Bakke <mbakke@HIDDEN>
To: bug-guix@HIDDEN
Subject: Rust 1.27 and later depends on GDB 8.2
User-Agent: Notmuch/0.29.1 (https://notmuchmail.org) Emacs/26.2
 (x86_64-pc-linux-gnu)
Date: Fri, 18 Oct 2019 18:23:00 +0200
Message-ID: <875zkmyqe3.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: multipart/signed; boundary="=-=-=";
 micalg=pgp-sha512; protocol="application/pgp-signature"
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic]
 [fuzzy]
X-Received-From: 64.147.123.25
X-Spam-Score: 0.4 (/)
X-Debbugs-Envelope-To: submit
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -2.6 (--)

--=-=-=
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-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?

--=-=-=
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-----
--=-=-=--




Acknowledgement sent to Marius Bakke <mbakke@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-guix@HIDDEN. Full text available.
Report forwarded to bug-guix@HIDDEN:
bug#37810; Package guix. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Mon, 25 Nov 2019 12:00:02 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.