protonscr

steamcmd crash

steamclosed reviewedSteamCMD
ValveSoftware/steam-for-linux#2235 · opened 2013-03-28 by piegtas · updated 2019-07-18 · 9 comments · github
Ppiegtas 2013-03-28 github

Running steamcmd - centos 5.9 clean install

1- downloaded the steamcmd client
2- copied libstdc++.so.6 to linux32 from other instalation (missing in downloaded client)
3- steamcmd auto update goes fine
4- after update, steam tries to run with error.
Loading Steam3...client_api.cpp (275) : Assertion Failed: ClientAPI_InitGlobalInstance: InternalAPI_Init_Internal failed.

OS: Centos 5.9
ldd (GNU libc) 2.5
Packages Installed:
compat-libstdc++-33-3.2.3-61
compat-libstdc++-296-2.96-138
libstdc++-4.1.2-54.el5
libstdc++44-devel-4.4.7-1.el5
glibc-common-2.5-107
glibc-2.5-107
glibc-devel-2.5-107
gcc-4.1.2-54.el5
compat-gcc-34-3.4.6-4.1
gcc44-4.4.7-1.el5
compat-gcc-34-c++-3.4.6-4.1
libgcc-4.1.2-54.el5
compat-libgcc-296-2.96-138

GDB output:

[root@localhost steamcmd]# ./steamcmd.sh
GNU gdb (GDB) CentOS (7.0.1-45.el5.centos)
Reading symbols from /opt/games/steamcmd/linux32/steamcmd...(no debugging symbols found)...done.
(gdb) r
Starting program: /opt/games/steamcmd/linux32/steamcmd
[Thread debugging using libthread_db enabled]
Redirecting stderr to '/root/Steam/logs/stderr.txt'
[New Thread 0xb7df6b90 (LWP 2756)]
[ 0%] Checking for available updates...
[New Thread 0xb7cf5b90 (LWP 2757)]
[ 0%] Download complete.
[----] Verifying installation...
[Thread 0xb7df6b90 (LWP 2756) exited]
[New Thread 0xb7b32b90 (LWP 2758)]
[New Thread 0xb7a31b90 (LWP 2759)]
[Thread 0xb7a31b90 (LWP 2759) exited]
[New Thread 0xb6f2fb90 (LWP 2760)]
[New Thread 0xb6e2eb90 (LWP 2761)]
Steam Console Client (c) Valve Corporation
-- type 'quit' to exit --
Loading Steam3...client_api.cpp (275) : Assertion Failed: ClientAPI_InitGlobalInstance: InternalAPI_Init_Internal failed.

Program received signal SIGTRAP, Trace/breakpoint trap.
0x007c5355 in AssertMsgImplementation () from /opt/games/steamcmd/linux32/libtier0_s.so
(gdb) bt
#0 0x007c5355 in AssertMsgImplementation () from /opt/games/steamcmd/linux32/libtier0_s.so
#1 0x0071ee23 in Q_strncat () from /opt/games/steamcmd/linux32/steamconsole.so
#2 0x0071f274 in Q_strncat () from /opt/games/steamcmd/linux32/steamconsole.so
#3 0x007419c8 in SteamDllMainEx () from /opt/games/steamcmd/linux32/steamconsole.so
#4 0x0805f992 in RunSteam(int, char**, bool, bool) ()
#5 0x080607ca in main ()

(gdb)

Ggdrewb-valve maintainer 2013-03-28 github

This is most likely the same root issue as 2233. Do you have a steamclient.so on your library path?

Ppiegtas 2013-03-29 github

Yes, it's there. Also if I delete it, it's downloaded again.

Now isn't a specific missing library problem, it's more related to a runtime problem because steamcmd runs fine (at least for updates). Just crash when trying to start the steam command line.

Ggdrewb-valve maintainer 2013-03-29 github

The assert you show above isn't a crash, it's Steam failing to start because it can't load steamclient.so. If you ldd steamclient.so does it show any errors?

Ppiegtas 2013-03-29 github

Look yourself. No errors at all if I use ld_library_path.

[root@localhost steamcmd]# ldd linux32/steamclient.so
linux32/steamclient.so: /usr/lib/libstdc++.so.6: version GLIBCXX_3.4.10' not found (required by linux32/steamclient.so) linux32/steamclient.so: /usr/lib/libstdc++.so.6: versionGLIBCXX_3.4.11' not found (required by linux32/steamclient.so)
linux32/steamclient.so: /usr/lib/libstdc++.so.6: version GLIBCXX_3.4.9' not found (required by linux32/steamclient.so) linux32/steamclient.so: /usr/lib/libstdc++.so.6: versionGLIBCXX_3.4.14' not found (required by linux32/steamclient.so)
linux-gate.so.1 => (0x0057a000)
librt.so.1 => /lib/librt.so.1 (0x003a6000)
libm.so.6 => /lib/libm.so.6 (0x00313000)
libdl.so.2 => /lib/libdl.so.2 (0x00204000)
libstdc++.so.6 => /usr/lib/libstdc++.so.6 (0x00884000)
libpthread.so.0 => /lib/libpthread.so.0 (0x00209000)
/lib/ld-linux.so.2 (0x00df0000)
libc.so.6 => /lib/libc.so.6 (0x003af000)
libgcc_s.so.1 => /lib/libgcc_s.so.1 (0x00223000)
[root@localhost steamcmd]# LD_LIBRARY_PATH=:./linux32/ ldd linux32/steamclient.so
linux-gate.so.1 => (0x0091c000)
librt.so.1 => /lib/librt.so.1 (0x00846000)
libm.so.6 => /lib/libm.so.6 (0x00545000)
libdl.so.2 => /lib/libdl.so.2 (0x009bc000)
libstdc++.so.6 => ./linux32/libstdc++.so.6 (0x00ecf000)
libpthread.so.0 => /lib/libpthread.so.0 (0x00a9f000)
/lib/ld-linux.so.2 (0x00fbe000)
libc.so.6 => /lib/libc.so.6 (0x0019d000)
libgcc_s.so.1 => /lib/libgcc_s.so.1 (0x00948000)

Ggdrewb-valve maintainer 2013-03-29 github

steamcmd.sh sets LD_LIBRARY_PATH to include linux32 so I'm not sure why it isn't working for you. We'll have to see if we can repro here.

Ppiegtas 2013-03-29 github

I can upload an strace if it's useful.

Also in /root/Steam/steam.log I don't see any significant information.


DebugAssert, Name: ?, Line: 1106, Expr: "open for read/write failed in CreateFile" && !pchErr, File: /home/buildbot/buildslave_steam/steam2_rel_beta_linux/build/Projects/GazelleProto/Client/Engine/../../../Common/Misc/PosixWin32.cpp

CsComm Session Mar-29-2013 18:27:08.866 [3081354128] ReconnectThread (3081354128) Starting

CsComm Session Mar-29-2013 18:27:32.714 [3081309072] ReconnectThread (3081309072) Starting


CCMoH 2013-05-20 github

I have the same problem on gentoo amd64. However, if running ~/.steam/steam/steam.sh the whole thing works.

Kkisak-valve maintainer 2017-04-25 github

Hello @piegtas, are you still experiencing this issue on an up to date system?

Kkisak-valve maintainer 2017-05-29 github

Closing pending feedback.

Nothing extracted yet.