Application hangs at recvmsg() from getaddrinfo()

Solution Verified - Updated -

Issue

  • Greenplum Database application hungs at recvmsg() from getaddrinfo() in RHEL7.
A thread waits at recvmsg()
    203 #0  0x00007f07aac751fd in recvmsg () from /lib64/libc.so.6
    204 #1  0x00007f07aac97a6d in make_request () from /lib64/libc.so.6
    205 #2  0x00007f07aac97f64 in __check_pf () from /lib64/libc.so.6
    206 #3  0x00007f07aac5ddf1 in getaddrinfo () from /lib64/libc.so.6

Other threads wait at
    222 #0  0x00007f07aac81c4c in __lll_lock_wait_private () from /lib64/libc.so.6
    223 #1  0x00007f07aac9805d in _L_lock_746 () from /lib64/libc.so.6
    224 #2  0x00007f07aac97e15 in __check_pf () from /lib64/libc.so.6
    225 #3  0x00007f07aac5ddf1 in getaddrinfo () from /lib64/libc.so.6
  • The process was waiting at recvmsg() to receive a message from kernel via a NETLINK socket.

Environment

  • Red Hat Enterprise Linux
    • 7.1 (kernel-3.10.0-229.el7 series)
    • 7.2 (any kernel earlier than kernel-3.10.0-327.54.1.el7)
  • Application using netlink sockets to communicate with kernel

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content