-
Notifications
You must be signed in to change notification settings - Fork 2.6k
cargo panics with "timeout in poll?" error from jobserver #4643
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
Comments
I can't find anything on google that points to 10.9 specifically (everyone seems to claim 10.12 is broken) and all the "brokenness" appears to be in different ways? If we want to fix this we probably just want to have a fallback to |
Yeah, all I found was the 10.12 stuff as well. I couldn't get a simple
repro by just calling libc::poll. Do you have any idea what kind of
scenario cargo is creating (calling poll a bunch of times from separate
threads, or something)?
…On Thu, Oct 19, 2017 at 10:37 AM, Alex Crichton ***@***.***> wrote:
I can't find anything on google that points to 10.9 specifically (everyone
seems to claim 10.12 is broken) and all the "brokenness" appears to be in
different ways? If we want to fix this we probably just want to have a
fallback to select in cases like this.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#4643 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAC3n1lXZsV_la_BREwPmkrKOubvvkDvks5st16pgaJpZM4P-peZ>
.
|
AFAIK the only "funky" thing here is that the fds are shared across multiple processes, but other than that there's not a whole lot going on here? |
+1 on OSX Yosemite 10.10.3
panic error:
|
I'm going to hope that rust-lang/jobserver-rs@400ce8c fixes this. |
Let me know if/how I can help test.
…On Fri, Oct 20, 2017 at 1:29 PM, Alex Crichton ***@***.***> wrote:
I'm going to hope that ***@***.***
<rust-lang/jobserver-rs@400ce8c>
fixes this.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#4643 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAC3nzAyu9P-8grDVOnq0UeO5NcLIMgpks5suNhrgaJpZM4P-peZ>
.
|
Can you compile Cargo from source? If so, can you try compiling Cargo with that patch and see if it fixes things? |
OK, I'll let you know how that goes. Can I make rustup use a custom cargo
and my installed rustc or how does that work?
…On Fri, Oct 20, 2017 at 1:35 PM, Alex Crichton ***@***.***> wrote:
Can you compile Cargo from source? If so, can you try compiling Cargo with
that patch and see if it fixes things?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#4643 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAC3n002cxpU2iCU3fQ_WSc1DHFjspPMks5suNn9gaJpZM4P-peZ>
.
|
You'd probably just do something like |
When I do that it's somehow still running rustup's version of cargo... not
sure what's going on.
…On Fri, Oct 20, 2017 at 1:47 PM, Alex Crichton ***@***.***> wrote:
You'd probably just do something like rustup run beta
path/to/target/release/cargo build and that should work ok
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#4643 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAC3n-RthJi8XBUudaaLE-QuhbzgLAWXks5suNy2gaJpZM4P-peZ>
.
|
Oh no the problem is that librustc_trans also depends on jobserver :( so I
need to build the whole compiler as well.
…On Fri, Oct 20, 2017 at 1:59 PM, Alex Burka ***@***.***> wrote:
When I do that it's somehow still running rustup's version of cargo... not
sure what's going on.
On Fri, Oct 20, 2017 at 1:47 PM, Alex Crichton ***@***.***>
wrote:
> You'd probably just do something like rustup run beta
> path/to/target/release/cargo build and that should work ok
>
> —
> You are receiving this because you authored the thread.
> Reply to this email directly, view it on GitHub
> <#4643 (comment)>,
> or mute the thread
> <https://github.com/notifications/unsubscribe-auth/AAC3n-RthJi8XBUudaaLE-QuhbzgLAWXks5suNy2gaJpZM4P-peZ>
> .
>
|
@alexcrichton maybe this issue is in the wrong repo now, but I can't get rustc to build with that patch. I'm running I edited
|
Ah oops I think I botched the patch. Forgot that EINTR needs to come out as an error and not get handled. Mind testing rust-lang/jobserver-rs@b3e6165? |
After rebuilding rustc and cargo with that patch it seems to be working!
…On Fri, Oct 20, 2017 at 3:19 PM, Alex Crichton ***@***.***> wrote:
Ah oops I think I botched the patch. Forgot that EINTR needs to come out
as an error and not get handled. Mind testing alexcrichton/jobserver-rs@
b3e6165
<rust-lang/jobserver-rs@b3e6165>
?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#4643 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAC3n8lxmBqozx5Hl6hZzbb2wNlMllFWks5suPJEgaJpZM4P-peZ>
.
|
Ok thanks for checking! I've pushed a new version of jobserver so all that's left is to send a PR to rust-lang/rust updating the crate |
And rust-lang/cargo, yeah? Are you doing them or shall I?
…On Fri, Oct 20, 2017 at 5:49 PM, Alex Crichton ***@***.***> wrote:
Ok thanks for checking! I've pushed a new version of jobserver so all
that's left is to send a PR to rust-lang/rust updating the crate
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#4643 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAC3n50xpRD17ewYOEqXeAOP9V-X4mqNks5suRWGgaJpZM4P-peZ>
.
|
Nah rust-lang/cargo no longer has a lockfile, and feel free to do it! |
A quick question: Will this fix ship on the next version of |
update jobserver version to work around macos bug Update `jobserver` crate to fix rust-lang/cargo#4643, a panic which can't happen according to `libc::poll`'s man page but was nevertheless reported on macOS 10.9 and 10.10. r? @alexcrichton
@ivanceras this needed to land in rust-lang/rustc, which it now has, and now it should be in nightlies. |
@alexcrichton I've just updated via |
Uh oh!
There was an error while loading. Please reload this page.
Here's a log trying to build clippy: https://gist.github.com/b721066be81601774e16087210ad1919
The error happens every time at a random point while building dependencies. The only way to fix it is to disable parallelism with
-j 1
.This might be a bug in jobserver, or OSX itself. I'm on OSX 10.9.5.
The text was updated successfully, but these errors were encountered: