You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@brpc.apache.org by GitBox <gi...@apache.org> on 2020/08/11 10:17:44 UTC

[GitHub] [incubator-brpc] zhangqiang4002 commented on issue #644: bthread_id_join->butex_wait死锁问题

zhangqiang4002 commented on issue #644:
URL: https://github.com/apache/incubator-brpc/issues/644#issuecomment-671861038


   Thread 1647 (Thread 0x7f62e0316700 (LWP 226)):
   #0  0x00007f62e7c66c09 in syscall () from /lib64/libc.so.6
   #1  0x0000000000a34092 in futex_wait_private (timeout=0x0, expected=0, addr1=0x7f62e0314990) at ./src/bthread/sys_futex.h:41
   #2  bthread::wait_pthread (pw=..., ptimeout=ptimeout@entry=0x0) at src/bthread/butex.cpp:142
   #3  0x0000000000a35497 in butex_wait_from_pthread (abstime=0x0, expected_value=7981, b=0x11d06b40, g=<optimized out>) at src/bthread/butex.cpp:589
   #4  bthread::butex_wait (arg=arg@entry=0x11d06b40, expected_value=expected_value@entry=7981, abstime=abstime@entry=0x0) at src/bthread/butex.cpp:622
   #5  0x0000000000a420e8 in bthread_id_join (id=...) at src/bthread/id.cpp:530
   #6  0x0000000000903669 in brpc::Join(bthread_id_t) () at ./src/brpc/controller.h:365
   #7  0x000000000091f97f in brpc::Channel::CallMethod (this=0x7f62e0314f60, method=0x4fb7a08, controller_base=0x7f62e0315060, request=0x7f62e0314d00, response=0x7f62e0314be0, done=0x0) at src/brpc/channel.cpp:537
   #8  0x0000000000b0d493 in braft::rtb::refresh_leader (group=..., timeout_ms=5000) at /home/svn/joostzhang/elasticfaiss1.5/deps/braft-1.1.1/src/braft/route_table.cpp:194
   #9  0x00000000004e3ebe in elasticfaiss::WorkNodeServiceImpl::report_heartbeat (this=this@entry=0x3604780 <elasticfaiss::g_work_node>) at worker/node_service.cpp:293
   #10 0x00000000004e4267 in elasticfaiss::WorkNodeServiceImpl::Run (this=0x3604780 <elasticfaiss::g_work_node>) at worker/node_service.cpp:83
   #11 0x00000000008dc1d9 in butil::SimpleThread::ThreadMain (this=0x3604788 <elasticfaiss::g_work_node+8>) at src/butil/threading/simple_thread.cc:60
   #12 0x0000000000a08990 in butil::(anonymous namespace)::ThreadFunc (params=<optimized out>) at src/butil/threading/platform_thread_posix.cc:79
   #13 0x00007f62e94c8dc5 in start_thread () from /lib64/libpthread.so.0
   #14 0x00007f62e7c6c74d in clone () from /lib64/libc.so.6
   遇到同样的问题, 只要抛出这个异常, 必现:
   Fail to mmap size=1052672 stack_count=30944, possibly limited by /proc/sys/vm/max_map_count: Cannot allocate memory


----------------------------------------------------------------
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.

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