Date: Fri, 2 May 2008 10:58:53 -0400 From: Bill Moran <wmoran@potentialtech.com> To: Chris Maness <chris@chrismaness.com> Cc: FreeBSD List <freebsd-questions@freebsd.org> Subject: Re: Compiling in Debugging Flags Message-ID: <20080502105853.36874cdf.wmoran@potentialtech.com> In-Reply-To: <alpine.BSF.1.10.0805020730530.6118@ns1.kq6up.org> References: <alpine.BSF.1.10.0805020730530.6118@ns1.kq6up.org>
next in thread | previous in thread | raw e-mail | index | archive | help
In response to Chris Maness <chris@chrismaness.com>: > How do I compile in debugging into apache using ports? There is no > configmenu when one begins to install/compile the port. I'm still having > trouble with apache crashing on a recently upgraded server. (after I have > rebuilt all of the ports). I was having the same problem with apache on a > sandbox server after upgrade to 7.0-RELEASE. I wasn't ever able to figure > it out. I have just upgraded apache on a production server, and I am not > able to cut over until apache working. I get no errors in log files no > errors on std out, and no core dump either. If I attache to GDB, I get no > messages either. Wierd. First, put WITH_DEBUG=absolutely in /etc/make.conf. This will cause all ports that are built to have debug symbols. I believe you need to save the /usr/ports/*/[portname]/work directory after installing, so don't do a make clean until you've archived that somewhere. Then, ensure the sysctls in the kernel are all frobbed to allow coredumps. Specifically: kern.coredump: 1 kern.sugid_coredump: 1 Then, make sure the www user has write access to wherever it's trying to dump to. Personally, I prefer to tweak kern.corefile to be /usr/local/corefiles/%N.%P.core. I can then ensure that directory exists and that all users have write access to it (probably not the best idea on a production server, however) >From there, you should be getting usable coredumps. -- Bill Moran http://www.potentialtech.com
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20080502105853.36874cdf.wmoran>