Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 836580 - net-dns/pdns-recursor-4.6.1: Segmentation fault
Summary: net-dns/pdns-recursor-4.6.1: Segmentation fault
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal
Assignee: Sven Wegener
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-04-01 07:53 UTC by Norman Rieß
Modified: 2022-04-02 14:12 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Norman Rieß 2022-04-01 07:53:19 UTC
After updating to net-dns/pdns-recursor-4.6.1 the service segfaults without further information.

Apr 01 09:48:35 PowerDNS Recursor 4.6.1 (C) 2001-2021 PowerDNS.COM BV
Apr 01 09:48:35 Using 64-bits mode. Built using gcc 11.2.1 20220115 on Apr  1 2022 09:33:26 by portage@localhost.
Apr 01 09:48:35 PowerDNS comes with ABSOLUTELY NO WARRANTY. This is free software, and you are welcome to redistribute it according to the terms of the GPL version 2.
Apr 01 09:48:35 Enabling IPv4 transport for outgoing queries
Apr 01 09:48:35 Enabling IPv6 transport for outgoing queries
Segmentation fault


emerge --info:

Portage 3.0.30 (python 3.9.9-final-0, default/linux/amd64/17.1, gcc-11.2.1, glibc-2.34-r10, 5.16.14-gentoo-dist x86_64)
=================================================================
System uname: Linux-5.16.14-gentoo-dist-x86_64-AMD_EPYC-Rome_Processor-with-glibc2.34
KiB Mem:    28752580 total,   6729436 free
KiB Swap:    2047996 total,   1813076 free
Timestamp of repository gentoo: Fri, 01 Apr 2022 06:45:01 +0000
Head commit of repository gentoo: 790ceea9a0161a3c5585bdcf339eac0aaa21a5b3
sh bash 5.1_p16
ld GNU ld (Gentoo 2.37_p1 p2) 2.37
app-misc/pax-utils:        1.3.3::gentoo
app-shells/bash:           5.1_p16::gentoo
dev-java/java-config:      2.3.1::gentoo
dev-lang/perl:             5.34.0-r6::gentoo
dev-lang/python:           3.9.9-r1::gentoo, 3.10.2_p1::gentoo
dev-lang/rust:             1.58.1::gentoo
dev-util/cmake:            3.22.2::gentoo
dev-util/meson:            0.60.3::gentoo
sys-apps/baselayout:       2.7-r3::gentoo
sys-apps/openrc:           0.44.10::gentoo
sys-apps/sandbox:          2.29::gentoo
sys-devel/autoconf:        2.71-r1::gentoo
sys-devel/automake:        1.16.4::gentoo
sys-devel/binutils:        2.37_p1-r2::gentoo
sys-devel/binutils-config: 5.4.1::gentoo
sys-devel/gcc:             11.2.1_p20220115::gentoo
sys-devel/gcc-config:      2.5-r1::gentoo
sys-devel/libtool:         2.4.6-r6::gentoo
sys-devel/make:            4.3::gentoo
sys-kernel/linux-headers:  5.15-r3::gentoo (virtual/os-headers)
sys-libs/glibc:            2.34-r10::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: rsync
    sync-uri: rsync://rsync.de.gentoo.org/gentoo-portage
    priority: -1000
    sync-rsync-verify-max-age: 24
    sync-rsync-verify-metamanifest: yes
    sync-rsync-extra-opts:
    sync-rsync-verify-jobs: 1

ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/easy-rsa /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php8.0/ext-active/ /etc/php/cgi-php8.0/ext-active/ /etc/php/cli-php8.0/ext-active/ /etc/php/fpm-php8.0/ext-active/ /etc/php/phpdbg-php8.0/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-march=native -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
ENV_UNSET="CARGO_HOME DBUS_SESSION_BUS_ADDRESS DISPLAY GOBIN GOPATH PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs buildpkg-live config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-fetch pid-sandbox preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="de_DE.utf8"
LC_ALL="C"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="de"
MAKEOPTS="-j6"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git"
PORTAGE_TMPDIR="/var/tmp"
SHELL="/bin/bash"
USE="aac acl aes amd64 avx avx2 bzip2 cli crypt dist-kernel dri f16c fma3 fortran gdbm iconv ipv6 jpeg libglvnd libtirpc matroska mjpeg mmx mmxext mp3 mp4 mpeg multilib ncurses nls nptl ogg openmp opus pam pclmul pcre png popcnt rdrand readline seccomp sha split-usr sse sse2 sse3 sse4_1 sse4_2 sse4a ssl ssse3 theora unicode vorbis x264 x265 xattr xvid zlib" ABI_X86="64" ADA_TARGET="gnat_2020" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="karbon sheets words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="aes avx avx2 f16c fma3 mmx mmxext pclmul popcnt rdrand sha sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock greis isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="evdev" KERNEL="linux" L10N="de" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LUA_SINGLE_TARGET="lua5-1" LUA_TARGETS="lua5-1" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php7-0 php7-1" POSTGRES_TARGETS="postgres12 postgres13" PYTHON_SINGLE_TARGET="python3_9" PYTHON_TARGETS="python3_9" RUBY_TARGETS="ruby26 ruby27" USERLAND="GNU" VIDEO_CARDS="cirrus" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq proto steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  ADDR2LINE, AR, ARFLAGS, AS, ASFLAGS, CC, CCLD, CONFIG_SHELL, CPP, CPPFLAGS, CTARGET, CXX, CXXFILT, ELFEDIT, EMERGE_DEFAULT_OPTS, EXTRA_ECONF, F77FLAGS, FC, GCOV, GPROF, INSTALL_MASK, LD, LEX, LFLAGS, LIBTOOL, MAKE, MAKEFLAGS, NM, OBJCOPY, OBJDUMP, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, RANLIB, READELF, RUSTFLAGS, SIZE, STRINGS, STRIP, YACC, YFLAGS
Comment 1 Sven Wegener gentoo-dev 2022-04-01 16:58:24 UTC
Could you provide your /etc/powerdns/recursor.conf
Comment 2 Norman Rieß 2022-04-01 18:50:25 UTC
Here is the recursor.conf

# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$

# Drop uid
setuid=nobody

# Drop gid
setgid=nobody

# Don't log queries
quiet=off

# Local IP address to bind to
allow-from=
local-address=127.0.0.1,<ipv4>,<ipv6>

# Local port to bind to
local-port=53

version-string=Use the Force, Harry. - Gandalf

# Change root for safety
chroot=/var/lib/powerdns

# Anti spoofing
spoof-nearmiss-max=20

# Anti Amplification Attack
any-to-tcp=yes

# Export /etc/hosts
export-etc-hosts=yes

max-cache-ttl=3600
max-negative-ttl=3600

query-local-address=0.0.0.0,::
Comment 3 Sven Wegener gentoo-dev 2022-04-02 13:58:19 UTC
It's segfaulting because of the empty allow-from option.

Pending upstream patch: https://github.com/PowerDNS/pdns/pull/11496
Comment 4 Larry the Git Cow gentoo-dev 2022-04-02 14:09:56 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=fbcc363ce82b0b66f07e51825776e9a9a833aaad

commit fbcc363ce82b0b66f07e51825776e9a9a833aaad
Author:     Sven Wegener <swegener@gentoo.org>
AuthorDate: 2022-04-02 14:02:37 +0000
Commit:     Sven Wegener <swegener@gentoo.org>
CommitDate: 2022-04-02 14:08:44 +0000

    net-dns/pdns-recursor: Revision bump, bug #713746 and #836580
    
    Closes: https://bugs.gentoo.org/713746
    Closes: https://bugs.gentoo.org/836580
    Package-Manager: Portage-3.0.30, Repoman-3.0.3
    Signed-off-by: Sven Wegener <swegener@gentoo.org>

 .../files/pdns-recursor-4.6.1-parseACL.patch       | 13 +++
 .../pdns-recursor/pdns-recursor-4.6.1-r1.ebuild    | 92 ++++++++++++++++++++++
 2 files changed, 105 insertions(+)
Comment 5 Norman Rieß 2022-04-02 14:12:14 UTC
Thank you very much!