Nix: Segmentation fault when building ISO image with nixFlakes

Created on 11 Nov 2020  路  4Comments  路  Source: NixOS/nix

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

bug

Most helpful comment

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

All 4 comments

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=1 to 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.

Was this page helpful?
0 / 5 - 0 ratings