Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

x86_64-linux nix build segfault #6593

Open
exarkun opened this issue May 30, 2022 · 2 comments
Open

x86_64-linux nix build segfault #6593

exarkun opened this issue May 30, 2022 · 2 comments
Labels

Comments

@exarkun
Copy link

exarkun commented May 30, 2022

Describe the bug

nix build -f thisexpr.nix crashes with a segmentation violation.

Steps To Reproduce

  1. Get nix (Nix) 2.9.0pre20220512_d354fc3 (in my case, via https://github.com/nixos/nixpkgs/archive/b62ada430501de88dfbb08cea4eb98ead3a5e3e7.tar.gz)
  2. nix build -f thisexpr.nix
  3. See segfault

thisexpr.nix:

let
  pkgs = import (builtins.fetchGit {
    url = "https://github.com/NixOS/nixpkgs";
    rev = "838eefb4f93f2306d4614aafb9b2375f315d917f";
  }) { };

  mach-nix = import (pkgs.fetchFromGitHub {
    owner = "DavHau";
    repo = "mach-nix";
    rev = "refs/tags/3.4.0";
    hash = "sha256:19vh5qfqlml22d6mpi34nnbh71i259sh223l4dr4axar3byy1408";
  });
in
pkgs.callPackage mach-nix

Expected behavior

A nix-level error or a successful build

@exarkun exarkun added the bug label May 30, 2022
@Artturin
Copy link
Member

try a newer nix NixOS/nixpkgs#175492

@thufschmitt
Copy link
Member

thufschmitt commented Jun 1, 2022

That's probably a duplicate of #6582 (which got its fix merged just yesterday). Can you try with the latest master Nix (more recent than the one in nixpkgs master afaik)?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants