Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 773484 - net-dns/bind-9.16.12 crashes within a few seconds of starting: query.c:6282: REQUIRE(client->query.fetch == ((void *)0)) failed, back trace
Summary: net-dns/bind-9.16.12 crashes within a few seconds of starting: query.c:6282: ...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Mikle Kolyada (RETIRED)
URL:
Whiteboard:
Keywords:
: 773481 (view as bug list)
Depends on:
Blocks:
 
Reported: 2021-03-01 04:28 UTC by Michael Moon
Modified: 2021-03-21 13:51 UTC (History)
3 users (show)

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


Attachments
full debug log (bind-crash.txt,981.83 KB, text/plain)
2021-03-01 04:29 UTC, Michael Moon
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Michael Moon 2021-03-01 04:28:22 UTC
net-dns/bind-9.16.12 crashes within a few seconds of starting due to a failed assert.

net-dns/bind-9.16.8 is not affected (but has been removed from the portage tree, I had to add it to my overlay).

debug log tail:

01-Mar-2021 12:17:20.863 sending packet to 162.159.8.55#53
;ben.ns.cloudflare.com.         IN      A


01-Mar-2021 12:17:20.973 client @0x7f7c2c01b2e8 127.0.0.1#55471 (thetracker.org): rrl=(nil), HAVECOOKIE=0, result=DNS_R_DELEGATION, fname=0x7f7c5888e790(1), is_zone=0, RECURSIONOK=1, query.rpz_st=(nil)(0), RRL_CHECKED=0

01-Mar-2021 12:17:20.973 query.c:6282: REQUIRE(client->query.fetch == ((void *)0)) failed, back trace
01-Mar-2021 12:17:20.973 #0 0x55cb71b2ab4f in ??
01-Mar-2021 12:17:20.973 #1 0x7f7c68ec2aaa in ??
01-Mar-2021 12:17:20.973 #2 0x7f7c691d859a in ??
01-Mar-2021 12:17:20.973 #3 0x7f7c691e2961 in ??
01-Mar-2021 12:17:20.973 #4 0x7f7c691dea28 in ??
01-Mar-2021 12:17:20.973 #5 0x7f7c691e0914 in ??
01-Mar-2021 12:17:20.973 #6 0x7f7c691e4980 in ??
01-Mar-2021 12:17:20.973 #7 0x7f7c68ef83ef in ??
01-Mar-2021 12:17:20.973 #8 0x7f7c68ccdf5e in ??
01-Mar-2021 12:17:20.973 #9 0x7f7c687671ef in ??
01-Mar-2021 12:17:20.973 exiting (due to assertion failure)
Aborted (core dumped)


$ emerge --info
Portage 3.0.13 (python 3.8.7-final-0, default/linux/amd64/17.1/desktop/plasma, gcc-9.3.0, glibc-2.32-r6, 5.10.17-dorellan x86_64)
=================================================================
System uname: Linux-5.10.17-dorellan-x86_64-Intel-R-_Core-TM-_i7-7700K_CPU_@_4.20GHz-with-glibc2.2.5
KiB Mem:    32846744 total,  25072556 free
KiB Swap:     524284 total,    524284 free
Head commit of repository perlovka: bae21fcc849f965445232612c28faea7f9083c7c

Head commit of repository maggu2810-overlay: e2b0eb79a6f44095bc17b9eb1e13ae1f8e3ae64d

Timestamp of repository gentoo: Sat, 27 Feb 2021 13:30:01 +0000
Head commit of repository gentoo: 32d203b37ab908ca43d0d9c74924e27a052225c5
sh bash 5.0_p18
ld GNU ld (Gentoo 2.35.1 p2) 2.35.1
distcc 3.3.3 x86_64-pc-linux-gnu [disabled]
ccache version 4.1 [disabled]
app-shells/bash:          5.0_p18::gentoo
dev-java/java-config:     2.3.1::gentoo
dev-lang/perl:            5.30.3::gentoo
dev-lang/python:          2.7.18-r6::gentoo, 3.8.7-r1::gentoo, 3.9.1-r1::gentoo
dev-util/ccache:          4.1::gentoo
dev-util/cmake:           3.18.5::gentoo
dev-util/pkgconfig:       0.29.2::gentoo
sys-apps/baselayout:      2.7::gentoo
sys-apps/openrc:          0.42.1-r1::gentoo
sys-apps/sandbox:         2.20::gentoo
sys-devel/autoconf:       2.13-r1::gentoo, 2.69-r5::gentoo
sys-devel/automake:       1.16.2-r1::gentoo
sys-devel/binutils:       2.35.1-r1::gentoo
sys-devel/gcc:            7.5.0-r1::gentoo, 9.3.0-r2::gentoo
sys-devel/gcc-config:     2.3.3::gentoo
sys-devel/libtool:        2.4.6-r6::gentoo
sys-devel/make:           4.3::gentoo
sys-kernel/linux-headers: 5.10::gentoo (virtual/os-headers)
sys-libs/glibc:           2.32-r6::gentoo
Repositories:

perlovka
location: /var/db/repos/perlovka
sync-type: git
sync-uri: https://github.com/Perlovka/portage-overlay
masters: gentoo

crossdev
location: /usr/local/portage-crossdev
masters: gentoo
priority: 10

glc
location: /var/lib/layman/glc
sync-type: laymansync
sync-uri: git://github.com/eroen/glc-overlay.git
masters: gentoo
priority: 50

maggu2810-overlay
location: /var/db/repos/scrcpy
sync-type: git
sync-uri: https://github.com/maggu2810/maggu2810-overlay
masters: gentoo
priority: 50

pentoo
location: /var/lib/layman/pentoo
sync-type: laymansync
sync-uri: https://github.com/pentoo/pentoo-overlay.git
masters: gentoo
priority: 50

raiagent
location: /var/lib/layman/raiagent
sync-type: laymansync
sync-uri: https://github.com/leycec/raiagent
masters: gentoo
priority: 50

science
location: /var/lib/layman/science
sync-type: laymansync
sync-uri: https://anongit.gentoo.org/git/proj/sci.git
masters: gentoo
priority: 50

steam-overlay
location: /var/lib/layman/steam-overlay
sync-type: laymansync
sync-uri: https://github.com/anyc/steam-overlay.git
masters: gentoo
priority: 50

tastytea
location: /var/lib/layman/tastytea
sync-type: laymansync
sync-uri: https://schlomp.space/tastytea/overlay.git
masters: gentoo
priority: 50

waebbl
location: /var/lib/layman/waebbl
sync-type: laymansync
sync-uri: https://github.com/waebbl/waebbl-gentoo.git
masters: gentoo
priority: 50

wine
location: /var/lib/layman/wine
sync-type: laymansync
sync-uri: https://anongit.gentoo.org/git/repo/proj/wine.git
masters: gentoo
priority: 50

gentoo
location: /var/db/repos/gentoo
sync-type: rsync
sync-uri: rsync://rsync.gentoo.org/gentoo-portage
priority: 99
sync-rsync-extra-opts: --exclude='/searchdesc' -4
sync-rsync-verify-max-age: 24
sync-rsync-verify-jobs: 1
sync-rsync-verify-metamanifest: yes

local
location: /usr/local/portage
masters: gentoo
priority: 999

Installed sets: @esteam
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe -march=native"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /lib/modules /usr/lib64/libreoffice/program/sofficerc /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/themes/oxygen-gtk/gtk-2.0 /var/bind"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/init.d /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-O2 -pipe -march=native"
DISTDIR="/var/cache/distfiles"
EMERGE_DEFAULT_OPTS="--alphabetical --keep-going --load-average=8 --autounmask=y --autounmask-write=n --verbose-conflicts --backtrack=10"
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 candy config-protect-if-modified distlocks downgrade-backup 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://mirrors.163.com/gentoo/ http://mirrors.aliyun.com/gentoo/ https://mirrors.tuna.tsinghua.edu.cn/gentoo/"
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="en en-GB en_US zh_CN"
MAKEOPTS="-j8 -l8"
PKGDIR="/var/cache/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_EXTRA_OPTS="--exclude='/searchdesc' -4"
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"
USE="MSP430 Mips WebAssembly X a52 aac acl acpi activities alsa amd64 apng berkdb bitcoin_policy_spamfilter bittorrent bluetooth bluray branding btrfs bzip2 cairo cdda cddb cdr chm cjk cli client conntrack corefonts cpudetection cpufreq_bench crossdev crypt cups cxx cycles d3d9 dbus declarative dhcp dhcp-tools dlz dnsretry dri drm dts dvd dvdr eap-sim eap-tls elogind emboss encode epub evdev exif expat fat ffmpeg fftw flac fluidsynth fontconfig fortran ftdi fuse gd gdbm geoip2 gif gimp github gles1 gles2 gphoto2 gpm grub gstreamer gtk gui haptic havege hcitop hddtemp http2 hwaccel iconv icu id3tag imagemagick imlib inotify iproute2 ipv6 ithreads jack jpeg json jumbo-build kde kipi kwallet latex lcms libass libglvnd libinput libkms libnotify libtirpclibusb ljr lm_sensors logrotate lxc lz4 lzma lzo mad markdown matroska mdnsresponder-compat midi mikmod minizip mjpeg mng mobi mobile mod mp3 mp4 mpeg mtp multilib multimedia nano ncurses nethack netlink nls nptl ntfs ntp nvme ocr ogg onigurama oniguruma opencl opengl openh264 openimageio openmp openssl pam pango pcre pcre16 pdf pdf-writer pdfimport phonon plasma png policykit postproc postscript ppds printsupport qml qt5 qtmedia rar rdp readline rendering rle rustfmt s3tc samba sasl scanner sdl sdl2seccomp secure-delete semantic-desktop smp socks5 soundcloud spell split-usr sqlite ssh ssl sslv3 startup-notification subtitles svc svg sync-plugin-portage system-llvm taglib tcl tcpd text theora tiff tk tracepath truetype tty-helpers udev udf udisks unicode unicode3 unit-mm update_drivedb upnp upower urandom usb usbredir utils uvm v4l vaapi vcd vdpau virt-network virtualbox vkd3d vnc vorbis vpx vulkan vulkan-overlay webp widgets winbind wireshark-plugins wps x264 x265 xattr xcb xcomposite xft xine xinerama xkb xla xml xmp xnasong xnest xrandr xv xvid xvmc zeroconf zlib zstd" ABI_X86="64" ADA_TARGET="gnat_2018" 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 http2" 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 sse sse2 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" INPUT_DEVICES="keyboard mouse synaptics evdev mutouch" KERNEL="linux" L10N="en en-GB en-US zh-CN" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LLVM_TARGETS="AMDGPU ARM BPF NVPTX X86" LUA_SINGLE_TARGET="lua5-1" LUA_TARGETS="lua5-1" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php7-3 php7-4" POSTGRES_TARGETS="postgres10 postgres11" PYTHON_SINGLE_TARGET="python3_8" PYTHON_TARGETS="python3_8" QEMU_SOFTMMU_TARGETS="arm" QEMU_USER_TARGETS="arm" RUBY_TARGETS="ruby26" SANE_BACKENDS="abaton agfafocus apple artec artec_eplus48u as6e avision bh canon canon630u canon_dr cardscan coolscan coolscan2 coolscan3 dc210 dc240 dc25 dell1600n_net dmc epjitsu epson epson2 fujitsu genesys gt68xx hp hp3500 hp3900 hp4200 hp5400 hp5590 hpljm1005 hs2p ibm kodak kodakaio kvs1025 kvs20xx kvs40xx leo lexmark ma1509 magicolor matsushita microtek microtek2 mustek mustek_usb mustek_usb2 nec net niash p5 pie pixma plustek plustek_pp pnm qcam ricoh rts8891 s9036 sceptre sharp sm3600 sm3840 snapscan sp15c st400 stv680 tamarack teco1 teco2 teco3 {-test} u12 umax umax1220u umax_pp xerox_mfp" USERLAND="GNU" VIDEO_CARDS="nvidia intel" 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, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS
Comment 1 Michael Moon 2021-03-01 04:29:14 UTC
Created attachment 688794 [details]
full debug log

I tried to attach this during submission but apparently it got dropped somehow
Comment 2 Ionen Wolkens gentoo-dev 2021-03-01 04:45:26 UTC
*** Bug 773481 has been marked as a duplicate of this bug. ***
Comment 3 Ionen Wolkens gentoo-dev 2021-03-01 04:49:43 UTC
REQUIRE(client->query.fetch == ((void *)0))

I can't fully confirm but this is looking like (fixed upstream):
https://gitlab.isc.org/isc-projects/bind9/-/issues/2503
>Now we hit the client->query.fetch == ((void *)0) assertion.
Comment 4 Michael Moon 2021-03-01 06:00:15 UTC
Since there's an upstream fix in the works, what would be the resolution for this issue wrt Gentoo's repository?

Should we reinstate an older version of bind and mask 9.16.12 until it's fixed or something?

As noted in my top comment, bind-9.16.8 does not seem to be affected - this only showed up for me after an update to bind-9.16.12, and I'm a little miffed that the _only_ version currently available in gentoo's repository is affected by a relatively severe bug.

Fwiw, the upstream bug notes a `stale-answer-client-timeout` setting - which I don't have set in any of my named configs, so presumably it's using a default value.
Comment 5 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2021-03-17 02:45:43 UTC
If someone can verify the patch works, I can add it.
Comment 6 Mikle Kolyada (RETIRED) archtester Gentoo Infrastructure gentoo-dev Security 2021-03-18 10:04:36 UTC
Does 9.16.13 fix the issue for you?