zzjshaok opened a new issue #1407:
URL: https://github.com/apache/incubator-brpc/issues/1407


   **Describe the bug (描述bug)**
   linux arm 64,  对brpc服务端加大压力并发压测,rpc服务端打印"bthread=  sched_to itself!"并退出
   
   **To Reproduce (复现方法)**
   linux arm 64,  300个客户端线程并发压测一段时间,rpc服务端 sched_to itself
   
   **Expected behavior (期望行为)**
   服务端正常工作
   
   **Versions (各种版本)**
   OS: Linux 10-21-10-172 4.19.0-arm64-server #1813 SMP Mon Aug 31 15:44:57 CST 
2020 aarch64 GNU/Linux
   Compiler: gcc version 8.3.0 (Uos 8.3.0.3-3+rebuild) 
   brpc: master
   protobuf:
   
   **Additional context/screenshots (更多上下文/截图)**
   已经禁用gcse优化 -fno-gcse;经过跟踪调试,每次异常时,task_group.cpp 中的void 
TaskGroup::task_runner(intptr_t skip_remained) 
函数内部,在调用完BAIDU_SCOPED_LOCK(m->version_lock)后,g != 
tls_task_group,理论上这句最终调用的是butil\scoped_lock.h 中的pthread_spin_lock(_pspin); 
   不清楚在arm 64 环境下,为何有时调用完此行代码会发生协程环境切换?
   
   


-- 
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:
[email protected]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to