wasphin edited a comment on issue #1264: URL: https://github.com/apache/incubator-brpc/issues/1264#issuecomment-708886562
> @wasphin 你试试看把`class D1 : public B1, public B2`改成`class D1 : public B2, public B1`还会挂么,看上去是c++多重继承导致的内存排列问题,`static_cast<B2*>(arg)`和D1继承B2的方式是冲突的。 有试过, 还是会挂, ~印象中挂的地方不一样了, 是一个 assert pid 的部分~. 重新试了一下, 调整继承顺序后报错一样. ``` 0x00000000004b2886 in xxx (this=0x0, path=<error reading variable: Cannot access memory at address 0x8>) xxx ``` ---------------------------------------------------------------- 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]
