You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@httpd.apache.org by Graham Leggett <mi...@sharp.fm> on 2008/04/17 14:10:08 UTC
Getting httpd to dump core on RHEL5
Hi all,
I am trying to get a core dump out of an RHEL5 system, and I am
struggling to do so.
Following the instructions at
http://httpd.apache.org/dev/debugging.html#crashes, I have set "ulimit
-c unlimited", and I set CoreDumpDirectory to /tmp, but with no luck.
Is there some further magic that needs to be done to get httpd to dump
core successfully on Linux?
Regards,
Graham
--
Re: Getting httpd to dump core on RHEL5
Posted by Niklas Edmundsson <ni...@acc.umu.se>.
On Thu, 17 Apr 2008, Graham Leggett wrote:
> Hi all,
>
> I am trying to get a core dump out of an RHEL5 system, and I am struggling to
> do so.
>
> Following the instructions at
> http://httpd.apache.org/dev/debugging.html#crashes, I have set "ulimit -c
> unlimited", and I set CoreDumpDirectory to /tmp, but with no luck.
>
> Is there some further magic that needs to be done to get httpd to dump core
> successfully on Linux?
On our Ubuntu boxen having "ulimit -c unlimited" in the httpd startup
script and "CoreDumpDirectory /tmp" in httpd.conf is sufficient.
kill -SEGV some-httpd-pid should yield a coredump IIRC.
The coredump will be useless unless you have compiled with -g though,
but I guess you already knew that ;)
/Nikke
--
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Niklas Edmundsson, Admin @ {acc,hpc2n}.umu.se | nikke@acc.umu.se
---------------------------------------------------------------------------
Stationary mice have bigger balls. (c)1991
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=