[GHC] #5132: Segfault on OS X in GHCi when using GHC API

GHC cvs-ghc at haskell.org
Mon Apr 18 15:48:35 CEST 2011


#5132: Segfault on OS X in GHCi when using GHC API
-------------------------------+--------------------------------------------
    Reporter:  nominolo        |       Owner:            
        Type:  bug             |      Status:  new       
    Priority:  normal          |   Component:  GHCi      
     Version:  7.0.2           |    Keywords:            
    Testcase:                  |   Blockedby:            
          Os:  MacOS X         |    Blocking:            
Architecture:  x86_64 (amd64)  |     Failure:  GHCi crash
-------------------------------+--------------------------------------------
 (This might be related to #5072.)

 I get a segfault when loading and running the following simple program in
 GHCi:

 {{{
 import GHC
 import DynFlags

 main = do
   defaultErrorHandler defaultDynFlags $ do
     (a,b) <- parseStaticFlags []
     print "42"
 }}}

 {{{
 $ ghci -package ghc bug3.hs
 GHCi, version 7.0.2: http://www.haskell.org/ghc/  :? for help

 Ok, modules loaded: Main.
 Prelude Main> main
 Bus error
 }}}

 It works fine on x86-64 linux or when I compile the code.  I have not
 tested whether it fails on x86 as well.

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



More information about the Glasgow-haskell-bugs mailing list