grpc centos CreateCustomChannel 存在Segmentation fault

问题描述 投票:0回答:0

在CentOS系统中使用gRPC时,如果在子线程中使用CreateCustomChannel,可能会出现segmentation fault。 例如: “std::shared_ptr channel = CreateCustomChannel(strAddr.toLocal8Bit().data(), InsecureChannelCredentials(), arg); ”

当我在主线程中使用时,它是成功的。

multithreading centos grpc
© www.soinside.com 2019 - 2024. All rights reserved.