Fix tcmalloc crash and add 32-bit libraries

- Added libc6-i386, libncurses5:i386, libtinfo5:i386 for Source engine
- Disabled tcmalloc via LD_PRELOAD
- Added -norestart flag for Docker environment
This commit is contained in:
Vish
2026-01-19 06:55:40 +00:00
parent c5763ef577
commit ae6a8ffb64
2 changed files with 10 additions and 3 deletions

View File

@@ -180,8 +180,12 @@ cleanup() {
trap cleanup SIGTERM SIGINT
# Add -disableluarefresh to prevent lua refresh issues
# Add -norestart to prevent auto-restart loop issues in Docker
ARGS="$ARGS -disableluarefresh"
# Disable tcmalloc which causes issues in Docker environments
# This is a known issue with Source engine games in containers
export LD_PRELOAD=""
export MALLOC_CHECK_=0
# Start the server (using exec to replace shell process)
exec ./srcds_run $ARGS
exec ./srcds_run $ARGS -norestart