scottzzq commented on issue #165: 在brpc接口内部core,但是使用gdb分析时遇到问题
URL: https://github.com/apache/incubator-brpc/issues/165#issuecomment-475150739
 
 
   执行到brpc内部挂掉:
   #0  0x00007f0621a605f7 in raise () from /usr/lib64/libc.so.6
   #1  0x00007f0621a61ce8 in abort () from /usr/lib64/libc.so.6
   #2  0x0000000000489f11 in myterminate () at 
brpc/example/echo_c++/server.cpp:322
   #3  0x0000000000b651e6 in __cxxabiv1::__terminate (handler=<optimized out>) 
at ../../../../libstdc++-v3/libsupc++/eh_terminate.cc:47
   #4  0x0000000000bf0c09 in __cxa_call_terminate 
(ue_header=ue_header@entry=0x7f060c047570) at 
../../../../libstdc++-v3/libsupc++/eh_call.cc:54
   #5  0x0000000000b64a05 in __cxxabiv1::__gxx_personality_v0 
(version=<optimized out>, actions=<optimized out>, 
exception_class=5138137972254386944, 
       ue_header=<optimized out>, context=0x7f05fdfea8e0) at 
../../../../libstdc++-v3/libsupc++/eh_personality.cc:676
   #6  0x0000000000bf9023 in _Unwind_RaiseException_Phase2 
(exc=exc@entry=0x7f060c047570, context=context@entry=0x7f05fdfea8e0) at 
../../../libgcc/unwind.inc:62
   #7  0x0000000000bf9877 in _Unwind_Resume (exc=exc@entry=0x7f060c047570) at 
../../../libgcc/unwind.inc:230
   #8  0x0000000000508036 in operator() (this=<optimized out>, obj=<optimized 
out>) at brpc/src/brpc/destroyable.h:33
   #9  ~unique_ptr (this=<synthetic pointer>, __in_chrg=<optimized out>) at 
/usr/include/c++/5.2.0/bits/unique_ptr.h:236
   #10 ~DestroyingPtr (this=<synthetic pointer>, __in_chrg=<optimized out>) at 
brpc/src/brpc/destroyable.h:39
   #11 brpc::policy::ProcessRpcRequest (msg_base=<optimized out>) at 
brpc/src/brpc/policy/baidu_rpc_protocol.cpp:333
   #12 0x000000000055b887 in brpc::ProcessInputMessage 
(void_arg=void_arg@entry=0x7f060c036b20) at 
brpc/src/brpc/input_messenger.cpp:133
   #13 0x000000000055c7c8 in operator() (this=<optimized out>, 
last_msg=0x7f060c036b20) at brpc/src/brpc/input_messenger.cpp:139
   #14 brpc::InputMessenger::OnNewMessages (m=0x7f05ec01ac80) at 
/usr/include/c++/5.2.0/bits/unique_ptr.h:236
   #15 0x00000000004a6fed in brpc::Socket::ProcessEvent (arg=0x7f05ec01ac80) at 
brpc/src/brpc/socket.cpp:1079
   #16 0x0000000000609694 in bthread::TaskGroup::task_runner 
(skip_remained=<optimized out>) at brpc/src/bthread/task_group.cpp:293
   #17 0x00000000005f10e1 in bthread_make_fcontext ()
   #18 0x00010102464c457f in ?? ()
   #19 0x0000000000000000 in ?? ()
   
   
   
   
   
业务执行map.at,抛异常,栈回退的过程完全正常,本来应该在_Unwind_RaiseException_Phase2这个函数中执行fs.personality就会挂掉,但是这个指针为NULL
   
   (gdb) bt
   #0  _Unwind_RaiseException_Phase2 (exc=exc@entry=0x7fffd003d5b0, 
context=context@entry=0x7fffcb3ec780) at ../../../libgcc/unwind.inc:40
   #1  0x0000000000bf9877 in _Unwind_Resume (exc=exc@entry=0x7fffd003d5b0) at 
../../../libgcc/unwind.inc:230
   #2  0x000000000048c0d4 in ~_Rb_tree (this=0x7fffcb3ec940, 
__in_chrg=<optimized out>) at /usr/include/c++/5.2.0/bits/stl_tree.h:858
   #3  ~map (this=0x7fffcb3ec940, __in_chrg=<optimized out>) at 
/usr/include/c++/5.2.0/bits/stl_map.h:96
   #4  example::EchoServiceImpl::Echo (this=<optimized out>, 
cntl_base=<optimized out>, request=0x7fffd0039ae0, response=0x7fffd0039c38, 
done=0x7fffd003d4d0)
       at brpc/example/echo_c++/server.cpp:254
   #5  0x000000000043a075 in example::EchoService::CallMethod (this=<optimized 
out>, method=<optimized out>, controller=<optimized out>, request=<optimized 
out>, 
       response=<optimized out>, done=<optimized out>) at 
build64_release/brpc/example/echo_c++/echo.pb.cc:675
   #6  0x0000000000507d39 in brpc::policy::ProcessRpcRequest 
(msg_base=0x7fffd002cb20) at brpc/src/brpc/policy/baidu_rpc_protocol.cpp:553
   #7  0x000000000055b887 in brpc::ProcessInputMessage 
(void_arg=void_arg@entry=0x7fffd002cb20) at 
brpc/src/brpc/input_messenger.cpp:133
   #8  0x000000000055c7c8 in operator() (this=<optimized out>, 
last_msg=0x7fffd002cb20) at brpc/src/brpc/input_messenger.cpp:139
   #9  brpc::InputMessenger::OnNewMessages (m=0x7fffcc01ac80) at 
/usr/include/c++/5.2.0/bits/unique_ptr.h:236
   #10 0x00000000004a6fed in brpc::Socket::ProcessEvent (arg=0x7fffcc01ac80) at 
brpc/src/brpc/socket.cpp:1079
   #11 0x0000000000609694 in bthread::TaskGroup::task_runner 
(skip_remained=<optimized out>) at brpc/src/bthread/task_group.cpp:293
   #12 0x00000000005f10e1 in bthread_make_fcontext ()
   #13 0x00010102464c457f in ?? ()
   #14 0x0000000000000000 in ?? ()

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