-
-
Notifications
You must be signed in to change notification settings - Fork 85
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
select_general hang on Windows and macOS, sometimes on Linux too #44
Comments
This hangs on Linux too according to CI |
I guess we have to disable it on Linux too or fix it. |
This implies there is a race condition. Should anybody get the time to investigate: |
I'm experiencing the same issue on Windows and Linux. |
Using |
Due to flumes current bug with the `Selector` struct I am forced to use this to prevent lockups in the scheduling process. zesterer/flume#44
@post-rex Sorry about this. It's on my to-do list of things to fix, perhaps over the next week. |
Thanks that would be awesome! |
Hm, I think I am hitting this. In a program I write, This feels like a pretty critical correctness bug to me ;-) I do not want to push for a fix here (this is open source software, it absolutely is ok to let things like this slip), but I do want to note that, imo, the graveness of this bug doesn't match the production-readiness status, signaled by the readme. (and of course there's a chance that it's my code which is broken :) ). |
@matklad Yep, this is a persistent issue that I've been trying to make time to fix for a while now. To the best of my knowledge, it's the only actual bug in the crate (at least, the crate has now been in use by quite a few projects for several months and nothing has come up besides this). Part of the reason I've not gotten to resolving it yet is that I'm rather unhappy with the API of |
Using Arc::ptr_eq on trait object pointers can fail unpredictably because of rust-lang/rust#46139. This can prevent a Hook from being removed when its RecvSelection is de-inited, which makes it incorrectly push Tokens to a queue owned by a Selector that no longer exists. This may be the cause of zesterer#44.
@matklad Would you happen to still be in a position to see whether you have this issue? |
The test that this issue specifically mentions now passes (thanks @tesuji). On the assumption that this implies that the bug if fixed, I'm closing the issue. If this turns out to not be the case, I can re-open the issue. |
flume/tests/basic.rs
Line 314 in 357685a
hang quite often:
It has been disabled in #43 for Windows and macOS only.
The text was updated successfully, but these errors were encountered: