Slack for Linux Crash on Wayland


#1

Ahoy! I recently updated to the Slack for linux snap 3.2.1, and after update am unable to start slack. Starting slack from both the command line and the gnome runtime runs for about 10s, then results in a window manager crash and an interactive session logout (yikes!). This may be related to this other issue that seems to have cropped up at the same time: Wayland crash with Electron 2 Anyone else seeing this?

Here’s my system info:
fedora 28, up to date via DNF as of 6/13
window manager: mutter (wayland)

$ mutter --version
mutter 3.28.2
Copyright © 2001-2011 Havoc Pennington, Red Hat, Inc., and others
This is free software; see the source for copying conditions.
There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

kernel: linux 4.16.14

$ uname -r
4.16.14-300.fc28.x86_64

snap: 2.32.4

$ snap version
snap    2.32.4-1.fc28
snapd   2.32.4-1.fc28
series  16
fedora  28
kernel  4.16.14-300.fc28.x86_64

snap-core: 16-2.32.8

$ snap info core
name:      core
summary:   snapd runtime environment
publisher: canonical
contact:   snappy-canonical-storeaccount@canonical.com
license:   unknown
description: |
  The core runtime environment for snapd
type:      core
snap-id:   99T7MUlRhtI3U0QFgl5mXXESAiSwt776
tracking:  stable
refreshed: 2018-05-11T07:51:12-07:00
installed:   16-2.32.8              (4650) 90MB core
channels:                                  
  stable:    16-2.32.8              (4650) 90MB -
  candidate: 16-2.33                (4830) 91MB -
  beta:      16-2.33                (4830) 91MB -
  edge:      16-2.33+git786.e369763 (4860) 91MB -

Slack: 3.2.1 (classic), stable channel

$ snap info slack
name:      slack
summary:   Team communication for the 21st century.
publisher: slack
contact:   https://get.slack.help/hc/en-us
license:   unknown
description: |
  Caution: Slack for Linux is in beta. We’re still busy adding features and ironing out potential
  issues.
  
  Slack brings team communication and collaboration into one place so you can get more work done,
  whether you belong to a large enterprise or a small business. Check off your to-do list and move your
  projects forward by bringing the right people, conversations, tools, and information you need
  together. Slack is available on any device, so you can find and access your team and your work,
  whether you’re at your desk or on the go.
  
  Scientifically proven (or at least rumored) to make your working life simpler, more pleasant, and
  more productive. We hope you’ll give Slack a try.
  
  Stop by and learn more at: https://slack.com/
commands:
  - slack
snap-id:   JUJH91Ved74jd4ZgJCpzMBtYbPOzTlsD
tracking:  stable
refreshed: 2018-06-06T10:33:26-07:00
installed:   3.2.1 (7) 150MB classic
channels:              
  stable:    3.2.1 (7) 150MB classic
  candidate: ↑               
  beta:      ↑               
  edge:      3.2.1 (7) 150MB classic

journalctl output within 10s of the crash:

Jun 13 09:53:41 hackworth dbus-daemon[2160]: [session uid=1000 pid=2160] Activating service name='org.gnome.GConf' requested by ':1.95' (uid=1000 pid=8552 comm="/var/lib/snapd/snap/slack/7/usr/lib/slack/slack --" label="unconfined_u:unconfined_r:unconfi>
Jun 13 09:53:41 hackworth dbus-daemon[2160]: [session uid=1000 pid=2160] Successfully activated service 'org.gnome.GConf'
Jun 13 09:53:41 hackworth org.gnome.Shell.desktop[2199]: (EE)
Jun 13 09:53:41 hackworth org.gnome.Shell.desktop[2199]: (EE) Backtrace:
Jun 13 09:53:41 hackworth org.gnome.Shell.desktop[2199]: (EE) 0: /usr/bin/Xwayland (OsLookupColor+0x13d) [0x5921fd]
Jun 13 09:53:41 hackworth org.gnome.Shell.desktop[2199]: (EE) 1: /lib64/libpthread.so.0 (funlockfile+0x50) [0x7f257c0ad00f]
Jun 13 09:53:41 hackworth org.gnome.Shell.desktop[2199]: (EE) 2: /usr/lib64/dri/swrast_dri.so (__driDriverGetExtensions_virtio_gpu+0x1cfca4) [0x7f257519fe64]
Jun 13 09:53:41 hackworth org.gnome.Shell.desktop[2199]: (EE) 3: /usr/lib64/dri/swrast_dri.so (__driDriverGetExtensions_virtio_gpu+0x134e41) [0x7f257506a131]
Jun 13 09:53:41 hackworth org.gnome.Shell.desktop[2199]: (EE) 4: /usr/lib64/dri/swrast_dri.so (__driDriverGetExtensions_virtio_gpu+0xc2ed2) [0x7f2574f862b2]
Jun 13 09:53:41 hackworth org.gnome.Shell.desktop[2199]: (EE) 5: /usr/lib64/dri/swrast_dri.so (__driDriverGetExtensions_virtio_gpu+0xc2f12) [0x7f2574f86352]
Jun 13 09:53:41 hackworth org.gnome.Shell.desktop[2199]: (EE) 6: /usr/lib64/dri/swrast_dri.so (__driDriverGetExtensions_virtio_gpu+0xc2fb9) [0x7f2574f86429]
Jun 13 09:53:41 hackworth org.gnome.Shell.desktop[2199]: (EE) 7: /usr/lib64/dri/swrast_dri.so (__driDriverGetExtensions_virtio_gpu+0x2fcb6) [0x7f2574e5fe36]
Jun 13 09:53:41 hackworth org.gnome.Shell.desktop[2199]: (EE) 8: /usr/lib64/dri/swrast_dri.so (__driDriverGetExtensions_virtio_gpu+0x1dca6d) [0x7f25751b983d]
Jun 13 09:53:41 hackworth org.gnome.Shell.desktop[2199]: (EE) 9: /usr/lib64/dri/swrast_dri.so (__driDriverGetExtensions_virtio_gpu+0x36089d) [0x7f25754c162d]
Jun 13 09:53:41 hackworth org.gnome.Shell.desktop[2199]: (EE) 10: /usr/lib64/dri/swrast_dri.so (__driDriverGetExtensions_virtio_gpu+0x35f817) [0x7f25754bf557]
Jun 13 09:53:41 hackworth org.gnome.Shell.desktop[2199]: (EE) 11: /usr/bin/Xwayland (ht_dump_contents+0x7d8d) [0x4b6b2d]
Jun 13 09:53:41 hackworth org.gnome.Shell.desktop[2199]: (EE) 12: /usr/bin/Xwayland (ht_dump_contents+0x6de9) [0x4b4b59]
Jun 13 09:53:41 hackworth org.gnome.Shell.desktop[2199]: (EE) 13: /usr/bin/Xwayland (RegisterResourceName+0x23d) [0x57dccd]
Jun 13 09:53:41 hackworth org.gnome.Shell.desktop[2199]: (EE) 14: /usr/bin/Xwayland (GlxSetVisualConfigs+0x3257) [0x4b5cc7]
Jun 13 09:53:41 hackworth org.gnome.Shell.desktop[2199]: (EE) 15: /usr/bin/Xwayland (ht_dump_contents+0x7020) [0x4b4fb0]
Jun 13 09:53:41 hackworth org.gnome.Shell.desktop[2199]: (EE) 16: /usr/bin/Xwayland (SendErrorToClient+0x35e) [0x55893e]
Jun 13 09:53:41 hackworth org.gnome.Shell.desktop[2199]: (EE) 17: /usr/bin/Xwayland (InitFonts+0x416) [0x55c9d6]
Jun 13 09:53:41 hackworth org.gnome.Shell.desktop[2199]: (EE) 18: /lib64/libc.so.6 (__libc_start_main+0xeb) [0x7f257bcff18b]
Jun 13 09:53:41 hackworth org.gnome.Shell.desktop[2199]: (EE) 19: /usr/bin/Xwayland (_start+0x2a) [0x42199a]
Jun 13 09:53:41 hackworth org.gnome.Shell.desktop[2199]: (EE)
Jun 13 09:53:41 hackworth org.gnome.Shell.desktop[2199]: (EE) Segmentation fault at address 0x68
Jun 13 09:53:41 hackworth org.gnome.Shell.desktop[2199]: (EE)
Jun 13 09:53:41 hackworth org.gnome.Shell.desktop[2199]: Fatal server error:
Jun 13 09:53:41 hackworth org.gnome.Shell.desktop[2199]: (EE) Caught signal 11 (Segmentation fault). Server aborting
Jun 13 09:53:41 hackworth org.gnome.Shell.desktop[2199]: (EE)
Jun 13 09:53:41 hackworth audit[2293]: ANOM_ABEND auid=1000 uid=1000 gid=1000 ses=2 subj=unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023 pid=2293 comm="Xwayland" exe="/usr/bin/Xwayland" sig=6 res=1
Jun 13 09:53:41 hackworth systemd[1]: Created slice system-systemd\x2dcoredump.slice.
Jun 13 09:53:41 hackworth systemd[1]: Started Process Core Dump (PID 8599/UID 0).

Wayland crash with Electron 2
#2

Anyone else seeing this?

Same issue here on Fedora 28 recently updated.
Had to remove the installed version of Slack from snapcraft and installing the rpm package :frowning:

Edit: my log, for reference

Jun 11 19:06:16 WAPPA600-PC dbus-daemon[2975]: [session uid=1000 pid=2975] Activating via systemd: service name='org.gtk.vfs.Metadata' unit='gvfs-metadata.service' requested by ':1.63' (uid=1000 pid=3534 comm="/usr/libexec/tracker-extract " label="unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023")
Jun 11 19:06:16 WAPPA600-PC systemd[2799]: Starting Virtual filesystem metadata service...
Jun 11 19:06:16 WAPPA600-PC dbus-daemon[2975]: [session uid=1000 pid=2975] Successfully activated service 'org.gtk.vfs.Metadata'
Jun 11 19:06:16 WAPPA600-PC systemd[2799]: Started Virtual filesystem metadata service.
Jun 11 19:06:20 WAPPA600-PC org.gnome.Shell.desktop[3029]: (EE)
Jun 11 19:06:20 WAPPA600-PC org.gnome.Shell.desktop[3029]: (EE) Backtrace:
Jun 11 19:06:20 WAPPA600-PC org.gnome.Shell.desktop[3029]: (EE) 0: /usr/bin/Xwayland (OsLookupColor+0x13d) [0x5921fd]
Jun 11 19:06:20 WAPPA600-PC org.gnome.Shell.desktop[3029]: (EE) 1: /lib64/libpthread.so.0 (funlockfile+0x50) [0x7f2bbdb2700f]
Jun 11 19:06:20 WAPPA600-PC org.gnome.Shell.desktop[3029]: (EE) 2: /usr/lib64/dri/swrast_dri.so (__driDriverGetExtensions_virtio_gpu+0x1cfca4) [0x7f2bb6c19e64]
Jun 11 19:06:20 WAPPA600-PC org.gnome.Shell.desktop[3029]: (EE) 3: /usr/lib64/dri/swrast_dri.so (__driDriverGetExtensions_virtio_gpu+0x134e41) [0x7f2bb6ae4131]
Jun 11 19:06:20 WAPPA600-PC org.gnome.Shell.desktop[3029]: (EE) 4: /usr/lib64/dri/swrast_dri.so (__driDriverGetExtensions_virtio_gpu+0xc2ed2) [0x7f2bb6a002b2]
Jun 11 19:06:20 WAPPA600-PC org.gnome.Shell.desktop[3029]: (EE) 5: /usr/lib64/dri/swrast_dri.so (__driDriverGetExtensions_virtio_gpu+0xc2f12) [0x7f2bb6a00352]
Jun 11 19:06:20 WAPPA600-PC org.gnome.Shell.desktop[3029]: (EE) 6: /usr/lib64/dri/swrast_dri.so (__driDriverGetExtensions_virtio_gpu+0xc2fb9) [0x7f2bb6a00429]
Jun 11 19:06:20 WAPPA600-PC org.gnome.Shell.desktop[3029]: (EE) 7: /usr/lib64/dri/swrast_dri.so (__driDriverGetExtensions_virtio_gpu+0x2fcb6) [0x7f2bb68d9e36]
Jun 11 19:06:20 WAPPA600-PC org.gnome.Shell.desktop[3029]: (EE) 8: /usr/lib64/dri/swrast_dri.so (__driDriverGetExtensions_virtio_gpu+0x1dca6d) [0x7f2bb6c3383d]
Jun 11 19:06:20 WAPPA600-PC org.gnome.Shell.desktop[3029]: (EE) 9: /usr/lib64/dri/swrast_dri.so (__driDriverGetExtensions_virtio_gpu+0x36089d) [0x7f2bb6f3b62d]
Jun 11 19:06:20 WAPPA600-PC org.gnome.Shell.desktop[3029]: (EE) 10: /usr/lib64/dri/swrast_dri.so (__driDriverGetExtensions_virtio_gpu+0x35f817) [0x7f2bb6f39557]
Jun 11 19:06:20 WAPPA600-PC org.gnome.Shell.desktop[3029]: (EE) 11: /usr/bin/Xwayland (ht_dump_contents+0x7d8d) [0x4b6b2d]
Jun 11 19:06:20 WAPPA600-PC org.gnome.Shell.desktop[3029]: (EE) 12: /usr/bin/Xwayland (ht_dump_contents+0x6de9) [0x4b4b59]
Jun 11 19:06:20 WAPPA600-PC org.gnome.Shell.desktop[3029]: (EE) 13: /usr/bin/Xwayland (RegisterResourceName+0x23d) [0x57dccd]
Jun 11 19:06:20 WAPPA600-PC org.gnome.Shell.desktop[3029]: (EE) 14: /usr/bin/Xwayland (GlxSetVisualConfigs+0x3257) [0x4b5cc7]
Jun 11 19:06:20 WAPPA600-PC org.gnome.Shell.desktop[3029]: (EE) 15: /usr/bin/Xwayland (ht_dump_contents+0x7020) [0x4b4fb0]
Jun 11 19:06:20 WAPPA600-PC org.gnome.Shell.desktop[3029]: (EE) 16: /usr/bin/Xwayland (SendErrorToClient+0x35e) [0x55893e]
Jun 11 19:06:20 WAPPA600-PC org.gnome.Shell.desktop[3029]: (EE) 17: /usr/bin/Xwayland (InitFonts+0x416) [0x55c9d6]
Jun 11 19:06:20 WAPPA600-PC org.gnome.Shell.desktop[3029]: (EE) 18: /lib64/libc.so.6 (__libc_start_main+0xeb) [0x7f2bbd77918b]
Jun 11 19:06:20 WAPPA600-PC org.gnome.Shell.desktop[3029]: (EE) 19: /usr/bin/Xwayland (_start+0x2a) [0x42199a]
Jun 11 19:06:20 WAPPA600-PC org.gnome.Shell.desktop[3029]: (EE)
Jun 11 19:06:20 WAPPA600-PC org.gnome.Shell.desktop[3029]: (EE) Segmentation fault at address 0x68
Jun 11 19:06:20 WAPPA600-PC org.gnome.Shell.desktop[3029]: (EE)
Jun 11 19:06:20 WAPPA600-PC org.gnome.Shell.desktop[3029]: Fatal server error:
Jun 11 19:06:20 WAPPA600-PC org.gnome.Shell.desktop[3029]: (EE) Caught signal 11 (Segmentation fault). Server aborting
Jun 11 19:06:20 WAPPA600-PC org.gnome.Shell.desktop[3029]: (EE)
Jun 11 19:06:20 WAPPA600-PC audit[3113]: ANOM_ABEND auid=1000 uid=1000 gid=1000 ses=4 subj=unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023 pid=3113 comm="Xwayland" exe="/usr/bin/Xwayland" sig=6 res=1
Jun 11 19:06:20 WAPPA600-PC systemd[1]: Created slice system-systemd\x2dcoredump.slice.
Jun 11 19:06:20 WAPPA600-PC systemd[1]: Started Process Core Dump (PID 4412/UID 0).

I’m not running on a VM.


#3

The backtrace looks interesting. I’m not sure it’s ok that swrast is used. I would expect it to use one of the real drivers, unless I’m missing something. Is this running in a VM?


#4

Another data point, I cannot reproduce the crash on Arch running on Thinkpad x220 host.


#5

No, I’m running native on a Dell Latitude e7470.


#6

I tried this on F27 fully updated system and was not able to reproduced the problem. Since I had to upgrade to F28 anyway, tried it again after the upgrade. This time the problem reproduced, same backtrace.

There’s a bug report already: https://bugzilla.redhat.com/show_bug.cgi?id=1577269 It does not seem to be specific to snaps.

On Arch with Xwayland 1.20 the problem does not appear, but then I do not have the 1.19 package (Fedora version is xorg-x11-server-Xwayland-1.19.6-8.fc28) so I can’t test there.