-
Notifications
You must be signed in to change notification settings - Fork 4.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
未知原因crash #1624
Comments
学习一下 markdown , 你这样会引用很多 issue |
最新的crash gdb调试信息如下: GNU gdb (GDB) Red Hat Enterprise Linux 7.6.1-120.el7 warning: core file may not match specified executable file. warning: Could not load shared library symbols for 12 libraries, e.g. ./../lib/loggerx.so. |
云大能否帮看下这个问题? |
好的,已经改了 |
可以用这个 gdb 插件定位是哪个 lua 代码触发的。 https://github.com/xjdrew/lua-gdb 看你的堆栈信息,我猜测是那个 loggerx.so 相关的问题 |
这个能直接调试core文件吗? |
最新gdb core文件调试输出: GNU gdb (GDB) Red Hat Enterprise Linux 7.6.1-120.el7 warning: core file may not match specified executable file. |
打开这个宏 LUA_USE_APICHECK 试试 |
好的,我试试,这个要服务器下次更新才能试,项目在对外开放测试,一两天宕一次,查来查去最大可能还是申请的内存空间越界或者是否double free 了 |
看看这个把 LUA_USE_APICHECK MEMORY_CHECK 打开 |
可以调试 core 文件的,能定位到是哪个 lua 函数的。 从你的堆栈目前只能看出是接收消息 disptch 后挂的。用那个插件应该可以查出是哪行lua代码,调试看看吧。 |
有点看不懂怎么调试, 如下: |
不是纯lua编写吗?为什么还需要自己申请内容,管理内容呢? |
使用了websocket,外接了一个对消息的处理;现在打算换掉,直接使用skynet自带的websocket |
宕机的原因已查明,外部开辟内存不当造成的,使用skynet内置的websocket未出现宕机 |
Program terminated with signal 11, Segmentation fault.
0 sweep2old (p=0x7f34a6c2ca00, L=0x7f34a5a1d508) at lgc.c:1059
1059 lgc.c: No such file or directory.
Missing separate debuginfos, use: debuginfo-install glibc-2.17-326.el7_9.x86_64 libgcc-4.8.5-44.el7.x86_64 libuuid-2.23.2-65.el7_9.1.x86_64 openssl11-libs-1.1.1k-4.el7.x86_64 zlib-1.2.7-20.el7_9.x86_64
(gdb) bt
0 sweep2old (p=0x7f34a6c2ca00, L=0x7f34a5a1d508) at lgc.c:1059
1 atomic2gen (g=0x7f34a5bbc5d0, L=0x7f34a5a1d508) at lgc.c:1276
2 stepgenfull (g=, L=) at lgc.c:1389
3 genstep (g=, L=) at lgc.c:1423
4 luaC_step (L=L@entry=0x7f34a5a1d508) at lgc.c:1692
5 0x00000000004447d9 in luaV_execute (L=L@entry=0x7f34a5a1d508, ci=, ci@entry=0x7f34a5a61d00) at lvm.c:1356
6 0x000000000042a7fb in unroll (L=0x7f34a5a1d508, ud=) at ldo.c:717
7 0x000000000042a21a in luaD_rawrunprotected (L=0x7f34a5a1d508, f=0x42c530 , ud=0x7f34ac7d9d7c) at ldo.c:144
8 0x000000000042d870 in lua_resume (L=0x7f34a5a1d508, from=, nargs=4, nresults=0x7f34ac7d9dcc) at ldo.c:822
9 0x00007f34adfe17ec in ?? ()
10 0x00007f34a5a61a40 in ?? ()
11 0x00007f34a5a1d428 in ?? ()
12 0x0000000000000001 in ?? ()
13 0x0000000000000000 in ?? ()
Program terminated with signal 7, Bus error.
0 0x00007f6aca24afe7 in OPENSSL_sk_dup () from /lib64/libcrypto.so.1.1
Missing separate debuginfos, use: debuginfo-install glibc-2.17-326.el7_9.x86_64 libgcc-4.8.5-44.el7.x86_64 libuuid-2.23.2-65.el7_9.1.x86_64 openssl11-libs-1.1.1k-4.el7.x86_64 zlib-1.2.7-20.el7_9.x86_64
(gdb) bt
0 0x00007f6aca24afe7 in OPENSSL_sk_dup () from /lib64/libcrypto.so.1.1
1 0x00007f6aca582838 in SSL_new () from /lib64/libssl.so.1.1
2 0x00007f6aca7d8994 in ?? ()
3 0x00007f6ac7bcebf8 in ?? ()
4 0x00007f6ac81c2a88 in ?? ()
5 0x00007f6ac7bcebf8 in ?? ()
6 0x00007f6aca7d8c72 in ?? ()
7 0x0000000000000000 in ?? ()
The text was updated successfully, but these errors were encountered: