[Haskell-cafe] segfault on fromIntegral (floor $ sqrt (-123.123)) == -123.123
Brandon Allbery
allbery.b at gmail.com
Mon Feb 24 19:48:05 UTC 2014
On Mon, Feb 24, 2014 at 2:46 PM, Erik Rantapaa <erantapaa at gmail.com> wrote:
> I'm getting a segfault on this expression entered into ghci:
>
> GHCi, version 7.6.3: http://www.haskell.org/ghc/ :? for help
> Loading package ghc-prim ... linking ... done.
> Loading package integer-gmp ... linking ... done.
> Loading package base ... linking ... done.
> Prelude> fromIntegral (floor $ sqrt (-123.123)) == -123.123
> Segmentation fault: 11
>
> I'm running the 32-bit version of the Haskell Platform on OSX.
>
Known bug with floating point on OS X. Not sure what the workaround is, but
known to be fixed in 7.8.1 (which is in release candidate stage).
--
brandon s allbery kf8nh sine nomine associates
allbery.b at gmail.com ballbery at sinenomine.net
unix, openafs, kerberos, infrastructure, xmonad http://sinenomine.net
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.haskell.org/pipermail/haskell-cafe/attachments/20140224/432dce6e/attachment.html>
More information about the Haskell-Cafe
mailing list