joedwards32 / CS2

CS2 Dedicated Server Docker Image
https://hub.docker.com/r/joedwards32/cs2
MIT License
306 stars 60 forks source link

Segmentation fault in entry.sh #123

Closed milkywayfarer closed 5 months ago

milkywayfarer commented 5 months ago

Hey!

I'm trying to run a CS2 server using a simple setup (k3s, your steamcmd container, PVC for the game). I used this container to install the game and set all the envs up from the previous server, and installing Metamod, CSS and MatchZy from scratch with default configs.

After containter runs and starts the server up, I get the segfault everytime at the same place - after Using spawnpoints configuration 0x....

Whole log with the error but with sensitive info masked:

2024-06-19 15:59:51.048173+05:00Host activate: Loading (de_inferno)
2024-06-19 15:59:51.048203+05:00"cs2 private server CSTV<0><BOT><Unassigned>" OnPreResetRound => CTMDBG, team 0  will switch 0 2.39 
2024-06-19 15:59:51.048259+05:00"Seal<1><BOT><TERRORIST>" OnPreResetRound => CTMDBG, team 2  will switch 0 2.39 
2024-06-19 15:59:51.048291+05:00"Trapper<2><BOT><CT>" OnPreResetRound => CTMDBG, team 3  will switch 0 2.39 
2024-06-19 15:59:51.048320+05:00Using spawn points configuration 0xC5BE3A25
2024-06-19 15:59:51.048338+05:00L 06/19/2024 - 10:59:51: Starting Freeze period
2024-06-19 15:59:51.048358+05:00L 06/19/2024 - 10:59:51: JSON_BEGIN{
2024-06-19 15:59:51.048411+05:00L 06/19/2024 - 10:59:51: "name": "round_stats",
2024-06-19 15:59:51.048472+05:00L 06/19/2024 - 10:59:51: "round_number" : "1",
2024-06-19 15:59:51.171428+05:00entry.sh: line 104:    51 Segmentation fault      ./cs2 -dedicated -ip 0.0.0.0 -port 27015 -console -usercon -maxplayers 10 +game_type 0 +game_mode 1 +mapgroup mg_active +map de_inferno +rcon_password ... +sv_setsteamaccount ... +sv_password changeme +sv_lan 0 +net_public_addr ...

Sometimes I don't reach JSON_BEGIN, sometimes I do. If I try to run the same args at the Linux VM instead of container, it works.

Current setup: TrueNAS Scale, latest release of joedwards32/cs2 as of this time, latest release of CS2, MetaMod dev build, CounterStrikeSharp and MatchZy - does not work

Previous setup: TrueNAS Scale, Ubuntu 22.04 VM, latest release of CS2, MetaMod dev build, CounterStrikeSharp and MatchZy - does work

P.S. post-hook runs after the segfault

milkywayfarer commented 5 months ago

Turns out to be CounterStrikeSharp problem. Closing the issue.