[GHC] #8116: Segfault/panic of 32bit GHCi on Mac

GHC ghc-devs at haskell.org
Tue Aug 6 04:07:01 CEST 2013


#8116: Segfault/panic of 32bit GHCi on Mac
------------------------------------+-------------------------------
       Reporter:  kazu-yamamoto     |             Owner:
           Type:  bug               |            Status:  new
       Priority:  normal            |         Milestone:
      Component:  Compiler          |           Version:  7.6.3
       Keywords:                    |  Operating System:  MacOS X
   Architecture:  Unknown/Multiple  |   Type of failure:  GHCi crash
     Difficulty:  Unknown           |         Test Case:
     Blocked By:                    |          Blocking:
Related Tickets:                    |
------------------------------------+-------------------------------
 32bit GHCi on Mac causes segfault/panic:

 With GHC 7.6.3:

 {{{
 > :m Data.Complex
 [Prelude Data.Complex]
 > ((-2) :+ 0)**(1.5 :+ 0)
 zsh: segmentation fault  ghci
 }}}

 With GHC head:

 {{{
 > :m Data.Complex
 > ((-2) :+ 0)**(1.5 :+ 0)
 ghc: panic! (the 'impossible' happened)
   (GHC version 7.7.20130805 for i386-apple-darwin):
         Loading temp shared object failed:
 dlopen(/var/folders/k0/548g5xg90jjfbrj5j09nvwv80000gq/T/ghc124_0/ghc124_0.dylib,
 9): Library not loaded: /Users/kazu/work/ghc/libraries/base/dist-
 install/build/libHSbase-4.7.0.0-ghc7.7.20130805.dylib
   Referenced from:
 /var/folders/k0/548g5xg90jjfbrj5j09nvwv80000gq/T/ghc124_0/ghc124_0.dylib
   Reason: image not found

 Please report this as a GHC bug:  http://www.haskell.org/ghc/reportabug
 }}}

 64bit GHCi does not cause this problem. Any GHCi on Linux and FreeBSD do
 not cause this problem.

 If the code is compiled with 32bit GHC on Mac, it works fine.

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




More information about the ghc-tickets mailing list