You are not logged in.

#1 2015-01-16 16:43:44

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 20,601

[SOLVED] Possible Serious Steam Bug

I do not use steam, nor I am completely sure what it even is.  I am not a gamer.

But, this little article http://linux.slashdot.org/story/15/01/1 … sers-files over on SlashDot indicates that there may be a serious bug in Steam.  If you move its folder that could (according to the article) lead to loss of all user files.

I do not know if any of this is valid or applicable to Arch.  I just wanted to flag this to avoid disaster in the event this is real.

Marked as solved as this has been taken care of upstream.

Last edited by ewaller (2015-01-23 22:25:54)


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
The shortest way to ruin a country is to give power to demagogues.— Dionysius of Halicarnassus
---
How to Ask Questions the Smart Way

Offline

#2 2015-01-16 17:19:41

drcouzelis
Member
From: Connecticut, USA
Registered: 2009-11-09
Posts: 4,092
Website

Re: [SOLVED] Possible Serious Steam Bug

Slashdot wrote:

steam had apparently deleted everything owned by my user recursively from the root directory. Including my 3tb external drive I back everything up to that was mounted under /media.

A reminder that if you don't have an offsite (or at least, disconnected) backup then you don't have a backup. sad

Offline

#3 2015-01-16 17:24:46

ugjka
Member
From: Latvia
Registered: 2014-04-01
Posts: 1,952
Website

Re: [SOLVED] Possible Serious Steam Bug

reddit wrote:

The call to rm is commented "Scary!", implying that the author knew of the risks.

Valve developers...

Offline

#4 2015-01-16 18:00:25

clfarron4
Member
From: London, UK
Registered: 2013-06-28
Posts: 2,165
Website

Re: [SOLVED] Possible Serious Steam Bug

Ouch...

I created a separate partition to install my Steam games to, that way I don't need to move and then symlink my steam folder when I get touchy about how much space I have left in my home folder.

But still, it's good to know.


Claire is fine.
Problems? I have dysgraphia, so clear and concise please.
My public GPG key for package signing
My x86_64 package repository

Offline

#5 2015-01-16 19:24:22

whoops
Member
Registered: 2009-03-19
Posts: 891

Re: [SOLVED] Possible Serious Steam Bug

I created a separate partition to install my Steam games to

Not sure how a separate partition protects you from

 rm -rf "$STEAMROOT/"*

? Or does it somehow prevent $STEAMROOT from being empty at the time that line's processed?

Either way - I'm glad that I moved steam to its own user account a while ago already (seems to work fine with "sux" from AUR so far so I don't even have to switch displays). That should stop steam from messing up anything except itself, right (it's not using root somehow or something)?


( Just in case anyone else is planning to exile steam: You have to rm-r "/tmp/steam*" or it will freeze due to the filename collision with different users; that f.*ing bug cost me HOURS of my time because I though it was a problem with obsolete path names or my graphics card and fixed several things that didn't need fixing )

Offline

#6 2015-01-16 19:27:05

clfarron4
Member
From: London, UK
Registered: 2013-06-28
Posts: 2,165
Website

Re: [SOLVED] Possible Serious Steam Bug

whoops wrote:

I created a separate partition to install my Steam games to

Not sure how a separate partition protects you from

 rm -rf "$STEAMROOT/"*

? Or does it somehow prevent $STEAMROOT from being empty at the time that line's processed?

It doesn't.

It removes one possible reason to move my Steam folders around.


Claire is fine.
Problems? I have dysgraphia, so clear and concise please.
My public GPG key for package signing
My x86_64 package repository

Offline

#7 2015-01-16 19:52:06

whoops
Member
Registered: 2009-03-19
Posts: 891

Re: [SOLVED] Possible Serious Steam Bug

Oh, so that's the reason this bug can happen? Guess I was lucky when I moved it away - didn't even know you could "reset" steam and brutishly ran "find-while-sed-i" over the whole thing instead :3

holy sh*t(abridged version):

steam.sh:18:STEAMROOT="$(cd "${0%/*}" && echo $PWD)"
...
steam.sh-427-function reset_steam()
steam.sh-428-{
...
steam.sh-447-   # Don't let the user interrupt us, or they may corrupt the install
steam.sh-448-   trap ignore_signal INT
...
steam.sh-467-   # Scary!
steam.sh:468:   rm -rf "$STEAMROOT/"*
...
steam.sh-489-   return $STATUS
steam.sh-490-}
...
steam.sh:549:if [ "$1" = "--reset" ]; then
steam.sh:550:   reset_steam
steam.sh-551-   exit
steam.sh-552-fi

So... at least it looks like that's only possible to occur if you try to reset steam manually by using "steam.sh --reset"? Or is some other (install?) script/executable making use of that function automatically?

Last edited by whoops (2015-01-16 19:52:38)

Offline

#8 2015-01-18 00:29:54

Pse
Member
Registered: 2008-03-15
Posts: 415

Re: [SOLVED] Possible Serious Steam Bug

whoops wrote:

So... at least it looks like that's only possible to occur if you try to reset steam manually by using "steam.sh --reset"? Or is some other (install?) script/executable making use of that function automatically?

See the last comment by johnv-valve at the bug report (GitHub) for a way to reproduce this without explicitly using '--reset'.

https://github.com/ValveSoftware/steam- … ssues/3671

Offline

#9 2015-01-20 22:24:23

Vizitor
Member
Registered: 2015-01-05
Posts: 83

Re: [SOLVED] Possible Serious Steam Bug

Steam Client Update Released
...

Linux
Fixed a rare bug where Steam could delete user files when failing to start

Offline

#10 2015-01-21 19:24:18

ziltoide
Member
Registered: 2008-04-03
Posts: 5

Re: [SOLVED] Possible Serious Steam Bug

Vizitor wrote:

Steam Client Update Released
...

Linux
Fixed a rare bug where Steam could delete user files when failing to start

Does Steam itself do the update or do we have to wait for the arch package in multilib to be updated? I'm afraid I might end up affected by this bug since I had to do some fiddling with restoring files after switching to ext4 from btrfs.

Alternatively, would uninstalling steam and deleting ~/.local/share/Steam and ~/.steam give a fresh start since I don't care about losing steam settings or installed games?

Offline

#11 2015-01-21 20:22:52

clfarron4
Member
From: London, UK
Registered: 2013-06-28
Posts: 2,165
Website

Re: [SOLVED] Possible Serious Steam Bug

ziltoide wrote:

Does Steam itself do the update or do we have to wait for the arch package in multilib to be updated? I'm afraid I might end up affected by this bug since I had to do some fiddling with restoring files after switching to ext4 from btrfs.

Alternatively, would uninstalling steam and deleting ~/.local/share/Steam and ~/.steam give a fresh start since I don't care about losing steam settings or installed games?

I just did the update through Steam and it seems to have gone fine for me. I don't know what's the best advice for whether you should update the client first or wipe and then update though, because you're on an affected version...

If I'm not mistaken, the package in the repositories is just the base installer and not the client itself.


Claire is fine.
Problems? I have dysgraphia, so clear and concise please.
My public GPG key for package signing
My x86_64 package repository

Offline

#12 2015-01-21 20:32:53

whoops
Member
Registered: 2009-03-19
Posts: 891

Re: [SOLVED] Possible Serious Steam Bug

My steam folder updated fine all by itself even after I moved it to a different user account for safety and removed the pacman steam package. Not planning to install it systemwide again, seems like a needless risk to me.

Last edited by whoops (2015-01-21 20:33:19)

Offline

#13 2015-01-22 07:58:23

Vizitor
Member
Registered: 2015-01-05
Posts: 83

Re: [SOLVED] Possible Serious Steam Bug

ziltoide wrote:

Does Steam itself do the update or do we have to wait for the arch package in multilib to be updated?

It does by itself.

Offline

#14 2015-01-23 10:22:23

GloW_on_dub
Member
Registered: 2013-03-13
Posts: 391
Website

Re: [SOLVED] Possible Serious Steam Bug

The update took place january 17 on my computer, no problem at all.

Offline

#15 2015-01-23 12:59:53

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 20,601

Re: [SOLVED] Possible Serious Steam Bug

Does this mean I can mark this as solved?


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
The shortest way to ruin a country is to give power to demagogues.— Dionysius of Halicarnassus
---
How to Ask Questions the Smart Way

Offline

#16 2015-01-23 13:17:23

bleach
Member
Registered: 2013-07-26
Posts: 264

Re: [SOLVED] Possible Serious Steam Bug

I ran into this problem a while ago and had to redownload my games and mods(the configs and saves are stored else where and were not touched/deleted). the last update did not have this issue.

edit: it was only the steam folder though and not my whole home directory.

Last edited by bleach (2015-01-23 13:27:17)

Offline

#17 2015-01-23 13:19:07

clfarron4
Member
From: London, UK
Registered: 2013-06-28
Posts: 2,165
Website

Re: [SOLVED] Possible Serious Steam Bug

ewaller wrote:

Does this mean I can mark this as solved?

Unless anyone here is willing to test it for us and prove it isn't solved, I'd say yes (as upstream have said so and I haven't heard of anything on the waves which says it hasn't after the update)...

Last edited by clfarron4 (2015-01-23 13:19:57)


Claire is fine.
Problems? I have dysgraphia, so clear and concise please.
My public GPG key for package signing
My x86_64 package repository

Offline

#18 2015-01-23 15:29:08

GloW_on_dub
Member
Registered: 2013-03-13
Posts: 391
Website

Re: [SOLVED] Possible Serious Steam Bug

it is solved after update. Just look in your /home/user/.local/share/Steam/steam.sh:474

  # Check before removing
  if [ "$STEAMROOT" != "" ]; then
    rm -rf "$STEAMROOT/"*
  fi

Last edited by GloW_on_dub (2015-01-23 15:29:27)

Offline

Board footer

Powered by FluxBB