Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

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

Đã đóng
#4,824 4 bình luận 2 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức phù hợp với người mới
35/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Đình trệ
Công nghệ
bash, linux, shell
Lĩnh vực
cli, devops

Hướng nghiên cứu

Bắt đầu bằng cách truy vết lệnh khởi động cs2server và đường dẫn cấu hình LSGM, đặc biệt là /home/cs2server/lgsm/config-lgsm/cs2server/cs2server.cfg. Tái hiện quá trình khởi động và kiểm tra sudo dmesg đồng thời kiểm tra cách LD_LIBRARY_PATH được thiết lập. Được xem là hoàn tất khi máy chủ CS2 tự động nhận đúng đường dẫn thư viện và khởi động mà không gặp lỗi phân đoạn libtier0.so.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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
Ngôn ngữ chính
Shell
Star
4.9k
Fork
870
Merge trung bình
14 giờ 50 phút
Pull request đã merge (30 ngày)
109

Chuẩn bị môi trường

Mở trong Codespaces

Khởi chạy dev container của dự án ngay trên trình duyệt, bằng tài khoản GitHub của bạn.

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của GameServerManagers/LinuxGSM

Tất cả issue của GameServerManagers/LinuxGSM

Issue tương tự

Thêm issue về Shell/Bash

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.