-
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
调用 skynet.abort() 关进程,概率出现段错误 #1458
Comments
和这个有点像 代码是最新的和配置对了? |
任何 C 模块的内存 bug 都有可能导致堆破坏,所以以上信息无法推断实际问题。
|
代码版本是最新的 |
使用 valgrind --tool=memcheck --leak-check=full 调试模式后,段错误出现后的log输出如下: 在我的理解这句是关键: Access not within mapped region at address 0x0 ,但我还是不清楚怎么产生的 |
https://github.com/cloudwu/skynet/wiki/MemoryHook 你可以 另外,The main thread stack size used in this run was 10485760. thread stack 用了 10M 内存, 这是不正常的. |
因为没有其他类似报告, 所以还需要特别关注一下你的环境中还用了哪些 C 模块以及是否有什么特殊的用法. |
很明显的空指针错误 换成clang 编译器 打开 -fsanitize=address 答案立马出现
云风 ***@***.***> 于2021年8月19日周四 下午4:32写道:
… 因为没有其他类似报告, 所以还需要特别关注一下你的环境中还用了哪些 C 模块以及是否有什么特殊的用法.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#1458 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAK6QJUX6RASFKJNOQFZ2QDT5S6Q3ANCNFSM5CL6YM2A>
.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&utm_campaign=notification-email>
.
|
因没有使用过clang编译器,这个【换成clang 编译器 打开 -fsanitize=address】是说用clang编译器编译skynet后再调试? |
对头
RiceCN ***@***.***> 于2021年8月19日周四 下午5:25写道:
… 因没有使用过clang编译器,这个【换成clang 编译器 打开
-fsanitize=address】是说用clang编译器编译skynet后再调试?
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#1458 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAK6QJTIOSHXB6575Q32OA3T5TE2NANCNFSM5CL6YM2A>
.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&utm_campaign=notification-email>
.
|
已找到问题所在,运行时调用了一个外部接口(获取唯一字符串),不调用此方法关服正常 |
此处应该是 |
@cloudwu 学习了,惭愧惭愧,技术不到位 |
Program terminated with signal 11, Segmentation fault.
#0 0x000000000047506f in je_arena_dalloc_promoted ()
Missing separate debuginfos, use: debuginfo-install libgcc-4.4.7-23.el6.x86_64
(gdb) bt
#0 0x000000000047506f in je_arena_dalloc_promoted ()
#1 0x000000000046627d in je_free_default () at include/jemalloc/internal/arena_inlines_b.h:284
#2 0x000000000042205b in free () at skynet-src/malloc_hook.c:205
#3 0x00007ff83f15f689 in _dl_deallocate_tls (tcb=0x7ff83a3d7700, dealloc_tcb=false) at dl-tls.c:478
#4 0x00007ff83ef37b3d in __free_stacks (limit=41943040) at allocatestack.c:283
#5 0x00007ff83ef37c4c in queue_stack (pd=) at allocatestack.c:311
#6 __deallocate_stack (pd=) at allocatestack.c:747
#7 0x00007ff83ef39124 in pthread_join (threadid=140704074254080, thread_return=0x0) at pthread_join.c:110
#8 0x000000000041bb20 in skynet_start () at skynet-src/skynet_start.c:227
#9 0x00000000004182f1 in main () at skynet-src/skynet_main.c:166
备注:进程开启core监测后,调用 skynet.abort() 关进程是可以正常把进程给kill掉,此问题概率出现
The text was updated successfully, but these errors were encountered: