brpc icon indicating copy to clipboard operation
brpc copied to clipboard

使用NotifyOnCancel时出现coredump

Open ivanallen opened this issue 8 months ago • 0 comments

Describe the bug (描述bug)

似乎遇到了和 #1369 同样的问题,发生概率非常低,暂不知道复现方法

brpc commit: 65e6e76a6a6388a507beb0d82cb516bdca56fc59

(gdb) bt
--
#0  0x0000000000fe657b in brpc::Controller::RunOnCancel(bthread_id_t, void*, int) ()
#1  0x0000000000fc692b in bthread_id_error_verbose ()
#2  0x0000000000fed163 in brpc::Controller::ResetNonPods() ()
#3  0x0000000000fed2af in brpc::Controller::~Controller() ()
#4  0x0000000000fed4a1 in brpc::Controller::~Controller() ()
#5  0x000000000105314a in brpc::policy::HttpResponseSender::~HttpResponseSender() ()
#6  0x0000000001056d04 in brpc::policy::HttpResponseSenderAsDone::~HttpResponseSenderAsDone() ()
#7  0x00000000006327e0 in brpc::ClosureGuard::~ClosureGuard (this=<synthetic pointer>, __in_chrg=<optimized out>)
at include/brpc/closure_guard.h:39
#8  master::MessageQueueServiceImpl::consume (this=0x38ea9e0, controller=0x7fa758130730, request=<optimized out>, response=0x7fa71c0b8910, done=0x7fa71c0b8810)
at src/master/message_queue_service.cc:407
#9  0x0000000001054e7f in brpc::policy::ProcessHttpRequest(brpc::InputMessageBase*) ()
#10 0x0000000001010c37 in brpc::ProcessInputMessage(void*) ()
#11 0x0000000001011efe in brpc::InputMessenger::OnNewMessages(brpc::Socket*) ()
#12 0x00000000010e052d in brpc::Socket::ProcessEvent(void*) ()
#13 0x0000000000fd7ebf in bthread::TaskGroup::task_runner(long) ()
#14 0x0000000001164f41 in bthread_make_fcontext ()
#15 0x0000000000000000 in ?? ()

Image

Image

ivanallen avatar Apr 03 '25 07:04 ivanallen