golang的应用程序异常结束----各位大神帮忙分析下

wslzwps · · 1601 次点击
我找到了一个core文件。内容如下。查看堆栈也没看到具体原因,上面回的乱了,贴上图吧。 ![TimLine图片20160819213646.png](http://studygolang.qiniudn.com/160819/53c0efa60f24cc404c84b013c2f35fcb.png)
#3
更多评论
你这部分代码看不出什么东西。但根据你描述的情况,可能是你的应用吃了大量的内存,触发了系统的 OOM-Killer
#1
我找到一个coredump文件。core文件说是Segmentation fault. 我打印了堆栈 没看出具体什么问题。 部分展示如下: [New LWP 56173] [New LWP 56178] [New LWP 56174] [New LWP 53018] [Thread debugging using libthread_db enabled] Using host libthread_db library "/lib64/libthread_db.so.1". Core was generated by `./cmd -c ds_node.cfg'. Program terminated with signal 11, Segmentation fault. #0 0x00000000004427ee in runtime.sigtrampgo (sig=11, info=0xc821725bb0, ctx=0xc821725a80) at /usr/local/go/src/runtime/signal_linux.go:20 20 /usr/local/go/src/runtime/signal_linux.go: No such file or directory. Missing separate debuginfos, use: debuginfo-install glibc-2.17-78.el7.x86_64 (gdb) (gdb) (gdb) bt #0 0x00000000004427ee in runtime.sigtrampgo (sig=11, info=0xc821725bb0, ctx=0xc821725a80) at /usr/local/go/src/runtime/signal_linux.go:20 #1 0x0000000000461b8b in runtime.sigtramp () at /usr/local/go/src/runtime/sys_linux_amd64.s:234 #2 0x0000000000461b90 in runtime.sigtramp () at /usr/local/go/src/runtime/sys_linux_amd64.s:235 #3 0x0000000000000001 in ?? () #4 0x0000000000000000 in ?? () (gdb)
#2