Accelerator - Crash Reporting That Doesn't Suck CSGO 服务器崩溃解析

我不当学长 管理员组 5月前 449

背景:

有的时候我们会遇到csgo服务器崩溃,但是从log里面又找不到相关的debug信息,这就很头疼。一般来说csgo服务器在崩溃的时候,终端的崩溃现场会有这样的信息:

crash_xxxxxxxxxxxx_xx.dmp[16307]: Uploading dump (out-of-process)
/tmp/dumps/crash_xxxxxxx.dmp
crash_xxxxxxxxxxxx_xx.dmp[16307]: Finished uploading minidump (out-of-process): success = no
crash_xxxxxxxxxxxx_xx.dmp[16307]: error: libcurl.so: cannot open shared object file: No such file or directory
crash_xxxxxxxxxxxx_xx.dmp[16307]: file ''/tmp/dumps/crash_xxxxxxxx_xx.dmp'', upload no: ''libcurl.so: cannot open shared object file: No such file or directory''
Aborted
Add "-debug" to the ./srcds_run command line to generate a debug.log to help with solving this problem

但对于debug来说,卵用没有。

插件介绍(ext so 文件)

此插件可以自动分析你的csgo服务器崩溃日志,然后将崩溃文件解析为函数调用栈,方便后续debug分析

比如下面的调用栈信息:

安装方法:

下载适合你服务器版本的最新版插件,然后把文件解压到你的游戏服务器

配置方法:

打开addons/sourcemod/config/core.cfg文件,在文件最后添加如下配置:

其中,"MinidumpAccount" "7656119798781xxxx" 要填写你自己的steam64ID

/**
   * SteamID64 (Community ID) that will have ownership of uploaded crash reports.
   * You can share your crash reports with additional users from the website.
   *
   * If unset, your crash reports will be uploaded anonymously and you will not be
   * able to see all of the information.
   */
  "MinidumpAccount"	""

  /**
   * Controls which binaries will be eligible to be processed for symbols and uploaded.
   * Only modules loaded by the server at the time of the crash can be considered.
   *
   * 0 = Disabled: No binaries will be processed or uploaded.
   * 1 = System Only: Only binaries outside of the game directory (where the srcds binary is).
   * 2 = System + Game: Loaded modules outside of the addons/ directory.
   * 3 = System + Game + Addons: All loaded modules.
   */
  "MinidumpSymbolUpload"	"3"

  /**
   * Controls whether Accelerator can upload complete module binaries when explicitly requested
   * by the processing server. This also respects the value of the MinidumpSymbolUpload setting.
   */
  "MinidumpBinaryUpload"	"yes"

  /**
   * Controls whether Accelerator does local processing of crash reports before upload.
   * This should only be changed if local processing causes issues such as crashes,
   * the processing server may reject crash reports that have not been presubmitted.
   */
  "MinidumpPresubmit"	"yes"

  /**
   * URL to upload crash dumps to. Should not be changed.
   */
  "MinidumpUrl"	"http://crash.limetech.org/submit"

  /**
   * URL to upload processed symbols to. Should not be changed.
   */
  "MinidumpSymbolUrl"	"http://crash.limetech.org/symbols/submit"

  /**
   * URL to upload binaries to. Should not be changed.
   */
  "MinidumpBinaryUrl"	"http://crash.limetech.org/binary/submit"

使用方法:

当服务器crash的时候,并且再次启动的时候,crash dump 文件会被插件分析,处理log的文件存放在:addons/sourcemod/log/accelerator.log

登录网站:Throttle (limetech.org)

即可看到crash dump 的分析内容

参考:

上传的附件:

CSGO插件分享-申明 1、本网站名称:CSGO插件分享-中文站  网址:https://bbs.csgocn.net
2、本站的宗旨在于为CSGO玩家提供一个插件分享的中文资源平台,多数插件来源于SourceMod论坛,并配以中文介绍和安装教程。
3、欢迎有能力的朋友共享有趣的CSGO插件资源。
4、本站资源大多为百度网盘,如发现链接失效,可以点: 这里进行反馈,我们会第一时间更新。
最新回复 (0)
返回