Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 741162

Summary: net-dns/bind-9.16.6 critical: exiting (due to assertion failure)
Product: Gentoo Linux Reporter: Andreas <alamahant>
Component: Current packagesAssignee: Mikle Kolyada (RETIRED) <zlogene>
Status: RESOLVED FIXED    
Severity: normal CC: alamahant, chutzpah, hydrapolic, jstein, sam
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
See Also: https://bugs.gentoo.org/show_bug.cgi?id=748939
Whiteboard:
Package list:
Runtime testing required: ---

Description Andreas 2020-09-08 09:47:46 UTC
Hi Guys,
This happens maybe once daily.
The bind logs
07-Sep-2020 23:54:32.519 general: critical: resolver.c:5125: INSIST(dns_name_issubdomain(&fctx->name, &fctx->domain)) failed, back trace
07-Sep-2020 23:54:32.519 general: critical: #0 0x564034bd429f in ??
07-Sep-2020 23:54:32.519 general: critical: #1 0x7f987757fcfa in ??
07-Sep-2020 23:54:32.519 general: critical: #2 0x7f9877746425 in ??
07-Sep-2020 23:54:32.519 general: critical: #3 0x7f9877749bd0 in ??
07-Sep-2020 23:54:32.519 general: critical: #4 0x7f987774f9e7 in ??
07-Sep-2020 23:54:32.519 general: critical: #5 0x7f9877752054 in ??
07-Sep-2020 23:54:32.519 general: critical: #6 0x7f98775a6dae in ??
07-Sep-2020 23:54:32.519 general: critical: #7 0x7f9877392e4e in ??
07-Sep-2020 23:54:32.519 general: critical: #8 0x7f9876dfdfaf in ??
07-Sep-2020 23:54:32.519 general: critical: exiting (due to assertion failure)

Bind crashes and I have to restart it.

emerge --info bind

emerge --info bind
Portage 3.0.6 (python 3.7.9-final-0, default/linux/amd64/17.1/desktop, gcc-9.3.0, glibc-2.32-r1, 5.8.5-gentoo x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-5.8.5-gentoo-x86_64-Intel-R-_Core-TM-_i7-4710HQ_CPU_@_2.50GHz-with-gentoo-2.7
KiB Mem:    16279384 total,  14322800 free
KiB Swap:   16773116 total,  16773116 free
Timestamp of repository gentoo: Tue, 08 Sep 2020 09:00:01 +0000
Head commit of repository gentoo: bbe2b506a19d2a63c89096e1d2cd71e690444005
sh bash 5.0_p18
ld GNU ld (Gentoo 2.34 p6) 2.34.0
app-shells/bash:          5.0_p18::gentoo
dev-lang/perl:            5.30.3-r1::gentoo
dev-lang/python:          2.7.18-r1::gentoo, 3.7.9::gentoo, 3.8.5::gentoo, 3.9.0_rc1::gentoo
dev-util/cmake:           3.18.2::gentoo
sys-apps/baselayout:      2.7::gentoo
sys-apps/openrc:          0.42.1::gentoo
sys-apps/sandbox:         2.20::gentoo
sys-devel/autoconf:       2.13-r1::gentoo, 2.69-r5::gentoo
sys-devel/automake:       1.16.2::gentoo
sys-devel/binutils:       2.34-r2::gentoo
sys-devel/gcc:            9.3.0-r1::gentoo, 10.2.0::gentoo
sys-devel/gcc-config:     2.3.2::gentoo
sys-devel/libtool:        2.4.6-r6::gentoo
sys-devel/make:           4.3::gentoo
sys-kernel/linux-headers: 5.8::gentoo (virtual/os-headers)
sys-libs/glibc:           2.32-r1::gentoo
Repositories:

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

localrepo
    location: /var/db/repos/localrepo
    masters: gentoo

flatpak-overlay
    location: /var/lib/layman/flatpak-overlay
    masters: gentoo
    priority: 50

jorgicio
    location: /var/lib/layman/jorgicio
    masters: gentoo
    priority: 50

ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=haswell -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/easy-rsa /usr/share/gnupg/qualified.txt /var/bind"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php7.4/ext-active/ /etc/php/cgi-php7.4/ext-active/ /etc/php/cli-php7.4/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-march=haswell -O2 -pipe"
DISTDIR="/var/cache/distfiles"
EMERGE_DEFAULT_OPTS="--ask --quiet-build=y"
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="-march=haswell -O2 -pipe"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs 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="-march=haswell -O2 -pipe"
GENTOO_MIRRORS="http://ftp.ntua.gr/pub/linux/gentoo/"
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j4"
PKGDIR="/var/cache/binpkgs"
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/portage"
USE="X a52 aac acl acpi alsa amd64 berkdb bluetooth branding bzip2 cairo cdda cdr cli crypt cups dbus dlz dri dts dvd dvdr elogind emboss encode exif flac fortran gdbm gif gpm gtk gui iconv icu ipv6 jpeg lcms ldap libglvnd libnotify libtirpc mad mng mp3 mp4 mpeg multilib ncurses nls nptl ogg opengl openmp openssl pam pango pcre pdf png policykit ppds pulseaudio readline sdl seccomp spell split-usr ssl startup-notification svg tcpd tiff truetype udev udisks unicode upower usb vaapi vdpau vorbis wxwidgets x264 xattr xcb xfce xml xv xvid zlib" ABI_X86="64" ADA_TARGET="gnat_2018" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" 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" APACHE2_MPMS="event" CALLIGRA_FEATURES="karbon sheets words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="mmx mmxext sse sse2 aes avx avx2 f16c fma3 pclmul popcnt sse3 sse4_1 sse4_2 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" GRUB_PLATFORMS="efi-64" INPUT_DEVICES="libinput synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php7-4" POSTGRES_TARGETS="postgres10 postgres11" PYTHON_SINGLE_TARGET="python3_7" PYTHON_TARGETS="python3_7" RUBY_TARGETS="ruby25" USERLAND="GNU" VIDEO_CARDS="intel i965 nouveau nvidia" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CC, CPPFLAGS, CTARGET, CXX, INSTALL_MASK, LC_ALL, LINGUAS, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

=================================================================
                        Package Settings
=================================================================

net-dns/bind-9.16.6::gentoo was built with the following:
USE="berkdb caps dlz ldap xml zlib -dnsrps -dnstap -doc -fixed-rrset -geoip -geoip2 -gssapi -json -libressl -lmdb -mysql -odbc -postgres -python (-selinux) -static-libs -urandom" ABI_X86="(64)" PYTHON_TARGETS="python3_7 -python3_6 -python3_8 -python3_9"
CFLAGS="-march=haswell -O2 -pipe -I/usr/include/db6.0"
CXXFLAGS="-march=haswell -O2 -pipe -I/usr/include/db6.0"
Comment 1 Andreas 2020-09-08 09:49:15 UTC
This never happened on
net-dns/bind-9.16.5
Comment 2 Tomáš Mózes 2020-09-09 04:28:52 UTC
Meanwhile you can setup monit to watch the process and restart it if it's crashed to avoid manual intervention.
Comment 3 Andreas 2020-09-10 01:46:08 UTC
Thanks a lot...
Comment 4 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2020-09-10 02:13:35 UTC
(In reply to Andreas from comment #3)
> Thanks a lot...

Please be polite. Somebody was giving a mitigation for now.

I think this issue needs to be sent upstream. Debug symbols could help.
Comment 5 Alexandros C. Couloumbis 2020-09-13 14:49:00 UTC
looks like overlay calculate has already an bind-9.16.6-r1 update: https://gpo.zugaina.org/net-dns/bind
Comment 6 Patrick McLean gentoo-dev 2020-09-15 17:55:50 UTC
The upstream "fix"/mitigation appears to be:
https://gitlab.isc.org/isc-projects/bind9/-/merge_requests/4073

I can revbump the ebuild with this patch.
Comment 7 Larry the Git Cow gentoo-dev 2020-09-15 17:58:54 UTC
The bug has been closed via the following commit(s):

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

commit afebccb91e5cb5df6fbb95523be96bdc60b430de
Author:     Patrick McLean <patrick.mclean@sony.com>
AuthorDate: 2020-09-15 17:57:18 +0000
Commit:     Patrick McLean <chutzpah@gentoo.org>
CommitDate: 2020-09-15 17:57:33 +0000

    net-dns/bind-9.16.6-r1: Revbump, pull in patch for bug #741162
    
    Closes: https://bugs.gentoo.org/741162
    Copyright: Sony Interactive Entertainment Inc.
    Package-Manager: Portage-3.0.7, Repoman-3.0.1
    Signed-off-by: Patrick McLean <chutzpah@gentoo.org>

 net-dns/bind/bind-9.16.6-r1.ebuild              | 379 ++++++++++++++++++++++++
 net-dns/bind/files/bind-9.16.6-bug-741162.patch |  31 ++
 2 files changed, 410 insertions(+)
Comment 8 Tomáš Mózes 2020-10-14 12:11:59 UTC
Shouldn't we stabilize the newer version? I got a crash on one of our servers too with version 9.16.6.
Comment 9 Tomáš Mózes 2020-10-14 12:21:43 UTC
There is version 9.16.7 out fixing this issue too.
Comment 10 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2020-10-14 12:22:52 UTC
(In reply to Tomáš Mózes from comment #8)
> Shouldn't we stabilize the newer version? I got a crash on one of our
> servers too with version 9.16.6.

I thought this was git mved. Yes, we should.
Comment 11 Larry the Git Cow gentoo-dev 2020-10-14 19:20:19 UTC
The bug has been referenced in the following commit(s):

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

commit 4de397e7c459803a1088e9b8688cb3834bf65cee
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2020-10-14 19:18:44 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2020-10-14 19:20:15 +0000

    net-dns/bind: forward stable keywords to 9.16.6-r2
    
    Contains the fix for a runtime crash.
    
    Bug: https://bugs.gentoo.org/741162
    Acked-by: Patrick McLean <chutzpah@gentoo.org>
    Package-Manager: Portage-3.0.8, Repoman-3.0.1
    Signed-off-by: Sam James <sam@gentoo.org>

 net-dns/bind/bind-9.16.6-r2.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Comment 12 Tomáš Mózes 2020-10-15 05:02:21 UTC
Thanks