[mod_python] Segfault with Vampire

Graham Dumpleton grahamd at dscpl.com.au
Fri Oct 21 18:04:35 EDT 2005

Vampire imports xmlrpclib, so you may be affected by the expat library
version mismatch problem. See:


for some details. Use the prev/next links for that mailing list  
thread to
go back through the discussion to get the context.

Simplest way to check is to put PythonHandler back to "boo" and in
"boo.py" add:

   import xmlrpclib

If it crashes when access, it is the expat problem and nothing to do  
Vampire itself.

In short, upgrade expat to a newer version, or at least the same version
as embedded in Python. See mailing list discussion for how to find out.


On 22/10/2005, at 5:46 AM, Ian Stokes-Rees wrote:

> 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
> _______________________________________________
> Mod_python mailing list
> Mod_python at modpython.org
> http://mailman.modpython.org/mailman/listinfo/mod_python

More information about the Mod_python mailing list