Possible deadlock in unix/socket.c
In process_fd we lock sock->lock, and then in internal_accept called from it we lock manager->lock while holding sock->lock In isc_socketmgr_render{xml,json} we lock manager->lock and then for each sock we lock sock->lock. That can cause a deadlock.