Re: Core dumps

Todd Lyons <[email protected]> Fri, 8 May 2009 12:10:44 -0700
Newsgroups gmane.network.dns.bind9.dlz
Message-ID <[email protected]>
On Fri, May 8, 2009 at 12:50 AM, Scott Haneda <[email protected]> wrote:
> Thanks.  Does that mean that this is normal and that even a non DLZ
> driven system is doing the same things in the background?  I have a a
> few non DLZ systems in place, with query logging on, and I have never
> seen it do so.

Core dumps are not normal.  Chances are that threads are biting you.
I'll bet you don't have this set:

CentOS52[root@ivdns51 ~]# egrep '^OPTIONS' /etc/sysconfig/named
OPTIONS="-n 1"

Explanation from: http://bind-dlz.sourceforge.net/mysql_driver.html

 IMPORTANT NOTICE!!! READ THIS!!! IMPORTANT INFORMATION BELOW!!!

The MySQL driver has one additional limitation. MySQL uses thread
local storage in its C api. Thus MySQL requires that each thread of an
application execute a MySQL "thread initialization" to setup the
thread local storage. This is impossible to do safely while staying
within the DLZ driver API. This is a limitation caused by MySQL, and
not the DLZ API. Because of this BIND MUST only run with a single
thread when using the MySQL driver. To ensure BIND runs with a single
thread pass "-n 1" on the command line when starting BIND (named).
This should not be a limitation on most UN*X systems as BIND is
normally compiled single threaded (there are some exceptions). Even if
BIND is compiled to support threads passing "-n 1" on the command line
will cause it to use a single thread. Also, if the MySQL driver is
compiled into BIND but NOT USED then "-n 1" is not required. The "-n
1" command line parameters are only required when the MySQL driver is
USED.

> While I can live with this multiple query issue, and learn about it
> later, the main issue is the core dumps and DLZ/SBD going totally deaf
> over time.

After reading that paragraph, I'm positive the answer lies in the above option.

-- 
Regards...      Todd

------------------------------------------------------------------------------
The NEW KODAK i700 Series Scanners deliver under ANY circumstances! Your
production scanning environment may not be a perfect world - but thanks to
Kodak, there's a perfect scanner to get the job done! With the NEW KODAK i700
Series Scanner you'll get full speed at 300 dpi even with all image 
processing features enabled. http://p.sf.net/sfu/kodak-com