Error while using distributed point-point communication

libc++abi.dylib: terminating with uncaught exception of type std::__1::system_error: mutex lock failed: Invalid argument

I encountered this error while experimenting with torch.distributed.send and torch.distributed.recv, and haven’t been able to reproduce it. Any thoughts on what might have caused this?