-
Notifications
You must be signed in to change notification settings - Fork 3.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
http_rpc_protocol.cpp中core掉了, 看起来不像是业务代码导致的 #2081
Comments
偶发 |
编译所用commit |
可能是业务代码把内存写坏了,这个问题好复现不,建议开ASAN复现下。 |
定位了下, 是业务代码导致, 很容易复现,example中的echo server中throw 就可以复现。 但是这种定位core太不友好了 @wwbmmm 不知道是否可以改进下。 |
@jiangdongzi 自己给函数加noexcept声明即可,可以避免业务代码的异常抛到框架中。 比如service接口的函数: virtual void Echo(google::protobuf::RpcController* cntl_base,
const EchoRequest* request,
EchoResponse* response,
google::protobuf::Closure* done) noexcept {
} 以及这个接口所调用的各种函数。你觉得可能抛异常的都加上。 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The text was updated successfully, but these errors were encountered: