ValveSoftware / Source-1-Games

Source 1 based games such as TF2 and Counter-Strike: Source
624 stars 73 forks source link

[TF2] [Linux] 64-bit server crash (segmentation fault) #5737

Open 03y opened 2 months ago

03y commented 2 months ago

Updated TF2 server today via steamcmd. Using new binary srcds_run_64.

System information: OS: Arch Linux x86_64 Kernel: 6.8.7-arch1-1

Log:

[gameserver@stark tf2_vanilla]$ ./srcds_run_64 -debug
WARNING: No map specified! Server may not heartbeat.
Auto detecting CPU
Using default binary: ./srcds_linux64
Enabling debug mode
Server will auto-restart if there is a crash.

WARNING: Failed to load 32-bit libtinfo.so.5 or libncurses.so.5.
  Please install (lib32tinfo5 / ncurses-libs.i686 / equivalent) to enable readline.

... missing some ncurses stuff but that's OK. ...

Using shader api: shaderapiempty_srv.so
Using Breakpad minidump system. Version: 8830351 AppID: 232250
Setting breakpad minidump AppID = 232250
Using breakpad crash handler
Loaded 11368 VPK file hashes from /home/gameserver/hlserver/tf2_vanilla/tf/tf2_textures.vpk for pure server operation.
Loaded 11368 VPK file hashes from /home/gameserver/hlserver/tf2_vanilla/tf/tf2_textures.vpk for pure server operation.
Loaded 480 VPK file hashes from /home/gameserver/hlserver/tf2_vanilla/tf/tf2_sound_vo_english.vpk for pure server operation.
Loaded 480 VPK file hashes from /home/gameserver/hlserver/tf2_vanilla/tf/tf2_sound_vo_english.vpk for pure server operation.
Loaded 1344 VPK file hashes from /home/gameserver/hlserver/tf2_vanilla/tf/tf2_sound_misc.vpk for pure server operation.
Loaded 1344 VPK file hashes from /home/gameserver/hlserver/tf2_vanilla/tf/tf2_sound_misc.vpk for pure server operation.
Loaded 2863 VPK file hashes from /home/gameserver/hlserver/tf2_vanilla/tf/tf2_misc.vpk for pure server operation.
Loaded 2863 VPK file hashes from /home/gameserver/hlserver/tf2_vanilla/tf/tf2_misc.vpk for pure server operation.
Loaded 2863 VPK file hashes from /home/gameserver/hlserver/tf2_vanilla/tf/tf2_misc.vpk for pure server operation.
Loaded 1232 VPK file hashes from /home/gameserver/hlserver/tf2_vanilla/hl2/hl2_textures.vpk for pure server operation.
Loaded 574 VPK file hashes from /home/gameserver/hlserver/tf2_vanilla/hl2/hl2_sound_vo_english.vpk for pure server operation.
Loaded 383 VPK file hashes from /home/gameserver/hlserver/tf2_vanilla/hl2/hl2_sound_misc.vpk for pure server operation.
Loaded 450 VPK file hashes from /home/gameserver/hlserver/tf2_vanilla/hl2/hl2_misc.vpk for pure server operation.
Loaded 450 VPK file hashes from /home/gameserver/hlserver/tf2_vanilla/hl2/hl2_misc.vpk for pure server operation.
Loaded 5 VPK file hashes from /home/gameserver/hlserver/tf2_vanilla/platform/platform_misc.vpk for pure server operation.
Loaded 5 VPK file hashes from /home/gameserver/hlserver/tf2_vanilla/platform/platform_misc.vpk for pure server operation.
server_srv.so loaded for "Team Fortress"
 failed to dlopen /home/gameserver/hlserver/tf2_vanilla/bin/replay_srv.so error=/home/gameserver/hlserver/tf2_vanilla/bin/replay_srv.so: wrong ELF class: ELFCLASS32
Could not load: replay_srv.so
FATAL ERROR: Could not load: replay_srv.so

Looking up breakpad interfaces from steamclient
Calling BreakpadMiniDumpSystemInit
./srcds_run_64: line 335: 38923 Segmentation fault      (core dumped) $HL_CMD

... Crash here ...

cat: hlds.38906.pid: No such file or directory
email debug.log to linux@valvesoftware.com
Fri 19 Apr 13:09:11 UTC 2024: Server restart in 10 seconds

WARNING: Failed to load 32-bit libtinfo.so.5 or libncurses.so.5.
  Please install (lib32tinfo5 / ncurses-libs.i686 / equivalent) to enable readline.

Using shader api: shaderapiempty_srv.so
Using Breakpad minidump system. Version: 8830351 AppID: 232250
Setting breakpad minidump AppID = 232250
Using breakpad crash handler
Loaded 11368 VPK file hashes from /home/gameserver/hlserver/tf2_vanilla/tf/tf2_textures.vpk for pure server operation.
Loaded 11368 VPK file hashes from /home/gameserver/hlserver/tf2_vanilla/tf/tf2_textures.vpk for pure server operation.
Loaded 480 VPK file hashes from /home/gameserver/hlserver/tf2_vanilla/tf/tf2_sound_vo_english.vpk for pure server operation.
Loaded 480 VPK file hashes from /home/gameserver/hlserver/tf2_vanilla/tf/tf2_sound_vo_english.vpk for pure server operation.
Loaded 1344 VPK file hashes from /home/gameserver/hlserver/tf2_vanilla/tf/tf2_sound_misc.vpk for pure server operation.
Loaded 1344 VPK file hashes from /home/gameserver/hlserver/tf2_vanilla/tf/tf2_sound_misc.vpk for pure server operation.
Loaded 2863 VPK file hashes from /home/gameserver/hlserver/tf2_vanilla/tf/tf2_misc.vpk for pure server operation.
Loaded 2863 VPK file hashes from /home/gameserver/hlserver/tf2_vanilla/tf/tf2_misc.vpk for pure server operation.
Loaded 2863 VPK file hashes from /home/gameserver/hlserver/tf2_vanilla/tf/tf2_misc.vpk for pure server operation.
Loaded 1232 VPK file hashes from /home/gameserver/hlserver/tf2_vanilla/hl2/hl2_textures.vpk for pure server operation.
Loaded 574 VPK file hashes from /home/gameserver/hlserver/tf2_vanilla/hl2/hl2_sound_vo_english.vpk for pure server operation.
Loaded 383 VPK file hashes from /home/gameserver/hlserver/tf2_vanilla/hl2/hl2_sound_misc.vpk for pure server operation.
Loaded 450 VPK file hashes from /home/gameserver/hlserver/tf2_vanilla/hl2/hl2_misc.vpk for pure server operation.
Loaded 450 VPK file hashes from /home/gameserver/hlserver/tf2_vanilla/hl2/hl2_misc.vpk for pure server operation.
Loaded 5 VPK file hashes from /home/gameserver/hlserver/tf2_vanilla/platform/platform_misc.vpk for pure server operation.
Loaded 5 VPK file hashes from /home/gameserver/hlserver/tf2_vanilla/platform/platform_misc.vpk for pure server operation.
server_srv.so loaded for "Team Fortress"
 failed to dlopen /home/gameserver/hlserver/tf2_vanilla/bin/replay_srv.so error=/home/gameserver/hlserver/tf2_vanilla/bin/replay_srv.so: wrong ELF class: ELFCLASS32
Could not load: replay_srv.so
FATAL ERROR: Could not load: replay_srv.so

Looking up breakpad interfaces from steamclient
Calling BreakpadMiniDumpSystemInit
./srcds_run_64: line 335: 38948 Segmentation fault      (core dumped) $HL_CMD
cat: hlds.38906.pid: No such file or directory
email debug.log to linux@valvesoftware.com
Fri 19 Apr 13:09:25 UTC 2024: Server restart in 10 seconds
^CFri 19 Apr 13:09:27 UTC 2024: Server Quit

[gameserver@stark tf2_vanilla]$ cat debug.log
----------------------------------------------
CRASH: Fri 19 Apr 13:09:11 UTC 2024
Start Line: ./srcds_linux64 -debug -game tf
End of Source crash report
----------------------------------------------
03y commented 2 months ago

Possibly related: #5701

JoriKos commented 2 months ago

Possibly related: #5701

Seems like the same issue, crash looks pretty similar

Magicpig55 commented 2 months ago

Running into the same issue, this server I grandfathered in from before the 64 bit update and changed my startup script to target srcds_run_64, currently using centos stream 9

Auto detecting CPU
Using default binary: ./srcds_linux64
Server will auto-restart if there is a crash.
Updating server using Steam.
----------------------------
tid(4696) burning pthread_key_t == 0 so we never use it
Redirecting stderr to '/home/tf2/Steam/logs/stderr.txt'
Logging directory: '/home/tf2/Steam/logs'
minidumps folder is set to /tmp/dumps
[  0%] Checking for available updates...
[----] Verifying installation...
UpdateUI: skip show logoSteam Console Client (c) Valve Corporation - version 1709846822
-- type 'quit' to exit --
Loading Steam API...OK

Connecting anonymously to Steam Public...OK
Waiting for client config...OK
Waiting for user info...OK
force_install_dir ./tf2
Please use force_install_dir before logon!
app_update 232250
Success! App '232250' already up to date.
quit
----------------------------

WARNING: Failed to load 32-bit libtinfo.so.5 or libncurses.so.5.
  Please install (lib32tinfo5 / ncurses-libs.i686 / equivalent) to enable readline.

Using shader api: shaderapiempty_srv.so
Using Breakpad minidump system. Version: 8830351 AppID: 232250
Setting breakpad minidump AppID = 232250
Using breakpad crash handler
server_srv.so loaded for "Team Fortress"
 failed to dlopen /home/tf2/hlserver/tf2/bin/replay_srv.so error=/home/tf2/hlserver/tf2/bin/replay_srv.so: wrong ELF class: ELFCLASS32
Could not load: replay_srv.so
FATAL ERROR: Could not load: replay_srv.so

Looking up breakpad interfaces from steamclient
Calling BreakpadMiniDumpSystemInit
/home/tf2/hlserver/tf2/srcds_run_64: line 335:  3954 Segmentation fault      (core dumped) $HL_CMD
Add "-debug" to the /home/tf2/hlserver/tf2/srcds_run_64 command line to generate a debug.log to help with solving this problem
Fri Apr 19 04:43:20 PM CDT 2024: Server restart in 10 seconds

Using srcds_run (not 64) gets it running just fine. Also tried copying over the replay_srv.so from the linux64 folder in there, but that didn't work either.

I do have SourceMod added, but removing it and any other addons didn't make a difference.

Gnomesenpai commented 2 months ago

Also experiencing the same issue with Debain 12.

Tiagoquix commented 3 weeks ago

OP, does this still happen after the April 22, 2024 patch?

03y commented 3 weeks ago

OP, does this still happen after the April 22, 2024 patch?

Yes, still occurring today.

$ ./srcds_run_64
WARNING: No map specified! Server may not heartbeat.
Auto detecting CPU
Using default binary: ./srcds_linux64
Server will auto-restart if there is a crash.
Using shader api: shaderapiempty_srv.so
Using Breakpad minidump system. Version: 8830351 AppID: 232250
Setting breakpad minidump AppID = 232250
Using breakpad crash handler
Loaded 11368 VPK file hashes from /home/gameserver/hlserver/tf2_vanilla/tf/tf2_textures.vpk for pure server operation.
Loaded 11368 VPK file hashes from /home/gameserver/hlserver/tf2_vanilla/tf/tf2_textures.vpk for pure server operation.
Loaded 480 VPK file hashes from /home/gameserver/hlserver/tf2_vanilla/tf/tf2_sound_vo_english.vpk for pure server operation.
Loaded 480 VPK file hashes from /home/gameserver/hlserver/tf2_vanilla/tf/tf2_sound_vo_english.vpk for pure server operation.
Loaded 1344 VPK file hashes from /home/gameserver/hlserver/tf2_vanilla/tf/tf2_sound_misc.vpk for pure server operation.
Loaded 1344 VPK file hashes from /home/gameserver/hlserver/tf2_vanilla/tf/tf2_sound_misc.vpk for pure server operation.
Loaded 2863 VPK file hashes from /home/gameserver/hlserver/tf2_vanilla/tf/tf2_misc.vpk for pure server operation.
Loaded 2863 VPK file hashes from /home/gameserver/hlserver/tf2_vanilla/tf/tf2_misc.vpk for pure server operation.
Loaded 2863 VPK file hashes from /home/gameserver/hlserver/tf2_vanilla/tf/tf2_misc.vpk for pure server operation.
Loaded 1232 VPK file hashes from /home/gameserver/hlserver/tf2_vanilla/hl2/hl2_textures.vpk for pure server operation.
Loaded 574 VPK file hashes from /home/gameserver/hlserver/tf2_vanilla/hl2/hl2_sound_vo_english.vpk for pure server operation.
Loaded 383 VPK file hashes from /home/gameserver/hlserver/tf2_vanilla/hl2/hl2_sound_misc.vpk for pure server operation.
Loaded 450 VPK file hashes from /home/gameserver/hlserver/tf2_vanilla/hl2/hl2_misc.vpk for pure server operation.
Loaded 450 VPK file hashes from /home/gameserver/hlserver/tf2_vanilla/hl2/hl2_misc.vpk for pure server operation.
Loaded 5 VPK file hashes from /home/gameserver/hlserver/tf2_vanilla/platform/platform_misc.vpk for pure server operation.
Loaded 5 VPK file hashes from /home/gameserver/hlserver/tf2_vanilla/platform/platform_misc.vpk for pure server operation.
server_srv.so loaded for "Team Fortress"
 failed to dlopen /home/gameserver/hlserver/tf2_vanilla/bin/replay_srv.so error=/home/gameserver/hlserver/tf2_vanilla/bin/replay_srv.so: wrong ELF class: ELFCLASS32
Could not load: replay_srv.so
FATAL ERROR: Could not load: replay_srv.so

Looking up breakpad interfaces from steamclient
Calling BreakpadMiniDumpSystemInit
./srcds_run_64: line 335: 64766 Segmentation fault      (core dumped) $HL_CMD
Add "-debug" to the ./srcds_run_64 command line to generate a debug.log to help with solving this problem
Mon 10 Jun 08:48:07 UTC 2024: Server restart in 10 seconds
Mon 10 Jun 08:48:08 UTC 2024: Server Quit