GNU logs - #61284, boring messages


Message sent to bug-guix@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: bug#61284: [rust] Segfault when trying to download dependencies using Cargo
Resent-From: Albin =?UTF-8?Q?Otterh=C3=A4ll?= <albin@HIDDEN>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: bug-guix@HIDDEN
Resent-Date: Sun, 05 Feb 2023 00:29:01 +0000
Resent-Message-ID: <handler.61284.B.167555693010662 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: report 61284
X-GNU-PR-Package: guix
X-GNU-PR-Keywords: 
To: 61284 <at> debbugs.gnu.org
X-Debbugs-Original-To: "bug-guix@HIDDEN" <bug-guix@HIDDEN>
Received: via spool by submit <at> 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 <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1pOStl-0002lu-J0
	for submit <at> 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 <albin@HIDDEN>) id 1pOStj-0002lm-Sd
 for submit <at> 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 <albin@HIDDEN>) id 1pOStj-0006em-Lq
 for bug-guix@HIDDEN; 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 <albin@HIDDEN>) id 1pOStf-0001n2-V3
 for bug-guix@HIDDEN; 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?= <albin@HIDDEN>
Message-ID: <ePDsFA2AuFFcz98E3ozd2k_yU3S6TD2tnDmYfY6F9XmKlmptcLi7NRCka_sMMPoqsF4_7xSI2-mkExyBLxrhyM2cpOLB3z4Lq9iaUnS8sDc=@a12l.xyz>
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@HIDDEN;
 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 <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.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




Message sent:


Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
X-Mailer: MIME-tools 5.505 (Entity 5.505)
Content-Type: text/plain; charset=utf-8
X-Loop: help-debbugs@HIDDEN
From: help-debbugs@HIDDEN (GNU bug Tracking System)
To: Albin =?UTF-8?Q?Otterh=C3=A4ll?= <albin@HIDDEN>
Subject: bug#61284: Acknowledgement ([rust] Segfault when trying to
 download dependencies using Cargo)
Message-ID: <handler.61284.B.167555693010662.ack <at> debbugs.gnu.org>
References: <ePDsFA2AuFFcz98E3ozd2k_yU3S6TD2tnDmYfY6F9XmKlmptcLi7NRCka_sMMPoqsF4_7xSI2-mkExyBLxrhyM2cpOLB3z4Lq9iaUnS8sDc=@a12l.xyz>
X-Gnu-PR-Message: ack 61284
X-Gnu-PR-Package: guix
Reply-To: 61284 <at> debbugs.gnu.org
Date: Sun, 05 Feb 2023 00:29:02 +0000

Thank you for filing a new bug report with debbugs.gnu.org.

This is an automatically generated reply to let you know your message
has been received.

Your message is being forwarded to the package maintainers and other
interested parties for their attention; they will reply in due course.

Your message has been sent to the package maintainer(s):
 bug-guix@HIDDEN

If you wish to submit further information on this problem, please
send it to 61284 <at> debbugs.gnu.org.

Please do not send mail to help-debbugs@HIDDEN unless you wish
to report a problem with the Bug-tracking system.

--=20
61284: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D61284
GNU Bug Tracking System
Contact help-debbugs@HIDDEN with problems


Message sent to bug-guix@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: bug#61284: [rust] Segfault when trying to download dependencies using Cargo
References: <ePDsFA2AuFFcz98E3ozd2k_yU3S6TD2tnDmYfY6F9XmKlmptcLi7NRCka_sMMPoqsF4_7xSI2-mkExyBLxrhyM2cpOLB3z4Lq9iaUnS8sDc=@a12l.xyz>
In-Reply-To: <ePDsFA2AuFFcz98E3ozd2k_yU3S6TD2tnDmYfY6F9XmKlmptcLi7NRCka_sMMPoqsF4_7xSI2-mkExyBLxrhyM2cpOLB3z4Lq9iaUnS8sDc=@a12l.xyz>
Resent-From: Johannes Nix <jnxx@HIDDEN>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: bug-guix@HIDDEN
Resent-Date: Sat, 02 Aug 2025 06:27:05 +0000
Resent-Message-ID: <handler.61284.B61284.175411599511146 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: followup 61284
X-GNU-PR-Package: guix
X-GNU-PR-Keywords: 
To: 61284 <at> debbugs.gnu.org
Received: via spool by 61284-submit <at> debbugs.gnu.org id=B61284.175411599511146
          (code B ref 61284); Sat, 02 Aug 2025 06:27:05 +0000
Received: (at 61284) by debbugs.gnu.org; 2 Aug 2025 06:26:35 +0000
Received: from localhost ([127.0.0.1]:33197 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1ui5hQ-0002ta-2q
	for submit <at> debbugs.gnu.org; Sat, 02 Aug 2025 02:26:34 -0400
Received: from mout02.posteo.de ([185.67.36.66]:36575)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <jnxx@HIDDEN>) id 1uhwkn-0005XN-Tn
 for 61284 <at> debbugs.gnu.org; Fri, 01 Aug 2025 16:53:27 -0400
Received: from submission (posteo.de [185.67.36.169]) 
 by mout02.posteo.de (Postfix) with ESMTPS id 3A772240101
 for <61284 <at> debbugs.gnu.org>; Fri,  1 Aug 2025 22:53:19 +0200 (CEST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=posteo.net;
 s=1984.ea087b; t=1754081599;
 bh=XJZP59Fw63y88cG/HRkJanf/EVKt0JYc8nfH8s/Sx6A=;
 h=Date:From:To:Subject:Message-ID:MIME-Version:Content-Type:
 Content-Transfer-Encoding:From;
 b=OwpBzXI1euAp6GBdwGYc+ciHj4m+DSpGY4g/eJ/hbtTfFSuz52yZAbJ77+wCWGvpf
 wpDKytiQIEvX6VKFZcIQ5o8HL7iNItYhl2OB0NEsP4JqcQxNY5l9pbnvje1QkMD5v8
 Bd6Rd5R0WWlasR0WSifvi8iXIADhiTqxO/JFnNP42a0pAvesS+9hAa63j0InVlFMm9
 p4gRMUGolqiZRbUnEI7ECqSHazGs9xUoJxUU/2DQhCVBwdIZb9+PbP2pEDMYCf9LWY
 SHDC4sLNWBZkPE0K8rYPN+ev1l8P8xUPzGmfOI9EaDG8+V9z28AiBf3bFscfbuze8F
 UK5Haq4iq38Dj+4w7rFtlgJYO80hAPZQouUB+7kDD2VoBrds6/z1dhiiBGl9pJ4Rui
 MiyOeouJm0AvNj68jJ42LaicFLT1sguXJKRcLrIXbgZw4Xdhj8rPc3mBj/Zu6ymnhl
 Zunf6oDjEQ33TdjVFGeVxCRZzRxc2pSy1nuwZWRUW86FTAd0Lz3
Received: from customer (localhost [127.0.0.1])
 by submission (posteo.de) with ESMTPSA id 4btypQ4zZlz6tvh
 for <61284 <at> debbugs.gnu.org>; Fri,  1 Aug 2025 22:53:18 +0200 (CEST)
Date: Fri, 01 Aug 2025 20:53:18 +0000
From: Johannes Nix <jnxx@HIDDEN>
Message-ID: <20250801225317.043bbf1e@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
X-Spam-Score: -2.3 (--)
X-Mailman-Approved-At: Sat, 02 Aug 2025 02:26:29 -0400
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: -3.3 (---)

> 
> mve $ cargo build
>     Updating crates.io index
> Segmentation fault (core dumped)

I am very new to Guix System - just installed it this
morning.

However, I seem to have had the same issue today,
and apparently found a workaroung.

I tried to run it under strace and it indicated that
apparently it segfaults when it tries to find and
parse several git config files, especially
$HOME/.gitconfig .

Found on the web multiple suggestions that these config
files might be faulty - but I could not find any fault
in my file.

Instead, I found a workaround that might help you:

I set the environment variable

export CARGO_NET_GIT_FETCH_WITH_CLI=true


which changes the way in which cargo uses git.
With this, it works for me.

On top of that, I had further errors with cargo 
which might or might not be unrelated, when doing a
"cargo build". There it looks like rust-cargo and
rustc-1.82.0 are somehow out of sync, leading cargo to
query rustc for a profile option which is not supported by
rustc (print-split-debuginfo). Roughly, it is failing
with this error message, which relates to a much older
version:

https://github.com/kbknapp/cargo-outdated/issues/355

But, *both* errors only happen on my new Guix System
installation, not in Guix package manager on top
of Debian 12 with the same rust-cargo version.


I'll make a separate bug tracking entry for that one
(I need to capture the output and check the version
numbers again).

I suspicion I have is that actually one of rustc or
cargo might actually refer to an out-dated version,
causing a mismatch. Perhaps because of an ci glitch.

Perhaps it is informative to check the installed
version with "cargo -vV" ? One important point
is surely to not mix up manually installed binaries
and the Guix-installed ones... but I am still new
and confused by all this.

--

Johannes Nix






Last modified: Sat, 2 Aug 2025 06:30:02 UTC

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