Description
Describe the bug
I'm having this issue very similar to #11249, where I try to run a Nix build in a container-like environment and get an endless loop like this:
download thread waiting for 10000 ms
download thread waiting for 10000 ms
download thread waiting for 10000 ms
download thread waiting for 10000 ms
download thread waiting for 10000 ms
In my case, rather than devcontainer, i'm using Bubblewrap. Also, I'm mounting a local binary cache constructed with mkBinaryCache
and trying to make my build use it as a substituter.
Steps To Reproduce
I put together a full repro here, which constructs a script that shows the problem: https://github.com/thomasjm/nix-deadlock-repro. All you have to do is
git clone git@github.com:thomasjm/nix-deadlock-repro.git
cd nix-deadlock-repro
nix run .#go
(If this succeeds the first time, maybe try it once or twice more and you should see the deadlock.)
Expected behavior
The Nix build should complete successfully and promptly.
Metadata
Everything is fixed in my repro flake. I'm using a static build of Nix 2.28.
Additional context
Issue #11249 said it was fixed by #11171, but I'm testing on the latest Nix and that solution is not fixing it for me.
Checklist
- checked latest Nix manual (source)
- checked open bug issues and pull requests for possible duplicates
Add 👍 to issues you find important.
Metadata
Metadata
Assignees
Type
Projects
Status