#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):

 Seems to be a bad relocation.  In load statement,
 {{{
         movsd  0x281b7c(%rip),%xmm7
 }}}
 the memory location at %rip + 0x281b7c is inside the `__text` section, not
 the `__const` section.  The register `$xmm7` is therefore loaded with 8
 bytes of machine code, not the expected constant data.  (This does explain
 why the results are repeatable; we're not loading from uninitialized
 memory.)

 I'm adding more debugging instruction so I can get a complete
 understanding of what the linker is doing.

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

_______________________________________________
Glasgow-haskell-bugs mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs

Reply via email to