Knot Resolver: Resolve DNS names like it's 2022! https://www.knot-resolver.cz/support/
Hi, I'm building Knot Resolver 5.1.2 on a Raspberry Pi 4 with Ubuntu 20.04 (arm64) and when I run kresd I get the following error:
PANIC: unprotected error in call to Lua API (bad light userdata pointer)
This is a known issue with LuaJIT on arm64: https://gitlab.nic.cz/knot/knot-resolver/issues/216
The doubt I have is that with the official Knot Resolver package this problem does not occur to me and kresd works fine and I was wondering why it behaves differently.
lua-cqueues
is the typical one in our case, as it's loaded by default if found.
luajit -l cqueues -e os.exit(0)
To replicate the problem correctly I've written down the build steps in Dockerfiles and the conclusion is that the crash occurs in Ubuntu 20.04, Debian Buster, Debian Sid and Alpine 3. It works correctly in Fedora 32, CentOS 7 and openSUSE Tumbleweed.
I get the same results with the last commit of the v2.1
branch of LuaJIT (570e758
) and with Moonjit 2.1.2.
I'm not using any Lua package and the Docker images have been built directly on a Raspberry Pi 4 (8 GB) with a 64-bit kernel.
EPERM
on systems that explicitly disable IPv6 (and you try to use it).
ERROR: udp sendmmsg() sent -1 / 2; Operation not permitted
ERROR: udp sendmmsg() sent -1 / 1; Operation not permitted
ERROR: udp sendmmsg() sent -1 / 3; Operation not permitted
[poli] RPZ /etc/knot-resolver/blocklist.rpz:95939: invalid number