[GHC] #4867: ghci displays negative floats incorrectly (was: Incorrect result from trig functions)

GHC cvs-ghc at haskell.org
Thu Feb 10 15:14:38 CET 2011


#4867: ghci displays negative floats incorrectly (was: Incorrect result from trig
functions)
-------------------------------+--------------------------------------------
    Reporter:  gwright         |        Owner:  gwright                    
        Type:  bug             |       Status:  new                        
    Priority:  high            |    Milestone:  7.0.2                      
   Component:  GHCi            |      Version:  7.0.1                      
    Keywords:                  |     Testcase:                             
   Blockedby:                  |   Difficulty:                             
          Os:  MacOS X         |     Blocking:                             
Architecture:  x86_64 (amd64)  |      Failure:  Incorrect result at runtime
-------------------------------+--------------------------------------------

Comment(by gwright):

 The attached patch fixes this bug.  Tested with a fresh pull of ghc-7.0
 branch on 8 Feb 2011.

 Here's testsuite_summary.txt:
 {{{
 OVERALL SUMMARY for test run started at Wed Feb  9 14:58:03 EST 2011
     2683 total tests, which gave rise to
    10035 test cases, of which
        0 caused framework failures
     7661 were skipped

     2246 expected passes
       91 expected failures
        0 unexpected passes
       37 unexpected failures

 Unexpected failures:
    1372(normal)
    1959(normal)
    2578(normal)
    3586(normal)
    4850(normal)
    MethSharing(normal)
    T1969(normal)
    T3007(normal)
    T3064(normal)
    T3294(normal)
    T3736(normal)
    T4059(normal)
    T4801(normal)
    bug1465(normal)
    cabal01(normal)
    cabal04(normal)
    conc070(ghci)
    derefnull(normal)
    driver062a(normal)
    driver062b(normal)
    driver062c(normal)
    driver062d(normal)
    driver062e(normal)
    driver081a(normal)
    driver081b(normal)
    gadt23(normal)
    ghciprog004(normal)
    hs-boot(normal)
    mod179(normal)
    outofmem(normal)
    prog003(ghci)
    recomp004(normal)
    rn.prog006(normal)
    rtsopts001(normal)
    rtsopts002(normal)
    space_leak_001(normal)
    withRtsOpts(normal)
 }}}

 It's mildly interesting how this bug made little difference in the number
 of failed tests.  Almost no `ghci` tests seem to print negative Doubles as
 their final answer.

 Another patch with the additional debug statements, comments and coding
 standard upgrades will be attached later.  This patch only corrects the
 relocation bug itself.

-- 
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/4867#comment:29>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler



More information about the Glasgow-haskell-bugs mailing list