Notice (2018-05-24): bugzilla.xamarin.com is now in
Please join us on
Visual Studio Developer Community and in the
Mono organizations on
GitHub to continue tracking issues. Bugzilla will remain
available for reference in read-only mode. We will continue to work
on open Bugzilla bugs, copy them to the new locations
as needed for follow-up, and add the new items under Related
Our sincere thanks to everyone who has contributed on this bug
tracker over the years. Thanks also for your understanding as we
make these adjustments and improvements for the future.
Please create a new report on
GitHub or Developer Community with
your current version information, steps to reproduce, and relevant error
messages or log files if you are hitting an issue that looks similar to
this resolved bug and you do not yet see a matching new report.
Created attachment 19489 [details]
minimal reproducing program
On Linux if Task.Delay is used and then the system clock is adjusted back in time, even slightly, then the application can no longer exit. The runtime will remain locked up, and the process must be forcibly killed.
Attached is a minimal reproducing program. To observe the issue, run the application on Linux. Confirm that you see "Tick.Tock." every second or so. Then change your system time back by some amount (several seconds or minutes is sufficient).
- Note that the program output then unexpectedly stops.
- Issue a keypress in the program's console. Note that the program outputs "Exiting...".
- At this point program's Main() has returned, however the runtime does not exit the process.
- The process must then be forcibly killed, **or** if you wait for the time to "catch back up" (that is, for system time to elapse forward by the amount that you adjusted it backward) then the process will finally exit on its own.
This issue does not occur in Windows with the MS .NET framework.
Mono JIT compiler version 4.8.0 (Stable 220.127.116.112/6f90ed1 Tue Jan 24 13:23:36 UTC 2017)
Copyright (C) 2002-2014 Novell, Inc, Xamarin Inc and Contributors. www.mono-project.com
LLVM: supported, not enabled.
I can confirm that this is resolved in Mono 5.2!