-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Grant wrote:
> I'm trying to track down my apache2 segfaults and the mod_perl guys
> are telling me I need to get my system to dump a core file for
> analysis.  How can I do that?  Should I re-emerge apache2 and apr with
> +debug?

Unfortunately just having USE=debug isn't all that you need.  I use a bash
alias like so:

alias debug="USE=debug FEATURES=nostrip CFLAGS=-ggdb3 CXXFLAGS=-ggdb3"

then you can just run 'debug emerge blah'.

You'll probably want to rebuilt apache2,apr,apr-util,mod_perl and possibly more
depending on what exactly you're looking for.

Finally, to get it to dump core, you'll probably have to add 'ulimit -c
unlimited' to your apache2 init script.

HTH
- --
"Gort, klaatu nikto barada."
- -- The Day the Earth Stood Still

Aaron Walker <[EMAIL PROTECTED]>
[ BSD | cron | forensics | shell-tools | commonbox | netmon | vim | web-apps ]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)

iD8DBQFChFQdC3poscuANHARArvZAKCfPJzWNJAMOoNfDTvzhdfy3qSo6ACgzACz
l2I65i0OLbCICuWwg/mMRyc=
=IM84
-----END PGP SIGNATURE-----

-- 
gentoo-user@gentoo.org mailing list

Reply via email to