** Changed in: gnome-control-center
       Status: New => Fix Released

-- 
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to glib2.0 in Ubuntu.
https://bugs.launchpad.net/bugs/2107542

Title:
  gnome-control-center crashes when opening the Wellbeing panel

Status in gnome-control-center:
  Fix Released
Status in glib2.0 package in Ubuntu:
  In Progress
Status in gnome-control-center package in Ubuntu:
  Won't Fix
Status in glib2.0 source package in Plucky:
  Triaged

Bug description:
  [ Impact ]

  gnome-control-center crashes when opening the Wellbeing panel after
  opening the Date & Time panel.

  SIGABRT in g_assertion_message() from g_assertion_message_expr() from
  allocate_duration_to_day() from allocate_duration_to_days()

  The crash is because glib2.0 is calling localtime_r() without first
  calling tzset(), meaning it may be reading stale timezone data.
  Eventually this causes an unexpected discrepancy in the date
  processing and triggers an assertion in gnome-control-center.

  
  [ Test Plan ]

  1. Open Settings (gnome-control-center)
  2. Navigate to System > Date & Time
  3. Navigate to Wellbeing
  4. Observe that the Wellbeing page opened and the app did not crash

  
  [ Where problems could occur ]

  glib2 is a core library used by most software in Ubuntu Desktop.
  Adding external function calls in a core library like glib2.0 must take 
multi-threading into consideration.
  We are adding a call to tzset() in a function that already calls 
localtime_r(). Both functions have the same thread-safety attributes "MT-Safe 
env locale", so we are not modifying the thread-safety of the caller function.

  
  [ Other info ]

  The Ubuntu Error Tracker has been receiving reports about a problem regarding 
gnome-control-center.  This problem was most recently seen with package version 
1:48.0-1ubuntu3, the problem page at 
https://errors.ubuntu.com/problem/bf69c6dfa0112f64cb2a7a02165e22928931c7f7 
contains more details, including versions of packages affected, stacktrace or 
traceback, and individual crash reports.
  If you do not have access to the Ubuntu Error Tracker and are a software 
developer, you can request it at http://forms.canonical.com/reports/.

To manage notifications about this bug go to:
https://bugs.launchpad.net/gnome-control-center/+bug/2107542/+subscriptions


-- 
Mailing list: https://launchpad.net/~touch-packages
Post to     : touch-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~touch-packages
More help   : https://help.launchpad.net/ListHelp

Reply via email to