[mod_python] mod_python segfault

Martin Pool mbp at samba.org
Thu Jun 27 13:25:00 EST 2002

On 26 Jun 2002, William Robertson <wkr at cs.ucsb.edu> wrote:
> Hi,
> I've been having problems installing mod_python 2.7.8 for Apache 1.3.26
> on Gentoo Linux.  I compiled it as a DSO, using a python interpreter
> compiled without threads, and am pretty certain I got the configuration
> from the documentation correct for both Apache and the hello world
> example.
> When I tried to run the example, however, I got segfaults from
> mod_python.so.  A gdb backtrace and some disassembly, confirmed by some
> debugging code, shows that req->per_dir_config in the following line
> (mod_python.c:560, in python_handler()) is uninitialized:
> conf = (py_dir_config *) ap_get_module_config(req->per_dir_config,
> &python_module);

At a guess, you are using a different version of the Apache source to
compile mod_python than the one that was used to build httpd itself.
Are you using an SSL patch perhaps?


More information about the Mod_python mailing list