Device:
Linux
Operating System Version:
Arch Linux / NixOS
Spotify Version:
1.0.19.106
Description:
Spotify crashes with a segmentation fault when the environment variable GTK2_RC_FILES contains 10 or more paths.
To reproduce:
GTK2_RC_FILES=foo1:foo2:foo3:foo4:foo5:foo6:foo7:foo8:foo9:foo10 spotify
Workaround:
Have less than 10 paths in the variable.
Additional information:
Output (Arch Linux):
% GTK2_RC_FILES=foo1:foo2:foo3:foo4:foo5:foo6:foo7:foo8:foo9:foo10 spotify /usr/share/spotify/spotify: /usr/lib/libcurl.so.3: no version information available (required by /usr/share/spotify/spotify) /usr/share/spotify/spotify: /usr/lib/libssl.so.1.0.0: no version information available (required by /usr/share/spotify/spotify) /usr/share/spotify/spotify: /usr/lib/libcrypto.so.1.0.0: no version information available (required by /usr/share/spotify/spotify) /usr/bin/spotify: line 2: 4576 Segmentation fault (core dumped) LD_PRELOAD=libcurl.so.3 /usr/share/spotify/spotify "$@"
Backtrace (Arch Linux):
Program received signal SIGSEGV, Segmentation fault. 0x00007ffff3a30f87 in (anonymous namespace)::do_malloc(unsigned long) () from /usr/share/spotify/libcef.so (gdb) bt #0 0x00007ffff3a30f87 in (anonymous namespace)::do_malloc(unsigned long) () from /usr/share/spotify/libcef.so #1 0x00007ffff69f552b in tc_calloc () from /usr/share/spotify/libcef.so #2 0x00007ffff1464381 in g_malloc0 () from /usr/lib/libglib-2.0.so.0 #3 0x00007fffef551c77 in ?? () from /usr/lib/libgobject-2.0.so.0 #4 0x00007fffef5563a2 in g_type_register_static () from /usr/lib/libgobject-2.0.so.0 #5 0x00007fffef556735 in g_type_register_static_simple () from /usr/lib/libgobject-2.0.so.0 #6 0x00007ffff0b3e874 in gdk_display_manager_get_type () from /usr/lib/libgdk-x11-2.0.so.0 #7 0x00007ffff0b3e8b9 in gdk_display_manager_get () from /usr/lib/libgdk-x11-2.0.so.0 #8 0x00007ffff0f1b40b in ?? () from /usr/lib/libgtk-x11-2.0.so.0 #9 0x00007ffff0f01fa8 in ?? () from /usr/lib/libgtk-x11-2.0.so.0 #10 0x00007ffff1469b57 in g_option_context_parse () from /usr/lib/libglib-2.0.so.0 #11 0x00007ffff0f02598 in gtk_parse_args () from /usr/lib/libgtk-x11-2.0.so.0 #12 0x00007ffff0f02619 in gtk_init () from /usr/lib/libgtk-x11-2.0.so.0 #13 0x000000000054daef in ?? () #14 0x000000000054d739 in _start ()
Env: prod
Hey Luchrioh.
Thanks for reaching out to the Spotify Community.
We're marking this as "Not an Issue" right now, as we don't officially support Linux. But one of our Community members has posted this thread with some helpful info.
Don't hesitate to drop us a message if you ever need any help.