PyApache and Apache 1.3.6 anyone ???

A.M. Kuchling amk at mira.erols.com
Fri Jul 9 19:34:12 EDT 1999


On Fri, 9 Jul 1999 11:27:14 +0200, 
	Gregor Hoffleit <flight at mathi.uni-heidelberg.de> wrote:
>On Thu, Jul 08, 1999 at 10:06:53PM -0700, Pavel Velikho wrote:
>Nope, there's no entry at all in the error log for all the silently
>dying starting attempts. I don't know how to debug apache with gdb,
>therefore I'm comletely lost where to look for hints about the
>failure.

This is probably because Apache is segfaulting for some reason,
something that's become very familiar since I started working on
mod_pcgi.  To debug an Apache binary with GDB, run "gdb httpd", and
then run Apache with the -X command-line argument.  -X disables
forking, so everything is handled in a single process; you may also
want to specify "-f <configfile".  Then you can set breakpoints, get
stack traces at segfaults, and all that sort of thing.  

	Running Apache under GDB is really slow, though; an
application such as Zope that makes lots of little HTTP requests will
run glacially slowly.  That shouldn't be a problem for getting
PyApache working.

-- 
A.M. Kuchling			http://starship.python.net/crew/amk/
It is a rotten world / Artful politicians are its bane / Its saving grace is
the / Artlessness of the young / And the wonders of the sky.
    -- Epitaph, Ross Bay Cemetery, Victoria




More information about the Python-list mailing list