Spotify core dump on Arch and Manjaro

The problem was reported earlier this week, but somehow never got to the forum. There’s a problem with spotify snap on Arch and Manjaro, version 1.1.26.501.gbe11e53b-15. The app dumps core during startup.

I’ve tried to assemble some information from the backtrace:

   Signal: 5 (TRAP)
     Timestamp: Sun 2020-02-23 18:55:26 CET (11min ago)
  Command Line: /snap/spotify/41/usr/share/spotify/spotify
    Executable: /snap/spotify/41/usr/share/spotify/spotify
 Control Group: /user.slice/user-1000.slice/user@1000.service/gnome-terminal-server.service
          Unit: user@1000.service
     User Unit: gnome-terminal-server.service
         Slice: user-1000.slice
     Owner UID: 1000 (maciek)
       Boot ID: ee80fe53039644fe95a50e250221b3bf
    Machine ID: 9152da7600c94619af668cc8f273730c
      Hostname: galeon
       Storage: /var/lib/systemd/coredump/core.spotify.1000.ee80fe53039644fe95a50e250221b3bf.5614.1582480526000000000000.lz4
       Message: Process 5614 (spotify) of user 1000 dumped core.
                
                Stack trace of thread 5614:
                #0  0x00007f171df5d742 n/a (libcef.so + 0x46fc742)
                #1  0x00007f171df46cae n/a (libcef.so + 0x46e5cae)
                #2  0x00007f171df4a050 n/a (libcef.so + 0x46e9050)
                #3  0x00007f171df49f3e n/a (libcef.so + 0x46e8f3e)
                #4  0x00007f171df65332 n/a (libcef.so + 0x4704332)
                #5  0x00007f171df6b14e n/a (libcef.so + 0x470a14e)
                #6  0x00007f171df60cff n/a (libcef.so + 0x46ffcff)
                #7  0x00007f171f58b9ed n/a (libcef.so + 0x5d2a9ed)
                #8  0x00007f171f58b947 n/a (libcef.so + 0x5d2a947)
                #9  0x00007f171f5a385f n/a (libcef.so + 0x5d4285f)
                #10 0x00007f171f5980ee n/a (libcef.so + 0x5d370ee)
                #11 0x00007f171f57a9ab n/a (libcef.so + 0x5d199ab)
                #12 0x00007f171d2ee04c n/a (libcef.so + 0x3a8d04c)
                #13 0x00007f171d2e9f48 n/a (libcef.so + 0x3a88f48)
                #14 0x00007f171d21885a n/a (libcef.so + 0x39b785a)
                #15 0x00007f171d2181e6 n/a (libcef.so + 0x39b71e6)
                #16 0x00007f171d217bb1 n/a (libcef.so + 0x39b6bb1)
                #17 0x00007f171d217586 n/a (libcef.so + 0x39b6586)
                #18 0x00007f171d353fa0 n/a (libcef.so + 0x3af2fa0)
                #19 0x00007f171d3649fe n/a (libcef.so + 0x3b039fe)
                #20 0x00007f171d3647e7 n/a (libcef.so + 0x3b037e7)
                #21 0x00007f171d3229b7 n/a (libcef.so + 0x3ac19b7)
                #22 0x00007f17185e5417 g_main_context_dispatch (libglib-2.0.so.0 + 0x4c417)
                #23 0x00007f17185e5650 n/a (libglib-2.0.so.0 + 0x4c650)
                #24 0x00007f17185e56dc g_main_context_iteration (libglib-2.0.so.0 + 0x4c6dc)
                #25 0x00007f171d322822 n/a (libcef.so + 0x3ac1822)
                #26 0x00007f171d3652ef n/a (libcef.so + 0x3b042ef)
                #27 0x00007f171d33d527 n/a (libcef.so + 0x3adc527)
                #28 0x00007f171d230ef0 n/a (libcef.so + 0x39cfef0)
                #29 0x0000000001ccdc9b n/a (spotify + 0x1acdc9b)
                #30 0x00007f1715df7b97 n/a (/lib/x86_64-linux-gnu/libc-2.27.so + 0x21b97)

From gdb after setting sysroot to core18/current and adding locations from the spotify snap to solib-search-path:

(gdb) info threads
  Id   Target Id         Frame 
* 1    LWP 5614          0x00007f171df5d742 in ?? () from /var/lib/snapd/snap/spotify/41/usr/share/spotify/libcef.so
  2    LWP 5791          0x00007f17194329f3 in pthread_cond_wait@@GLIBC_2.3.2 () from /snap/core18/current/lib/x86_64-linux-gnu/libpthread.so.0
  3    LWP 5775          0x00007f1715ef7bb7 in epoll_wait () from /snap/core18/current/lib/x86_64-linux-gnu/libc.so.6
  4    LWP 5776          0x00007f1719432ed9 in pthread_cond_timedwait@@GLIBC_2.3.2 () from /snap/core18/current/lib/x86_64-linux-gnu/libpthread.so.0
  5    LWP 5795          0x00007f1715ef1839 in syscall () from /snap/core18/current/lib/x86_64-linux-gnu/libc.so.6
  6    LWP 5777          0x00007f1715ef7bb7 in epoll_wait () from /snap/core18/current/lib/x86_64-linux-gnu/libc.so.6
  7    LWP 5783          0x00007f17194329f3 in pthread_cond_wait@@GLIBC_2.3.2 () from /snap/core18/current/lib/x86_64-linux-gnu/libpthread.so.0
  8    LWP 5785          0x00007f17194329f3 in pthread_cond_wait@@GLIBC_2.3.2 () from /snap/core18/current/lib/x86_64-linux-gnu/libpthread.so.0
  9    LWP 5782          0x00007f1719432ed9 in pthread_cond_timedwait@@GLIBC_2.3.2 () from /snap/core18/current/lib/x86_64-linux-gnu/libpthread.so.0
  10   LWP 5787          0x00007f171b119e0d in ?? () from /var/lib/snapd/snap/spotify/41/usr/share/spotify/libcef.so
  11   LWP 5772          0x00007f1715eeabf9 in poll () from /snap/core18/current/lib/x86_64-linux-gnu/libc.so.6
  12   LWP 5779          0x00007f1719432ed9 in pthread_cond_timedwait@@GLIBC_2.3.2 () from /snap/core18/current/lib/x86_64-linux-gnu/libpthread.so.0
  13   LWP 5780          0x00007f1719432ed9 in pthread_cond_timedwait@@GLIBC_2.3.2 () from /snap/core18/current/lib/x86_64-linux-gnu/libpthread.so.0
  14   LWP 5778          0x00007f1719432ed9 in pthread_cond_timedwait@@GLIBC_2.3.2 () from /snap/core18/current/lib/x86_64-linux-gnu/libpthread.so.0
  15   LWP 5792          0x00007f1715eeabf9 in poll () from /snap/core18/current/lib/x86_64-linux-gnu/libc.so.6
  16   LWP 5788          0x00007f1715ef7bb7 in epoll_wait () from /snap/core18/current/lib/x86_64-linux-gnu/libc.so.6
  17   LWP 5794          0x00007f1715eeabf9 in poll () from /snap/core18/current/lib/x86_64-linux-gnu/libc.so.6
  18   LWP 5781          0x00007f1715eeabf9 in poll () from /snap/core18/current/lib/x86_64-linux-gnu/libc.so.6
  19   LWP 5784          0x00007f17194329f3 in pthread_cond_wait@@GLIBC_2.3.2 () from /snap/core18/current/lib/x86_64-linux-gnu/libpthread.so.0
  20   LWP 5790          0x00007f1715eeabf9 in poll () from /snap/core18/current/lib/x86_64-linux-gnu/libc.so.6
  21   LWP 5793          0x00007f1715eeabf9 in poll () from /snap/core18/current/lib/x86_64-linux-gnu/libc.so.6
  22   LWP 5789          0x00007f17194329f3 in pthread_cond_wait@@GLIBC_2.3.2 () from /snap/core18/current/lib/x86_64-linux-gnu/libpthread.so.0
(gdb) bt
#0  0x00007f171df5d742 in ?? () from /var/lib/snapd/snap/spotify/41/usr/share/spotify/libcef.so
#1  0x00007ffcf128c950 in ?? ()
#2  0x0000000004eae580 in ?? ()
#3  0x00007ffcf128c940 in ?? ()
#4  0x00007f171df46cae in ?? () from /var/lib/snapd/snap/spotify/41/usr/share/spotify/libcef.so
#5  0x0000000004eae580 in ?? ()
#6  0x00007ffcf128c950 in ?? ()
#7  0x00007ffcf128c970 in ?? ()
#8  0x00007f171df4a050 in ?? () from /var/lib/snapd/snap/spotify/41/usr/share/spotify/libcef.so
#9  0x0000000000000000 in ?? ()

The problem was reported to Spotify forums: https://community.spotify.com/t5/Desktop-Linux/Spotify-Snap-randomly-stopped-working/td-p/4901987 There are also threads in distro forums:

From investigation during the week, the problem does not appear on Fedora, openSUSE or Ubuntu.

Flatpak is currently at the same version, and it seems to work locally. I’ve tried running it directly from the snap, and it works too. Could there be something weird that we do?