[Haskell-cafe] 2^770000 triggers Bus Error?
Matteo Ferrando
matteo.ferrando2 at gmail.com
Fri Oct 17 16:08:10 UTC 2014
I'm currently on a MacBook with OSX 10.9.5, and all three examples give me
*{... lots of digits...}*.
$ ghci --version
The Glorious Glasgow Haskell Compilation System, version 7.8.3
On Fri, Oct 17, 2014 at 11:21 AM, Alexander Vieth <alex at lagoa.com> wrote:
> Interesting. This is reproducible on my machine (OSX 10.7.5), with an
> older GHC:
>
> $ ghc --version
> The Glorious Glasgow Haskell Compilation System, version 7.6.3
>
> Check out this ticket https://ghc.haskell.org/trac/ghc/ticket/7655
>
> Alex
>
> On 2014-10-17, at 11:46 AM, Erik Rantapaa wrote:
>
> Running ghci under OSX I am seeing the following behavior:
>
> Prelude> 2^750000
> {... lots of digits...}
>
> Prelude> 2^760000
> Segmentation Fault: 11
>
> Prelude> 2^770000
> Bus Error: 10
>
> and I'm curious why this happens.
>
> More details:
>
> $ ghci --version
> The Glorious Glasgow Haskell Compilation System, version 7.8.3
>
> I'm using the 64-bit version of the Haskell Platform (x86_64-darwin-7.8.3).
>
> _______________________________________________
> Haskell-Cafe mailing list
> Haskell-Cafe at haskell.org
> http://www.haskell.org/mailman/listinfo/haskell-cafe
>
>
>
> _______________________________________________
> Haskell-Cafe mailing list
> Haskell-Cafe at haskell.org
> http://www.haskell.org/mailman/listinfo/haskell-cafe
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.haskell.org/pipermail/haskell-cafe/attachments/20141017/03dfcc5f/attachment.html>
More information about the Haskell-Cafe
mailing list