Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

nix-thunk hangs when packing a very old commit #31

Open
madeline-os opened this issue Aug 13, 2022 · 2 comments
Open

nix-thunk hangs when packing a very old commit #31

madeline-os opened this issue Aug 13, 2022 · 2 comments

Comments

@madeline-os
Copy link
Contributor

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
Copy link
Contributor Author

@exarkun
Copy link

exarkun commented Jun 28, 2023

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants