[mod_python] Segfault with Vampire

Ian Stokes-Rees i.stokes-rees1 at physics.ox.ac.uk
Fri Oct 21 15:46:27 EDT 2005


Hi,

I have Apache, Python, and mod_python setup as follows:

  Apache/2.0.53 (Unix) mod_python/3.1.4 Python/2.4.1

mod_python works fine, however when I try to use Vampire I get a seg fault:

[Fri Oct 21 20:31:38 2005] [notice] mod_python: (Re)importing module 
'vampire'
[Fri Oct 21 20:31:39 2005] [notice] child pid 23753 exit signal 
Segmentation fault (11)

I can't figure out what the source of the seg fault is.  Vampire is in 
the sys.path.  The only thing I change in the .htaccess is "myprob" to 
"vampire" for the PythonHandler, and I don't touch the actual file 
(resource).  Any thoughts on the source of this would be greatly 
appreciated.  Below are my .htaccess file and myprob.py.

Ian.

.htaccess:
SetHandler mod_python
PythonHandler vampire
PythonDebug On

myprob.py:
from mod_python import apache

def handler(req):
     req.content_type = "text/plain"
     req.write("boo")
     return apache.OK



More information about the Mod_python mailing list