Segmentation error when zip 2 is a self-tuning type list

In the GHCi 7.10.2 section on Parallella, I defined the Peg data type that Show displays. I had a segmentation error when I tried to pin two Peg lists. Does anyone have any clues?

 sid@linaro-nano :~CIS192/hw_2$ ghci GHCi, version 7.10.2: http://haskell.org/ghc/ :? for help Prelude> Prelude> Prelude> data Peg = Red | Green deriving (Show) Prelude> zip [Red, Red] [Green, Green] [(Red,Green),(Segmentation fault 
+6
source share
1 answer

Reed Burton's comment extension:

a serious GH-enabled bug for ARM-related ARM processors that have two different instruction set modes (Arm and Thumb). The compiled GCC runtime system and LLVM compiled library / user code used different default options. GHCi runtime linker did not understand them correctly, causing crashes when switching from code written in one mode to code written in another.

The bug has been fixed (essentially for Arm forced mode) and should be fixed in future releases of GHC 7.10.3 and 8.0.1.

+3
source

All Articles