Skip to content

LX steamcmd dumps core #496

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

Open
cneira opened this issue Feb 21, 2025 · 0 comments
Open

LX steamcmd dumps core #496

cneira opened this issue Feb 21, 2025 · 0 comments

Comments

@cneira
Copy link

cneira commented Feb 21, 2025

When trying to run steamcmd in a lx branded zone it segfaults when it tries to validate a game ( the game seems to be downloaded as the 100% implies but has not been written to the steam location yet)

How to reproduce

Install steamcmd in an ubuntu lxbranded zone ( I have not tested with other image)

https://developer.valvesoftware.com/wiki/SteamCMD#Ubuntu

Then try to install a game , in this case ark:

 steamcmd +force_install_dir arkserver  +login anonymous +app_update 376030 +quit

When the download reaches 100% it will dump core.

arkserver@ca47b8b6-5bde-466a-b5ff-6ddb472d15b2:~$ steamcmd +force_install_dir arkserver  +login anonymous +app_update 376030 +quit

Redirecting stderr to '/home/arkserver/.steam/logs/stderr.txt'
Logging directory: '/home/arkserver/.steam/logs'
Looks like steam didn't shutdown cleanly, scheduling immediate update check
[  0%] Checking for available updates...
[----] Verifying installation...
UpdateUI: skip show logoSteam Console Client (c) Valve Corporation - version 1738027521
-- type 'quit' to exit --
Loading Steam API...IPC function call IClientUtils::GetSteamRealm took too long: 216 msec
OK
IPC function call IClientAppManager::ForceInstallDirOverride took too long: 107 msec

Connecting anonymously to Steam Public...OK
Waiting for client config...OK
Waiting for user info...OK
 Update state (0x3) reconfiguring, progress: 0.00 (0 / 0)
 Update state (0x3) reconfiguring, progress: 0.00 (0 / 0)
IPC function call IClientAppManager::GetUpdateInfo took too long: 297 msec
/home/arkserver/.steam/steamcmd/steamcmd.sh: line 76: 11356 Segmentation fault      (core dumped) $DEBUGGER "$STEAMEXE" "$@"

If I run the command steamcmd interactively there is more info on the coredump

arkserver@ca47b8b6-5bde-466a-b5ff-6ddb472d15b2:~$ steamcmd
Redirecting stderr to '/home/arkserver/.steam/logs/stderr.txt'
Logging directory: '/home/arkserver/.steam/logs'
Looks like steam didn't shutdown cleanly, scheduling immediate update check
[  0%] Checking for available updates...
[----] Verifying installation...
UpdateUI: skip show logoSteam Console Client (c) Valve Corporation - version 1738027521
-- type 'quit' to exit --
Loading Steam API...IPC function call IClientUtils::GetSteamRealm took too long: 41 msec
OK

Steam>login anonymous

Connecting anonymously to Steam Public...OK
Waiting for client config...OK
Waiting for user info...OK

Steam>app_update 376030
 Update state (0x3) reconfiguring, progress: 0.00 (0 / 0)
 Update state (0x3) reconfiguring, progress: 0.00 (0 / 0)
IPC function call IClientAppManager::GetUpdateInfo took too long: 1029 msec
 Update state (0x41) staging, progress: 100.00 (18856333614 / 18856333614)
 Update state (0x41) staging, progress: 100.00 (18856333614 / 18856333614)
 Update state (0x41) staging, progress: 100.00 (18856333614 / 18856333614)
 Update state (0x41) staging, progress: 100.00 (18856333614 / 18856333614)
 Update state (0x41) staging, progress: 100.00 (18856333614 / 18856333614)
 Update state (0x41) staging, progress: 100.00 (18856333614 / 18856333614)
 Update state (0x41) staging, progress: 100.00 (18856333614 / 18856333614)
 Update state (0x41) staging, progress: 100.00 (18856333614 / 18856333614)
 Update state (0x41) staging, progress: 100.00 (18856333614 / 18856333614)
 Update state (0x41) staging, progress: 100.00 (18856333614 / 18856333614)
 Update state (0x41) staging, progress: 100.00 (18856333614 / 18856333614)
 Update state (0x41) staging, progress: 100.00 (18856333614 / 18856333614)
 Update state (0x41) staging, progress: 100.00 (18856333614 / 18856333614)
 Update state (0x41) staging, progress: 100.00 (18856333614 / 18856333614)
 Update state (0x41) staging, progress: 100.00 (18856333614 / 18856333614)
 Update state (0x41) staging, progress: 100.00 (18856333614 / 18856333614)
IPC function call IClientAppManager::GetUpdateInfo took too long: 69 msec
IPC function call IClientAppManager::GetUpdateInfo took too long: 98 msec
 Update state (0x41) staging, progress: 100.00 (18856333614 / 18856333614)
 Update state (0x41) staging, progress: 100.00 (18856333614 / 18856333614)
 Update state (0x41) staging, progress: 100.00 (18856333614 / 18856333614)
 Update state (0x41) staging, progress: 100.00 (18856333614 / 18856333614)
 Update state (0x41) staging, progress: 100.00 (18856333614 / 18856333614)
 Update state (0x41) staging, progress: 100.00 (18856333614 / 18856333614)
 Update state (0x41) staging, progress: 100.00 (18856333614 / 18856333614)
 Update state (0x41) staging, progress: 100.00 (18856333614 / 18856333614)
 Update state (0x41) staging, progress: 100.00 (18856333614 / 18856333614)
 Update state (0x41) staging, progress: 100.00 (18856333614 / 18856333614)
 Update state (0x41) staging, progress: 100.00 (18856333614 / 18856333614)
 Update state (0x41) staging, progress: 100.00 (18856333614 / 18856333614)
/home/arkserver/.steam/steamcmd/steamcmd.sh: line 76: 11465 Aborted                 (core dumped) $DEBUGGER "$STEAMEXE" "$@"
arkserver@ca47b8b6-5bde-466a-b5ff-6ddb472d15b2:~$

This core is from the second segfault

[root@cl-west1-dev /zones/ca47b8b6-5bde-466a-b5ff-6ddb472d15b2/cores]# mdb core.steamcmd.11465
Loading modules: [ libc.so.1 ld.so.1 libc.so.6 ]
> $c
LMfd`libc.so.1`syscall+0x13(3, fda573cc, 0, feffb000, 10, fefe6a60)
LMfd`libc.so.1`thr_sigsetmask+0x228(3, f887ad28, 0)
LMfd`libc.so.1`sigprocmask+0x40(3, f887ad28, 0)
LMfd`lx_brand.so.1`lx_sigprocmask_common+0xba(2, f83fba2c, 0, 1)
LMfd`lx_brand.so.1`lx_rt_sigprocmask+0x1c(2, f83fba2c, 0, 8)
LMfd`lx_brand.so.1`lx_emulate+0x96(f887ae00, af, f887ade8)
> ::status
debugging core file of steamcmd (32-bit) from ca47b8b6-5bde-466a-b5ff-6ddb472d15b2
file: /zones/ca47b8b6-5bde-466a-b5ff-6ddb472d15b2/root/home/arkserver/.steam/steamcmd/linux32/steamcmd
initial argv: /home/arkserver/.steam/steamcmd/linux32/steamcmd
threading model: native threads
status: process terminated by SIGABRT (Abort), pid=11465 uid=1000 code=-1
> ::psinfo
PID:     11465  (process id)            UID:     1000  (real user id)
PPID:    11460  (parent process id)     EUID:    1000  (effective user id)
PGID:    11460  (process group id)      GID:     1000  (real group id)
SID:     11311  (session id)            EGID:    1000  (effective group id)
ZONEID:      1                          CONTRACT: 577
PROJECT:     0                          TASK:     520

START: 2025 Feb 21 20:53:12   (wall timestamp when the process started)
TIME:  10.925 seconds         (CPU time used by this process)
CTIME: 0.0 seconds         (CPU time used by child processes)
FNAME: steamcmd               (name of the program executed)
PSARGS: "/home/arkserver/.steam/steamcmd/linux32/steamcmd"
> ::regs
%cs = 0x0043            %eax = 0xffbffeff
%ds = 0x004b            %ebx = 0xfe7e2000
%ss = 0x004b            %ecx = 0xf887ac5c
%es = 0x004b            %edx = 0xffffffff
%fs = 0x0000            %esi = 0xfda573cc
%gs = 0x01c3            %edi = 0x00000000

 %eip = 0xfe773033 LMfd`libc.so.1`syscall+0x13
 %ebp = 0xf887ac84
%kesp = 0x00000000

%eflags = 0x00000246
  id=0 vip=0 vif=0 ac=0 vm=0 rf=0 nt=0 iopl=0x0
  status=<of,df,IF,tf,sf,ZF,af,PF,cf>

   %esp = 0xf887ac5c
%trapno = 0x86
   %err = 0xfb800596
> <eip::dis
LMfd`libc.so.1`syscall:         popl   %edx
LMfd`libc.so.1`syscall+1:       popl   %eax
LMfd`libc.so.1`syscall+2:       pushl  %edx
LMfd`libc.so.1`syscall+3:       call   +0x0     <LMfd`libc.so.1`syscall+8>
LMfd`libc.so.1`syscall+8:       popl   %edx
LMfd`libc.so.1`syscall+9:       movl   %esp,%ecx
LMfd`libc.so.1`syscall+0xb:     addl   $0xb,%edx
LMfd`libc.so.1`syscall+0x11:    sysenter
LMfd`libc.so.1`syscall+0x13:    movl   (%esp),%edx
LMfd`libc.so.1`syscall+0x16:    pushl  %edx
LMfd`libc.so.1`syscall+0x17:    jb     -0xb007d <LMfd`libc.so.1`__cerror>
LMfd`libc.so.1`syscall+0x1d:    ret
0xfe77303e:                     nop
LMfd`libc.so.1`__systemcall:    popl   %edx
LMfd`libc.so.1`__systemcall+1:  popl   %ecx
LMfd`libc.so.1`__systemcall+2:  popl   %eax
LMfd`libc.so.1`__systemcall+3:  pushl  %edx
LMfd`libc.so.1`__systemcall+4:  int    $0x91
LMfd`libc.so.1`__systemcall+6:  jae    +0xf     <LMfd`libc.so.1`__systemcall+0x17>
>

@cneira cneira changed the title LX Steamcmd coredumps LX steamcmd dumps core Feb 21, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant