From 99868c99612d8a45c5fed37519f8128eeb371579 Mon Sep 17 00:00:00 2001 From: Vish Date: Mon, 19 Jan 2026 07:01:46 +0000 Subject: [PATCH] Use srcds_linux directly to bypass tcmalloc issues - Run srcds_linux directly instead of srcds_run wrapper - Set LD_LIBRARY_PATH for proper library loading - Added -condebug for better debugging --- scripts/docker-entrypoint.sh | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/scripts/docker-entrypoint.sh b/scripts/docker-entrypoint.sh index a6ced6f..325ba84 100755 --- a/scripts/docker-entrypoint.sh +++ b/scripts/docker-entrypoint.sh @@ -184,8 +184,13 @@ ARGS="$ARGS -disableluarefresh" # Disable tcmalloc which causes issues in Docker environments # This is a known issue with Source engine games in containers +# Override the tcmalloc library with standard glibc malloc export LD_PRELOAD="" -export MALLOC_CHECK_=0 +unset LD_PRELOAD -# Start the server (using exec to replace shell process) -exec ./srcds_run $ARGS -norestart +# Use the included 32-bit glibc directly +export LD_LIBRARY_PATH="$SERVER_DIR/bin:$LD_LIBRARY_PATH" + +# Start the server directly (not via srcds_run to avoid script issues) +cd "$SERVER_DIR" +exec ./srcds_linux $ARGS -norestart -nohltv -condebug