[GHC] #5999: 2.54, 2.55
GHC
cvs-ghc at haskell.org
Thu Apr 12 01:11:12 CEST 2012
#5999: 2.54, 2.55
--------------------------+-------------------------------------------------
Reporter: luite | Owner:
Type: bug | Status: new
Priority: normal | Component: Compiler
Version: 7.4.1 | Keywords:
Os: MacOS X | Architecture: Unknown/Multiple
Failure: None/Unknown | Testcase:
Blockedby: | Blocking:
Related: |
--------------------------+-------------------------------------------------
The summary contains two separate test cases, GHC 7.4.1.20120406, looks
like it's a problem with handling of some literals
{{{
# ghci
GHCi, version 7.4.1.20120406: 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> 2.55
*** Exception: divide by zero
Prelude> 2.54
<< gets stuck in infinite lopp >>
}}}
Lots of other literals also have this problem. The infinite looping
version seems to get stuck determining the gcd, gdb backtrace gives this:
{{{
#0 0x000000010cebf042 in __gmpn_gcd_1 ()
#1 0x000000010ceb8d81 in integer_cmm_gcdIntzh ()
}}}
dtruss lots of these:
{{{
sigreturn(0x7FFF6E530220, 0x1E, 0x11104D5C0) = 0 Err#-2
sigreturn(0x7FFF6E530220, 0x1E, 0x7FFF6E530220) = 0 Err#-2
sigreturn(0x7FFF6E530220, 0x1E, 0x11104D5C0) = 0 Err#-2
sigreturn(0x7FFF6E530220, 0x1E, 0x7FFF6E530220) = 0 Err#-2
sigreturn(0x7FFF6E530220, 0x1E, 0x11104D5C0) = 0 Err#-2
sigreturn(0x7FFF6E530220, 0x1E, 0x7FFF6E530220) = 0 Err#-2
sigreturn(0x7FFF6E530220, 0x1E, 0x11104D5C0) = 0 Err#-2
}}}
The linux version doesn't seem to have this problem.
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/5999>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the Glasgow-haskell-bugs
mailing list