I am debugging in an issue with gRPC which calls getsockopt before bind (see https://github.com/grpc/grpc/blob/master/src/core/lib/iomgr/tcp_server_utils_posix_common.cc#L165). When I run this program in Graphene, getsockopt fails because a pal_handle isn't assigned until bind is called. It seems like a pal_handle should be assigned earlier when socket is called. Below is a minimal test case.
I am debugging in an issue with gRPC which calls
getsockopt
beforebind
(see https://github.com/grpc/grpc/blob/master/src/core/lib/iomgr/tcp_server_utils_posix_common.cc#L165). When I run this program in Graphene,getsockopt
fails because apal_handle
isn't assigned untilbind
is called. It seems like apal_handle
should be assigned earlier whensocket
is called. Below is a minimal test case.