Then build with: ECDSA, GOST, THREADS Segmentation fault - always. without all options Segmentation fault only unbound-anchor. truss /usr/local/sbin/unbound-anchor .... open("/usr/local/etc/unbound/root.key",O_RDONLY,0666) = 3 (0x3) fstat(3,{ mode=-rw-r--r-- ,inode=1206710,size=759,blksize=32768 }) = 0 (0x0) read(3,"; autotrust trust anchor file\n;"...,32768) = 759 (0x2f7) read(3,0x802036000,32768) = 0 (0x0) close(3) = 0 (0x0) madvise(0x80202d000,0x1000,0x5,0xaaaaaaaaaaaaaaab,0x802000498,0x8018d2990) = 0 (0x0) madvise(0x802035000,0x9000,0x5,0xaaaaaaaaaaaaaaab,0x802000498,0x8018d2990) = 0 (0x0) clock_gettime(13,{1439875534.000000000 }) = 0 (0x0) getpid() = 54969 (0xd6b9) socketpair(0x1,0x1,0x0,0x7fffffffa068,0x60,0x80203d010) = 0 (0x0) fcntl(3,F_GETFL,) = 2 (0x2) fcntl(3,F_SETFL,O_NONBLOCK|0x2) = 0 (0x0) fcntl(4,F_GETFL,) = 2 (0x2) fcntl(4,F_SETFL,O_NONBLOCK|0x2) = 0 (0x0) socketpair(0x1,0x1,0x0,0x7fffffffa068,0x60,0x80203d010) = 0 (0x0) fcntl(5,F_GETFL,) = 2 (0x2) fcntl(5,F_SETFL,O_NONBLOCK|0x2) = 0 (0x0) fcntl(6,F_GETFL,) = 2 (0x2) fcntl(6,F_SETFL,O_NONBLOCK|0x2) = 0 (0x0) open("/usr/local/etc/unbound/root.key",O_RDONLY,0666) = 7 (0x7) fstat(7,{ mode=-rw-r--r-- ,inode=1206710,size=759,blksize=32768 }) = 0 (0x0) read(7,"; autotrust trust anchor file\n;"...,32768) = 759 (0x2f7) read(7,0x8020b6000,32768) = 0 (0x0) close(7) = 0 (0x0) clock_gettime(13,{1439875534.000000000 }) = 0 (0x0) getpid() = 54969 (0xd6b9) getpid() = 54969 (0xd6b9) __sysctl(0x7fffffff9e98,0x2,0x7fffffff9ee0,0x7fffffff9e90,0x0,0x0) = 0 (0x0) mmap(0x0,16,PROT_READ|PROT_WRITE,MAP_PRIVATE|MAP_ANON,-1,0x0) = 34366345216 (0x80064d000) mmap(0x0,1088,PROT_READ|PROT_WRITE,MAP_PRIVATE|MAP_ANON,-1,0x0) = 34366349312 (0x80064e000) gettimeofday({1439875534.013911 },0x0) = 0 (0x0) SIGNAL 11 (SIGSEGV) process exit, rval = 0 gdb /usr/local/sbin/unbound-anchor ./unbound-anchor.core (gdb) bt #0 0x00000008008536e4 in ub_ctx_set_event () from /usr/local/lib/libunbound.so.2 #1 0x000000080082fbfa in ub_ctx_set_event () from /usr/local/lib/libunbound.so.2 #2 0x00000008008305fc in ub_ctx_set_event () from /usr/local/lib/libunbound.so.2 #3 0x000000080082eb01 in ub_resolve () from /usr/local/lib/libunbound.so.2 #4 0x00000000004034eb in ?? () #5 0x0000000000402e7f in ?? () #6 0x0000000800626000 in ?? () #7 0x0000000000000000 in ?? ()
segfault on server start?
Created attachment 160005 [details] svn diff for Unbound fixing LibreSSL issue This patch is partly an upstream fix https://www.nlnetlabs.nl/bugs-script/show_bug.cgi?id=694 In addition - Adds USES+= autoreconf - Silences portlint -AC - Adds regression-test target the files/patch-configure.ac can be removed when the next version is released as it is included upstream. Using the patch and with LibreSSL installed the make regression-test target shows all OK.
This is a good patch. But does it fix the sigfault?
A commit references this bug: Author: sem Date: Wed Aug 19 15:49:44 UTC 2015 New revision: 394796 URL: https://svnweb.freebsd.org/changeset/ports/394796 Log: - Fix LibreSSL issue (from upstream) - Add autoreconf to USES - Satisfy portlint -AC - Add regress-test target - Back FILTER_AAAA option PR: 202407 Submitted by: brnrd Changes: head/dns/unbound/Makefile head/dns/unbound/files/patch-configure.ac head/dns/unbound/files/patch-contrib-aaaa-filter-iterator.patch
Fixed! Thanks!