From unknown Tue Jun 17 22:28:13 2025 X-Loop: help-debbugs@gnu.org Subject: bug#61284: [rust] Segfault when trying to download dependencies using Cargo Resent-From: Albin =?UTF-8?Q?Otterh=C3=A4ll?= Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Sun, 05 Feb 2023 00:29:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 61284 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: 61284@debbugs.gnu.org X-Debbugs-Original-To: "bug-guix@gnu.org" Received: via spool by submit@debbugs.gnu.org id=B.167555693010662 (code B ref -1); Sun, 05 Feb 2023 00:29:01 +0000 Received: (at submit) by debbugs.gnu.org; 5 Feb 2023 00:28:50 +0000 Received: from localhost ([127.0.0.1]:43656 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pOStl-0002lu-J0 for submit@debbugs.gnu.org; Sat, 04 Feb 2023 19:28:49 -0500 Received: from lists.gnu.org ([209.51.188.17]:50118) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pOStj-0002lm-Sd for submit@debbugs.gnu.org; Sat, 04 Feb 2023 19:28:48 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pOStj-0006em-Lq for bug-guix@gnu.org; Sat, 04 Feb 2023 19:28:47 -0500 Received: from mail-4323.proton.ch ([185.70.43.23]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pOStf-0001n2-V3 for bug-guix@gnu.org; Sat, 04 Feb 2023 19:28:47 -0500 Date: Sun, 05 Feb 2023 00:28:25 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=a12l.xyz; s=protonmail; t=1675556914; x=1675816114; bh=9CuvCF/ASselDHt5QrTVALrSpFHVvfOshDsoRnuHRXM=; h=Date:To:From:Subject:Message-ID:Feedback-ID:From:To:Cc:Date: Subject:Reply-To:Feedback-ID:Message-ID:BIMI-Selector; b=XC65PhmTZi0Ap20w/grnYm6UOit+C7ARIfDlUdPKiYA5cLpK/EOtYQ3WYbF9z++Bb jjflSscyjzXDzuLlOTzO/xWnbhCx6fPHBKe5XWJemw7ysVYJ9zVt42GDcNYiHVHsap /OPBEYDHDu+lYHUPcNToF+zs07644vZMh28TO/0F+Z+NaSlAyrbvlkyfO98ba2gup7 P4OhunOtHY0vv/CYfQluvs9xv+DvhsdGqcTnr41sv4c7SZC9nEOGbhYQvj1/Oono0d MutBZRFkGlfWez4FZLE7SmLg7bUPMzz0AirXUZ7hlWxHq952X2AD95Wh40034Uz4U4 QOEAh2HNcJnsQ== From: Albin =?UTF-8?Q?Otterh=C3=A4ll?= Message-ID: Feedback-ID: 63146987:user:proton MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=185.70.43.23; envelope-from=albin@a12l.xyz; helo=mail-4323.proton.ch X-Spam_score_int: 4 X-Spam_score: 0.4 X-Spam_bar: / X-Spam_report: (0.4 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FROM_SUSPICIOUS_NTLD=0.499, FROM_SUSPICIOUS_NTLD_FP=1.999, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, T_PDS_OTHER_BAD_TLD=0.01 autolearn=no autolearn_force=no X-Spam_action: no action X-Spam-Score: 0.7 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.3 (--) # Segfault when trying to build Rust binary using cargo and a dependency ## Description As soon as I add a dependency to `Cargo.toml` I get a segfault when I in so= me way try to build the binary. ## Expected behavior When running `cargo build` after having added a dependency on `rand =3D "0.= 8.3"` in the example below Cargo should download the `rand` package (`rust-= rand` in Guix). ## Actual behavior The build process halts with a segmentation fault. ### Steps to reproduce Create an environment with the command `guix shell --manifest=3Dmanifest.sc= m` and there `manifest.scm` contains ``` (specifications->manifest (list "rust" "rust-analyzer" "rust-cargo")) ``` and then run the commands $ cargo new mve Created binary (application) `mve` package $ cd mve/ mve $ cargo build Compiling mve v0.1.0 (/home/a12l/Long-Term/TRPL/mve) Finished dev [unoptimized + debuginfo] target(s) in 0.56s mve $ echo 'rand =3D "0.8.3"' >> Cargo.toml mve $ cargo build Updating crates.io index Segmentation fault (core dumped) ## My system I'm running Guix on a NixOS 22.11 machine, by having added `https://github.= com/foo-dogsquared/nix-overlay-guix` to my system configuration. Thanks! -- Albin Otterh=C3=A4ll