Closed leona-ya closed 5 months ago
Also interestingly: This happens also with a non-existing flake, so it seems to happen before checking that.
I think I have seen this yesterday in nix-fast-build: https://github.com/Mic92/nix-fast-build/actions/runs/8926049540/job/24516185484
warning: 'show-config' is a deprecated alias for 'config show'
INFO:nix_fast_build:run nix-eval-jobs --gc-roots-dir /tmp/tmpt8g37u5g/gcroots --force-recurse --max-memory-size 2048 --workers 1 --flake '.#checks'
warning: unknown setting 'trusted-users'
error: error: while reading result for attrPath 'aarch64-darwin', evaluation worker got killed by SIGBUS, (possible infinite recursion)
ERROR:nix_fast_build:nix-eval-jobs exited with 1
25h
However I cannot reproduce this on the macos builder that I have access to. So I need help with this.
So there is some function in nix that we are not allowed to call from a multi-threaded context...
export OBJC_DISABLE_INITIALIZE_FORK_SAFETY=YES
is usually mentioned as the fix, but it doesn't seem to work here.
I can no longer see the crash after https://github.com/nix-community/nix-eval-jobs/pull/302
For now I will pin this to an old release: https://github.com/NixOS/nixpkgs/pull/310301
After https://github.com/nix-community/nix-eval-jobs/commit/32071eb9635dbe0e1e8fc750ea1aac6808272018 I am no longer able to reproduce this error.
I also can't reproduce this anymore. Thanks for fixing
With the update of nix-eval jobs from an older nixpkgs rev (https://github.com/nixos/nixpkgs/commit/1042fd8b148a9105f3c0aca3a6177fd1d9360ba5) to current master with nix-eval-jobs 2.21.0, nix-eval-jobs crashes with
on aarch64-darwin. It doesn't happen on linux.
This failure is reproducible. I unfortunately don't know how to better trace this on macOS :/