SIGSEGV on readFile: Doing anything obviously wrong?

  description = "dev environment";
  inputs = {
    mach-nix.url = "mach-nix/3.5.0";

  outputs = {self, nixpkgs, mach-nix }@inp:
      l = nixpkgs.lib // builtins;
      requirements = builtins.readFile ./requirements.txt;
      supportedSystems = [ "x86_64-linux" "x86_64-darwin" "aarch64-darwin" ];
      forAllSystems = f: l.genAttrs supportedSystems
        (system: f system (import nixpkgs {inherit system;}));
      # enter this python environment by executing `nix shell .`
      defaultPackage = forAllSystems (system: pkgs: mach-nix.lib."${system}".mkPython { inherit requirements; });

With this flake, when I run nix shell . I get “fish: Job 1, ‘nix shell .’ terminated by signal SIGSEGV (Address boundary error)”. I don’t get this if I use a static set of requirements. Am I doing something obviously wrong here? Thanks!

OS: macos 12.5
nix: 2.10.3

I think this is because of the complexity of requirements file I was using. I’m curious if there’s any guidance on how to investigate an error like this, because a SIGSEGV isn’t very easy to comprehend.

Not sure exactly what’s going wrong, but I wanted to mention that Nix should never SIGSEGV. So whatever is causing this is a bug. Maybe search the issue tracker and if nothing comes up open a new one.