selfeasy
V2EX  ›  问与答

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

  •  
  •   selfeasy · Feb 6, 2023 · 908 views
    This topic created in 1193 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   ·   1563 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 27ms · UTC 16:44 · PVG 00:44 · LAX 09:44 · JFK 12:44
    ♥ Do have faith in what you're doing.