[GHC] #10149: The argument of mask does not always restore the masking state

GHC ghc-devs at haskell.org
Mon Mar 9 14:34:45 UTC 2015


#10149: The argument of mask does not always restore the masking state
-------------------------------------+-------------------------------------
        Reporter:                    |                   Owner:
  facundo.dominguez                  |                  Status:  new
            Type:  bug               |               Milestone:
        Priority:  normal            |                 Version:  7.8.4
       Component:  libraries/base    |                Keywords:
      Resolution:                    |            Architecture:
Operating System:  Unknown/Multiple  |  Unknown/Multiple
 Type of failure:  None/Unknown      |               Test Case:
      Blocked By:                    |                Blocking:
 Related Tickets:                    |  Differential Revisions:
-------------------------------------+-------------------------------------

Comment (by facundo.dominguez):

 Other failing examples not involving `forkIOWithUnmask`:

 {{{#!hs
 mask $ \unmask -> mask $ \restore ->
   unmask $ restore $ getMaskingState >>= print
 }}}

 {{{#!hs
 uninterruptibleMask $ \unmask -> uninterruptibleMask $ \restore ->
   unmask $ restore $ getMaskingState >>= print
 }}}

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


More information about the ghc-tickets mailing list