#1146: Fork bomb should throw an exception
-------------------------------+--------------------------------------------
Reporter: guest | Owner:
Type: bug | Status: new
Priority: normal | Milestone:
Component: Runtime System | Version: 6.7
Severity: normal | Keywords:
Difficulty: Unknown | Testcase:
Architecture: Unknown | Os: Linux
-------------------------------+--------------------------------------------
When fork bombing (example code below, just run 'f'), a failed forkIO
should raise an exception, but on 6.7.20070206 it just brings my system to
its knees for a while then sometimes crashes and sometimes I just have to
kill it. (printouts included just for the heck of it)
{{{
import Control.Concurrent
f = do a <- forkIO g
b <- forkIO g
putStrLn $ "f(): Forked a: " ++ (show a) ++ " and b: " ++ (show b)
return ()
g = do a <- forkIO f
b <- forkIO f
putStrLn $ "g(): Forked a: " ++ (show a) ++ " and b: " ++ (show b)
return ()
}}}
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/1146>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler_______________________________________________
Glasgow-haskell-bugs mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs