Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 1 Nov 2006 13:17:58 -0800
From:      Jeremy Chadwick <freebsd@jdc.parodius.com>
To:        Nguyen Tam Chinh <chinhngt@sectorb.msk.ru>
Cc:        Mark Andrews <Mark_Andrews@isc.org>, freebsd-stable@freebsd.org
Subject:   Re: bind9 trouble in -PRERELEASE
Message-ID:  <20061101211758.GA38225@icarus.home.lan>
In-Reply-To: <20061101231511.U923@it.hackers>
References:  <200611011927.kA1JRCCE002777@drugs.dv.isc.org> <20061101231511.U923@it.hackers>

next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, Nov 01, 2006 at 11:40:39PM +0300, Nguyen Tam Chinh wrote:
> I don't think that I can do a stack backtrace when named left no core 
> after that.

No core is being left either due to limits (limit/ulimit) being
imposed on the user or group 'bind', or because chroot precautions
are being used.

The way to work around this, assuming the box isn't being used by
end-users for application development (thus needing their own
corefiles for their apps), is to do the following in sysctl.conf:

kern.sugid_coredump=1
kern.corefile=/some/absolute/path/%N.%P.core

You can adjust these in realtime with sysctl as well.

Be sure to specify an absolute path that the 'bind' account has
write access to, and is big enough to fit a decent-sized coredump.
If you have a large /var filesystem, /var/tmp is an OK place.

-- 
| Jeremy Chadwick                                 jdc at parodius.com |
| Parodius Networking                        http://www.parodius.com/ |
| UNIX Systems Administrator                   Mountain View, CA, USA |
| Making life hard for others since 1977.               PGP: 4BD6C0CB |




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20061101211758.GA38225>