-
Notifications
You must be signed in to change notification settings - Fork 530
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
Hang / deadlock while compiling? #1011
Comments
This is the jobserver pipe, which is implemented in the |
Do you know why |
rustc has internal parallelism for codegen, it uses the jobserver so it can let cargo dictate the maximum amount of parallelism when multiple rustc processes are running. |
Ah. Do you know what is the mechanism by which it knows which FD the pipe is? (It doesn't seem to get passed in either the command line args or the environment, but perhaps I've missed something?) |
Similar hang: #2145 |
We seem to be seeing a hang / deadlock while compiling with
sccache
:All of these seem to be stuck on a pipe (FD 6, specifically; they're all writing to it, include
sccache
.)Specifically, we can grab all the
rustc
PIDs:We can see that they're all stuck writing to FD 6:
Output
And that FD 6 is a pipe, and the same pipe:
It's also what
sccache
itself is stuck on:I know that's not a lot to go on; I'm mostly hoping that pipe write looks familiar to someone & then it would be known from there what high-level system is implicated here. I'm not clear on how
rustc
even gets this pipe, though, since it doesn't seem like any argument would inform it of the existence of this pipe…?The text was updated successfully, but these errors were encountered: