[Bug]: CS2 is giving in dmesg an segfault error because of empty LD_LIBRARY_PATH
维护者通常 1 天内回复
还没有人认领这个 Issue。
评估
调研方向
首先跟踪 cs2server 启动命令和 LSGM 配置路径,尤其是 /home/cs2server/lgsm/config-lgsm/cs2server/cs2server.cfg。复现启动过程,并在检查 LD_LIBRARY_PATH 如何设置的同时检查 sudo dmesg。完成的标准是 CS2 服务器能够自动获得正确的库路径,并在没有 libtier0.so 段错误的情况下启动。
由索引模型根据 Issue 内容生成。
描述
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
- Start the cs2server ./cs2server start
- check the details ./cs2server details
- sudo dmesg
- 主要语言
- Shell
- 星标
- 4.9k
- 派生
- 871
- 平均合并
- 1 天 6 小时
- 30 天内合并 PR
- 138
环境准备
在浏览器里用你自己的 GitHub 账号启动这个项目的开发容器。
- 没有 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
GameServerManagers/LinuxGSM 的其他 Issue
-
[Bug]: csserver metamod fails to load amxmodx after ubuntu 26.04 base image可能已有人在做 @dgibbs64 于 1 天前认领。 未关闭command: mods command: start distro: Ubuntu regression: yes reproducible: always severity: medium status: fixed in develop type: bug
难度 2/5 1-3 小时 新手友好度 70/100
GameServerManagers/LinuxGSM#5114 · 1 条评论 · 已指派 1 人 ·
维护者通常 1 天内回复
-
[Bug]: cs2server ignores the GSLT entered during install可能已有人在做 关联的 PR 仍在进行中或已合并。 未关闭command: install command: start distro: Debian engine: source2 game: Counter-Strike 2 regression: yes reproducible: always severity: high type: bug
难度 2/5 1-3 小时 新手友好度 82/100
GameServerManagers/LinuxGSM#5106 ·
维护者通常 1 天内回复
-
[Feature]: Grace period for stoponlyifnoplayers before forcing stop, restart or update可能已有人在做 @dgibbs64 于 1 天前认领。 未关闭command: monitor command: restart command: stop command: update priority: medium scope: all servers type: feature
GameServerManagers/LinuxGSM#5138 · 已指派 1 人 ·
维护者通常 1 天内回复
-
[Bug]: Craftopia saves to serverfilesDedicatedServerSave outside serverfiles可能已有人在做 @dgibbs64 于 1 天前认领。 未关闭command: backup command: start distro: Ubuntu engine: unity3d game: Craftopia info: docker reproducible: always severity: medium status: fixed in develop type: bug
GameServerManagers/LinuxGSM#5130 · 1 条评论 · 已指派 1 人 ·
维护者通常 1 天内回复
-
[Bug]: gamedig npm calls hang when the npm registry does not answer可能已有人在做 @dgibbs64 于 1 天前认领。 未关闭distro: Ubuntu info: docker info: query status: fixed in develop type: bug
GameServerManagers/LinuxGSM#5127 · 1 条评论 · 已指派 1 人 ·
维护者通常 1 天内回复
查看 GameServerManagers/LinuxGSM 的全部 Issue
相似的 Issue
-
documentation good first issue
难度 1/5 1 小时以内 新手友好度 85/100
ysb3996-blip/oops#51 ·
维护者通常 1 天内回复
-
luaebpf: the by-example page's intro names two outcomes of a lowering and omits the stop with the default verdict可能已有人在做 关联的 PR 仍在进行中或已合并。 未关闭documentation severity: low
难度 1/5 1 小时以内 新手友好度 88/100
luainkernel/lunatik#2231 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 72/100
dataiku/kiji-proxy#668 ·
维护者通常 2 天内回复
-
diagnostics good first issue testing
难度 2/5 1-3 小时 新手友好度 85/100
维护者通常 1 天内回复
-
Remove leftover Cloud66 custom_web process from Procfile可能已有人在做 @ShahadatTest 今天认领。 未关闭Difficulty: Easy Good First Issue
难度 1/5 1 小时以内 新手友好度 88/100
rubyforgood/casa#7330 · 1 条评论 ·
维护者通常 1 天内回复