[Bug 1858857] [NEW] gnome-calendar: Hits assert when timezone set to Etc/UTC

Launchpad Bug Tracker 1858857 at bugs.launchpad.net
Wed Feb 19 08:21:43 UTC 2020


You have been subscribed to a public bug by Ubuntu Foundations Team Bug Bot (crichton):

[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

** Affects: gnome-calendar (Ubuntu)
     Importance: Medium
     Assignee: Matthew Ruffell (mruffell)
         Status: Fix Committed

** Affects: gnome-calendar (Ubuntu Focal)
     Importance: Medium
     Assignee: Matthew Ruffell (mruffell)
         Status: Fix Committed


** Tags: amd64 apport-crash champagne focal patch
-- 
gnome-calendar: Hits assert when timezone set to Etc/UTC
https://bugs.launchpad.net/bugs/1858857
You received this bug notification because you are a member of Ubuntu Sponsors Team, which is subscribed to the bug report.



More information about the Ubuntu-sponsors mailing list