Skip to content
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

chain33正常运行时假死 #1180

Open
bysomeone opened this issue Dec 13, 2021 · 3 comments
Open

chain33正常运行时假死 #1180

bysomeone opened this issue Dec 13, 2021 · 3 comments

Comments

@bysomeone
Copy link
Collaborator

  • 比特元节点,正常同步过程中程序突然假死,通过pprof分析系统协程数量不断上升

image

  • 假死状态时, version, net is_sync, block last_header等命令可正常访问, mempool系列命令, net info卡死

  • 手动Ctrl+C停止前台进程,程序没有退出,反而恢复为正常运行状态

@bysomeone
Copy link
Collaborator Author

bysomeone commented Dec 15, 2021

目前追踪到假死时, 协程间存在系统调用死锁,其中一个是写日志操作,导致整个系统所有写日志阻塞,由于mempool是单线程模式,和mempool交互的协程阻塞无法处理,即协程数持续增加

image

@bysomeone
Copy link
Collaborator Author

正常同步一段时间问题必现,目前环境是WSL下的ubuntu18.04,WSL1对linux内核支持不完备,大概是这个问题,后续保持跟踪

@vipwzw
Copy link
Collaborator

vipwzw commented Jan 20, 2022

mac 电脑也有这样的情况

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants