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