Hacktoberfest 2026: los issues que los mantenedores marcaron para octubre, abiertos y aptos para principiantes. Explorar issues de Hacktoberfest

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

Cerrado
#4,824 4 comentarios 2 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
3/5
Tiempo estimado
1-2 días
Aptitud para principiantes
35/100
Tipo de issue
Error
Claridad
Bastante claro
Estado de actividad
Estancado
Stack tecnológico
bash, linux, shell
Área
cli, devops

Línea de trabajo

Comienza rastreando el comando de inicio de cs2server y la ruta de configuración de LSGM, especialmente /home/cs2server/lgsm/config-lgsm/cs2server/cs2server.cfg. Reproduce el inicio e inspecciona sudo dmesg mientras compruebas cómo se establece LD_LIBRARY_PATH. Se considera terminado cuando el servidor de CS2 recibe automáticamente la ruta correcta de las bibliotecas y se inicia sin el fallo de segmentación de libtier0.so.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

command: start distro: Ubuntu engine: source2 game: Counter-Strike 2 info: systemd type: bug
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
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
Lenguaje dominante
Shell
Estrellas
4.9k
Forks
870
Merge medio
17 h 33 min
PR fusionados (30 d)
104

Preparar el entorno

Abrir en Codespaces

Inicia el contenedor de desarrollo del proyecto en tu navegador, con tu propia cuenta de GitHub.

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de GameServerManagers/LinuxGSM

Todos los issues de GameServerManagers/LinuxGSM

Issues similares

Más issues de Shell/Bash

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.