rpki-client / rpki-client-portable

Portability shim for OpenBSD's rpki-client

Home Page:https://rpki-client.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

-r poll loop on debian/redhat?

job opened this issue · comments

environment: debian bullseye, linux 5.9.0

./build_libtls.sh was run successfully before building rpki-client-portable

the thing hangs here:

$ sudo ./src/rpki-client -r -t /etc/tals/afrinic.tal  -v
rpki-client: ta/afrinic: pulling from https://rpki.afrinic.net/repository/AfriNIC.cer
rpki-client: ta/afrinic: loaded from network
rpki-client: https://rrdp.afrinic.net/notification.xml: pulling from network
^C

it appears it is stuck in some kind of poll() related loop, strace shows

[pid 2171457] poll([{fd=5, events=POLLIN}, {fd=6, events=POLLIN}], 2, -1) = 1 ([{fd=6, revents=POLLHUP}])
[pid 2171457] poll([{fd=5, events=POLLIN}, {fd=6, events=POLLIN}], 2, -1) = 1 ([{fd=6, revents=POLLHUP}])
[pid 2171457] poll([{fd=5, events=POLLIN}, {fd=6, events=POLLIN}], 2, -1) = 1 ([{fd=6, revents=POLLHUP}])
[pid 2171457] poll([{fd=5, events=POLLIN}, {fd=6, events=POLLIN}], 2, -1) = 1 ([{fd=6, revents=POLLHUP}])

@robert-scheck saw the same on red hat / fedora

Just as a note for others, build_libtls.sh should only be used by the CI system.

This feels related to issue #45

Should be fixed now.

Works for me (RHEL/CentOS, Fedora) with latest commits 927f4a5 and rpki-client/rpki-client-openbsd@fa65aee.