GNU bug report logs - #61284
[rust] Segfault when trying to download dependencies using Cargo

Previous Next

Package: guix;

Reported by: Albin Otterhäll <albin <at> a12l.xyz>

Date: Sun, 5 Feb 2023 00:29:01 UTC

Severity: normal

To reply to this bug, email your comments to 61284 AT debbugs.gnu.org.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-guix <at> gnu.org:
bug#61284; Package guix. (Sun, 05 Feb 2023 00:29:01 GMT) Full text and rfc822 format available.

Acknowledgement sent to Albin Otterhäll <albin <at> a12l.xyz>:
New bug report received and forwarded. Copy sent to bug-guix <at> gnu.org. (Sun, 05 Feb 2023 00:29:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Albin Otterhäll <albin <at> a12l.xyz>
To: "bug-guix <at> gnu.org" <bug-guix <at> gnu.org>
Subject: [rust] Segfault when trying to download dependencies using Cargo
Date: Sun, 05 Feb 2023 00:28:25 +0000
# 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 some way try to build the binary.

## Expected behavior

When running `cargo build` after having added a dependency on `rand = "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=manifest.scm` 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 = "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äll




This bug report was last modified 1 year and 75 days ago.

Previous Next


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