[GHC] #7567: invalidateModSummaryCache throws exception if ms_hs_date is 0

GHC ghc-devs at haskell.org
Wed Mar 25 12:19:17 UTC 2015


#7567: invalidateModSummaryCache throws exception if ms_hs_date is 0
-------------------------------------+-------------------------------------
        Reporter:  edsko             |                   Owner:
            Type:  bug               |  thoughtpolice
        Priority:  high              |                  Status:  infoneeded
       Component:  Compiler          |               Milestone:  7.12.1
      Resolution:                    |                 Version:  7.6.1
Operating System:  Unknown/Multiple  |                Keywords:
 Type of failure:  None/Unknown      |            Architecture:
      Blocked By:                    |  Unknown/Multiple
 Related Tickets:                    |               Test Case:
                                     |                Blocking:
                                     |  Differential Revisions:
-------------------------------------+-------------------------------------
Changes (by thomie):

 * status:  new => infoneeded


Comment:

 Edsko: I am having trouble reproducing your issue.

 The file `main/GHC.hs` uses `Data.Time` from the `time` package, and has
 so from the beginning. `Time.toClockTime` is a function from the `old-
 time` package, which GHC doesn't use. How can it throw an error?

 Also if I call `addUTCTime (-1)` on `UTCTime (ModifiedJulianDay 0)
 (secondsToDiffTime 0)`, and force its result, nothing bad happens. Can you
 give me instructions how to trigger the bug. Thanks.

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


More information about the ghc-tickets mailing list