segfault/massive memory use when using Data.Bits.shiftL
Ganesh Sittampalam
ganesh at earth.li
Mon Feb 28 09:55:56 EST 2005
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
Cheers,
Ganesh
More information about the Glasgow-haskell-users
mailing list