steam-for-linux icon indicating copy to clipboard operation
steam-for-linux copied to clipboard

[SOLVED] [Steam Client] Crashing at startup - Segmentation fault, line 756 - Arch Linux

Open SALVOuankeBALDO opened this issue 10 years ago • 14 comments

Hello all. Recently, after days of not booting steam (several system upgrades were done in the meantime), I've encountered problems in starting the client. With or without STEAM_RUNTIME=0, I run in the following error after starting from terminal:


/home/MYNAME/.local/share/Steam/steam.sh: line 161: VERSION_ID: unbound variable

/home/MYNAME/.local/share/Steam/steam.sh: line 161: VERSION_ID: unbound variable

Running Steam on arch  64-bit

/home/MYNAME/.local/share/Steam/steam.sh: line 161: VERSION_ID: unbound variable

STEAM_RUNTIME is enabled automatically

/home/MYNAME/.local/share/Steam/steam.sh: line 756: 11626 Segmentation fault      (core dumped) $STEAM_DEBUGGER "$STEAMROOT/$STEAMEXEPATH" "$@"

I've googled for the errors, and it looks like the segmentation fault at line 756 is a common issue, but there are various solutions, and I've tried several, with no luck. I've tried

  1. Removing the nvidia driver of my card, going back to nouveau (all the following actions were made with nouveau), reinstalling steam;
  2. Installing steam-libs and trying to run with STEAM_RUNTIME=0 (never neeeded it);
  3. Copiyng the libraries as suggested in Arch Wiki (https://wiki.archlinux.org/index.php/Steam#Native_runtime:_steam.sh_line_756_Segmentation_fault);
  4. Removing mesa and reinstalling it, with all dependencies (whew!)

Nothing worked, so I'm looking for help.

Thanks in advance.

SALVOuankeBALDO avatar Feb 28 '16 16:02 SALVOuankeBALDO

I've solved the problem. I removed the folder /home/USER/.local/share/Steam, uninstalled steam (I do not think it is necessary, but I did it anyway) and reinstalled it. It asked me to reinstall that folder, and updated. Now it's working. I'm marking it as solved.

EDIT: I removed my local games, so this solution could not be optimal, as I have to donwload everything again. It is not an issue for me, but it would be nice to know exactly what to erase next time this issue happens.

SALVOuankeBALDO avatar Mar 04 '16 12:03 SALVOuankeBALDO

Remove everything except ~/.local/share/Steam/steamapps

ljrk0 avatar Mar 31 '16 07:03 ljrk0

There's no need to remove everything, config/config.vdf is enough. And ever more, seems like if you'll remove flag for remembering password at login screen steam wouldn't segfault anymore. At least works for me.

Bfgeshka avatar Apr 16 '16 05:04 Bfgeshka

Thank you for your suggestions. Removing the "Remember password" flag should not help while the bug is happening, as I wasn't even able to reach the login screen. Steam crashed just after typing "steam" in the console. Now it's working fine, but next time I'll try your methods to solve it.

SALVOuankeBALDO avatar Apr 16 '16 08:04 SALVOuankeBALDO

There's no need to remove everything, config/config.vdf is enough.

This was perfect. This is how i solved it on my 64-bit Arch Linux set-up:

First: $rm ~/.local/share/Steam/config/config.vdf

Second: Reinstall steam using pacman If you get the following prompt: select 'Y' :: lib32-libudev0-shim and lib32-libudev0 are in conflict. Remove lib32-libudev0? [y/N] y

Third: $steam-native

the-moose-machine avatar Nov 05 '16 06:11 the-moose-machine

In response to the command above - you need to install steam-native-runtime, not reinstall steam, as that doesn't help.

C0rn3j avatar Nov 06 '16 16:11 C0rn3j

There's no need to remove everything, config/config.vdf is enough. And ever more, seems like if you'll remove flag for remembering password at login screen steam wouldn't segfault anymore. At least works for me.

Thank you very much! This works for me on Gentoo. Unfortunately having to enter the password every time you start the app is uncomfortable, but that's the way.

bkdwt avatar Dec 08 '19 17:12 bkdwt

For anyone else coming up here - my issue was solved here: https://github.com/ValveSoftware/steam-for-linux/issues/6399#issuecomment-512867551

I needed to

sudo pacman -S lib32-nvidia-utils

since I didn't have'em. Leggo!

kiprasmel avatar Feb 24 '20 12:02 kiprasmel

For anyone else coming up here - my issue was solved here: #6399 (comment)

I needed to

sudo pacman -S lib32-nvidia-utils

since I didn't have'em. Leggo!

This worked for me (as the other stuff about the config.vdf didn't seem to apply to me because this file wasn't present on my system). I just wanted to chime in here since this is currently the top result on Google if you search for "steam.sh segmentation fault". Installing these utils is what worked.

Info about my setup:

  • Fully up to date ArchLinux 64-bit as of today

  • Kernel: 5.5.10-zen1-1-zen #1 ZEN SMP PREEMPT

  • GPU: NVidia GTX 1080Ti

I did not install any "native runtime". I'm using just the standard steam package.

hkay-dev avatar Mar 23 '20 00:03 hkay-dev

Removing the ConnectCache entry in config/config.vdf is enough, although it's just a WAR...

robin-thoni avatar Jun 12 '21 15:06 robin-thoni

Removing the ConnectCache entry in config/config.vdf is enough, although it's just a WAR...

Had the same problem on Ubuntu focal, after a steam update. Removing ConnectCache entry worked for me as well.

pueppiblue avatar Jul 10 '21 12:07 pueppiblue

Hello @robin-thoni, @pueppiblue, the issue you've described is being tracked at #6101 instead of this issue report.

kisak-valve avatar Jul 16 '21 17:07 kisak-valve

Thank you for your suggestions. Removing the "Remember password" flag should not help while the bug is happening, as I wasn't even able to reach the login screen. Steam crashed just after typing "steam" in the console. Now it's working fine, but next time I'll try your methods to solve it.

Bro I'm having this issue. How did you solve it then?

me4real avatar Jul 29 '21 07:07 me4real

This is an old git-issue post, probably nowadays some other problems can cause this behavior.

After a fresh linux reinstall of linux I started ricing my setup. In the process i had steam download some games I usually play. It worked, and it successfully launched games too. However, after a few more days of messing around with my setup, Steam was segfaulting at startup immediately after checksum validations. Whether or not this was a similar case to you, the following still applies:

In my specific scenario I messed up some cursor and font packages. After installing lib32-libxcursor lib32-fontconfig (arch) the issue was solved. I doubt this will specifically solve your problem, but you can check for such errors via coredumpctl gdb steam.

Other posts regarding this issue suggest

  • Reinstalling the gpu driver
  • Reinstalling lib32 packages
  • Trying steam-native
  • Specifically reinstalling lib32-nvidia-libgl lib32-nvidia-utils nvidia-libgl (if nvidia gpu is installed)

GaussianWonder avatar Jul 19 '22 19:07 GaussianWonder