#4934: threadWaitRead works incorrectly on nonthreaded RTS
-------------------------------+--------------------------------------------
Reporter: slyfox | Owner:
Type: bug | Status: new
Priority: normal | Component: Runtime System
Version: 7.0.1 | Keywords:
Testcase: | Blockedby:
Os: Linux | Blocking:
Architecture: x86_64 (amd64) | Failure: Incorrect result at runtime
-------------------------------+--------------------------------------------
Comment(by slyfox):
The output of sample:
{{{
$ ./test_me.sh
[1 of 3] Compiling Commands ( Commands.hs, obj/Commands.o )
[2 of 3] Compiling Xmobar ( Xmobar.hs, obj/Xmobar.o )
Xmobar.hs:13:1:
Warning: In the use of `block'
(imported from Control.Exception, but defined in GHC.IO):
Deprecated: "use Control.Exception.mask instead"
Xmobar.hs:13:1:
Warning: In the use of `unblock'
(imported from Control.Exception, but defined in GHC.IO):
Deprecated: "use Control.Exception.mask instead"
[3 of 3] Compiling Main ( Main.hs, obj/Main.o )
Linking test_it ...
Entering event loop
"eventLoop IN"
"MAIN: unblocking"
"forkIO: startCommand: runCom \"date\" [] \"\" 10""forkIO: startCommand:
runStdinReader""forkIO: checker spawned"
"WAIT IO: 1"
"SIR: got line""CHECKER: IN"
"CHECKER: throw WakeUp -> me"
"CHECKER: thrown"
"CHECKER: IN"
"MAIN: woke up!"
"MAIN: unblocking"
"WAIT IO: 1"
test_it: file descriptor 7264944 out of range for select (0--1024).
Recompile with -threaded to work around this.
}}}
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/4934#comment:2>
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