Skip to content

x86_64-linux nix build segfault #6593

@exarkun

Description

@exarkun

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions