id,summary,reporter,owner,description,type,status,priority,milestone,component,version,resolution,keywords,cc,os,architecture,failure,difficulty,testcase,blockedby,blocking,related
6140,segfault in OS X GHCi when dealing with infinite integers,olf,,"GHCi happily reports the result of 1/0 to be ""Infinity"", but negating this value crashes. 
{{{
GHCi, version 6.10.4: http://www.haskell.org/ghc/  :? for help
Loading package ghc-prim ... linking ... done.
Loading package integer ... linking ... done.
Loading package base ... linking ... done.
Prelude> 1/0
Infinity
Prelude> negate (1/0)
-Segmentation fault: 11
}}}

Bug occurs on OS X 10.7.4, ghc installed via MacPorts. 
This seems to be either an OS-specific issue, or maybe solved in later versions of ghc, since on a linux box it is not reproducible: 

{{{
GHCi, version 6.12.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.
Loading package ffi-1.0 ... linking ... done.
Prelude> 1/0
Infinity
Prelude> negate (1/0)
-Infinity
}}}
",bug,closed,normal,,GHCi,6.10.4,worksforme,segfault NaN Infinity,,MacOS X,x86,Runtime crash,Unknown,,,,
