Changes between Version 4 and Version 5 of Ticket #418


Ignore:
Timestamp:
Jan 25, 2007 2:53:20 PM (9 years ago)
Author:
igloo
Comment:

This seems to be fixed in 6.6. Leaving it open to remind me to add the example to the testsuite.

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #418

    • Property Status changed from assigned to new
    • Property Owner changed from nobody to igloo
  • Ticket #418 – Description

    v4 v5  
    1 {{{
    21[copy-pasting my original mail
    32(http://www.haskell.org/pipermail/glasgow-haskell-bugs/2005-June/005235.html)]
     
    98single-assignment variables.)
    109
     10{{{
    1111> module Main where
    1212>
     
    2222>     forkIO (print a)
    2323>     putMVar v ()
     24}}}
    2425
    2526The crucial part about it seems to be the interruption
     
    3031behaviour:
    3132
    32  Prelude System.IO.Unsafe Control.Concurrent> v <-
    33 newEmptyMVar
    34  Prelude System.IO.Unsafe Control.Concurrent> a <-
    35 unsafeInterleaveIO (readMVar v)
     33{{{
     34 Prelude System.IO.Unsafe Control.Concurrent> v <- newEmptyMVar
     35 Prelude System.IO.Unsafe Control.Concurrent> a <- unsafeInterleaveIO (readMVar v)
    3636 Prelude System.IO.Unsafe Control.Concurrent> print a
    3737 Interrupted.
    38  Prelude System.IO.Unsafe Control.Concurrent> forkIO
    39 (print a)
     38 Prelude System.IO.Unsafe Control.Concurrent> forkIO (print a)
    4039 Prelude System.IO.Unsafe Control.Concurrent> putMVar v ()
    4140 zsh: segmentation fault (core dumped)  ghci
     41}}}
    4242
    4343Both 6.4 and 6.2.1 crash when running main from ghci.
     
    6060Good night,
    6161Remi
    62 }}}