
#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 Resolution: | Keywords: Operating System: MacOS X | Architecture: Unknown/Multiple Type of failure: GHCi crash | Difficulty: Unknown Test Case: | Blocked By: Blocking: | Related Tickets: ----------------------------------+------------------------------------ Comment (by bkomuves): More data points: 32 bit GHC 7.4.2 (from the Haskell Platform) on OSX 10.8.4: {{{ Prelude> :m + Data.Complex Prelude Data.Complex> ((-2) :+ 0)**(1.5 :+ 0) Segmentation fault: 11 }}} Also: {{{ one, two :: Complex Double one = 1/(1-exp(pi*1/3*(0:+1))/2) -- this works two = 1/(1-exp(pi*2/3*(0:+1))/2) -- this segfaults }}} ghci segfaults, runghc silently exits (after a long wait), compiled it works (with any optimization level). However, with {{{ one, two :: Complex Float }}} instead, it works (the original example above works, too, when annotated to be `Complex Float`) -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/8116#comment:2 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler