lorinlee commented on issue #2278:
URL: https://github.com/apache/brpc/issues/2278#issuecomment-1595797415

   
这个只能是不要在catch内切换bthread上下文了,C++的异常机制就是这样的,依赖了tls记录一些信息,__cxa_end_catch的实现可能会减最近一个exception的refcount进而释放最近的一个exception,所以bthread1醒来完成了catch
 block之后,就会把bthread2的exception错误地释放掉。这里是因为什么需要在catch里切bthread呢,能换一种实现方式么


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

Reply via email to