Ticket #3938 (closed bug: fixed)
Data growth issue in System.Timeout
Description
(This bug is lhs)
The following seemingly simple code causes infinite data growth and resource exhaustion when the code for System.Timeout does not immediately appear to have a bug with respect to resource utilization.
module Main where
import System.Timeout import Control.Monad
timeoutval :: Int timeoutval = 12 * 10 6 -- 12 seconds
doit :: IO (Maybe ()) doit = timeout (-1) $ return ()
main :: IO () main = forever $ return ()
Change History
Note: See
TracTickets for help on using
tickets.
