segfault/massive memory use when using Data.Bits.shiftL

Donald Bruce Stewart dons at cse.unsw.edu.au
Mon Feb 28 18:42:10 EST 2005


ganesh:
> Hi,
> 
> The following either eats memory until killed or segfaults (I can't pin
> down a reason for the difference). Tested with GHC 6.2.2 and 6.4.20050212,
> with various different libgmp3s under various Redhat and Debian platforms,
> and WinXP.
> 
> Prelude> :m +Data.Bits
> Prelude Data.Bits> 18446658724119492593 `shiftL` (-3586885994363551744) ::
> Integer

Have you tried gmp-4? That's seems to be more stable.

-- Don


More information about the Glasgow-haskell-users mailing list