** Description changed: + [ 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/.
-- You received this bug notification because you are a member of Ubuntu Desktop Bugs, which is subscribed to glib2.0 in Ubuntu. https://bugs.launchpad.net/bugs/2107542 Title: gnome-control-center crashes when opening the Wellbeing panel To manage notifications about this bug go to: https://bugs.launchpad.net/gnome-control-center/+bug/2107542/+subscriptions -- desktop-bugs mailing list desktop-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/desktop-bugs