scottzzq commented on issue #165: 在brpc接口内部core,但是使用gdb分析时遇到问题
URL: https://github.com/apache/incubator-brpc/issues/165#issuecomment-475149777
 
 
   我也遇到类似的问题,跟了一下gcc5.2源码
   
![image](https://user-images.githubusercontent.com/1217132/54741088-4601b380-4bf8-11e9-8e1f-36d927b850ee.png)
   这个地方 
fs.personality函数指针是NULL,所以在业务代码抛异常的时候,进程不会挂掉,但是在栈回退到brpc内部的地方fs.personality这个函数指针指向terminal函数,最终执行了abort,导致进程挂掉。
   
   设置personality指针的代码如下:
   
![image](https://user-images.githubusercontent.com/1217132/54741234-cde7bd80-4bf8-11e9-8fc3-671ce46d737b.png)
   
   麻烦 @jamesge  看下,谢谢!
   
   

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


With regards,
Apache Git Services

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

Reply via email to