httpd-modules-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jeremy Sowden <jer...@azazel.net>
Subject Re: Surviving restarts
Date Wed, 06 Jun 2007 18:57:56 GMT
David Wortham wrote:
> Cesar,
>   I have used gdb with Apache frequently, but I don't remember ever
> being
> able to restart Apache within gdb so trust the other guys for that
> advice.
>
> Here is the official Apache debugging page:
> http://httpd.apache.org/dev/debugging.html
> It should walk you through the basics of using gdb as a wrapper for
> httpd,
> instructing httpd to coredump, and some other tricks.
>
> For what it's worth, I don't remember being able to get a successful,
> readable backtrace from a coredump, but maybe I'm just using the wrong
> apps
> or app versions?

One of the most important things is to make sure you've compiled Apache
with no optimization ("-O0", or no "-O" at all) and with debugging in-
formation ("-g"), otherwise the back-trace can be less than informative.

J.
--
+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+
  www: http://www.azazel.net/
  pgp: http://www.azazel.net/~azazel/js_key.asc
+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+

Mime
View raw message