[Mono-dev] Timers using Linux monotonic clock not system time

Craig McQueen craig.mcqueen at innerrange.com
Tue Aug 16 07:06:32 UTC 2016

I wrote:
> On an embedded Linux project, we found that Mono timers are disrupted by
> a system time change. If system time is set forwards, then timers fire too
> early. If system time is set backwards, then timers don't fire when they
> should. We found this is known bug #3025.
> https://bugzilla.xamarin.com/show_bug.cgi?id=3025
> So we're using the patch from that bug. But, can this patch please go into the
> main code? This bug seems to be a serious one as far as potential failure
> modes (yet hard to catch in testing because it is a corner-case), so an
> important one to fix.

I need to upgrade to Mono 4.4.0 to fix another issue I reported (SMTP with SSL/TLS and intermediate certificates). I see that Mono 4.4.0 is susceptible to timers failing when system time changes. But the patch I was using for Mono 4.2.1 doesn't apply for Mono 4.4.0. So I'll have to rework the patch.

I can provide an updated patch when I've figured it out. Would a patch be likely to be accepted for the mainline Mono code?

Craig McQueen

More information about the Mono-devel-list mailing list