[Bug 1966800] Re: systemd locks up due to incorrect handling of time zone changes
Launchpad Bug Tracker
1966800 at bugs.launchpad.net
Thu Sep 22 09:15:24 UTC 2022
This bug was fixed in the package systemd - 245.4-4ubuntu3.18
---------------
systemd (245.4-4ubuntu3.18) focal; urgency=medium
[ Nick Rosbrook ]
* core: make sure we don't get confused when setting TERM for a tty fd
(LP: #1959475)
File: debian/patches/lp1959475-core-make-sure-we-don-t-get-confused-when-setting-TERM-fo.patch
https://git.launchpad.net/~ubuntu-core-dev/ubuntu/+source/systemd/commit/?id=b10c6853050dde26665caf3b15444d768d2bc498
* shared/calendarspec: when mktime() moves us backwards, jump forward
(LP: #1966800)
File: debian/patches/lp1966800-shared-calendarspec-when-mktime-moves-us-backwards-jump-f.patch
https://git.launchpad.net/~ubuntu-core-dev/ubuntu/+source/systemd/commit/?id=1f063541e44f6ff1a6904676d4264a2e49a09594
* network: do not remove localhost address (LP: #1979951)
File: debian/patches/lp1979951-network-do-not-remove-localhost-address.patch
https://git.launchpad.net/~ubuntu-core-dev/ubuntu/+source/systemd/commit/?id=87f872b8c5451f353601fb606e7fd7a479217cef
* units: remove the restart limit on the modprobe at .service (LP: #1982462)
File: debian/patches/lp1982462-units-remove-the-restart-limit-on-the-modprobe-.service.patch
https://git.launchpad.net/~ubuntu-core-dev/ubuntu/+source/systemd/commit/?id=68353ffaf3539e6a58ef62a8b50850f56eae29ea
[ Mustafa Kemal Gilor ]
* d/p/lp1978079-efi-pstore-not-cleared-on-boot.patch: pstore: Run after
modules are loaded. Thanks to Alexander Graf <graf at amazon.com>.
(LP: #1978079)
Author: Mustafa Kemal Gilor
File: debian/patches/lp1978079-efi-pstore-not-cleared-on-boot.patch
https://git.launchpad.net/~ubuntu-core-dev/ubuntu/+source/systemd/commit/?id=6e60756f2079d6408abdb967127a1d9b9a0eba8c
-- Nick Rosbrook <nick.rosbrook at canonical.com> Wed, 31 Aug 2022
11:27:33 -0400
** Changed in: systemd (Ubuntu Focal)
Status: Fix Committed => Fix Released
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to systemd in Ubuntu.
https://bugs.launchpad.net/bugs/1966800
Title:
systemd locks up due to incorrect handling of time zone changes
Status in systemd package in Ubuntu:
Fix Released
Status in systemd source package in Focal:
Fix Released
Status in systemd package in Fedora:
Unknown
Bug description:
[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
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/systemd/+bug/1966800/+subscriptions
More information about the foundations-bugs
mailing list