[Haskell-cafe] threadDelay delays less time than expected (Windows)

Ben Gamari ben at smart-cactus.org
Thu Dec 29 14:44:12 UTC 2016


On December 28, 2016 9:20:50 AM EST, Lian Hung Hon <hon.lianhung at gmail.com> wrote:
>Dear Haskellers,
>
>I am baffled by a strange bug (?) with threadDelay on Windows. It
>delays
>for less time than expected (500 seconds vs expected 24 hours), and is
>consistently reproducible on my system. Can someone have a look (need
>some
>patience, ~8 minutes waiting), just to be sure? I glanced around trac
>but
>didn't find any related issues.
>

I believe I fixed this bug a few weeks ago.  Indeed there was an integer overflow in then non-threaded Windows RTS. This should be fixed in GHC 8.2. See Trac #7325.

Cheers,


- Ben 


More information about the Haskell-Cafe mailing list