protonscr

Kubuntu 13.10 64bit environment, segfault on start

steamclosed reviewed
ValveSoftware/steam-for-linux#3180 · opened 2014-03-01 by HenAlm · updated 2017-01-08 · 15 comments · github
HHenAlm 2014-03-01 github

I've installed a fresh 64but version of kubuntu 13.10. It is running nvidia binary drivers 331.49. It is a HP zbook 15 laptop. However steam does not start. I get following into the terminal with starting:

$ steam
Running Steam on ubuntu 13.10 64-bit
STEAM_RUNTIME is enabled automatically
Installing breakpad exception handler for appid(steam)/version(0_client)
/home/hena/.local/share/Steam/steam.sh: line 755:  5025 Segmentation fault      (core dumped) $STEAM_DEBUGGER "$STEAMROOT/$PLATFORM/$STEAMEXE" "$@"
mv: cannot stat ‘/home/hena/.steam/registry.vdf’: No such file or directory
Installing bootstrap /home/hena/.local/share/Steam/bootstrap.tar.xz
Reset complete!
Restarting Steam by request...
Running Steam on ubuntu 13.10 64-bit
STEAM_RUNTIME has been set by the user to: /home/hena/.local/share/Steam/ubuntu12_32/steam-runtime
Installing breakpad exception handler for appid(steam)/version(0_client)
/home/hena/.local/share/Steam/steam.sh: line 755:  5152 Segmentation fault      (core dumped) $STEAM_DEBUGGER "$STEAMROOT/$PLATFORM/$STEAMEXE" "$@"

Using gdb I can get a following backtrace

$ DEBUGGER="gdb" steam
Running Steam on ubuntu 13.10 64-bit
STEAM_RUNTIME is enabled automatically
GNU gdb (GDB) 7.6.1-ubuntu
Copyright (C) 2013 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from /home/hena/.local/share/Steam/ubuntu12_32/steam...(no debugging symbols found)...done.
(gdb) run
Starting program: /home/hena/.local/share/Steam/ubuntu12_32/steam 
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
Installing breakpad exception handler for appid(steam)/version(0_client)

Program received signal SIGSEGV, Segmentation fault.
0x00000000 in ?? ()
(gdb) bt
#0  0x00000000 in ?? ()
#1  0xf7d43dd8 in pthread_once () from /lib/i386-linux-gnu/libpthread.so.0
#2  0xf7310d56 in ?? () from /usr/lib32/libGL.so.1
#3  0xf7311822 in ?? () from /usr/lib32/libGL.so.1
#4  0xf7feb1c5 in ?? () from /lib/ld-linux.so.2
#5  0xf7feb2ec in ?? () from /lib/ld-linux.so.2
#6  0xf7fef2c6 in ?? () from /lib/ld-linux.so.2
#7  0xf7feb04e in ?? () from /lib/ld-linux.so.2
#8  0xf7feeb04 in ?? () from /lib/ld-linux.so.2
#9  0xf7e39cce in ?? () from /lib/i386-linux-gnu/libdl.so.2
[#10](/issue/ValveSoftware/steam-for-linux/10) 0xf7feb04e in ?? () from /lib/ld-linux.so.2
[#11](/issue/ValveSoftware/steam-for-linux/11) 0xf7e3a422 in ?? () from /lib/i386-linux-gnu/libdl.so.2
[#12](/issue/ValveSoftware/steam-for-linux/12) 0xf7e39d87 in dlopen () from /lib/i386-linux-gnu/libdl.so.2
[#13](/issue/ValveSoftware/steam-for-linux/13) 0x08079470 in LoadGlFuncs(void**) ()
[#14](/issue/ValveSoftware/steam-for-linux/14) 0x0807e624 in CBaseLinuxUpdateUI::BaseCreateWindow() ()
[#15](/issue/ValveSoftware/steam-for-linux/15) 0x0807f014 in CXWindowsUpdateUI::BCreateWindow() ()
[#16](/issue/ValveSoftware/steam-for-linux/16) 0x080501d4 in main ()
(gdb)

Any ideas on what to do here?
Thanks

Mmoritz-wundke 2014-03-02 github

Same here (different lib issue though) using an ATI card (6870) and latest ATI drivers 13.35.5.

GDB trace:

[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
Installing breakpad exception handler for appid(steam)/version(0_client)

Program received signal SIGSEGV, Segmentation fault.
0xf7ff08fe in ?? () from /lib/ld-linux.so.2

GDB Backtrace:

#0  0xf7ff08fe in ?? () from /lib/ld-linux.so.2
#1  0xf7e38de2 in ?? () from /lib/i386-linux-gnu/libdl.so.2
#2  0xf7feb04e in ?? () from /lib/ld-linux.so.2
#3  0xf7e39422 in ?? () from /lib/i386-linux-gnu/libdl.so.2
#4  0xf7e38e18 in dlclose () from /lib/i386-linux-gnu/libdl.so.2
#5  0xf72de1b0 in amdPcsXFunctInstall () from /usr/lib32/fglrx/libatiuki.so.1
#6  0xf72db7d9 in amdPcsOpenX11 () from /usr/lib32/fglrx/libatiuki.so.1
#7  0xf4dd5434 in ?? () from /usr/lib32/fglrx/libatiadlxx.so
#8  0xf4df7f6d in ADL2_Main_Control_Refresh () from /usr/lib32/fglrx/libatiadlxx.so
#9  0xf4df81f8 in ADL_Main_Control_Create () from /usr/lib32/fglrx/libatiadlxx.so
[#10](/issue/ValveSoftware/steam-for-linux/10) 0xf5f28572 in ?? () from /usr/lib32/fglrx/dri/fglrx_dri.so
Backtrace stopped: previous frame inner to this frame (corrupt stack?)
Ggdrewb-valve maintainer 2014-03-08 github

These are graphics driver problems and you'll need to follow up with your video card vendor. I've marked this as an AMD driver issue because of the second report; not sure what the first report is using.

HHenAlm 2014-03-08 github

My driver is Nvidia not AMD so the tag is wrong.

Ggdrewb-valve maintainer 2014-03-08 github

Removing AMD tag and leaving as a generic driver issue.

Mmoritz-wundke 2014-03-08 github

It seams that the 32bit OpenGL libraries are pointing to the generic mesa drivers, could you confirm the same same output from your NVIDIA card?

$ ldconfig -p | grep GL
libQtOpenGL.so.4 (libc6,x86-64) => /usr/lib/x86_64-linux-gnu/libQtOpenGL.so.4
libQtGLib-2.0.so.0 (libc6,x86-64) => /usr/lib/x86_64-linux-gnu/libQtGLib-2.0.so.0
libGLU.so.1 (libc6,x86-64) => /usr/lib/x86_64-linux-gnu/libGLU.so.1
libGLU.so (libc6,x86-64) => /usr/lib/x86_64-linux-gnu/libGLU.so
libGLEW.so.1.8 (libc6,x86-64) => /usr/lib/x86_64-linux-gnu/libGLEW.so.1.8
libGLESv2.so.2 (libc6,x86-64) => /usr/lib/x86_64-linux-gnu/mesa-egl/libGLESv2.so.2
libGL.so.1 (libc6,x86-64) => /usr/lib/fglrx/libGL.so.1
libGL.so.1 (libc6) => /usr/lib32/fglrx/libGL.so.1
libGL.so (libc6,x86-64) => /usr/lib/x86_64-linux-gnu/libGL.so
libGL.so (libc6,x86-64) => /usr/lib/fglrx/libGL.so
libEGL.so.1 (libc6,x86-64) => /usr/lib/x86_64-linux-gnu/mesa-egl/libEGL.so.1

Could it be that steam is targeting the 32 bit libs instead of the 64 ones?

Ggdrewb-valve maintainer 2014-03-08 github

The Steam client is a 32-bit app so the 32-bit OpenGL configuration is the important one for it.

Mmoritz-wundke 2014-03-08 github

The 32 bit ones seams ok apart from libEGL.so.1 which does not have a fglrx (ATI) variant in my case.

HHenAlm 2014-03-09 github

I don't seem to have 32bit stuff at all. Hmm...

$ ldconfig -p | grep GL
libQtOpenGL.so.4 (libc6,x86-64) => /usr/lib/x86_64-linux-gnu/libQtOpenGL.so.4
libQtGLib-2.0.so.0 (libc6,x86-64) => /usr/lib/x86_64-linux-gnu/libQtGLib-2.0.so.0
libGLU.so.1 (libc6,x86-64) => /usr/lib/x86_64-linux-gnu/libGLU.so.1
libGLEW.so.1.8 (libc6,x86-64) => /usr/lib/x86_64-linux-gnu/libGLEW.so.1.8
libGLESv2.so.2 (libc6,x86-64) => /usr/lib/x86_64-linux-gnu/mesa-egl/libGLESv2.so.2
libGL.so.1 (libc6,x86-64) => /usr/lib/libGL.so.1
libGL.so (libc6,x86-64) => /usr/lib/libGL.so
libEGL.so.1 (libc6,x86-64) => /usr/lib/x86_64-linux-gnu/mesa-egl/libEGL.so.1
HHenAlm 2014-03-09 github

I managed to solve this using an older closed issue: https://github.com/ValveSoftware/steam-for-linux/issues/321

It might be good idea to add something to installing readme about 64bit versions to make sure other see this.

Mmoritz-wundke 2014-03-09 github

What where the exact sution? Reinstalling the mesa libs or adding the 32 bit paths to ldconfig?

HHenAlm 2014-03-09 github
Mmoritz-wundke 2014-03-09 github

Worked here too with the comment you mention and the following:

$ cd ~/.steam/bin
$ ln -s /usr/lib/i386-linux-gnu/mesa/libGL.so.1 .
Mmoritz-wundke 2014-03-09 github

I'm now getting the direct rendering warning: OpenGL GLX context is not using direct rendering, which may cause performance problems.

Mmoritz-wundke 2014-03-09 github

Using the fglrx lib in the symlink seams to work ok:

$ ln -s /usr/lib32/fglrx/libGL.so.1
Kkisak-valve maintainer 2017-01-08 github

Closing as this appears to have been a system configuration issue with the 32 bit OpenGL driver.