-
Notifications
You must be signed in to change notification settings - Fork 252
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
[coro_rpc] [async_simple] coro_rpc配合ConditionVariable使用出错 #881
Comments
ptbxzrt
changed the title
coro_rpc配合ConditionVariable使用出错
[coro_rpc] [async_simple] coro_rpc配合ConditionVariable使用出错
Jan 14, 2025
抱歉,这是一个已知问题。和 #847 相同。 |
原因在于目前rpc server的调度器总是调用dispatch立即执行任务,而不是post将任务加入到队列末尾,导致协程栈在你这种争抢锁的情况下出现类似尾递归的现象,导致栈不断增长。 最近几天我们会修复这个问题 |
明白,辛苦了! |
你可以看下 #882 是否修复了问题 |
似乎还是不太正常欸。 |
你用的是什么编译器呢,包括版本 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
最小复现代码如下所示。
coro_rpc配合ConditionVariable使用,程序无法正常退出,用gdb的bt命令查看调用栈,发现调用栈在无限递归。
不知道是不是我的使用方法不对,请求帮助,非常感谢!!!!
从下面这个图可以看到,函数调用栈在无限递归。
The text was updated successfully, but these errors were encountered: