helloworld0xff commented on issue #1188:
URL: https://github.com/apache/brpc/issues/1188#issuecomment-2277575711

   > #1325 猜测是ResourcePool返回了一个超过65535的id,原因是看ResourcePool的逻辑是65536个group * 
65536个Block * 256个元素,其容量远大于2^32。而bthread_id_t的计算方式是 resource_id << 32 | 
version,那么resource_id == 0 和 resource_id = 
65536生成的bthread_id_t的值是一样的,这俩id在return_resource的时候会把resource_id == 
0的元素return两遍,后续get_resouce就会有问题。 #1179 
这个也有可能是这个原因,不过1179看起来不光是TimerTask相同,而且还连在一起了,概率感觉比较低,还没有想明白
   > 
   > 这个issue另外一个问题是butex是nullptr,感觉可能是创建的时候就失败了,之前没有check,这个PR加了个check,#1326
   > 
   > @jamesge @acelyc111 辛苦帮忙review下看我的猜测是否合理哈,感谢
   
   不对,我这边也是这个地方崩溃了,但是_ngroup的值是1,id值没有超过int max


-- 
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-unsubscr...@brpc.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@brpc.apache.org
For additional commands, e-mail: dev-h...@brpc.apache.org

Reply via email to