Cyber-SiKu opened a new issue, #2590: URL: https://github.com/apache/brpc/issues/2590
**Describe the bug (描述bug)** 当在 bthread 中使用标准库的std::mutex和std::condition_variable时,会导致线程丢失。线程没有退出也没有coredump,导致资源没有回收,引发死锁。 **To Reproduce (复现方法)** 测试用例 https://github.com/Cyber-SiKu/brpc/pull/1/files **Expected behavior (期望行为)** **Versions (各种版本)** OS: centos7 Compiler: gcc-11 brpc: protobuf: **Additional context/screenshots (更多上下文/截图)** 在日志中加了一些输出:  运行程序可以看到程序死锁,启动了9个线程,并且输出的1.1和1.2并不能成对:  gdb 中有8个线程,这与start启动的线程数量不一致。  -- 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: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
