-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
Closed
Labels
Description
By setting the date to sometime in 2038, we can make systemd getting stuck printing systemd[1]: Time has been changed over and over again.
Seems like timerfd the manager creates has always an event for us to execute. I am not sure if this is a problem specific to our 32 bit setup (kernel / libc / systemd) or a generic problem. Would be nice if someone else can test it on their 32 bit setup.
[root@axis-00408cecff49 /mnt/flash/root]2394# timedatectl
Local time: Mon 2015-01-19 04:15:27
Universal time: Mon 2015-01-19 04:15:27 UTC
RTC time: Mon 2015-01-19 04:15:27
Time zone: n/a (, +0000)
Network time on: n/a
NTP synchronized: no
RTC in local TZ: no
[root@axis-00408cecff49 /mnt/flash/root]2394# timedatectl set-time '2038-01-19 03:14'
[root@axis-00408cecff49 /mnt/flash/root]2394# timedatectl
Local time: Tue 2038-01-19 03:14:02
Universal time: Tue 2038-01-19 03:14:02 UTC
RTC time: Tue 2038-01-19 03:14:03
Time zone: n/a (, +0000)
Network time on: n/a
NTP synchronized: no
RTC in local TZ: no
[root@axis-00408cecff49 /mnt/flash/root]2394# timedatectl
Local time: Tue 2038-01-19 03:14:05
Universal time: Tue 2038-01-19 03:14:05 UTC
RTC time: Tue 2038-01-19 03:14:06
Time zone: n/a (, +0000)
Network time on: n/a
NTP synchronized: no
RTC in local TZ: no
[root@axis-00408cecff49 /mnt/flash/root]2394# timedatectl
Local time: Tue 1965-07-20 06:36:29
Universal time: Tue 1965-07-20 06:36:29 UTC
RTC time: Tue 1965-07-20 06:36:28
Time zone: n/a (, +0000)
Network time on: n/a
NTP synchronized: no
RTC in local TZ: no
Here PID1 prints systemd[1]: Time has been changed over and over again.
[ 3215.290409] systemd[1]: Time has been changed
[ 3215.293361] systemd[1]: Time has been changed
[ 3215.297541] systemd[1]: Time has been changed
[ 3215.306810] systemd[1]: Time has been changed
[ 3215.309365] systemd[1]: Time has been changed
[ 3215.314226] systemd[1]: Time has been changed
[ 3215.317302] systemd[1]: Time has been changed
[ 3215.319286] systemd[1]: Time has been changed
[ 3215.322474] systemd[1]: Time has been changed
[ 3215.325552] systemd[1]: Time has been changed
[ 3215.329174] systemd[1]: Time has been changed