#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 answer to the misalignment is even simpler than I thought. For relocations that aren't external or through the global offset table, the displacement is the code should be left unchanged. I've corrected my change to `rts/Linker.c` to do this. These null fixups are a bit odd, but I guess they are they take care of some corner case. I've run the entire testsuite with my new patch and get 70 unexpected failures, 12 of which are `ghci` failures. I this is better than before, but not dramatically so. The reason that we're not seeing an impressive reduction in test failures is that the bad relocations were quite uncommon: only 50 relocations were non-external/non-GOT out of the approximately 210000 performed when `ghci` starts with with no files specified on the command line. Once the updated patch is applied, it's probably time to close this bug. -- Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/4867#comment:48> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler _______________________________________________ Glasgow-haskell-bugs mailing list Glasgow-haskell-bugs@haskell.org http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs