[GHC] #12117: Thread by forkIO freezes (while read :: Int if error appears) when compiled with -threaded option

GHC ghc-devs at haskell.org
Wed May 25 13:19:49 UTC 2016


#12117: Thread by forkIO freezes (while read :: Int if error appears) when compiled
with -threaded option
-------------------------------------+-------------------------------------
        Reporter:  wapxmas           |                Owner:
            Type:  bug               |               Status:  new
        Priority:  normal            |            Milestone:
       Component:  Runtime System    |              Version:  7.10.3
      Resolution:                    |             Keywords:  -threaded,
                                     |  freeze
Operating System:  Windows           |         Architecture:  x86_64
                                     |  (amd64)
 Type of failure:  None/Unknown      |            Test Case:
      Blocked By:                    |             Blocking:
 Related Tickets:                    |  Differential Rev(s):
       Wiki Page:                    |
-------------------------------------+-------------------------------------
Changes (by thomie):

 * cc: Phyx-, simonmar (added)
 * component:  Compiler => Runtime System


Comment:

 Sees like a Windows-only problem. Reproducible with GHC HEAD
 (9c3e55bd029447d9c2cac1c9ca1607a8a803cd79).

 > if build as "ghc concbug.hs" - program work as expected

 I'm not sure. For me, on Windows, it doesn't print the "seconds is up!
 BING!" line, until I enter some non-number string. It also never prints
 "Prelude.read: no parse", as it does on Linux. But the program doesn't
 freeze, as it does with `-threaded`.

--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/12117#comment:2>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler


More information about the ghc-tickets mailing list