Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Segmentation Fault on startup #3248

Closed
tonyblatt opened this issue Apr 12, 2014 · 54 comments
Closed

Segmentation Fault on startup #3248

tonyblatt opened this issue Apr 12, 2014 · 54 comments

Comments

@tonyblatt
Copy link

On a new installation of the steam client (ubuntu 13.10), steam immediately crashed due to a segmentation fault. Output from terminal:

Running Steam on ubuntu 13.10 64-bit
STEAM_RUNTIME is enabled automatically
Installing breakpad exception handler for appid(steam)/version(0_client)
/home/tony/.local/share/Steam/steam.sh: line 755: 21860 Segmentation fault (core dumped) $STEAM_DEBUGGER "$STEAMROOT/$PLATFORM/$STEAMEXE" "$@"
mv: cannot stat ‘/home/tony/.steam/registry.vdf’: No such file or directory
Installing bootstrap /home/tony/.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/tony/.local/share/Steam/ubuntu12_32/steam-runtime
Installing breakpad exception handler for appid(steam)/version(0_client)
/home/tony/.local/share/Steam/steam.sh: line 755: 21988 Segmentation fault (core dumped) $STEAM_DEBUGGER "$STEAMROOT/$PLATFORM/$STEAMEXE" "$@"

I was unable to locate the core dump

@dbass81
Copy link

dbass81 commented Apr 12, 2014

This is a known problem with the proprietary AMD driver installed. If you want to install Steam, uninstall the AMD driver and use the default open source Radeon driver to install. After Steam is installed and you log into your account, then you can install the proprietary AMD driver and Steam will still work.

@tonyblatt
Copy link
Author

I'm running an NVidia GeForce GTX 750 (not an AMD card). I'll work on disabling the NVidia driver to log in. I thought you should know that the issue goes beyond AMD cards.

@dbass81
Copy link

dbass81 commented Apr 12, 2014

Good to know, thanks. I found the solution to the problem was to install Steam using the open source driver, then after it is installed and working, to install the proprietary driver. I'm not sure whether or not it works for you.

@tonyblatt
Copy link
Author

It appears that your solution worked. Thank you for the help.

@sigmabeta
Copy link

This issue is happening for me as well, on 14.04 64-bit with proprietary Nvidia drivers. I would really really rather not have to go back to the open-source ones to get Steam to work...

@mathieujobin
Copy link

so this is happening with nvidia cards as well ?

@tonyblatt
Copy link
Author

I can confirm that I was having this problem and that I was using an NVidia
card.

On Mon, Jul 7, 2014 at 11:38 AM, Mathieu Jobin [email protected]
wrote:

so this is happening with nvidia cards as well ?


Reply to this email directly or view it on GitHub
#3248 (comment)
.

@rblakemesser
Copy link

Also affected with nvidia drivers on ubuntu 14.10:

$ steam
Running Steam on ubuntu 14.10 64-bit
STEAM_RUNTIME is enabled automatically
Installing breakpad exception handler for appid(steam)/version(1415758987_client)
/home/blake/.steam/steam.sh: line 730: 18501 Segmentation fault      (core dumped) $STEAM_DEBUGGER "$STEAMROOT/$STEAMEXEPATH" "$@"
mv: cannot stat ‘/home/blake/.steam/registry.vdf’: No such file or directory
Installing bootstrap /home/blake/.steam/bootstrap.tar.xz
Reset complete!
Restarting Steam by request...
Running Steam on ubuntu 14.10 64-bit
STEAM_RUNTIME has been set by the user to: /home/blake/.steam/ubuntu12_32/steam-runtime
Installing breakpad exception handler for appid(steam)/version(1415758987_client)
/home/blake/.steam/steam.sh: line 730: 18624 Segmentation fault      (core dumped) $STEAM_DEBUGGER "$STEAMROOT/$STEAMEXEPATH" "$@"

Here's my graphics card. I'm using the proprietary driver-- haven't yet tried uninstalling it, as suggested.

$ lspci -v | grep -i nvidia
01:00.0 VGA compatible controller: NVIDIA Corporation GM204 [GeForce GTX 970] (rev a1) (prog-if 00 [VGA controller])
    Kernel driver in use: nvidia

EDIT: OK, I uninstalled the nvidia drivers, couldn't reboot into unity, but got into recovery mode, installed the steam package from recovery mode with dpkg -i steam_latest.deb, reinstalled the nvidia drivers, rebooted, and it's worky. I didn't need to login to steam while booted into my computer with the open source drivers.

@nonamedotc
Copy link

I am seeing the same thing with NVIDIA GEFORCE GTX 860M.

@JarrodHenry
Copy link

Need to bump this, as I'm seeing it on Fedora 21 with an Nvidia Geforce GTX 660

@Esras
Copy link

Esras commented Jan 4, 2015

With the Nvidia 343 driver (installed through the downloadable installer) on Fedora 21 with dual GTX970s, I am getting the following, as well:

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

I might not be able to do anything with Steam with Nouveau, because that produces a "Something went wrong" message on the Gnome login screen and won't let me get past it to a GUI, so I'm betting steam won't start if it can't find X.

@richardramirez
Copy link

I am just trying to install Steam on fresh F21 install with nvidia 340.65 drivers:

$ steam 
Running Steam on fedora 21 64-bit
STEAM_RUNTIME is enabled automatically
Installing breakpad exception handler for appid(steam)/version(0_client)
/home/ysy/.local/share/Steam/steam.sh: linia 730:  3760 Naruszenie ochrony pamięci   (zrzut pamięci) $STEAM_DEBUGGER "$STEAMROOT/$STEAMEXEPATH" "$@"
mv: nie można wykonać stat na „/home/ysy/.steam/registry.vdf”: Nie ma takiego pliku ani katalogu
Installing bootstrap /home/ysy/.local/share/Steam/bootstrap.tar.xz
Reset complete!
Restarting Steam by request...
Running Steam on fedora 21 64-bit
STEAM_RUNTIME has been set by the user to: /home/ysy/.local/share/Steam/ubuntu12_32/steam-runtime
Installing breakpad exception handler for appid(steam)/version(0_client)
/home/ysy/.local/share/Steam/steam.sh: linia 730:  3849 Naruszenie ochrony pamięci   (zrzut pamięci) $STEAM_DEBUGGER "$STEAMROOT/$STEAMEXEPATH" "$@"

i tried both http://negativo17.org/steam/ and RPMFusion
Graphics card is GTS 450

@JarrodHenry
Copy link

Okay, there is a workaround for this (for fedora users.) You're going to need to remove your nvidia drivers and jump back to nouveau. Get back into X running nouveau (by removing the nvidia driver AND the nvidia X Server) , and removing the blacklist of the module from /etc/modprobe.d (Just comment it out.) You MAY also have it blacklisted in /etc/sysconfig/grub, check there too.

Once you're back in nouveau, give steam a start up. All you need to do is login to it. Then, reverse the process, put the nvidia drivers back in, and you should be good to go.

Obviously though this is steam bug or an nvidia driver bug, but this will get you moving.

@richardramirez
Copy link

I can confirm this walkaround - steam updated itself on nouveau, now its running ok on nvidia drivers

remove your nvidia drivers and jump back to nouveau

@eddie-dunn
Copy link

This bug is a showstopper. Many people won't have the werewithal to google around for the workaround solution.

As it affects both AMD and nVidia users, I reckon it should be fixed asap.

@richardramirez
Copy link

Not sure how this could be ATI users problem? All users in this thread have nvidia cards and use nvidia binary drivers.

@eddie-dunn
Copy link

@richardramirez read the second post in this thread. Also, I encountered this problem with my AMD card, and a friend of mine did as well. Curiously, none of my systems with nVidia cards had this issue.

@Esras
Copy link

Esras commented Jan 12, 2015

An update:

With F21 now running the latest kernel update (from 1/11/2015 - 3.17.8-300.fc21.x86_64), Steam was able to start just fine and run its update process. Note that I did have to reinstall the NVidia driver (343.36) for the new kernel as I had originally installed it from their downloaded package.

@wolterhv
Copy link

I am following the average advise on the workaround for nvidia: 1) purge nvidia prop. binary drivers, 2) install and select nouveau drivers, 3) reboot, 4) purge steam, reinstall and let update, 5) install nvidia prop. binary drivers and select, 6) reboot, 7) try steam; (I'm on step 4 now.) However, I wonder if its really necessary to uninstall nvidia prop. drivers or moreover purge them; would it not work to just boot into X using nouveau and perform steps 4 and beyond?

UPDATE: Done. However, steam still doesn't launch on my computer. On nouveau it didn't launch because nouveau didn't have OpenGL direct rendering. Now back with nv. prop. drivers, it doesn't launch either. What could I have done wrong?

@ZedCode
Copy link

ZedCode commented Feb 26, 2015

I ran into this issue on Fedora 21 and I had installed the nvidia drivers for my GTX 970m via the script from the nvidia site. This resulted in the same core dumping seen here. I resolved this issue by following the instructions here: http://rpmfusion.org/Howto/nVidia#Uninstall_the_nvidia_driver and ran yum install akmod-nvidia "kernel-devel-uname-r == $(uname -r)".

Once I did this, I rebooted, launched Steam, signed in, then dropped back to the shell and re-ran the script from nvidia. That seemed to work without having to uninstall the nvidia drivers. I couldn't actually launch anything in steam because I only had the 64-bit drivers, but once I re-installed the nvidia drivers it all worked as expected.

@wlejon
Copy link

wlejon commented Mar 2, 2015

I ran strace on the steam executable (according to the steam.sh script parameters) and found the crash happened in the libnvidia-glcore.so.

Updating to the latest nvidia driver (346.47) solved this problem for me.

@kalyanac
Copy link

I am experiencing this with AMD GPUs
Using fglrx 14.501 (catalyst 14.12 omega driver).

OpenGL vendor string: Advanced Micro Devices, Inc.
OpenGL renderer string: AMD Radeon HD 7560D
OpenGL version string: 4.4.13283 Compatibility Profile Context 14.501.1003

DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=14.10
DISTRIB_CODENAME=utopic
DISTRIB_DESCRIPTION="Ubuntu 14.10"

3.16.0-33-generic #44-Ubuntu SMP Thu Mar 12 12:19:35 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux

@voidstarr
Copy link

I am running nvidia gtx660 on ubuntu 14.04 with the driver version 346.47 and I am experiencing this issue.

@jairuncaloth
Copy link

I'm on Fedora 22 and was using official NVIDIA 349.16 driver and was experiencing this issue.
Upgrading to NVIDIA 346.72 resolved this issue for me.

@djtm
Copy link

djtm commented Jun 14, 2015

A similar error happens when you restore a backup and symlinks were not properly transfered.

@Demiu
Copy link

Demiu commented Jun 17, 2015

Using Manjaro Linux. Sadly, this bug has reappeared and steam reinstall, log in and update on noveau drivers now doesn't fix the issue when switching back to propetiary.

@rohit-n
Copy link

rohit-n commented Jun 23, 2015

Can confirm this issue on Manjaro Linux with proprietary NVIDIA drivers. Switching to nouveau and back does not work - I must stay on nouveau to use Steam.

@triffid
Copy link

triffid commented Jun 23, 2015

@rohit-n the procedure that worked for me is this:

  1. switch to nouveau
  2. start steam
  3. switch to nvidia binary driver (keeping steam open)
  4. run your favourite games

@fritz-net
Copy link

same issue with AMD R9 290 and linux mint 17 3.19.0-22-generic
OpenGL vendor string: Advanced Micro Devices, Inc.
OpenGL renderer string: AMD Radeon R9 200 Series
OpenGL version string: 4.4.13374 Compatibility Profile Context 13.35.1005

@kyng
Copy link

kyng commented Oct 12, 2015

Had the same problem:
steam.sh: line 756: 15357 Bus error (core dumped) $STEAM_DEBUGGER "$STEAMROOT/$STEAMEXEPATH" "$@"
Error: Couldn't find bootstrap, it's not safe to reset Steam. Please contact technical support.
(Nvidia GT 720 nvidia-drivers 346-96)

Solution @triffid + restart worked for me.

@jimmyleith
Copy link

Is there any actual solution to this other than some dodgy workaround?
Getting this issues on Nvidia Prop Drivers on a 970 after updating my steam.

@rijnswand
Copy link

Is there a real solution to this? I've been running Steam without a problem until yesterday it suddenly decided to stop working.

@deathlire
Copy link

You are suffering from the new linux beta bug unfortunately..and I want to warn anyone who removes that beta dir to get steam working again.. It deleted all of my games and had to re-download, of course i haven't looked to see yet if they in fact still will be there when beta works again. But just a heads up. If they want us to have SSE3 or whatever, i'll just go buy the games off the devs. goto #4077

@rijnswand
Copy link

Thanks, deathlire!
No need to erase the whole package dir, only the file called beta and steam.sh, see the reply here by eriixblaike: http://steamcommunity.com/groups/steamuniverse/discussions/1/490123727975571656/?tscn=1445401628#c490123832541973548

@jimmyleith
Copy link

My issue was with the beta client as well. Looked very similar to this issue. If only I read your comment earlier I wouldn't be redownloading all my games .

@benletib
Copy link

It's the first time I have pb with the beta client, same pb for me.
Thank you guys.

My error msg (in french) :

Running Steam on ubuntu 12.04 64-bit
STEAM_RUNTIME is enabled automatically
/home/benletib/.local/share/Steam/steam.sh : ligne 756 :  3801 Instruction non permise (core dumped) $STEAM_DEBUGGER "$STEAMROOT/$STEAMEXEPATH" "$@"

@ghost
Copy link

ghost commented Oct 30, 2015

similar here (ati/amd card with open source driver):

iacopodeenosee@ArchBox ~$ steam
/media/Dati/Steam/steam.sh: riga 161: VERSION_ID: variabile non assegnata
/media/Dati/Steam/steam.sh: riga 161: VERSION_ID: variabile non assegnata
Running Steam on arch  64-bit
/media/Dati/Steam/steam.sh: riga 161: VERSION_ID: variabile non assegnata
STEAM_RUNTIME is enabled automatically
/media/Dati/Steam/steam.sh: riga 756: 30681 Istruzione non consentita (core dump creato) $STEAM_DEBUGGER "$STEAMROOT/$STEAMEXEPATH" "$@"

@ghost
Copy link

ghost commented Nov 11, 2015

I get this when I start Steam on Fedora 22:

[alexhultman@localhost ~]$ steam
Running Steam on fedora 22 64-bit
STEAM_RUNTIME is enabled automatically
Installing breakpad exception handler for appid(steam)/version(0)
/home/alexhultman/.local/share/Steam/steam.sh: line 756: 2139 Segmentation fault (core dumped) $STEAM_DEBUGGER "$STEAMROOT/$STEAMEXEPATH" "$@"

Edit: Yep it works by uninstalling the NVIDIA driver. You don't need to re-enable nouveau though, llvmpipe is your friend.

@ptimatth
Copy link

Hi!
I have found the solution on fedora 23 !
I have the NVIDIA official(private) driver
you need to execute :

sudo dnf install xorg-x11-drv-nvidia

reboot and reinstall the NVIDIA official(private) driver

4.2.6-300.fc23.x86_64
GNU/Linux
Geforce GTX 760.

@acornesque
Copy link

@ptimatth Thanks. I have the same specifications (4.2.6-300.fc23, GTX760). After installing xorg-x11-drv-nvidia and restarting, I was able to launch Steam.

I have the latest proprietary NVIDIA drivers, was receiving a similar error as previously reported, and while stracing found it to be failing on libnvidia-glcore.so also.

@ZorkMyst
Copy link

Hi, maybe this will be usefully for someone. It's enough to compile official drivers with 32-bit support.

@nycjv321
Copy link

I get a segmentation fault at a different location, are they related?

[user ~]$ steam 
Running Steam on fedora 23 64-bit
STEAM_RUNTIME is enabled automatically
Installing breakpad exception handler for appid(steam)/version(0)
/$HOME/.local/share/Steam/steam.sh: line 756: 26680 Segmentation fault      (core dumped)
$STEAM_DEBUGGER "$STEAMROOT/$STEAMEXEPATH" "$@"

My nvidia version is:

[user ~]$ nvidia-xconfig --version
nvidia-xconfig:  version 352.63  (buildmeister@swio-display-x64-rhel04-11)  Sat Nov  7 22:00:19 PST 2015

My system information is:

[user ~]$ uname -a
Linux my_box 4.2.8-300.fc23.x86_64 #1 SMP Tue Dec 15 16:49:06 UTC 2015
 x86_64 x86_64 x86_64 GNU/Linux

@suciptoid
Copy link

@ptimatth : Thanks, it's work for me.

also run this
sudo dnf install xorg-x11-drv-nvidia-libs.i686
if you get error like this:

libGL: screen 0 does not appear to be DRI2 capable
libGL: OpenDriver: trying /usr/lib/dri/tls/swrast_dri.so
libGL: OpenDriver: trying /usr/lib/dri/swrast_dri.so
libGL: Can't open configuration file /home/sucipto/.drirc: No such file or directory.
libGL: Can't open configuration file /home/sucipto/.drirc: No such file or directory.
libGL error: No matching fbConfigs or visuals found
libGL error: failed to load driver: swrast

Fedora 23
NVIDIA Corporation GF116 [GeForce GTX 550 Ti]
Linux fedora-pc 4.2.3-300.fc23.x86_64 #1 SMP Mon Oct 5 15:42:54 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux

@pcreech
Copy link

pcreech commented Mar 26, 2016

For what it's worth, I ran into this myself, and just resolved it on Fedora 23.

Fedora 23 x86_64
installed nvidia drivers following http://www.if-not-true-then-false.com/2015/fedora-nvidia-guide/
installed steam from http://negativo17.org/steam/

It appears the 32bit nvidia driver isn't installed properly first time around on a new install (due to 32bit libraries not being installed)

All I did, was reinstall the nvidia driver follwing the install guide sections 2.7 - 2.9, and it worked.

@LeaPhant
Copy link

@pcreech Thank you! This worked for me.

@squareborg
Copy link

@pcreech Yep worked for me too! thanks. I did notice the first time that the 32bit libs failed but though nothing of it.

@svenevs
Copy link

svenevs commented May 16, 2016

Did any of you have trouble connecting to the steam servers? I can connect the first time when it downloads, but then (e.g. if I try and install the beta or just straight restart it) I cannot ever connect. Running Fedora 23 x64, steam launches offline with nvidia drivers installed no problem. Running it from the console I get a large amount of bad ELF descriptors, mix ELF32 and ELF64. I'm trying to decide whether this install should be considered successful and there is a firewall issue of sorts (or router, or many others), or if the installation itself is faulty.

@boltronics
Copy link

Woah, I can't believe that actually worked! Just uninstalled fglrx on 14.04, re-installed Steam (in firejail) which worked, re-installed fglrx again... and now Steam starts. Thanks for the tip! Hope Valve can get this bug sorted. Seems to have been around long enough.

@RustyRaptor
Copy link

This is a really silly issue. It's really a hassle after completely installing the driver from the website to have to go back to nouveau and then do the process all over again. Please fix this it's an embarrassment especially when the nouveau drivers will cause some desktops to lag entirely. GeForce GTX 1060 6GB here with this issue.

@svenevs
Copy link

svenevs commented Apr 21, 2017

@RustyRaptor the reverting back to open source drivers is only for the installation of Steam, you should be able to reinstall the NVIDIA drivers afterward.

On fedora specifically, as @pcreech said, try using the Negativo rpm's. Negativo is amazing, the number of things they've packaged that just work is fantastic, and the easiest solution. The following may help if you cannot get those to work, good luck!

If you're having trouble starting your Desktop because you need the proprietary drivers to launch, advise using simple graphics to perform the installation. You do this by editing the boot parameters one time. For example, if you had to install nvidia drivers, then you likely ended up adding rd.driver.blacklist=nouveau in order to make sure it is not used. When you boot, the vmlinuz line should be edited (hit the E key when grub starts up on the kernel version you want to edit for this boot only), the boot parameter you want to add is nomodeset to use "simple" graphics (in addition to getting rid of the blacklist). This should be all you need to bypass your Desktop Manager not booting, which should let you install Steam.

E.g. on the steps would roughly be

  1. Uninstall nvidia driver.
  2. Make sure you have nouveau installed still (if-not-true-then-false is great, they tell you to uninstall it for a reason, but you may need it back first!)
  3. Reboot and edit boot parameters to boot into simple graphics mode.
  4. Install steam.
  5. Reboot / switch to run level 3 and reinstall the Nvidia drivers.
  6. Reboot again and my understanding of the discussion above is that you now have Steam and nvidia drivers playing well with one another.

The above should be successful in minimal work necessary, you shouldn't need to recompile initramfs or use dracut or anything like that. Just make sure you temporarily install nouveau, un blacklist the open source driver and boot with simple graphics, install, reinstall, done. Then the blacklist of nouveau should still be there the next time you boot.

There's some nice pictures that show what the menu you're looking for to edit boot parameters will mostly look like.

Fixing it is unlikely simple, though. Unlike DirectX for Windows, or OpenGL for OSX, there are significantly fewer standards / common practices with OpenGL and Linux. It basically amounts to instead of one company controlling the standards, you now have the open source community, AMD, and NVIDIA. They all generally do the same thing (OpenGL specification is controlled by another party that all of these entities collaborate with / help shape it), but they are inconsistent enough that bugs like this one can be challenging to root out. If they threw enough engineers at it they could, but Linux isn't nearly as profitable :/

@kisak-valve
Copy link
Member

I'm going to go ahead and close this issue because there's nothing specifically actionable here.

The general idea is that Steam is a 32 bit opengl application and it needs a sane, working opengl implementation in order to run. It's up to the package maintainers of individual distros to ensure that something usable is provided. A 32 bit build of glxinfo should be sufficient to check opengl.

Some 64 bit distros do not install the 32 bit variants of needed opengl libraries by default. Reach out to your distro's community if you need help checking.

Specific to nvidia, the running nvidia kernel module must match the 32 bit userspace version, so a reboot is often needed to start steam after updating the nvidia proprietary driver. If libglvnd is being used by the distro, this may hide that the 32 bit nvidia library package is not installed.

New mesa users may also need to use something similar to LD_PRELOAD=libstdc++.so.6 LIBGL_DRI3_DISABLE=1 steam in a terminal for the first run because there are some libraries in the bootstrapper runtime that are incompatible with newer mesa (this is being tracked at #4816). This specific workaround should only be needed on the first run of Steam.


If you have a sane 32 bit opengl implementation and support opengl 2, then the issue should be investigated on a per-distro and video driver vendor basis.

@ValveSoftware ValveSoftware locked and limited conversation to collaborators Nov 24, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests