Today I discovered SteamCMD on Linux is not multi-user safe on the same host, even when being run under different accounts.

These two user accounts, via cron, both tried to run SteamCMD at the same time today and one of them failed.

It appears that both tried to use the file "/dev/shm/(null)-ValveIPCSharedObjects5" at the same time.

"(null)" is probably supposed to be a username, but it wasn't.



SteamCMD running command:
nice -n 11 ionice -c 2 -n 6 /home/user2/bin/steamcmd/steamcmd.sh +@ShutdownOnFailedCommand 1 +login "anonymous" +force_install_dir /home/user2/srcds/tf2-MASTER/ +app_update 232250 +exit

Redirecting stderr to '/home/user2/Steam/logs/stderr.txt'
[  0%] Checking for available updates...
[----] Download complete.
[----] Installing update...
[----] Extracting package...
[----] Extracting package...
[----] Extracting package...
[----] Installing update...
[----] Installing update...
[----] Installing update...
[----] Cleaning up...
[----] Update complete, launching Steam...
Redirecting stderr to '/home/user2/Steam/logs/stderr.txt'
[  0%] Checking for available updates...
[----] Verifying installation...
Steam Console Client (c) Valve Corporation
-- type 'quit' to exit --
Loading Steam API...Process 26634 failed to shm_open /(null)-ValveIPCSharedObjects5
OK.
"@ShutdownOnFailedCommand" = "1"
ESC[0m
Connecting anonymously to Steam Public...Logged in OK
Waiting for license info.../home/user2/bin/steamcmd/steamcmd.sh: line 35: 26634 Segmentation fault $DEBUGGER "$STEAMEXE" "$@"

SteamCMD exit code: 139



user@host-->ls /dev/shm/
total 1.6M
drwxrwxrwt  2 root         root          160 Apr 29 19:05 .
drwxr-xr-x 28 root         root         1020 Apr 29 05:30 ..
-rwxrwx---  1 user1        user1        7.5K Apr 29 19:05 user1-Shm_721377
-rwxrwx--- 1 user1 user1 512K Apr 2 14:43 user1-ValveIPCSharedObjects5 -rwxr-xr-x 1 user1 user1 512K Apr 23 17:12 (null)-ValveIPCSharedObjects5
-rwxr-----  1 user2        user2        7.5K Apr 29 19:04 user2-Shm_721377
-rwxr----- 1 user2 user2 512K Apr 3 00:28 user2-ValveIPCSharedObjects5
-rw-r--r--  1 root         root            0 Mar 26 14:47 .tmpfs



_______________________________________________
To unsubscribe, edit your list preferences, or view the list archives, please 
visit:
https://list.valvesoftware.com/cgi-bin/mailman/listinfo/hlds_linux

Reply via email to