@timdeh:matrix.org | after resorting to strace the recursion seems to be somehow related to mkFlake :
newfstatat(AT_FDCWD, "/nix", {st_mode=S_IFDIR|0755, st_size=4, ...}, AT_SYMLINK_NOFOLLOW) = 0
newfstatat(AT_FDCWD, "/nix/store", {st_mode=S_IFDIR|S_ISVTX|0775, st_size=30850, ...}, AT_SYMLINK_NOFOLLOW) = 0
newfstatat(AT_FDCWD, "/nix/store/j83sl2fzz701mdq7f401m7mqdx77k7pl-source", {st_mode=S_IFDIR|0555, st_size=22, ...}, AT_SYMLINK_NOFOLLOW) = 0
newfstatat(AT_FDCWD, "/nix/store/j83sl2fzz701mdq7f401m7mqdx77k7pl-source/src", {st_mode=S_IFDIR|0555, st_size=7, ...}, AT_SYMLINK_NOFOLLOW) = 0
newfstatat(AT_FDCWD, "/nix/store/j83sl2fzz701mdq7f401m7mqdx77k7pl-source/src/mkFlake", {st_mode=S_IFDIR|0555, st_size=6, ...}, AT_SYMLINK_NOFOLLOW) = 0
newfstatat(AT_FDCWD, "/nix/store/j83sl2fzz701mdq7f401m7mqdx77k7pl-source/src/mkFlake/fup-adapter.nix", {st_mode=S_IFREG|0444, st_size=3436, ...}, AT_SYMLINK_NOFOLLOW) = 0
newfstatat(AT_FDCWD, "/nix/store/j83sl2fzz701mdq7f401m7mqdx77k7pl-source/src/mkFlake/fup-adapter.nix", {st_mode=S_IFREG|0444, st_size=3436, ...}, AT_SYMLINK_NOFOLLOW) = 0
openat(AT_FDCWD, "/nix/store/j83sl2fzz701mdq7f401m7mqdx77k7pl-source/src/mkFlake/fup-adapter.nix", O_RDONLY|O_CLOEXEC) = 5
The above section just appears a bunch of time until it crashes (so a likely source of infinite recursion)
| 19:25:06 |