-
Notifications
You must be signed in to change notification settings - Fork 17
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
threadDelay impl does not prevent underflow #129
Comments
I don't see anything wrong here (using
|
Does |
Testing it with |
github-merge-queue bot
pushed a commit
to IntersectMBO/ouroboros-consensus
that referenced
this issue
Nov 5, 2024
input-output-hk/io-sim#129 has been [fixed in `si-timers-1.4`](https://hackage.haskell.org/package/si-timers-1.5.0.0/changelog), and we already require `>=1.5`.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug
If the argument to
threadDelay
is "very negative", it will underflow.To Reproduce
Steps to reproduce the behaviour: I didn't record them. I think pass a negative duration to
threadDelay
that is between -2X and -1X where X is theminBound
ofInt
.Expected behaviour
Every non-positive argument should have the same behavior.
The text was updated successfully, but these errors were encountered: