named 9.14.6 memory leak, cannot start

Peter pmc at citylink.dinoex.sub.org
Tue Oct 15 23:32:37 UTC 2019


When starting named 9.14.6, before doing any activity it immediately
grows infinitely, hits the system limits and crashes with:

> mem.c:710: fatal error:
> malloc failed: Cannot allocate memory
> exiting (due to fatal error in library)

Version 9.14.3 does not have this memory leak and runs flawlessly
(with 100MB VSZ).


Here are the detailled messages:

starting BIND 9.14.6 (Stable Release) <id:efd3496>
running on FreeBSD i386 11.3-RELEASE-p3 FreeBSD 11.3-RELEASE-p3 #0
        r351611M#N348:361: Fri Aug 30 04:59:55 UTC 2019
built with '--localstatedir=/var' '--disable-linux-caps'
   '--with-libxml2=/usr/local'
   '--with-readline=-L/usr/local/lib -ledit'
   '--with-dlopen=yes' '--with-openssl=/usr'
   '--sysconfdir=/usr/local/etc/namedb' '--with-dlz-filesystem=yes'
   '--disable-dnstap' '--disable-fixed-rrset' '--without-geoip2'
   '--with-gssapi=/usr' 'KRB5CONFIG=/usr/bin/krb5-config'
   '--with-libidn2=/usr/local' '--without-libjson'
   '--disable-largefile' '--without-lmdb' '--disable-native-pkcs11'
   '--without-python' '--disable-querytrace'
   'STD_CDEFINES=-DDIG_SIGCHASE=1' '--enable-tcp-fastopen'
   '--with-tuning=default' '--disable-symtable' '--prefix=/usr/local'
   '--mandir=/usr/local/man' '--infodir=/usr/local/share/info/'
   '--build=i386-portbld-freebsd11.3'
   'build_alias=i386-portbld-freebsd11.3' 'CC=cc' 'CFLAGS=-O2 -pipe
   -march=pentium3 -DLIBICONV_PLUG -fstack-protector-strong -isystem
   /usr/local/include -fno-strict-aliasing ' 'LDFLAGS=
   -fstack-protector-strong ' 'LIBS=-L/usr/local/lib'
   'CPPFLAGS=-DLIBICONV_PLUG -isystem /usr/local/include' 'CPP=cpp'
   'PKG_CONFIG=pkgconf' 
running as: named -t /var/named -u bind -c /usr/local/etc/namedb/named.conf
compiled by CLANG 4.2.1 Compatible FreeBSD Clang 8.0.0 (tags/RELEASE_800/final 356365)
compiled with OpenSSL version: OpenSSL 1.0.2s-freebsd  28 May 2019
linked to OpenSSL version: OpenSSL 1.0.2s-freebsd  28 May 2019
compiled with libxml2 version: 2.9.9
linked to libxml2 version: 20909
compiled with zlib version: 1.2.11
linked to zlib version: 1.2.11
----------------------------------------------------
BIND 9 is maintained by Internet Systems Consortium,
Inc. (ISC), a non-profit 501(c)(3) public-benefit 
corporation.  Support and training for BIND 9 are 
available at https://www.isc.org/support
----------------------------------------------------
mem.c:710: fatal error:
malloc failed: Cannot allocate memory
exiting (due to fatal error in library)


This is 9.14.3:

starting BIND 9.14.3 (Stable Release) <id:896acdc>
running on FreeBSD i386 11.3-RELEASE-p3 FreeBSD 11.3-RELEASE-p3 #0
   r351611M#N348:361: Fri Aug 30 04:59:55 UTC 2019
built with '--localstatedir=/var' '--disable-linux-caps'
   '--with-libxml2=/usr/local' '--with-readline=-L/usr/local/lib -ledit'
   '--with-dlopen=yes' '--with-openssl=/usr'
   '--sysconfdir=/usr/local/etc/namedb' '--with-dlz-filesystem=yes'
   '--disable-dnstap' '--disable-fixed-rrset' '--with-ssapi=/usr'
   'KRB5CONFIG=/usr/bin/krb5-config' '--with-libidn2=/usr/local'
   '--without-libjson' '--disable-largefile' '--without-lmdb'
   '--disable-native-pkcs11' '--without-python' '--disable-querytrace'
   'STD_CDEFINES=-DDIG_SIGCHASE=1' '--enable-tcp-fastopen'
   '--with-tuning=default' '--disable-symtable' '--prefix=/usr/local'
   '--mandir=/usr/local/man' '--infodir=/usr/local/share/info/'
   '--build=i386-portbld-freebsd11.3'
   'build_alias=i386-portbld-freebsd11.3' 'CC=cc' 'CFLAGS=-O2 -pipe
   -march=pentium3 -DLIBICONV_PLUG -fstack-protector-strong -isystem
   /usr/local/include -fno-strict-aliasing ' 'LDFLAGS=
   -fstack-protector-strong ' 'LIBS=-L/usr/local/lib'
   'CPPFLAGS=-DLIBICONV_PLUG -isystem /usr/local/include' 'CPP=cpp'
   'PKG_CONFIG=pkgconf'
running as: named -t /var/named -u bind -c /usr/local/etc/namedb/named.conf
compiled by CLANG 4.2.1 Compatible FreeBSD Clang 8.0.0 (tags/RELEASE_800/final 356365)
compiled with OpenSSL version: OpenSSL 1.0.2s-freebsd  28 May 2019
linked to OpenSSL version: OpenSSL 1.0.2s-freebsd  28 May 2019
compiled with libxml2 version: 2.9.9
linked to libxml2 version: 20909
compiled with zlib version: 1.2.11
linked to zlib version: 1.2.11
----------------------------------------------------
BIND 9 is maintained by Internet Systems Consortium,
Inc. (ISC), a non-profit 501(c)(3) public-benefit 
corporation.  Support and training for BIND 9 are 
available at https://www.isc.org/support
----------------------------------------------------
command channel listening on 127.0.0.1#953
general: notice: all zones loaded
general: notice: running


More information about the bind-users mailing list