#5773: main = forever (putStrLn =<< getLine) continuously saturates a CPU when compiled -------------------------------+-------------------------------------------- Reporter: lpsmith | Owner: simonmar Type: bug | Status: new Priority: highest | Milestone: 7.4.1 Component: Compiler | Version: 7.4.1-rc1 Keywords: | Os: Linux Architecture: x86_64 (amd64) | Failure: Runtime performance bug Difficulty: Unknown | Testcase: Blockedby: | Blocking: Related: | -------------------------------+--------------------------------------------
Comment(by lpsmith): Ok, I was mistaken. The program I though I compiled with ghc-7.4.1-rc1 I actually compiled with ghc-7.0.3, and so the program I used to test {{{threadWaitRead}}} also saturates the CPU. Although it may not be of any great interest to the bug-hunters, I'll attach the program, it's a straightforward port of a sample program from the PostgreSQL source distribution to the http://hackage.haskell.org/package/postgresql-libpq bindings. So it seems to be a problem with blocking IO in general. I find it curious that none of my test programs exhibit this problem when run inside GHCi. -- Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/5773#comment:4> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler _______________________________________________ Glasgow-haskell-bugs mailing list Glasgow-haskell-bugs@haskell.org http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs