Segmentation fault on Arch Linux with AMD Catalyst drivers #142

Closed
dom96 opened this Issue Dec 20, 2012 · 16 comments

6 participants

@dom96

When I try to run Steam I get the following output:

~ » steam                                                                   
Installing breakpad exception handler for appid(steam)/version(1355250651_client)
Looks like steam didn't shutdown cleanly, scheduling immediate update check
Installing breakpad exception handler for appid(steam)/version(1355250651_client)
Installing breakpad exception handler for appid(steam)/version(1355250651_client)
Installing breakpad exception handler for appid(steam)/version(1355250651_client)
Installing breakpad exception handler for appid(steam)/version(1355957371_client)
Installing breakpad exception handler for appid(steam)/version(1355957371_client)
unlinked 0 orphaned pipes
Installing breakpad exception handler for appid(steam)/version(1355957371_client)
Fontconfig warning: "/etc/fonts/conf.d/30-metric-aliases.conf", line 84: Having multiple <family> in <alias> isn't supported and may not work as expected
Fontconfig warning: "/etc/fonts/conf.d/30-metric-aliases.conf", line 84: Having multiple <family> in <alias> isn't supported and may not work as expected
Fontconfig warning: "/etc/fonts/conf.d/30-metric-aliases.conf", line 93: Having multiple <family> in <alias> isn't supported and may not work as expected
Fontconfig warning: "/etc/fonts/conf.d/30-metric-aliases.conf", line 93: Having multiple <family> in <alias> isn't supported and may not work as expected
Fontconfig warning: "/etc/fonts/conf.d/30-metric-aliases.conf", line 102: Having multiple <family> in <alias> isn't supported and may not work as expected
Fontconfig warning: "/etc/fonts/conf.d/30-metric-aliases.conf", line 102: Having multiple <family> in <alias> isn't supported and may not work as expected
Fontconfig warning: "/etc/fonts/conf.d/40-nonlatin.conf", line 34: Having multiple <family> in <alias> isn't supported and may not work as expected
Fontconfig warning: "/etc/fonts/conf.d/40-nonlatin.conf", line 34: Having multiple <family> in <alias> isn't supported and may not work as expected
Fontconfig warning: "/etc/fonts/conf.d/40-nonlatin.conf", line 34: Having multiple <family> in <alias> isn't supported and may not work as expected
Fontconfig warning: "/etc/fonts/conf.d/40-nonlatin.conf", line 34: Having multiple <family> in <alias> isn't supported and may not work as expected
Fontconfig warning: "/etc/fonts/conf.d/40-nonlatin.conf", line 34: Having multiple <family> in <alias> isn't supported and may not work as expected
Fontconfig warning: "/etc/fonts/conf.d/40-nonlatin.conf", line 34: Having multiple <family> in <alias> isn't supported and may not work as expected
Fontconfig warning: "/etc/fonts/conf.d/40-nonlatin.conf", line 34: Having multiple <family> in <alias> isn't supported and may not work as expected
Fontconfig warning: "/etc/fonts/conf.d/40-nonlatin.conf", line 34: Having multiple <family> in <alias> isn't supported and may not work as expected
Fontconfig warning: "/etc/fonts/conf.d/40-nonlatin.conf", line 34: Having multiple <family> in <alias> isn't supported and may not work as expected
Fontconfig warning: "/etc/fonts/conf.d/40-nonlatin.conf", line 34: Having multiple <family> in <alias> isn't supported and may not work as expected
Fontconfig warning: "/etc/fonts/conf.d/40-nonlatin.conf", line 34: Having multiple <family> in <alias> isn't supported and may not work as expected
Fontconfig warning: "/etc/fonts/conf.d/40-nonlatin.conf", line 34: Having multiple <family> in <alias> isn't supported and may not work as expected
Fontconfig warning: "/etc/fonts/conf.d/40-nonlatin.conf", line 34: Having multiple <family> in <alias> isn't supported and may not work as expected
Fontconfig warning: "/etc/fonts/conf.d/40-nonlatin.conf", line 34: Having multiple <family> in <alias> isn't supported and may not work as expected
Fontconfig warning: "/etc/fonts/conf.d/40-nonlatin.conf", line 34: Having multiple <family> in <alias> isn't supported and may not work as expected
Fontconfig warning: "/etc/fonts/conf.d/40-nonlatin.conf", line 34: Having multiple <family> in <alias> isn't supported and may not work as expected
Fontconfig warning: "/etc/fonts/conf.d/40-nonlatin.conf", line 34: Having multiple <family> in <alias> isn't supported and may not work as expected
Fontconfig warning: "/etc/fonts/conf.d/40-nonlatin.conf", line 34: Having multiple <family> in <alias> isn't supported and may not work as expected
Fontconfig warning: "/etc/fonts/conf.d/40-nonlatin.conf", line 34: Having multiple <family> in <alias> isn't supported and may not work as expected
Fontconfig warning: "/etc/fonts/conf.d/40-nonlatin.conf", line 63: Having multiple <family> in <alias> isn't supported and may not work as expected
Fontconfig warning: "/etc/fonts/conf.d/40-nonlatin.conf", line 63: Having multiple <family> in <alias> isn't supported and may not work as expected
Fontconfig warning: "/etc/fonts/conf.d/40-nonlatin.conf", line 63: Having multiple <family> in <alias> isn't supported and may not work as expected
Fontconfig warning: "/etc/fonts/conf.d/40-nonlatin.conf", line 63: Having multiple <family> in <alias> isn't supported and may not work as expected
Fontconfig warning: "/etc/fonts/conf.d/40-nonlatin.conf", line 63: Having multiple <family> in <alias> isn't supported and may not work as expected
Fontconfig warning: "/etc/fonts/conf.d/40-nonlatin.conf", line 63: Having multiple <family> in <alias> isn't supported and may not work as expected
Fontconfig warning: "/etc/fonts/conf.d/40-nonlatin.conf", line 63: Having multiple <family> in <alias> isn't supported and may not work as expected
Fontconfig warning: "/etc/fonts/conf.d/40-nonlatin.conf", line 63: Having multiple <family> in <alias> isn't supported and may not work as expected
Fontconfig warning: "/etc/fonts/conf.d/40-nonlatin.conf", line 63: Having multiple <family> in <alias> isn't supported and may not work as expected
Fontconfig warning: "/etc/fonts/conf.d/40-nonlatin.conf", line 63: Having multiple <family> in <alias> isn't supported and may not work as expected
Fontconfig warning: "/etc/fonts/conf.d/40-nonlatin.conf", line 63: Having multiple <family> in <alias> isn't supported and may not work as expected
Fontconfig warning: "/etc/fonts/conf.d/40-nonlatin.conf", line 63: Having multiple <family> in <alias> isn't supported and may not work as expected
Fontconfig warning: "/etc/fonts/conf.d/40-nonlatin.conf", line 63: Having multiple <family> in <alias> isn't supported and may not work as expected
Fontconfig warning: "/etc/fonts/conf.d/40-nonlatin.conf", line 63: Having multiple <family> in <alias> isn't supported and may not work as expected
Fontconfig warning: "/etc/fonts/conf.d/40-nonlatin.conf", line 63: Having multiple <family> in <alias> isn't supported and may not work as expected
Fontconfig warning: "/etc/fonts/conf.d/40-nonlatin.conf", line 63: Having multiple <family> in <alias> isn't supported and may not work as expected
Fontconfig warning: "/etc/fonts/conf.d/40-nonlatin.conf", line 63: Having multiple <family> in <alias> isn't supported and may not work as expected
Fontconfig warning: "/etc/fonts/conf.d/40-nonlatin.conf", line 63: Having multiple <family> in <alias> isn't supported and may not work as expected
Fontconfig warning: "/etc/fonts/conf.d/40-nonlatin.conf", line 63: Having multiple <family> in <alias> isn't supported and may not work as expected
Fontconfig warning: "/etc/fonts/conf.d/40-nonlatin.conf", line 63: Having multiple <family> in <alias> isn't supported and may not work as expected
Fontconfig warning: "/etc/fonts/conf.d/40-nonlatin.conf", line 63: Having multiple <family> in <alias> isn't supported and may not work as expected
Fontconfig warning: "/etc/fonts/conf.d/40-nonlatin.conf", line 63: Having multiple <family> in <alias> isn't supported and may not work as expected
Fontconfig warning: "/etc/fonts/conf.d/40-nonlatin.conf", line 73: Having multiple <family> in <alias> isn't supported and may not work as expected
Fontconfig warning: "/etc/fonts/conf.d/40-nonlatin.conf", line 73: Having multiple <family> in <alias> isn't supported and may not work as expected
Fontconfig warning: "/etc/fonts/conf.d/40-nonlatin.conf", line 73: Having multiple <family> in <alias> isn't supported and may not work as expected
Fontconfig warning: "/etc/fonts/conf.d/40-nonlatin.conf", line 84: Having multiple <family> in <alias> isn't supported and may not work as expected
Fontconfig warning: "/etc/fonts/conf.d/40-nonlatin.conf", line 84: Having multiple <family> in <alias> isn't supported and may not work as expected
Fontconfig warning: "/etc/fonts/conf.d/40-nonlatin.conf", line 84: Having multiple <family> in <alias> isn't supported and may not work as expected
Fontconfig warning: "/etc/fonts/conf.d/40-nonlatin.conf", line 93: Having multiple <family> in <alias> isn't supported and may not work as expected
Fontconfig warning: "/etc/fonts/conf.d/45-latin.conf", line 23: Having multiple <family> in <alias> isn't supported and may not work as expected
Fontconfig warning: "/etc/fonts/conf.d/45-latin.conf", line 23: Having multiple <family> in <alias> isn't supported and may not work as expected
Fontconfig warning: "/etc/fonts/conf.d/45-latin.conf", line 23: Having multiple <family> in <alias> isn't supported and may not work as expected
Fontconfig warning: "/etc/fonts/conf.d/45-latin.conf", line 23: Having multiple <family> in <alias> isn't supported and may not work as expected
Fontconfig warning: "/etc/fonts/conf.d/45-latin.conf", line 23: Having multiple <family> in <alias> isn't supported and may not work as expected
Fontconfig warning: "/etc/fonts/conf.d/45-latin.conf", line 23: Having multiple <family> in <alias> isn't supported and may not work as expected
Fontconfig warning: "/etc/fonts/conf.d/45-latin.conf", line 23: Having multiple <family> in <alias> isn't supported and may not work as expected
Fontconfig warning: "/etc/fonts/conf.d/45-latin.conf", line 23: Having multiple <family> in <alias> isn't supported and may not work as expected
Fontconfig warning: "/etc/fonts/conf.d/45-latin.conf", line 39: Having multiple <family> in <alias> isn't supported and may not work as expected
Fontconfig warning: "/etc/fonts/conf.d/45-latin.conf", line 39: Having multiple <family> in <alias> isn't supported and may not work as expected
Fontconfig warning: "/etc/fonts/conf.d/45-latin.conf", line 39: Having multiple <family> in <alias> isn't supported and may not work as expected
Fontconfig warning: "/etc/fonts/conf.d/45-latin.conf", line 39: Having multiple <family> in <alias> isn't supported and may not work as expected
Fontconfig warning: "/etc/fonts/conf.d/45-latin.conf", line 39: Having multiple <family> in <alias> isn't supported and may not work as expected
Fontconfig warning: "/etc/fonts/conf.d/45-latin.conf", line 39: Having multiple <family> in <alias> isn't supported and may not work as expected
Fontconfig warning: "/etc/fonts/conf.d/45-latin.conf", line 39: Having multiple <family> in <alias> isn't supported and may not work as expected
Fontconfig warning: "/etc/fonts/conf.d/45-latin.conf", line 39: Having multiple <family> in <alias> isn't supported and may not work as expected
Fontconfig warning: "/etc/fonts/conf.d/45-latin.conf", line 39: Having multiple <family> in <alias> isn't supported and may not work as expected
Fontconfig warning: "/etc/fonts/conf.d/45-latin.conf", line 56: Having multiple <family> in <alias> isn't supported and may not work as expected
Fontconfig warning: "/etc/fonts/conf.d/45-latin.conf", line 56: Having multiple <family> in <alias> isn't supported and may not work as expected
Fontconfig warning: "/etc/fonts/conf.d/45-latin.conf", line 56: Having multiple <family> in <alias> isn't supported and may not work as expected
Fontconfig warning: "/etc/fonts/conf.d/45-latin.conf", line 56: Having multiple <family> in <alias> isn't supported and may not work as expected
Fontconfig warning: "/etc/fonts/conf.d/45-latin.conf", line 56: Having multiple <family> in <alias> isn't supported and may not work as expected
Fontconfig warning: "/etc/fonts/conf.d/45-latin.conf", line 56: Having multiple <family> in <alias> isn't supported and may not work as expected
Fontconfig warning: "/etc/fonts/conf.d/45-latin.conf", line 56: Having multiple <family> in <alias> isn't supported and may not work as expected
Fontconfig warning: "/etc/fonts/conf.d/45-latin.conf", line 56: Having multiple <family> in <alias> isn't supported and may not work as expected
Fontconfig warning: "/etc/fonts/conf.d/45-latin.conf", line 56: Having multiple <family> in <alias> isn't supported and may not work as expected
Fontconfig warning: "/etc/fonts/conf.d/45-latin.conf", line 56: Having multiple <family> in <alias> isn't supported and may not work as expected
Fontconfig warning: "/etc/fonts/conf.d/45-latin.conf", line 66: Having multiple <family> in <alias> isn't supported and may not work as expected
Fontconfig warning: "/etc/fonts/conf.d/45-latin.conf", line 66: Having multiple <family> in <alias> isn't supported and may not work as expected
Fontconfig warning: "/etc/fonts/conf.d/45-latin.conf", line 66: Having multiple <family> in <alias> isn't supported and may not work as expected
Fontconfig warning: "/etc/fonts/conf.d/45-latin.conf", line 75: Having multiple <family> in <alias> isn't supported and may not work as expected
Fontconfig warning: "/etc/fonts/conf.d/45-latin.conf", line 75: Having multiple <family> in <alias> isn't supported and may not work as expected
Fontconfig warning: "/etc/fonts/conf.d/53-monospace-lcd-filter.conf", line 10: Having multiple values in <test> isn't supported and may not work as expected
Uploading dump (in-process) [proxy '']
/tmp/dumps/crash_20121220165258_1.dmp
success = yes
response:  CrashID=bp-5553d264-0d2f-40a1-81db-0b6752121220
/home/dom/Steam/steam.sh: line 287: 20500 Segmentation fault      (core dumped) $DEBUGGER "$STEAMROOT/$PLATFORM/$STEAMEXE" "$@"

I am using AMD Catalyst 12.11 Beta 11 drivers, installed as the 'catalyst-total' package from the AUR.

Using XFCE but the same crash occurs on Cinnamon.

Output of uname -a:

~ » uname -a                                                            
Linux EliteArch 3.6.10-1-ARCH #1 SMP PREEMPT Tue Dec 11 09:40:17 CET 2012 x86_64 GNU/Linux

Output of atisysteminfo script: https://gist.github.com/941899d7462ce55a0d26

My system specifications are:

  • AMD Phenom 9750 Quad Core 2.41GHz
  • Asus M2N32-SLI Motherboard
  • 2GB RAM
  • XFX AMD Radeon HD 7750 Black Edition
  • Two monitors, 1920x1080 and 1440x900

I hope that's enough info. Please fix this, I would really love to use Steam on Linux.

Here is a thread on the Steam community with the same problem: http://steamcommunity.com/app/221410/discussions/1/882966057159057048/?tscn=1355901883

@gtaylor

Works fine for me on Arch with the latest KDE and AMD Catalyst Beta drivers.

@scottlu

Faults on call to XCreateIC()

@Freso

@scottlu Any progress on this?

@dom96

Problem still occurs with Catalyst 13.1.

@scottlu scottlu was assigned Jan 31, 2013
@Tronil

I have the same issue here (segmentation fault in call to XCreateIC()) with an Nvidia Geforce GTX 560 (on Gentoo linux). So it is unlikely to be a driver related issue.

@Tronil

Looks like a NULL pointer is passed to XCreateIC which causes a segfault. My guess would be that a function call fails somewhere and returns NULL , which is passed on instead of being checked and acted upon.
Output from GDB:

Program received signal SIGSEGV, Segmentation fault.
0xf7eeab55 in XCreateIC () from /home/troels/.local/share/Steam/ubuntu12_32/steam-runtime/i386/usr/lib/i386-linux-gnu/libX11.so.6
(gdb) x/10i 0xf7eeab55-20
   0xf7eeab41 <XCreateIC+33>:   mov    0x28(%esp),%edx
   0xf7eeab45 <XCreateIC+37>:   lea    0x2c(%esp),%eax
   0xf7eeab49 <XCreateIC+41>:   mov    %eax,(%esp)
   0xf7eeab4c <XCreateIC+44>:   lea    0x44(%esp),%eax
   0xf7eeab50 <XCreateIC+48>:   call   0xf7eea950
=> 0xf7eeab55 <XCreateIC+53>:   mov    (%esi),%eax
   0xf7eeab57 <XCreateIC+55>:   mov    0x2c(%esp),%edx
   0xf7eeab5b <XCreateIC+59>:   mov    %esi,(%esp)
   0xf7eeab5e <XCreateIC+62>:   mov    %edx,0x4(%esp)
   0xf7eeab62 <XCreateIC+66>:   call   *0xc(%eax)
(gdb) info registers
eax            0x862e998        140700056
ecx            0xe      14
edx            0x862e998        140700056
ebx            0xf7fd6ff4       -134385676
esp            0xffff3bd0       0xffff3bd0
ebp            0x843b030        0x843b030
esi            0x0      0
edi            0xedc41119       -305917671
eip            0xf7eeab55       0xf7eeab55 <XCreateIC+53>
eflags         0x10282  [ SF IF RF ]
cs             0x23     35
ss             0x2b     43
ds             0x2b     43
es             0x2b     43
fs             0x0      0
gs             0x63     99
@slouken

The issue is the XOpenIM() is failing. I'm making it so Steam won't crash, but you still won't be able to enter text. I can put up a debug X11 library that you can drop in, if you would like to investigate.

A comparison of strace output with and without the STEAM_RUNTIME enabled would be valuable as well. I'm pretty sure what's happening is that X isn't finding your locale files, but I'm not entirely sure.

@dom96

Here is the output of strace -f steam with STEAM_RUNTIME=0: https://gist.github.com/dom96/4734489
And here it is with STEAM_RUNTIME=1: https://gist.github.com/dom96/4734477

I'm not entirely sure why, but with STEAM_RUNTIME=0 I get an error dialog with the message:

Couldn't set up the Steam Runtime. Are you running low on disk space?
Continuing...

Hope this helps!

@slouken

Okay, I uploaded debug X11 libraries:
cd /tmp
wget http://media.steampowered.com/client/runtime/libx11-debug.tgz
tar xvf libx11-debug.tgz
cp -av libx11-1.4.99.1/src/.libs/libX11.so. ~/.steam/root/ubuntu12_32/steam-runtime/i386/usr/lib/i386-linux-gnu/
DEBUGGER=gdb steam
gdb> b XOpenIM
gdb> r

... :)

@scottlu

dom96, what locate settings are you using? If you do locale -a, which one of those is your default?

@dom96

Here you go:

~ » locale -a
C
en_GB.utf8
POSIX
@Tronil

The latest steam update fixed the problem for me :)

@dom96

Still fails for me, output:

~ » steam                                                         dom@EliteArch
Running Steam on arch  64-bit
STEAM_RUNTIME is enabled automatically
Installing breakpad exception handler for appid(steam)/version(1360379549_client)
Looks like steam didn't shutdown cleanly, scheduling immediate update check
Installing breakpad exception handler for appid(steam)/version(1360379549_client)
Installing breakpad exception handler for appid(steam)/version(1360379549_client)
Installing breakpad exception handler for appid(steam)/version(1360379549_client)
Running Steam on arch  64-bit
STEAM_RUNTIME has been set by the user to: /home/dom/.local/share/Steam/ubuntu12_32/steam-runtime
Installing breakpad exception handler for appid(steam)/version(1360724938_client)
Installing breakpad exception handler for appid(steam)/version(1360724938_client)
unlinked 0 orphaned pipes
surface_linux.cpp (693) : Assertion Failed: XOpenIM() failed, LANG = en_GB.UTF_8
Assert( Assertion Failed: XOpenIM() failed, LANG = en_GB.UTF_8 ):/home/buildbot/buildslave_steam/steam_rel_client_ubuntu12_linux/build/src/vgui2/src/surface_linux.cpp:693

Installing breakpad exception handler for appid(steam)/version(1360724938_client)
Uploading dump (in-process) [proxy '']
/tmp/dumps/assert_20130213164109_1.dmp
success = yes
response:  CrashID=bp-6e0d0339-057d-44a0-8fae-229d12130213
Installing breakpad exception handler for appid(steam)/version(1360724938_client)
[0213/164114:WARNING:proxy_service.cc(646)] PAC support disabled because there is no system implementation
Installing breakpad exception handler for appid(steam)/version(1360724938_client)
Installing breakpad exception handler for appid(steam)/version(1360724938_client)
Installing breakpad exception handler for appid(steam)/version(1360724938_client)
Steam: An X Error occurred
X Error of failed request:  BadValue (integer parameter out of range for operation)
Major opcode of failed request:  18 (X_ChangeProperty)
Value in failed request:  0x0
Serial number of failed request:  102
xerror_handler: X failed, continuing
/home/dom/.local/share/Steam/steam.sh: line 561:  1455 Segmentation fault      (core dumped) $STEAM_DEBUGGER "$STEAMROOT/$PLATFORM/$STEAMEXE" "$@"

@scottlu Would you just like the output of GDB once that breakpoint is hit, or should I investigate, if so, how?

@scottlu

X supports en_GB.UTF-8, but does not support en_GB.UTF_8 (notice the underscore).

Please try with en_GB.UTF-8.

@scottlu

Btw, the very latest Steam client was changed to use en_US.UTF-8 if the default locale isn't supported by X.

@dom96

Changing the locale has fixed it! (Not sure if you pushed the update which meant that an incorrect locale would still work, but it still segfaulted when I tried it.)

It seems that the steam window does not like being resized, in fact I resized it a bit and now it refuses to render the UI at all. It instead shows whatever was behind the window. (Possibly related to #679)

@dom96 dom96 closed this Feb 16, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment