Ticket #7449 (closed bug: duplicate)
Segmentation fault in floor function
The floor function crashes with a segmentation fault in GHCi with a negative, non-integer-valued, Double argument. It does not crash for any of the positive arguments or negative integer arguments I tried. It does not crash with a Float. It does not crash in compiled code.
To reproduce, run floor (-0.5) in GHCi.