[ale] Forcing Apache To Dump Core
Danny Cox
danscox at mindspring.com
Thu Sep 11 17:22:04 EDT 2003
All,
On Wed, 2003-09-10 at 18:22, Chris Ricker wrote:
> On Wed, 10 Sep 2003 matty91 at bellsouth.net wrote:
>
> > Howdy,
> >
> > I am using Apache 1.3.27 with Redhat 7.3, and for some reason apache
> > hangs every 4 - 5 days. I thought that "CoreDumpDirectory" not being set
> > was causing me to lose core files, but this isn't the case. I have
> > tried sending SIGSEGV to the httpd processes, and attempted to attach to
> > the child proceses with gdb (all have proven fruitless :( ). Anyone
> > know of any other mechanisms available to debug apache? I would love to
> > get a stack backtrace to figure out _WHERE_ apache keeps hanging.
> > Hopefully someone has run into this or similar issues before.
>
> You could try strace
>
> There's no particular reason apache shouldn't be able to dump core, though.
> Check /etc/profile and see if core dumps are disabled globally....
That's what has bitten me lately. See 'ulimit -c', and if it's zero,
make it some large number. You may have to set it somewhere in the
apache startup script.
I once was trying to get advent (the game) to core dump (see "cheating"
;-), and was able to do it either with a SIGILL or SIGBUS.
--
kernel, n.: A part of an operating system that preserves the
medieval traditions of sorcery and black art.
Danny
More information about the Ale
mailing list