← Back to team overview

dx-packages team mailing list archive

[Bug 1843982] Re: Various programs crashed with SIGSEGV in g_str_hash() from g_hash_table_lookup() from update_user()

 

Looking at the syslog for the failed upgrade to accountsservice
0.6.55-0ubuntu12~20.04.1 with autologin enabled, I find that the first
failure appears at...

May 13 17:04:50 howarth-MacPro systemd[1]: Stopping Accounts Service...
May 13 17:04:50 howarth-MacPro systemd[1]: accounts-daemon.service: Succeeded.
May 13 17:04:50 howarth-MacPro systemd[1]: Stopped Accounts Service.
May 13 17:04:50 howarth-MacPro systemd[1]: Starting Accounts Service...
May 13 17:04:50 howarth-MacPro accounts-daemon[12151]: started daemon version 0.6.55
May 13 17:04:50 howarth-MacPro systemd[1]: Started Accounts Service.
May 13 17:04:50 howarth-MacPro kernel: [  311.779519] gsd-keyboard[2260]: segfault at 0 ip 00007f330b6b1494 sp 00007ffed49c6f88 error 4 in libglib-2.0.so.0.6400.2[7f330b68d000+84000]
May 13 17:04:50 howarth-MacPro kernel: [  311.779530] Code: f8 5b 5d c3 66 90 f3 0f 1e fa 48 83 ec 08 e8 a3 cf fd ff 85 c0 0f 94 c0 48 83 c4 08 0f b6 c0 c3 66 0f 1f 44 00 00 f3 0f 1e fa <
0f> be 07 41 b8 05 15 00 00 84 c0 74 1d 0f 1f 80 00 00 00 00 44 89
May 13 17:04:50 howarth-MacPro kernel: [  311.779639] gdm3[1405]: segfault at 0 ip 00007f719bbe3494 sp 00007ffc4861af48 error 4 in libglib-2.0.so.0.6400.2[7f719bbbf000+84000]
May 13 17:04:50 howarth-MacPro kernel: [  311.779650] Code: f8 5b 5d c3 66 90 f3 0f 1e fa 48 83 ec 08 e8 a3 cf fd ff 85 c0 0f 94 c0 48 83 c4 08 0f b6 c0 c3 66 0f 1f 44 00 00 f3 0f 1e fa <
0f> be 07 41 b8 05 15 00 00 84 c0 74 1d 0f 1f 80 00 00 00 00 44 89
May 13 17:04:50 howarth-MacPro kernel: [  311.779653] gdm-session-wor[1519]: segfault at 0 ip 00007f6a8d633494 sp 00007ffe7b13c2a8 error 4 in libglib-2.0.so.0.6400.2[7f6a8d60f000+84000]
May 13 17:04:50 howarth-MacPro kernel: [  311.779662] Code: f8 5b 5d c3 66 90 f3 0f 1e fa 48 83 ec 08 e8 a3 cf fd ff 85 c0 0f 94 c0 48 83 c4 08 0f b6 c0 c3 66 0f 1f 44 00 00 f3 0f 1e fa <
0f> be 07 41 b8 05 15 00 00 84 c0 74 1d 0f 1f 80 00 00 00 00 44 89
May 13 17:04:50 howarth-MacPro gnome-shell[1882]: GNOME Shell crashed with signal 11
May 13 17:04:50 howarth-MacPro gnome-shell[1882]: == Stack trace for context 0x55ed1ab076e0 ==
May 13 17:04:50 howarth-MacPro systemd[1534]: Stopped target GNOME Keyboard handling.
May 13 17:04:50 howarth-MacPro systemd[1534]: gsd-keyboard.service: Main process exited, code=dumped, status=11/SEGV
May 13 17:04:50 howarth-MacPro /usr/lib/gdm3/gdm-x-session[1562]: (II) modeset(0): Disabling kernel dirty updates, not required.
May 13 17:04:50 howarth-MacPro systemd[1534]: gsd-keyboard.service: Failed with result 'core-dump'.
May 13 17:04:50 howarth-MacPro systemd[1534]: Stopped GNOME Keyboard handling.
May 13 17:04:50 howarth-MacPro systemd[1534]: gsd-keyboard.service: Triggering OnFailure= dependencies.
May 13 17:04:50 howarth-MacPro systemd[1534]: Started GNOME Session Failed lockdown screen (user).
May 13 17:04:50 howarth-MacPro systemd[1534]: Reached target GNOME Session Failed.
May 13 17:04:50 howarth-MacPro systemd[1534]: Starting Notification regarding a crash report...
May 13 17:04:50 howarth-MacPro update-notifier-crash[12175]: /usr/bin/whoopsie
May 13 17:04:50 howarth-MacPro systemd[1534]: gnome-shell-x11.service: Main process exited, code=dumped, status=11/SEGV
May 13 17:04:50 howarth-MacPro systemd[1534]: gnome-shell-x11.service: Failed with result 'core-dump'.
May 13 17:04:50 howarth-MacPro systemd[1534]: gnome-shell-x11.service: Scheduled restart job, restart counter is at 1.
May 13 17:04:50 howarth-MacPro systemd[1534]: Stopped target GNOME X11 Session (session: ubuntu).
May 13 17:04:50 howarth-MacPro systemd[1534]: Stopping GNOME X11 Session (session: ubuntu).
May 13 17:04:50 howarth-MacPro systemd[1534]: Stopped target GNOME X11 Session.
May 13 17:04:50 howarth-MacPro systemd[1534]: Stopping GNOME X11 Session.
May 13 17:04:50 howarth-MacPro systemd[1534]: Stopped target GNOME Shell on X11.
May 13 17:04:50 howarth-MacPro systemd[1534]: Stopping GNOME Shell on X11.
May 13 17:04:50 howarth-MacPro systemd[1534]: Stopped GNOME Shell on X11.
May 13 17:04:50 howarth-MacPro systemd[1534]: Starting GNOME Shell on X11...
May 13 17:04:51 howarth-MacPro /usr/lib/gdm3/gdm-x-session[1562]: (II) modeset(0): EDID vendor "APP", prod id 37404
May 13 17:04:51 howarth-MacPro /usr/lib/gdm3/gdm-x-session[1562]: (II) modeset(0): Printing DDC gathered Modelines:
May 13 17:04:51 howarth-MacPro /usr/lib/gdm3/gdm-x-session[1562]: (II) modeset(0): Modeline "1920x1200"x0.0  154.00  1920 1968 2000 2080  1200 1203 1209 1235 +hsync -vsync (74.0 kHz eP)
May 13 17:04:51 howarth-MacPro update-notifier-crash[12190]: gdm-session-worker
May 13 17:04:51 howarth-MacPro update-notifier-crash[12190]: gdm3
May 13 17:04:51 howarth-MacPro gsd-media-keys[2262]: Failed to grab accelerators: GDBus.Error:org.freedesktop.DBus.Error.UnknownMethod: No such interface “org.gnome.Shell” on object at pa
th /org/gnome/Shell
May 13 17:04:51 howarth-MacPro systemd[1]: gdm.service: Main process exited, code=dumped, status=11/SEGV
May 13 17:04:51 howarth-MacPro systemd[1]: gdm.service: Failed with result 'core-dump'.
May 13 17:04:52 howarth-MacPro gnome-shell[12215]: current session already has an ibus-daemon.
May 13 17:04:52 howarth-MacPro gsd-media-keys[2262]: Failed to grab accelerators: GDBus.Error:org.freedesktop.DBus.Error.UnknownMethod: No such interface “org.gnome.Shell” on object at pa
th /org/gnome/Shell
May 13 17:04:52 howarth-MacPro systemd[1]: gdm.service: Scheduled restart job, restart counter is at 1.
May 13 17:04:52 howarth-MacPro systemd[1]: Stopped GNOME Display Manager.

-- 
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/1843982

Title:
  Various programs crashed with SIGSEGV in g_str_hash() from
  g_hash_table_lookup() from update_user()

Status in accountsservice:
  New
Status in accountsservice package in Ubuntu:
  Fix Released
Status in accountsservice source package in Focal:
  Fix Committed
Status in accountsservice package in Debian:
  Confirmed

Bug description:
  [ Description ]

  When accountsservice's daemon is restarted - particularly when there
  is a user configured for auto login - it can cause code using its
  library to crash. This is bad because gnome-shell is one of those
  users which crashes.

  [ QA ]

  Configure a user for automatic login in gnome-shell.

  Restart accounts-daemon.service (sudo systemctl restart accounts-
  daemon.service) a few times, leaving several seconds between each
  attempt.

  See that it crashes if you don't have this SRU, and doesn't if you do
  have it.

  ---

  Test that fast user switching still works properly.

  ---

  Take a look at the error reports listed below and hopefully see them
  not occurring (barring the usual noise) with the SRU.

  [ Regression potential ]

  We think this is safe - it tells clients that the daemon is away when
  it quits, and is back when it comes back. They should get appropriate
  signals to indicate this. Nevertheless, these signals are sent when
  they weren't before now, so that could cause problems. Watch out for
  errors creeping up with this SRU.

  We wondered upstream whether some more protections might be needed.
  I'm thinking that those should be *additional* safety rails around
  this fix, but it could actually be that more is needed and this fix
  isn't complete.

  [ Original report ]

  https://errors.ubuntu.com/problem/597be858df957473f357a9249b002b0e39f42781
  https://errors.ubuntu.com/problem/3a817938d76d231fdfc8f698392fbf5e3724084f
  https://errors.ubuntu.com/problem/3945cd9cdcec914cab9a3220d05e9696933336c7

  ProblemType: Crash
  DistroRelease: Ubuntu 19.10
  Package: gnome-shell 3.34.0-1ubuntu1
  ProcVersionSignature: Ubuntu 5.3.0-10.11-generic 5.3.0-rc8
  Uname: Linux 5.3.0-10-generic x86_64
  ApportVersion: 2.20.11-0ubuntu7
  Architecture: amd64
  CurrentDesktop: ubuntu:GNOME
  Date: Sat Sep 14 10:29:16 2019
  DisplayManager: gdm3
  ExecutablePath: /usr/bin/gnome-shell
  InstallationDate: Installed on 2019-05-24 (112 days ago)
  InstallationMedia: Ubuntu 19.10 "Eoan Ermine" - Alpha amd64 (20190523)
  ProcCmdline: /usr/bin/gnome-shell
  ProcEnviron:
   LANG=nb_NO.UTF-8
   LANGUAGE=nb_NO:nb:no_NO:no:nn_NO:nn:en
   PATH=(custom, no user)
   SHELL=/bin/bash
   XDG_RUNTIME_DIR=<set>
  RelatedPackageVersions: mutter-common 3.34.0-2ubuntu1
  Signal: 11
  SourcePackage: gnome-shell
  StacktraceTop:
   g_str_hash () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
   g_hash_table_lookup () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
   ?? () from /lib/x86_64-linux-gnu/libaccountsservice.so.0
   g_closure_invoke () from /lib/x86_64-linux-gnu/libgobject-2.0.so.0
   ?? () from /lib/x86_64-linux-gnu/libgobject-2.0.so.0
  Title: gnome-shell crashed with SIGSEGV in g_str_hash()
  UpgradeStatus: No upgrade log present (probably fresh install)
  UserGroups: adm cdrom dip lpadmin plugdev sambashare sudo
  separator:

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