Opened 14 years ago

Last modified 11 years ago

#25265 closed defect

ghc 6.10.4 seg fault in ghci when showing negative float — at Initial Version

Reported by: ben@… Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version: 1.9.0
Keywords: Cc:
Port: ghc

Description

On Snow Leopard, 64-bit, ghci will seg fault when attempting to show a negative float.

Example:

$ ghci 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> 0.5 0.5 Prelude> -0.5 -Segmentation fault

The seg fault does happen after the sign is displayed.

A file compiled by ghc does not display the same behavior. Given a file test.hs:

main = putStr $ show (-0.5)

And compiling with ghc --make test, the result will run normally.

Possibly related to tickets #24670, #24571.

Change History (0)

Note: See TracTickets for help on using tickets.