Skip to content

Commit

Permalink
fix coredump stack uncomplete when usercode throw exceptions (#2256)
Browse files Browse the repository at this point in the history
  • Loading branch information
smbzhang authored May 23, 2023
1 parent 3dbf35b commit cb7a6ff
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/brpc/input_messenger.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ static void QueueMessage(InputMessageBase* to_run_msg,
}
}

InputMessenger::InputMessageClosure::~InputMessageClosure() {
InputMessenger::InputMessageClosure::~InputMessageClosure() noexcept(false) {
if (_msg) {
ProcessInputMessage(_msg);
}
Expand Down
2 changes: 1 addition & 1 deletion src/brpc/input_messenger.h
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ friend class rdma::RdmaEndpoint;
class InputMessageClosure {
public:
InputMessageClosure() : _msg(NULL) { }
~InputMessageClosure();
~InputMessageClosure() noexcept(false);

InputMessageBase* release() {
InputMessageBase* m = _msg;
Expand Down

0 comments on commit cb7a6ff

Please sign in to comment.