[mod_python] inspect.getmembers(req) segfaults

Martin Devera devik at cdi.cz
Wed Dec 7 23:17:19 EST 2005


I just started to play with mod_python and managed it to
It is:
Apache/2.0.53 (Unix) mod_ssl/2.0.53 OpenSSL/0.9.7b PHP/5.0.5 
mod_python/3.2.5b Python/2.4.2 , prefork mpm

I used .htaccess:
SetHandler mod_python
PythonHandler testh
PythonDebug On

from mod_python import apache
import os
import inspect

def handler(req):
         req.content_type = "text/plain"
         m = inspect.getmembers(req);
         req.write("PID "+str(os.getpid())+" "+str(1))

         return apache.OK

getmembers line coredumps apache child.

thanks, Martin

More information about the Mod_python mailing list