input-output-hk / io-sim

Haskell's IO simulator which closely follows core packages (base, async, stm).
https://hackage.haskell.org/package/io-sim
Apache License 2.0
37 stars 15 forks source link

newTimeout is not safe on `32`-bit archs #59

Closed coot closed 1 year ago

coot commented 4 years ago

As noted by @njd42 :

On a 32 bit machine with a timeout more than ~35min in the future defaultRegisterDelay would be invoked which, in turn, makes use of newTimeout. This calls GHC.registerTimeout where the intrinsic 32 bit constraint rears its ugly head again.

coot commented 1 year ago

We haven't fixed newTimeout bug in the pr input-output-hk/io-sim#57 addresses safety of MonadTimer primitives in the si-timers package.