
#11180: A program writing to a read-only stdout should not succeed -------------------------------------+------------------------------------- Reporter: thomie | Owner: Type: bug | Status: new Priority: normal | Milestone: Component: Compiler | Version: 7.10.2 Resolution: | Keywords: Operating System: Unknown/Multiple | Architecture: | Unknown/Multiple Type of failure: None/Unknown | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Comment (by bgamari): Indeed this is quite unexpected. I believe the relevant code it is `libraries/base/GHC/IO/FD.hs:writeRawBufferPtrNoBlock`. Judging by the code it ought to be throwing an exception. I'm not yet sure why it is not. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/11180#comment:1 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler