Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

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

クローズ
#4,824 コメント 4 件 リアクション 2 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
35/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
bash, linux, shell
領域
cli, devops

調査の方向性

まず cs2server の起動コマンドと LSGM の設定パス、特に /home/cs2server/lgsm/config-lgsm/cs2server/cs2server.cfg を追跡します。LD_LIBRARY_PATH がどのように設定されているかを確認しながら、起動を再現して sudo dmesg を調査します。CS2 サーバーが正しいライブラリパスを自動的に受け取り、libtier0.so のセグメンテーションフォルトなしで起動すれば完了です。

索引モデルが issue の本文から書いたものです。

説明

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
主要言語
Shell
スター
4.9k
フォーク
870
平均マージ
22時間 21分
マージ済み PR(30日)
93

環境構築

Codespaces で開く

このプロジェクトの開発コンテナを、あなたの GitHub アカウントでブラウザ上に起動します。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

GameServerManagers/LinuxGSM のほかの issue

GameServerManagers/LinuxGSM の issue をすべて見る

似ている issue

Shell/Bash の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。