← Back to team overview

dx-packages team mailing list archive

[Bug 1873678] Re: gnome-language-selector crashed with dbus.exceptions.DBusException in call_blocking(): org.freedesktop.Accounts.Error.Failed: 'C.UTF-8' is not a valid locale name

 

I verified the test case using version 0.6.55-0ubuntu12~20.04.2 of
accountsservice, gir1.2-accountsservice-1.0 and libaccountsservice0 from
focal-proposed.

** Tags removed: verification-needed verification-needed-focal
** Tags added: verification-done verification-done-focal

-- 
You received this bug notification because you are a member of DX
Packages, which is subscribed to accountsservice in Ubuntu.
Matching subscriptions: dx-packages
https://bugs.launchpad.net/bugs/1873678

Title:
  gnome-language-selector crashed with dbus.exceptions.DBusException in
  call_blocking(): org.freedesktop.Accounts.Error.Failed: 'C.UTF-8' is
  not a valid locale name

Status in accountsservice package in Ubuntu:
  Fix Released
Status in accountsservice source package in Focal:
  Fix Committed

Bug description:
  [Impact]

  accountsservice includes a function for checking the validity of
  locales, and it incorrectly considers "C.UTF-8" to be invalid. It
  leads to incorrect behavior under certain conditions and also a crash
  if the function was triggered from language-selector-gnome.

  Even if this only makes a difference in special corner cases, it
  happens often enough to justify this SRU:

  https://errors.ubuntu.com/?release=Ubuntu%2020.04&package=language-
  selector&period=year

  (It's the top ranked crash type in the list.)

  The version in focal-proposed fixes the issue.

  [Test case]

  Make a fresh install of Ubuntu 20.04 (a VM works fine)

  Once logged in:

  * Install accountsservice, gir1.2-accountsservice-1.0 and
    libaccountsservice0 from focal-proposed

  * Open /etc/default/locale for editing, replace its contents with
    the single line:

    LANG=C.UTF-8

    and reboot.

  Open Language Support and change language (drag any language above
  the "English" item)

  Open ~/.pam_environment and find that e.g. LANG is now the locale
  representing the language you selected, while e.g. LC_TIME is set to
  "C.UTF-8".

  [Regression risk]

  This is a oneliner which white list "C.UTF-8" as a valid locale name.
  I can't think of a case where this would cause unexpected behavior.

  [Original description]

  USB live disk (20.04 beta)

  ProblemType: Crash
  DistroRelease: Ubuntu 20.04
  Package: language-selector-gnome 0.203
  ProcVersionSignature: Ubuntu 5.4.0-21.25-generic 5.4.27
  Uname: Linux 5.4.0-21-generic x86_64
  NonfreeKernelModules: zfs zunicode zavl icp zcommon znvpair
  ApportVersion: 2.20.11-0ubuntu22
  Architecture: amd64
  CasperVersion: 1.442
  CurrentDesktop: MATE
  Date: Sun Apr 19 17:07:26 2020
  ExecutablePath: /usr/bin/gnome-language-selector
  InterpreterPath: /usr/bin/python3.8
  LiveMediaBuild: Ubuntu-MATE 20.04 LTS "Focal Fossa" - Beta amd64 (20200402)
  PackageArchitecture: all
  ProcCmdline: /usr/bin/python3 /usr/bin/gnome-language-selector
  ProcEnviron:
   PATH=(custom, no user)
   XDG_RUNTIME_DIR=<set>
   LANG=C.UTF-8
   SHELL=/bin/bash
  Python3Details: /usr/bin/python3.8, Python 3.8.2, python3-minimal, 3.8.2-0ubuntu1
  PythonArgs: ['/usr/bin/gnome-language-selector']
  PythonDetails: N/A
  SourcePackage: language-selector
  Title: gnome-language-selector crashed with dbus.exceptions.DBusException in call_blocking(): org.freedesktop.Accounts.Error.Failed: 'C.UTF-8' is not a valid locale name
  UpgradeStatus: No upgrade log present (probably fresh install)
  UserGroups: adm cdrom dip lpadmin lxd plugdev sambashare sudo

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/accountsservice/+bug/1873678/+subscriptions