Segmentation fault occurs in libluajit-5.1.so.2
Installing kresd from the repository in the aarch64 environment causes a segmentation fault. I also downloaded and executed 1.3.2 directly from the repository, but the results were the same.
$ sudo gdb /usr/sbin/kresd
GNU gdb (Ubuntu 7.11.1-0ubuntu1~16.5) 7.11.1
Copyright (C) 2016 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "aarch64-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from /usr/sbin/kresd...(no debugging symbols found)...done.
(gdb) r
Starting program: /usr/sbin/kresd
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/aarch64-linux-gnu/libthread_db.so.1".
Program received signal SIGSEGV, Segmentation fault.
0x0000ffffbf5407d4 in lua_pushcclosure () from /usr/lib/aarch64-linux-gnu/libluajit-5.1.so.2
The environment is as follows.
$ uname -a
Linux dns02 4.13.0-rc3-odroidc2 #8 SMP PREEMPT Thu Aug 3 09:53:36 CEST 2017 aarch64 aarch64 aarch64 GNU/Linux
$ cat /etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=16.04
DISTRIB_CODENAME=xenial
DISTRIB_DESCRIPTION="Ubuntu 16.04.3 LTS"
$ kresd -V
Knot DNS Resolver, version 1.3.3