[Bug 1858857] Re: gnome-calendar: Hits assert when timezone set to Etc/UTC
Launchpad Bug Tracker
1858857 at bugs.launchpad.net
Wed Feb 19 10:13:30 UTC 2020
This bug was fixed in the package gnome-calendar - 3.34.2-1ubuntu1
---------------
gnome-calendar (3.34.2-1ubuntu1) focal; urgency=medium
* d/p/fall-back-to-UTC-when-timezone-is-unrecognized.patch:
- Fix a crash where the "Etc/UTC" timezone from Live CD
is not recongised by libical. (LP: #1858857)
-- Matthew Ruffell <matthew.ruffell at canonical.com> Wed, 19 Feb 2020
13:09:39 +1300
** Changed in: gnome-calendar (Ubuntu Focal)
Status: Fix Committed => Fix Released
--
You received this bug notification because you are a member of Ubuntu
Sponsors Team, which is subscribed to the bug report.
https://bugs.launchpad.net/bugs/1858857
Title:
gnome-calendar: Hits assert when timezone set to Etc/UTC
Status in gnome-calendar package in Ubuntu:
Fix Released
Status in gnome-calendar source package in Focal:
Fix Released
Bug description:
[Impact]
When the system timezone is set to Etc/UTC, most notably in the 20.04
Live CD environment, gnome-calendar fails to start, as it hits an
assert.
ERROR:../src/utils/gcal-date-time-utils.c:249:gcal_timezone_to_icaltimezone: assertion failed: (ical_tz != NULL)
Bail out! ERROR:../src/utils/gcal-date-time-utils.c:249:gcal_timezone_to_icaltimezone: assertion failed: (ical_tz != NULL)
Aborted (core dumped)
This is reproducible in focal with: gnome-calendar 3.34.2-1build1
This is NOT reproducible in eoan with: gnome-calendar 3.34.2-1
More seriously, this bug is triggered when a user presses the Super
key in the Live CD test environment and searches for an application,
as dbus will attempt to start the gnome-calendar service, and gnome-
calendar will crash due to this bug.
[Test Case]
Change system timezone to Etc/UTC and attempt to launch gnome-
calendar:
ubuntu at ubuntu:/var/log$ sudo timedatectl set-timezone Etc/UTC
ubuntu at ubuntu:/var/log$ timedatectl
Local time: Tue 2020-02-18 02:49:21 UTC
Universal time: Tue 2020-02-18 02:49:21 UTC
RTC time: Tue 2020-02-18 02:49:22
Time zone: Etc/UTC (UTC, +0000)
System clock synchronized: yes
NTP service: active
RTC in local TZ: no
ubuntu at ubuntu:/var/log$ gnome-calendar
**
ERROR:../src/utils/gcal-date-time-utils.c:249:gcal_timezone_to_icaltimezone: assertion failed: (ical_tz != NULL)
Bail out! ERROR:../src/utils/gcal-date-time-utils.c:249:gcal_timezone_to_icaltimezone: assertion failed: (ical_tz != NULL)
Aborted (core dumped)
[Regression Potential]
The risk of regression is low due to the assert being removed and
replaced with a default to UTC time if the previous timezone pointer
is NULL. This is also only going to the focal development release,
where any impact to real users will be low.
[Other Information]
There is an upstream issue open:
https://gitlab.gnome.org/GNOME/gnome-calendar/issues/485
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/gnome-calendar/+bug/1858857/+subscriptions
More information about the Ubuntu-sponsors
mailing list