The libfabric wait/poll support requires epoll, which is a Linux thing
rather than a POSIX one and thus isn't present on macOS. But because
macOS is a rather secondary target for libfabric, they haven't coded any
sort of workaround for that either. The result is that depending on the
circumstances you can see a variety of unpleasant behaviors (internal
error, hang, segfault) if you turn on waiting and/or polling for CQs. So
here, just avoid wait/poll with CQs entirely under macOS.
There is some background information in the comments on this libfabric
issue, though the issue itself isn't directly about this problem:
Modified Files:
M runtime/src/comm/ofi/comm-ofi.c
Compare: https://github.com/chapel-lang/chapel/compare/21a5fe46de72...82f6f885d4d9