-
-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
subtraction overflow in tokio-threadpool #244
Comments
Thanks for the report. I've been working out some bugs, though I am not sure if it is related. Work is here: #243. Maybe you can see if the bug happens on that branch? |
@kamyuentse Is this w/ futures2 enabled or not? |
@carllerche Without the feature Log
I hope this information is helpful. |
Ok, thanks. Do you have steps to repro the issue? |
@carllerche Enable |
@kamalmarhubi Which hyper branch? Master? |
@kamyuentse I think you were the intended target of a notification :-) |
@carllerche
Run with EDIT: Because the |
I'm reopening this until I can investigate the issue described above. |
#317 changes all the logic around where the panic occurs. I'm going to wait to see if the issue happens once that work lands. |
@kamyuentse I'm not seeing this issue happen w/ the latest changes on master (#317). Are you able to confirm this? |
@carllerche Sorry for the delay, I was out last week. I checked and not seeing this issue happen. Thanks for your great work! |
@kamyuentse Great! Thanks for verifying 👍 |
On current master, there seems to be a race condition in tokio-threadpool where occasionally I run into a subtraction overflow when logging the number of workers (https://github.com/tokio-rs/tokio/blob/master/tokio-threadpool/src/lib.rs#L1089).
Maybe the atomic ordering is not strict enough?
The text was updated successfully, but these errors were encountered: