Opened 15 months ago

Last modified 7 months ago

#7567 new bug

invalidateModSummaryCache throws exception if ms_hs_date is 0

Reported by: edsko Owned by:
Priority: high Milestone: 7.8.3
Component: Compiler Version: 7.6.1
Keywords: Cc:
Operating System: Unknown/Multiple Architecture: Unknown/Multiple
Type of failure: None/Unknown Difficulty: Unknown
Test Case: Blocked By:
Blocking: Related Tickets:

Description

It will try to subtract one, and the negative value will cause Time.toClockTime: invalid input to be thrown.

Change History (5)

comment:1 Changed 15 months ago by edsko

Note that this exception may or may not be thrown, depending on the timezone (Europe/Dublin? works fine for me, UTC or GMT do not, even though they come down to the same thing, at least in winter time).

comment:2 Changed 15 months ago by edsko

Incidentally, the exception is an error, so it is only thrown when ms_hs_date is forced (ModSummary? does not use strict fields).

comment:3 Changed 15 months ago by igloo

  • Difficulty set to Unknown
  • Milestone set to 7.8.1
  • Priority changed from normal to high

comment:4 Changed 7 months ago by bgamari

Is it not safe to assume that the users environment will be non-broken enough to have functional mtimes? Under what circumstances did this happen?

comment:5 Changed 7 months ago by edsko

Under circumstances where we manually set those mtimes (to work around http://ghc.haskell.org/trac/ghc/ticket/7473).

Note: See TracTickets for help on using tickets.