Opened 2 years ago

Last modified 6 weeks ago

#7567 new bug

invalidateModSummaryCache throws exception if ms_hs_date is 0

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

Description

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

Change History (9)

comment:1 Changed 2 years 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 2 years 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 2 years ago by igloo

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

comment:4 Changed 18 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 18 months ago by edsko

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

comment:6 Changed 9 months ago by thoughtpolice

  • Milestone changed from 7.8.3 to 7.8.4

Moving to 7.8.4.

comment:7 Changed 6 months ago by thoughtpolice

  • Owner set to thoughtpolice

comment:8 Changed 5 months ago by thoughtpolice

  • Milestone changed from 7.8.4 to 7.10.1

Moving (in bulk) to 7.10.4

comment:9 Changed 6 weeks ago by thoughtpolice

  • Milestone changed from 7.10.1 to 7.12.1

Moving to 7.12.1

Note: See TracTickets for help on using tickets.