nix-thunk icon indicating copy to clipboard operation
nix-thunk copied to clipboard

nix-thunk hangs when packing a very old commit

Open madeline-os opened this issue 3 years ago • 2 comments

This occurred on obelisk when I tried to unpack and pack the hnix thunk there. I got around it by checking out a branch where the commit I wanted to pack was the head.

madeline-os avatar Aug 13 '22 23:08 madeline-os

Specifically, this thunk on this commit: https://github.com/obsidiansystems/obelisk/blob/476bd1ce14b215d88a31a60ea1f7144710ed110f/dep/hnix/github.json

madeline-os avatar Aug 13 '22 23:08 madeline-os

I also encountered this when trying to re-pack an Obelisk thunk to rev 41f97410cfa2e22a4ed9e9344abcd58bbe0f3287.

ps tells me that nix-thunk has a child process /nix/store/v41a4jzfgs36srbip4gjfh2fx10m2hmj-git-2.31.1/bin/git -C impl/ rev-list --left-right master...origin/master and strace tells me that git is blocking on write(1, ">b6b219a5fdf3b3fc458723002edc3a8"..., 42) . 1 is hooked up to a pipe - which I guess leads to nix-thunk so I suppose nix-thunk isn't properly managing stdio from the git process it runs and this leads to a deadlock between the two processes.

exarkun avatar Jun 28 '23 12:06 exarkun