** Description changed:

+ [Impact]
+ 
+ This bug can cause systemd timers to lock up systems using the
+ Europe/Dublin timezone if certain OnCalendar values are used. If the
+ timer is enabled at boot, this bug prevents the system from booting. If
+ the timer is started later, systemd becomes unresponsive.
+ 
+ [Test Plan]
+ 
+ * Create a systemd service and corresponding timer scheduled for 01:00
+ on Sundays:
+ 
+ $ cat /etc/systemd/system/lp-1966800-reproducer.timer
+  [Unit]
+  Description=LP 1966800 reproducer
+ 
+  [Timer]
+  OnCalendar=Sun *-*-* 01:00:00
+  Persistent=true
+ 
+  [Install]
+  WantedBy=timers.target
+ 
+  $ cat /etc/systemd/system/lp-1966800-reproducer.service
+  [Service]
+  ExecStart=/usr/bin/echo "LP 1966800 reproducer"
+ 
+  $ systemctl daemon-reload
+ 
+ * Set the date to 21 March, 2021 in the Europe/Dublin timezone (need to
+ disable NTP first):
+ 
+  $ timedatectl set-ntp false
+  $ timedatectl set-time "2021-03-21"
+  $ timedatectl set-timezone Europe/Dublin
+ 
+ * Try to start the timer, and observe that systemd becomes unresponsive.
+ This command will time out, as will `systemctl status` etc.
+ 
+  $ systemctl start lp-1966800-reproducer.timer
+ 
+ [Where problems could occur]
+ 
+ The patch makes changes in the calendar spec code, which is used by
+ systemd timers to determine the next time to trigger a timer. If this
+ patch breaks something, it would be related to the triggering of systemd
+ timers.
+ 
+ [Original Description]
+ 
  Recently on systems in Ireland, systemd became unresponsive due the
  change from GMT to Irish Standard Time. This is due to Ireland being
  unique in having their standard time during the summer, unlike most
  regions.
  
  Related to: https://bugzilla.redhat.com/show_bug.cgi?id=1941335
  Fixed by: 
https://github.com/systemd/systemd-stable/commit/a8b66ca9af811148b67ee952ab32748f88b8bba3

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1966800

Title:
  systemd locks up due to incorrect handling of time zone changes

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/systemd/+bug/1966800/+subscriptions


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to