GameServerManagers / GameServerManagers/LinuxGSM

[Bug]: CS2 is giving in dmesg an segfault error because of empty LD_LIBRARY_PATH

Open
#4,824 4 comments 2 reactions 0 assignees View on GitHub
command: start distro: Ubuntu engine: source2 game: Counter-Strike 2 info: systemd type: bug
Dominant language
Shell
Stars
4.9k
Forks
864
PR merge metrics
No merged PRs in 30d

Description

### User story

I would like to see that the LSGM configuration is filling automatically the LD_LIBRARY_PATH to the correct path.

### Game

CS2 (CSGO)

### Linux distro

Ubuntu 24.04, Ubuntu 22.04

### Command

command: start

### Further information

CS2 is giving the following error when it is starting the server: segfault at 0 ip 00007c1776e7a3f8 sp 00007ffd7d9ef0c0 error 6 in libtier0.so[7c1776d26000+37c000] likely on CPU 1 (core 1, socket 0)

This can be found in sudo dmesg

You can solve this to fill the variable: LD_LIBRARY_PATH
**export LD_LIBRARY_PATH=/home/cs2server/serverfiles/game/bin/linuxsteamr**

Workaround for now:
If you add this export to /home/cs2server/lgsm/config-lgsm/cs2server/cs2server.cfg (when you connect with SSH still the echo $LD_LIBRARY_PATH is then empty but for the server start it isn't).
Or you add Environment="LD_LIBRARY_PATH=/home/cs2server/serverfiles/game/bin/linuxsteamrt64” in the systemd unit file as a systemwide solution

If you done one of the above workarounds then the segfault error is solved.

_My friend and I had the same issue with different hardware. Both we are using a VM in Proxmox. This issue is also to help others who might experiencing the same behaviour and don't understand why their server is not starting._

### Relevant log output

```shell
segfault at 0 ip 00007c1776e7a3f8 sp 00007ffd7d9ef0c0 error 6 in libtier0.so[7c1776d26000+37c000] likely on CPU 1 (core 1, socket 0)
```

### Steps to reproduce

1. Start the cs2server ./cs2server start
2. check the details ./cs2server details
3. sudo dmesg

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.