[GHC] #7715: threadDelay causes segfault on Mac if compiled by 32bit GHC

GHC cvs-ghc at haskell.org
Mon Mar 18 21:40:24 CET 2013


#7715: threadDelay causes segfault on Mac if compiled by 32bit GHC
-------------------------------+--------------------------------------------
  Reporter:  kazu-yamamoto     |          Owner:                  
      Type:  bug               |         Status:  new             
  Priority:  normal            |      Milestone:                  
 Component:  Compiler          |        Version:  7.7             
Resolution:                    |       Keywords:                  
        Os:  Unknown/Multiple  |   Architecture:  Unknown/Multiple
   Failure:  None/Unknown      |     Difficulty:  Unknown         
  Testcase:                    |      Blockedby:                  
  Blocking:                    |        Related:                  
-------------------------------+--------------------------------------------
Changes (by thorkilnaur):

  * version:  7.6.2 => 7.7


Comment:

 On the tn23 builder
 (http://darcs.haskell.org/ghcBuilder/builders/tn23/index.html):
 {{{
 $ uname -a
 Darwin thorkil-naurs-intel-mac-mini.local 9.8.0 Darwin Kernel Version
 9.8.0: Wed Jul 15 16:55:01 PDT 2009; root:xnu-1228.15.4~1/RELEASE_I386
 i386
 $ cat T7715A.hs
 import Control.Monad
 import Control.Concurrent
 main :: IO ()
 main = do
     replicateM_ 100 $ forkIO $ do
         threadDelay 1000000
         putStrLn "Hello, world!"
     threadDelay 5000000
 $
 /Users/thorkilnaur/tn/builders/GHCBuilder/tn23/builder/tempbuild/build/inplace/bin
 /ghc-stage2 --make T7715A.hs -threaded
 [1 of 1] Compiling Main             ( T7715A.hs, T7715A.o )
 Linking T7715A ...
 $ ./T7715A
 Hello, world!
 Hello, world!
 Hello, world!
 Hello, world!
 Hello, world!
 Hello, world!
 Hello, world!
 Hello, world!
 Hello, world!
 Hello, world!
 Hello, world!
 Hello, world!
 Hello, world!
 Hello, world!
 Hello, world!
 Hello, world!
 Bus error
 $ ./T7715A
 Hello, world!
 Segmentation fault
 $ ./T7715A
 Hello, world!
 Bus error
 $
 }}}
 Best regards
 Thorkil

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



More information about the ghc-tickets mailing list