Describe the bug
Segmentation fault when building ISO image with nixFlakes from release-20.09
Steps To Reproduce
To reproduce (on nixpkgs release-20.09):
nix-instantiate -A iso_minimal_new_kernel.x86_64-linux nixos/release.nix
Expected behavior
No segmentation fault
nix (Nix) 2.4pre20201102_550e11f
Probably #4178 which has been fixed in master. That time it wasn't reproduced by Eelco, so it's probably best if you try for yourself. You could use https://github.com/NixOS/nixpkgs/pull/102932 if you think that's more convenient.
For others who land on this page.
Until there's a proper fix, you may try adding GC_DONT_GC=1 to the command.
GC_DONT_GC=1 nix build ...
this seems to allow IFD to complete successfully for me
For others who land on this page.
Until there's a proper fix, you may try adding
GC_DONT_GC=1to the command.GC_DONT_GC=1 nix build ...this seems to allow IFD to complete successfully for me
This "fixed" the problem for me aswell, but it seems more like a workaround. Any plans to get this fixed properly?
It has just now happened to me while building a non-ISO configuration, so it seems it's not limited to something that the ISO derivation is doing.
Most helpful comment
For others who land on this page.
Until there's a proper fix, you may try adding
GC_DONT_GC=1to the command.this seems to allow IFD to complete successfully for me