Skip to content

Nix segfault at evalutation. GC_DONT_GC=1 doesn't help #4893

@rissson

Description

@rissson

Describe the bug

Nix segfaults when when evaluating.

Steps To Reproduce

  1. Run nix flake check git+https://gitlab.com/lama-corp/infra/dotshabka\?rev=c69be3f98dfa8b943f83bf2f9a8cb17ab403ae0b
  2. [1] 1690602 segmentation fault (core dumped)

Expected behavior

Nix doesn't segfault.

nix-env --version output

nix-env (Nix) 2.4pre20210601_5985b8b
Also happens on nix-env (Nix) 2.4pre20210503_6d2553a
Also happens on nix's 8e6ee1b9e924fbbbeb5594eb89e7a570f36ab6e1 (latest commit on master at the time of writing)

Additional context

Adding GC_DONT_GC=1 to the environment doesn't help.

Here are the latest lines output when ran with -vvv:

evaluating flake...
using substituted/cached input 'github:SoxinOS/soxin/587ae3306c4c1ce130f217b06c07ea8b3b43d400' in '/nix/store/sr31h4gm1gp8clk3y7rqsk6gry3c7i0a-source'
checking access to '/nix/store/sr31h4gm1gp8clk3y7rqsk6gry3c7i0a-source/flake.nix'
evaluating file '/nix/store/sr31h4gm1gp8clk3y7rqsk6gry3c7i0a-source/flake.nix'
using substituted/cached input 'github:NixOS/nixpkgs/4714dcf148dfb528f4107ceb5dc86529ca71294a' in '/nix/store/ghknj4cnjsjajx88zji9wlfr9rrz4x8y-source'
checking access to '/nix/store/ghknj4cnjsjajx88zji9wlfr9rrz4x8y-source/flake.nix'
evaluating file '/nix/store/ghknj4cnjsjajx88zji9wlfr9rrz4x8y-source/flake.nix'
checking access to '/nix/store/ghknj4cnjsjajx88zji9wlfr9rrz4x8y-source/lib'
evaluating file '/nix/store/ghknj4cnjsjajx88zji9wlfr9rrz4x8y-source/lib/default.nix'
checking access to '/nix/store/ghknj4cnjsjajx88zji9wlfr9rrz4x8y-source/lib/default.nix'
checking access to '/nix/store/ghknj4cnjsjajx88zji9wlfr9rrz4x8y-source/lib/fixed-points.nix'
evaluating file '/nix/store/ghknj4cnjsjajx88zji9wlfr9rrz4x8y-source/lib/fixed-points.nix'
checking access to '/nix/store/ghknj4cnjsjajx88zji9wlfr9rrz4x8y-source/lib/attrsets.nix'
evaluating file '/nix/store/ghknj4cnjsjajx88zji9wlfr9rrz4x8y-source/lib/attrsets.nix'
checking access to '/nix/store/ghknj4cnjsjajx88zji9wlfr9rrz4x8y-source/lib/lists.nix'
evaluating file '/nix/store/ghknj4cnjsjajx88zji9wlfr9rrz4x8y-source/lib/lists.nix'
using substituted/cached input 'github:gytis-ivaskevicius/flake-utils-plus/e7ae270a23695b50fbb6b72759a7fb1e3340ca86' in '/nix/store/0ns9ckkig2cv2i3v1lrvnhc0k96vm52k-source'
checking access to '/nix/store/0ns9ckkig2cv2i3v1lrvnhc0k96vm52k-source/flake.nix'
evaluating file '/nix/store/0ns9ckkig2cv2i3v1lrvnhc0k96vm52k-source/flake.nix'
using substituted/cached input 'github:numtide/flake-utils/c6169a2772643c4a93a0b5ac1c61e296cba68544' in '/nix/store/35sfl01w60fsbkxk1j057ipjga2agx2b-source'
checking access to '/nix/store/35sfl01w60fsbkxk1j057ipjga2agx2b-source/flake.nix'
evaluating file '/nix/store/35sfl01w60fsbkxk1j057ipjga2agx2b-source/flake.nix'
checking access to '/nix/store/35sfl01w60fsbkxk1j057ipjga2agx2b-source'
evaluating file '/nix/store/35sfl01w60fsbkxk1j057ipjga2agx2b-source/default.nix'
checking access to '/nix/store/35sfl01w60fsbkxk1j057ipjga2agx2b-source/default.nix'
checking access to '/nix/store/sr31h4gm1gp8clk3y7rqsk6gry3c7i0a-source/lib'
evaluating file '/nix/store/sr31h4gm1gp8clk3y7rqsk6gry3c7i0a-source/lib/default.nix'
checking access to '/nix/store/sr31h4gm1gp8clk3y7rqsk6gry3c7i0a-source/lib/default.nix'
checking access to '/nix/store/sr31h4gm1gp8clk3y7rqsk6gry3c7i0a-source/lib/system-flake.nix'
evaluating file '/nix/store/sr31h4gm1gp8clk3y7rqsk6gry3c7i0a-source/lib/system-flake.nix'
checking access to '/nix/store/ghknj4cnjsjajx88zji9wlfr9rrz4x8y-source/lib/asserts.nix'
evaluating file '/nix/store/ghknj4cnjsjajx88zji9wlfr9rrz4x8y-source/lib/asserts.nix'
checking access to '/nix/store/bd13cm0il77c8mvjdpajxr1zlzxgcxrb-source/hosts'
evaluating file '/nix/store/bd13cm0il77c8mvjdpajxr1zlzxgcxrb-source/hosts/default.nix'
checking access to '/nix/store/bd13cm0il77c8mvjdpajxr1zlzxgcxrb-source/hosts/default.nix'
checking access to '/nix/store/ghknj4cnjsjajx88zji9wlfr9rrz4x8y-source/lib/strings.nix'
evaluating file '/nix/store/ghknj4cnjsjajx88zji9wlfr9rrz4x8y-source/lib/strings.nix'

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions