Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 406397 - net-dns/bind-9.9.0[geoip,threads] fails to start wird an internal error: task.c:1637: REQUIRE(task->state == task_state_running) failed, back trace
Summary: net-dns/bind-9.9.0[geoip,threads] fails to start wird an internal error: task...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-03-01 09:03 UTC by Mark Nowiasz
Modified: 2012-04-07 18:50 UTC (History)
1 user (show)

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


Attachments
named.conf (named.conf,4.27 KB, text/plain)
2012-03-01 17:44 UTC, Mark Nowiasz
Details
Patch to fix broken geoip-9.8.0-P1 application to 9.9.0 (bind_gentoo_fix.patch,2.14 KB, patch)
2012-03-01 23:03 UTC, Ken
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Mark Nowiasz 2012-03-01 09:03:34 UTC
After upgrading to bind 9.9.0 and restarting named, named fails to start, syslog reports an internal error in bind:

Reproducible: Always

Steps to Reproduce:
1. upgrade to bind-9.9.0
2. restart bind
3.
Actual Results:  
Mar 01 09:58:41 [named] task.c:1637: REQUIRE(task->state == task_state_running) failed, back trace
Mar 01 09:58:41 [named] #0 0x426e1f in ??
Mar 01 09:58:41 [named] #1 0x7f652340ac6a in ??
Mar 01 09:58:41 [named] #2 0x7f65234284d7 in ??
Mar 01 09:58:41 [named] #3 0x43d869 in ??
Mar 01 09:58:41 [named] #4 0x43d965 in ??
Mar 01 09:58:41 [named] #5 0x7f6523dcfca4 in ??
Mar 01 09:58:41 [named] #6 0x7f6523dc0fd6 in ??
Mar 01 09:58:41 [named] #7 0x7f6523428ab8 in ??
Mar 01 09:58:41 [named] #8 0x7f6522fdfd0c in ??
Mar 01 09:58:41 [named] #9 0x7f6522795e3d in ??
Mar 01 09:58:41 [named] exiting (due to assertion failure)



Portage 2.1.10.49 (default/linux/amd64/10.0, gcc-4.5.3, glibc-2.14.1-r2, 3.2.6-gentoo x86_64)
=================================================================
System uname: Linux-3.2.6-gentoo-x86_64-QEMU_Virtual_CPU_version_0.12.3-with-gentoo-2.1
Timestamp of tree: Thu, 01 Mar 2012 06:15:01 +0000
app-shells/bash:          4.2_p20
dev-lang/python:          2.7.2-r3, 3.2.2
dev-util/cmake:           2.8.7-r3
dev-util/pkgconfig:       0.26
sys-apps/baselayout:      2.1
sys-apps/openrc:          0.9.9.2
sys-apps/sandbox:         2.5
sys-devel/autoconf:       2.68
sys-devel/automake:       1.11.3
sys-devel/binutils:       2.22-r1
sys-devel/gcc:            4.5.3-r2
sys-devel/gcc-config:     1.5.1
sys-devel/libtool:        2.4.2
sys-devel/make:           3.82-r3
sys-kernel/linux-headers: 3.2-r1 (virtual/os-headers)
sys-libs/glibc:           2.14.1-r2
Repositories: gentoo
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /var/bind"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests binpkg-logs distlocks ebuild-locks fixlafiles news parallel-fetch protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch xattr"
FFLAGS=""
GENTOO_MIRRORS="ftp://rush.tisys.org/pub/gentoo/"
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rush.tisys.org/gentoo-portage"
USE="acl amd64 apache2 bash-completion bcmath boundschecking branding bzip2 calendar caps cdb cgi clamav cli cracklib crypt curl cxx dri exif expat fastcgi fortran ftp gd gdbm geoip gif git gmp graphviz gzip hdf5 iconv icu idn imagemagick imap intl ipv6 jpeg jpeg2k libwww lua lzma lzo maildir memlimit mercurial mhash mime mmap mmx mng modules mpi mudflap multilib mysql mysqli ncurses netcdf nls nptl nptlonly offensive openmp pam pcre pdf perl php png policykit posix pppd prelude python readline sasl session sharedmem simplexml slang snmp soap sockets spell sqlite sqlite3 sse sse2 ssl subversion svg sysfs syslog sysvipc tcpd threads tidy truetype unicode vhosts vim-syntax xattr xml xmlreader xmlrpc xmlwriter xorg xsl zlib" 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" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="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="kexi words flow plan stage tables krita karbon braindump" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" PHP_TARGETS="php5-3" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="fbdev glint intel mach64 mga neomagic nouveau nv r128 radeon savage sis tdfx trident vesa via vmware dummy v4l" 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:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, LINGUAS, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Christian Ruppert (idl0r) gentoo-dev 2012-03-01 15:20:37 UTC
Please show me "emerge --info bind".
Can you also show me your config(s) + /etc/conf.d/named?

taks.c sounds related to the recent threading changes...
Comment 2 Mark Nowiasz 2012-03-01 17:43:25 UTC
(In reply to comment #1)
> Please show me "emerge --info bind".

OK:

net-dns/bind-9.8.1_p1 was built with the following:
USE="caps geoip idn ipv6 (multilib) ssl threads xml -berkdb -dlz -doc -gost -gssapi -ldap -mysql -odbc -pkcs11 -postgres -rpz -sdb-ldap (-selinux) -static-libs -urandom"


> Can you also show me your config(s) + /etc/conf.d/named?

I'll attach named.conf.
Comment 3 Mark Nowiasz 2012-03-01 17:44:02 UTC
Created attachment 303847 [details]
named.conf

named.conf
Comment 4 Christian Ruppert (idl0r) gentoo-dev 2012-03-01 19:03:50 UTC
Ok, this is related to the geoip patch.
I'd suggest to disable it since you don't seem to use it at all.
Comment 5 Ken 2012-03-01 23:03:01 UTC
Created attachment 303893 [details, diff]
Patch to fix broken geoip-9.8.0-P1 application to 9.9.0
Comment 6 Ken 2012-03-01 23:03:10 UTC
This is a side-effect of this patch being applied with -F != 0.  The patch was applied incorrectly, causing a geoip function to be called from the wrong bind function.  Whatever mechanism applies these patches should set "patch -F0", since fuzz is almost guaranteed to cause failure.

Attached is a patch which should apply to a badly-patched 9.8.x, and the official 9.9.0 patch is now up on http://code.google.com/p/bind-geoip/.
Comment 7 Christian Ruppert (idl0r) gentoo-dev 2012-03-02 00:57:17 UTC
Thanks for the update, Ken!

Fixed in CVS, if you want to use bind with geoip support then please re-sync in about 2-3 hours and try again.
Thanks for your bug report!

@base-system: Could you guys please check if the named "-F" parameter would useful for us?
Comment 8 Christian Ruppert (idl0r) gentoo-dev 2012-04-07 18:50:45 UTC
See bug 411183 re epatch/-F. Closing now.