[GHC] #3049: STM with data invariants crashes GHC
GHC
trac at galois.com
Mon Jun 22 21:08:15 EDT 2009
#3049: STM with data invariants crashes GHC
---------------------------------+------------------------------------------
Reporter: simonpj | Owner:
Type: bug | Status: new
Priority: normal | Milestone: 6.12.1
Component: Compiler | Version: 6.10.1
Severity: normal | Resolution:
Keywords: | Difficulty: Unknown
Testcase: | Os: Unknown/Multiple
Architecture: Unknown/Multiple |
---------------------------------+------------------------------------------
Comment (by int-e):
Here's a more enlightening example:
{{{
import GHC.Conc
main = do
t <- atomically $ do
alwaysSucceeds (return 42)
return 23
print t
}}}
This will print 42 instead of 23. I believe that if any invariants are
checked, the result of {{{atomically}}} will be that of the last
invariant.
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/3049#comment:3>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the Glasgow-haskell-bugs
mailing list