selfeasy
V2EX  ›  问与答

go 服务莫名挂掉,如何分析 core 文件,定位项目代码问题

  •  
  •   selfeasy · Feb 6, 2023 · 951 views
    This topic created in 1216 days ago, the information mentioned may be changed or developed.

    对于 go 服务生成 core 文件,环境设置 ulimit -c unlimited export GOTRACEBACK=crash 都设置了,但是使用 dlv 工具分析生成的 core 文件,只有如下信息,无体现到项目代码的具体位置,请问如何解决服务挂掉问题?

    (dlv) bt
    0  0x0000000000465491 in runtime.raise
       at /usr/local/go/src/runtime/sys_linux_amd64.s:150
       error: error while reading spliced memory at 0xc0000a51f0: EOF
    (truncated)
    
    No Comments Yet
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   1226 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 26ms · UTC 17:48 · PVG 01:48 · LAX 10:48 · JFK 13:48
    ♥ Do have faith in what you're doing.