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
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user