You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@brpc.apache.org by "qqwangxiaow (via GitHub)" <gi...@apache.org> on 2023/07/13 08:10:31 UTC
[I] CountdownEvent多bthread问题 (brpc)
qqwangxiaow opened a new issue, #2317:
URL: https://github.com/apache/brpc/issues/2317
**Describe the bug (描述bug)**
如果使用多bthread并发调用一个接口, 接口中会生成bthread::CountdownEvent wait()方法等待server返回, 会core
使用多pthread就不会
#0 0x000055fb32abc0c3 in std::__atomic_base<int>::load (__m=std::memory_order_acquire, this=0x0) at /usr/include/c++/6/bits/atomic_base.h:396
#1 bthread::CountdownEvent::wait (this=this@entry=0x7f462c01bfb0) at /tmp/build-C6o1eq/brpc-1.5.0/src/bthread/countdown_event.cpp:60
#2 0x000055fb32a7652b in rsdk::client::RefCountClosure::wait (this=<optimized out>)
**To Reproduce (复现方法)**
**Expected behavior (期望行为)**
**Versions (各种版本)**
OS:
Compiler:
brpc:
protobuf:
**Additional context/screenshots (更多上下文/截图)**
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: dev-unsubscribe@brpc.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@brpc.apache.org
For additional commands, e-mail: dev-help@brpc.apache.org
Re: [I] CountdownEvent多bthread core dump问题 (brpc)
Posted by "qqwangxiaow (via GitHub)" <gi...@apache.org>.
qqwangxiaow closed issue #2317: CountdownEvent多bthread core dump问题
URL: https://github.com/apache/brpc/issues/2317
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: dev-unsubscribe@brpc.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@brpc.apache.org
For additional commands, e-mail: dev-help@brpc.apache.org
Re: [I] CountdownEvent多bthread core dump问题 (brpc)
Posted by "qqwangxiaow (via GitHub)" <gi...@apache.org>.
qqwangxiaow commented on issue #2317:
URL: https://github.com/apache/brpc/issues/2317#issuecomment-1634122108
缺少 sinal_and_wait 这种方法 提前xigou了
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: dev-unsubscribe@brpc.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@brpc.apache.org
For additional commands, e-mail: dev-help@brpc.apache.org