Opened 6 years ago

Closed 3 years ago

#25265 closed defect (wontfix)

ghc 6.10.4 seg fault in ghci when showing negative float

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

Description (last modified by macsforever2000@…)

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.

Attachments (1)

ghc_2010-06-15-225745_zomg.crash (3.6 KB) - added by ben@… 6 years ago.
Crash report

Download all attachments as: .zip

Change History (6)

comment:1 Changed 6 years ago by macsforever2000@…

  • Description modified (diff)
  • Owner changed from macports-tickets@… to gwright@…

comment:2 Changed 6 years ago by jmroot (Joshua Root)

Could you attach the crash report? That's always helpful when reporting a segfault-causing bug.

Changed 6 years ago by ben@…

Crash report

comment:3 Changed 6 years ago by gwright@…

  • Status changed from new to assigned

I'll see if this still happens with the upcoming 6.12.3 and 7.0.1.

comment:4 Changed 4 years ago by raimue (Rainer Müller)

  • Owner changed from gwright@… to macports-tickets@…

Port abandoned, #35561.

comment:5 Changed 3 years ago by neverpanic (Clemens Lang)

  • Resolution set to wontfix
  • Status changed from assigned to closed

This ticket is obsolete, since GHC has been updated since.

Note: See TracTickets for help on using tickets.