You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@brpc.apache.org by GitBox <gi...@apache.org> on 2019/12/13 04:47:01 UTC

[GitHub] [incubator-brpc] zgb40302 edited a comment on issue #985: crash

zgb40302 edited a comment on issue #985: crash 
URL: https://github.com/apache/incubator-brpc/issues/985#issuecomment-565297679
 
 
   1,asan 没有内存问题。
   2,去掉 O2后,用的是O1,栈信息显示 operator() 的参数 obj=0x0,为啥还会core ?
    35 template <typename T> struct Destroyer {
    36     void operator()(T* obj) const { if (obj) { obj->Destroy(); } }
    37 };
   
   
   #0  0x00007ff5608351f7 in raise () from /lib64/libc.so.6
   #1  0x00007ff5608368e8 in abort () from /lib64/libc.so.6
   #2  0x00000000011c12a5 in __gnu_cxx::__verbose_terminate_handler () at ../../../../libstdc++-v3/libsupc++/vterminate.cc:95
   #3  0x000000000112c556 in __cxxabiv1::__terminate (handler=<optimized out>) at ../../../../libstdc++-v3/libsupc++/eh_terminate.cc:47
   #4  0x00000000011373e9 in __cxa_call_terminate (ue_header=ue_header@entry=0x7ff458517fd0) at ../../../../libstdc++-v3/libsupc++/eh_call.cc:54
   #5  0x000000000112bb88 in __cxxabiv1::__gxx_personality_v0 (version=<optimized out>, actions=6, exception_class=5138137972254386944, ue_header=0x7ff458517fd0, context=<optimized out>)
       at ../../../../libstdc++-v3/libsupc++/eh_personality.cc:676
   #6  0x00007ff560dee8a3 in ?? () from /lib64/libgcc_s.so.1
   #7  0x00007ff560deedd7 in _Unwind_Resume () from /lib64/libgcc_s.so.1
   #8  0x00000000006746c2 in operator() (**obj=0x0,** this=<synthetic pointer>) at /data1/incubator-brpc/src/brpc/destroyable.h:36
   #9  ~unique_ptr (this=<synthetic pointer>, __in_chrg=<optimized out>) at /usr/include/c++/4.8.2/bits/unique_ptr.h:184
   #10 ~DestroyingPtr (this=<synthetic pointer>, __in_chrg=<optimized out>) at /data1/incubator-brpc/src/brpc/destroyable.h:42
   #11 brpc::policy::ProcessHttpRequest (msg=<optimized out>) at /data1/incubator-brpc/src/brpc/policy/http_rpc_protocol.cpp:1493
   #12 0x000000000064043a in brpc::ProcessInputMessage (void_arg=void_arg@entry=0x7ff45814cfc0) at /data1/incubator-brpc/src/brpc/input_messenger.cpp:136
   #13 0x00000000006414b5 in operator() (last_msg=0x7ff45814cfc0, this=<synthetic pointer>) at /data1/incubator-brpc/src/brpc/input_messenger.cpp:142
   #14 brpc::InputMessenger::OnNewMessages (m=0x7ff4300f28e0) at /usr/include/c++/4.8.2/bits/unique_ptr.h:184
   #15 0x00000000005a1249 in brpc::Socket::ProcessEvent (arg=0x7ff4300f28e0) at /data1/incubator-brpc/src/brpc/socket.cpp:1020
   #16 0x00000000005ecd18 in bthread::TaskGroup::task_runner (skip_remained=<optimized out>) at /data1/incubator-brpc/src/bthread/task_group.cpp:297
   #17 0x00000000005db941 in bthread_make_fcontext ()

----------------------------------------------------------------
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:
users@infra.apache.org


With regards,
Apache Git Services

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